1 --- a/service/resource-container/SConscript
2 +++ b/service/resource-container/SConscript
3 @@ -191,36 +191,22 @@ if target_os in ['linux', 'tizen', 'andr
4 # build hue sample bundle
5 ######################################################################
7 -conf2 = Configure(lib_env)
8 -if not conf2.CheckLib('curl'):
10 -*********************************** Error *************************************
11 -* Cannot build hue sample. Please install libcurl.
13 -* sudo apt-get install libcurl4-openssl-dev
15 -* Hint: check with pkg-config --libs libcurl and clear scons cache.
16 -* Skipping hue sample build.
17 -*******************************************************************************
20 - hue_resource_bundle_env = resource_container_env.Clone()
21 - hue_resource_bundle_env.AppendUnique(CCFLAGS = ['-fPIC'])
23 - HUE_RESOURCE_BUNDLE_DIR = 'examples/HueSampleBundle/'
24 - hue_resource_bundle_env.AppendUnique(CPPPATH = [
25 - HUE_RESOURCE_BUNDLE_DIR + 'include',
29 - hue_resource_bundle_env.PrependUnique(LIBS = ['curl', 'rcs_container'])
31 - hue_resource_bundle_src = [ Glob(HUE_RESOURCE_BUNDLE_DIR + 'src/*.cpp')]
33 - HueBundle = hue_resource_bundle_env.SharedLibrary('HueBundle', hue_resource_bundle_src)
34 - hue_resource_bundle_env.InstallTarget(HueBundle, 'libHueBundle')
35 - hue_resource_bundle_env.UserInstallTargetLib(HueBundle, 'libHueBundle')
36 -lib_env = conf2.Finish()
37 +hue_resource_bundle_env = resource_container_env.Clone()
38 +hue_resource_bundle_env.AppendUnique(CCFLAGS = ['-fPIC'])
40 +HUE_RESOURCE_BUNDLE_DIR = 'examples/HueSampleBundle/'
41 +hue_resource_bundle_env.AppendUnique(CPPPATH = [
42 + HUE_RESOURCE_BUNDLE_DIR + 'include',
46 +hue_resource_bundle_env.PrependUnique(LIBS = ['curl', 'rcs_container'])
48 +hue_resource_bundle_src = [ Glob(HUE_RESOURCE_BUNDLE_DIR + 'src/*.cpp')]
50 +HueBundle = hue_resource_bundle_env.SharedLibrary('HueBundle', hue_resource_bundle_src)
51 +hue_resource_bundle_env.InstallTarget(HueBundle, 'libHueBundle')
52 +hue_resource_bundle_env.UserInstallTargetLib(HueBundle, 'libHueBundle')
54 ######################################################################
55 # Build Container Sample