resource-directory: Install examples 75/23675/5
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Thu, 7 Dec 2017 13:14:26 +0000 (14:14 +0100)
committerAshok Babu Channa <ashok.channa@samsung.com>
Thu, 21 Dec 2017 09:18:06 +0000 (09:18 +0000)
Yocto manually installed them,
so let's rely on scons from now on.

Bug: https://jira.iotivity.org/browse/IOT-524
Origin: https://gerrit.iotivity.org/gerrit/#/c/23675
Change-Id: Ic424c6d8258f421aa2cf5c1b7ba118b49b0f4fd9
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
resource/csdk/resource-directory/samples/SConscript
resource/csdk/stack/samples/linux/SimpleClientServer/SConscript

index d11f317..aa172f6 100644 (file)
@@ -67,14 +67,16 @@ if rd_sample_app_env.get('RD_MODE'):
 ######################################################################
 rd_queryClient = rd_sample_app_env.Program('rd_queryClient',
                                            'rd_queryClient.cpp')
-
+examples = []
 if 'SERVER' in rd_sample_app_env.get('RD_MODE'):
     rd_server = rd_sample_app_env.Program('rd_server', 'rd_main.c')
-    Alias("resource_directory", [rd_server, rd_queryClient])
+    examples += [rd_queryClient, rd_server]
 
 if 'CLIENT' in rd_sample_app_env.get('RD_MODE'):
     rd_publishingClient = rd_sample_app_env.Program('rd_publishingClient',
                                                     'rd_publishingClient.cpp')
-    Alias("resource_directory", [rd_publishingClient, rd_queryClient])
+    examples += [rd_queryClient, rd_publishingClient]
 
+Alias("resource_directory", examples)
 env.AppendTarget('resource_directory')
+rd_sample_app_env.UserInstallTargetExtra(examples)
index a7a7027..79702b8 100644 (file)
@@ -112,3 +112,4 @@ list_of_samples += samples_env.ScanJSON('resource/csdk/stack/samples/linux/Simpl
 Alias("samples", list_of_samples)
 
 samples_env.AppendTarget('samples')
+samples_env.UserInstallTargetExtra(list_of_samples)