You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
2.1 KiB

  1. --- a/service/resource-container/SConscript
  2. +++ b/service/resource-container/SConscript
  3. @@ -176,35 +176,21 @@ if target_os in ['linux', 'tizen', 'andr
  4. # build hue sample bundle
  5. ######################################################################
  6. -conf2 = Configure(lib_env)
  7. -if not conf2.CheckLib('curl'):
  8. - print '''X
  9. -*********************************** Error *************************************
  10. -* Cannot build hue sample. Please install libcurl.
  11. -* Example (Ubuntu):
  12. -* sudo apt-get install libcurl4-openssl-dev
  13. -* sudo ldconfig
  14. -* Hint: check with pkg-config --libs libcurl and clear scons cache.
  15. -* Skipping hue sample build.
  16. -*******************************************************************************
  17. - '''
  18. -else:
  19. - hue_resource_bundle_env = resource_container_env.Clone()
  20. - hue_resource_bundle_env.AppendUnique(CCFLAGS = ['-fPIC'])
  21. -
  22. - HUE_RESOURCE_BUNDLE_DIR = 'examples/HueSampleBundle/'
  23. - hue_resource_bundle_env.AppendUnique(CPPPATH = [
  24. - HUE_RESOURCE_BUNDLE_DIR + 'include',
  25. - 'include/'
  26. - ])
  27. -
  28. - hue_resource_bundle_env.PrependUnique(LIBS = ['curl', 'rcs_container'])
  29. -
  30. - hue_resource_bundle_src = [ Glob(HUE_RESOURCE_BUNDLE_DIR + 'src/*.cpp')]
  31. -
  32. - HueBundle = hue_resource_bundle_env.SharedLibrary('HueBundle', hue_resource_bundle_src)
  33. - hue_resource_bundle_env.InstallTarget(HueBundle, 'libHueBundle')
  34. -lib_env = conf2.Finish()
  35. +hue_resource_bundle_env = resource_container_env.Clone()
  36. +hue_resource_bundle_env.AppendUnique(CCFLAGS = ['-fPIC'])
  37. +
  38. +HUE_RESOURCE_BUNDLE_DIR = 'examples/HueSampleBundle/'
  39. +hue_resource_bundle_env.AppendUnique(CPPPATH = [
  40. + HUE_RESOURCE_BUNDLE_DIR + 'include',
  41. + 'include/'
  42. + ])
  43. +
  44. +hue_resource_bundle_env.PrependUnique(LIBS = ['curl', 'rcs_container'])
  45. +
  46. +hue_resource_bundle_src = [ Glob(HUE_RESOURCE_BUNDLE_DIR + 'src/*.cpp')]
  47. +
  48. +HueBundle = hue_resource_bundle_env.SharedLibrary('HueBundle', hue_resource_bundle_src)
  49. +hue_resource_bundle_env.InstallTarget(HueBundle, 'libHueBundle')
  50. ######################################################################
  51. # build resource container unit tests