X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fresource-encapsulation%2Fsrc%2FresourceContainer%2FSConscript;h=2934a062d8389f39525e5ecffd7be8892a30f484;hb=b2e13cb430aeee5eca38253a454a0665eb6a68b6;hp=6bf95d117f04c999b32ef6ac601e04c3bd564200;hpb=0a4a78aabb97393927aea3facb0cd6cf724df790;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/resource-encapsulation/src/resourceContainer/SConscript b/service/resource-encapsulation/src/resourceContainer/SConscript index 6bf95d1..2934a06 100644 --- a/service/resource-encapsulation/src/resourceContainer/SConscript +++ b/service/resource-encapsulation/src/resourceContainer/SConscript @@ -93,7 +93,7 @@ if target_os not in ['darwin', 'ios', 'windows', 'winrt']: if target_os == 'android': resource_container_env.AppendUnique(CXXFLAGS = ['-frtti', '-fexceptions']) - resource_container_env.PrependUnique(LIBS = ['gnustl_shared', 'compatibility', 'log']) + resource_container_env.PrependUnique(LIBS = ['gnustl_shared', 'log']) try: resource_container_env.AppendUnique(LIBPATH = [os.environ['JAVA_LIB']]) @@ -127,24 +127,24 @@ resource_container_env.InstallTarget([res_container_static,res_container_shared] ###################################################################### # build soft sensor sample bundle ###################################################################### +if target_os == 'linux': + ss_resource_bundle_env = resource_container_env.Clone() + ss_resource_bundle_env.AppendUnique(CCFLAGS = ['-fPIC']) + + SS_RESOURCE_BUNDLE_DIR = 'examples/SoftSensorSampleBundle/' + ss_resource_bundle_env.AppendUnique(CPPPATH = [ + SS_RESOURCE_BUNDLE_DIR + 'include', + 'include/', + '../../include', + ]) -ss_resource_bundle_env = resource_container_env.Clone() -ss_resource_bundle_env.AppendUnique(CCFLAGS = ['-fPIC']) - -SS_RESOURCE_BUNDLE_DIR = 'examples/SoftSensorSampleBundle/' -ss_resource_bundle_env.AppendUnique(CPPPATH = [ - SS_RESOURCE_BUNDLE_DIR + 'include', - 'include/', - '../../include', - ]) - -ss_resource_bundle_env.PrependUnique(LIBS = ['rcs_container']) - -ss_resource_bundle_src = [ Glob(SS_RESOURCE_BUNDLE_DIR + 'src/*.cpp')] + ss_resource_bundle_env.PrependUnique(LIBS = ['rcs_container']) -SoftSensorBundle = ss_resource_bundle_env.SharedLibrary('SoftSensorBundle', ss_resource_bundle_src) -ss_resource_bundle_env.InstallTarget(SoftSensorBundle, 'libSoftSensorBundle') + ss_resource_bundle_src = [ Glob(SS_RESOURCE_BUNDLE_DIR + 'src/*.cpp')] + SoftSensorBundle = ss_resource_bundle_env.SharedLibrary('SoftSensorBundle', ss_resource_bundle_src) + ss_resource_bundle_env.InstallTarget(SoftSensorBundle, 'libSoftSensorBundle') + ###################################################################### # build hue sample bundle ###################################################################### @@ -182,7 +182,8 @@ else: ###################################################################### # build resource container unit tests ###################################################################### -SConscript('unittests/SConscript') +if target_os == 'linux': + SConscript('unittests/SConscript') ###################################################################### # Build Container Sample