X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=SConstruct;h=3a69fe51a96ec52722162671c4e20181740df470;hb=eb4cf6824439d79e05685766f2d1e263abeba209;hp=939ac6a0dfe70b0a2e6ef75456b61511e867aff5;hpb=9015fb1a75f3b43b57153b840f73a2ebc4bb8a63;p=platform%2Fupstream%2Fiotivity.git diff --git a/SConstruct b/SConstruct index 939ac6a..3a69fe5 100644 --- a/SConstruct +++ b/SConstruct @@ -22,17 +22,26 @@ # The main build script # ## +import os # Load common build config SConscript('build_common/SConscript') +Import('env') + +if os.environ.get('TERM') != None: + env['ENV']['TERM'] = os.environ['TERM'] + # Load extra options SConscript('extra_options.scons') -Import('env') target_os = env.get('TARGET_OS') if target_os == 'arduino': SConscript('arduino.scons') + +if target_os == 'android': + SConscript('android/android_api/SConscript') + # By default, src_dir is current dir, the build_dir is: # ./out//// # @@ -47,13 +56,23 @@ build_dir = env.get('BUILD_DIR') # Build 'resource' sub-project SConscript(build_dir + 'resource/SConscript') -if target_os not in ['arduino','darwin','ios', 'android']: +if target_os not in ['arduino','darwin','ios', 'android', 'msys_nt', 'windows', 'tizenrt']: SConscript(build_dir + 'examples/OICMiddle/SConscript') # Build 'service' sub-project -if target_os != 'android': +if target_os not in ['tizenrt']: SConscript(build_dir + 'service/SConscript') +# Build "cloud" sub-project +SConscript(build_dir + 'cloud/SConscript') + +# Build "plugin interface" sub-project +if target_os not in ['tizenrt']: + SConscript(build_dir + 'plugins/SConscript') + +if target_os == 'tizenrt': + SConscript('../apps' + '/SConscript') + # Append targets information to the help information, to see help info, execute command line: # $ scon [options] -h env.PrintTargets() @@ -62,3 +81,6 @@ env.PrintTargets() if target_os == 'arduino': env.UploadHelp() +# to install the generated pc file into custom prefix location +env.UserInstallTargetPCFile('iotivity.pc', 'iotivity.pc') +