IOT-3266 Demote notification-cpp examples 82/29282/2
authorMats Wichmann <mats@linux.com>
Tue, 19 Feb 2019 22:12:50 +0000 (15:12 -0700)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Tue, 26 Feb 2019 02:02:39 +0000 (02:02 +0000)
Change-Id: I29221ed448cd4da877486bdfd04ddfdbaae4b4d8
Signed-off-by: Mats Wichmann <mats@linux.com>
service/notification/cpp-wrapper/SConscript
service/notification/cpp-wrapper/examples/README.md [new file with mode: 0644]
service/notification/cpp-wrapper/examples/linux/SConscript

index f652792..ac2344f 100644 (file)
@@ -27,10 +27,11 @@ SConscript(dirs=[
     'consumer',  # build producer notification wrapper
 ])
 
-# Go to build sample apps using wrapper
-if target_os == 'linux':
-    SConscript('examples/linux/SConscript')
-
 # Go to build c++ wrapper unittest
 if env.get('WITH_TEST') and target_os in ('linux'):
     SConscript('unittest/SConscript')
+
+# Go to build sample apps using wrapper
+env.AppendTarget("notification-cpp-examples", default=False)
+if target_os == 'linux' and "notification-cpp-examples" in COMMAND_LINE_TARGETS:
+    SConscript('examples/linux/SConscript')
diff --git a/service/notification/cpp-wrapper/examples/README.md b/service/notification/cpp-wrapper/examples/README.md
new file mode 100644 (file)
index 0000000..f35fdda
--- /dev/null
@@ -0,0 +1,8 @@
+The examples in this directory are not officially maintained.
+
+While the code may provide useful insights, they should
+be examined with caution.
+
+To build, run:
+
+scons [options] notification-cpp-examples
index 7c8b5a5..d742b99 100644 (file)
@@ -89,6 +89,7 @@ notificationproviderwrapper = notification_sample_provider_env.Program(
     'notificationproviderwrapper', 'notificationserviceprovider.cpp')
 i_notificationprovider = notification_sample_provider_env.Install(
     env.get('BUILD_DIR'), notificationproviderwrapper)
+Alias("notification-cpp-examples", notificationproviderwrapper)
 
 notification_sample_consumer_env = notification_sample_env.Clone()
 notification_sample_consumer_env.AppendUnique(
@@ -98,3 +99,4 @@ notificationconsumerwrapper = notification_sample_consumer_env.Program(
     'notificationconsumerwrapper', 'notificationserviceconsumer.cpp')
 i_notificationconsumer = notification_sample_consumer_env.Install(
     env.get('BUILD_DIR'), notificationconsumerwrapper)
+Alias("notification-cpp-examples", notificationconsumerwrapper)