From bf37ad5a27fcce9a71ded833aa9401fa818488cb Mon Sep 17 00:00:00 2001 From: David Warburton Date: Mon, 22 Dec 2014 11:52:17 -0500 Subject: [PATCH] Remove oic-utilities as a requirement Change-Id: I1b493439c4a202fc94f664bc7d2bcfa635b6c3e2 Signed-off-by: David Warburton --- extra_options.scons | 30 ------------------------------ resource/third_party_libs.scons | 9 --------- service/third_party_libs.scons | 19 ------------------- 3 files changed, 58 deletions(-) diff --git a/extra_options.scons b/extra_options.scons index e1280da..dc2e48e 100644 --- a/extra_options.scons +++ b/extra_options.scons @@ -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= ... * -******************************************************************************* -''' - Exit(1) - if target_os == 'arduino': # Add 'NET' build option, let user select board network connection type vars = Variables() diff --git a/resource/third_party_libs.scons b/resource/third_party_libs.scons index a22bc36..de307f3 100644 --- a/resource/third_party_libs.scons +++ b/resource/third_party_libs.scons @@ -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']) diff --git a/service/third_party_libs.scons b/service/third_party_libs.scons index e9a140c..718e296 100644 --- a/service/third_party_libs.scons +++ b/service/third_party_libs.scons @@ -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']) -- 2.7.4