Remove oic-utilities as a requirement
authorDavid Warburton <david.warburton@intel.com>
Mon, 22 Dec 2014 16:52:17 +0000 (11:52 -0500)
committerDavid Warburton <david.warburton@intel.com>
Mon, 22 Dec 2014 16:52:17 +0000 (11:52 -0500)
Change-Id: I1b493439c4a202fc94f664bc7d2bcfa635b6c3e2
Signed-off-by: David Warburton <david.warburton@intel.com>
extra_options.scons
resource/third_party_libs.scons
service/third_party_libs.scons

index e1280da..dc2e48e 100644 (file)
@@ -11,36 +11,6 @@ target_os = env.get('TARGET_OS')
 target_arch = env.get('TARGET_ARCH')
 src_dir = env.get('SRC_DIR')
 
-# Add 'OIC_UTILS' build option for user to set oic-utilities project path
-if target_os not in ['linux', 'darwin', 'arduino']:
-       default_dir = os.environ.get('OIC_UTILS')
-       if not default_dir:
-               default_dir = os.path.abspath(src_dir + '/../oic-utilities')
-       else:
-               default_dir = os.path.abspath(default_dir)
-
-       if not os.path.exists(default_dir):
-               default_dir = None
-
-       help_vars = Variables()
-       help_vars.Add(PathVariable('OIC_UTILS', 'oic-utilities project path', default_dir))
-       help_vars.Update(env)
-       Help(help_vars.GenerateHelpText(env))
-
-       utils_path = env.get('OIC_UTILS', default_dir)
-       if utils_path:
-               utils_path = os.path.abspath(utils_path)
-
-       if not utils_path or not os.path.exists(utils_path):
-               print '''
-*********************************** Error: ************************************
-*   oic-utilities project directory isn't set properly, please set enviornment*
-* variable OIC_UTILS or set it in command line:                               *
-*     # scons  OIC_UTILS=<path to oic-utilities> ...                          *
-*******************************************************************************
-'''
-               Exit(1)
-
 if target_os == 'arduino':
        # Add 'NET' build option, let user select board network connection type
        vars = Variables()
index a22bc36..de307f3 100644 (file)
@@ -12,8 +12,6 @@ target_os = env.get('TARGET_OS')
 target_arch = env.get('TARGET_ARCH')
 src_dir = env.get('SRC_DIR')
 
-if target_os not in ['linux', 'darwin']:
-       utils_path = env.get('OIC_UTILS')
 
 ######################################################################
 # Check dependent packages (Linux only)
@@ -36,11 +34,6 @@ if target_os == 'linux':
 
                conf.Finish()
 
-######################################################################
-# The 'include' path of third party libraries
-######################################################################
-if target_os == 'android':
-       lib_env.AppendUnique(CPPPATH = [utils_path + '/android/boost/include'])
 
 ######################################################################
 # The path of third party libraries binary
@@ -57,12 +50,10 @@ if target_os == 'android':
 *******************************************************************************
 '''
        else:
-               lib_env.AppendUnique(LIBPATH = [utils_path + '/android/boost/libs/' + target_arch])
                # Too much boost warning, suppress the warning
                lib_env.AppendUnique(CCFLAGS = ['-w'])
 
 elif target_os == 'ios':
-       lib_env.AppendUnique(FRAMEWORKPATH = [utils_path + '/ios/frameworks/'])
        lib_env.AppendUnique(FRAMEWORKS = ['boost'])
 elif target_os == 'darwin':
        lib_env.AppendUnique(CPPPATH = ['/usr/local/include'])
index e9a140c..718e296 100644 (file)
@@ -12,9 +12,6 @@ target_os = env.get('TARGET_OS')
 target_arch = env.get('TARGET_ARCH')
 src_dir = env.get('SRC_DIR')
 
-if target_os not in ['linux', 'darwin']:
-       utils_path = env.get('OIC_UTILS')
-
 resource_path = src_dir + '/resource'
 
 ######################################################################
@@ -56,16 +53,6 @@ lib_env.AppendUnique(CPPPATH = [
                ])
 
 ######################################################################
-# The 'include' path of third party libraries
-######################################################################
-if target_os == 'android':
-       lib_env.AppendUnique(CPPPATH = [
-                                       utils_path + '/android/boost/include',
-                                       utils_path + '/android/expat/include/expat/',
-                                       utils_path + '/android/openssl/include',
-                               ])
-
-######################################################################
 # The path of third party libraries binary
 ######################################################################
 if target_os == 'android':
@@ -80,16 +67,10 @@ if target_os == 'android':
 *******************************************************************************
 '''
        else:
-               lib_env.AppendUnique(LIBPATH = [
-                                                               utils_path + '/android/boost/libs/' + target_arch,
-                                                               utils_path + '/android/expat/lib/' + target_arch,
-                                                               utils_path + '/android/openssl/lib/' + target_arch,
-                                                       ])
                # Too much boost warning, suppress the warning
                lib_env.AppendUnique(CCFLAGS = ['-w'])
 
 elif target_os == 'ios':
-       lib_env.AppendUnique(FRAMEWORKPATH = [utils_path + '/ios/frameworks/'])
        lib_env.AppendUnique(FRAMEWORKS = ['boost', 'expat', 'openssl'])
 elif target_os == 'darwin':
        lib_env.AppendUnique(CPPPATH = ['/usr/local/include'])