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