build: Install notification headers 93/110493/2
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Mon, 16 Jan 2017 20:01:49 +0000 (21:01 +0100)
committerJooseok Park <jooseok.park@samsung.com>
Tue, 17 Jan 2017 03:44:30 +0000 (12:44 +0900)
It look like project public headers
 are installed to 2 level depth
 subdirectories (service/$domain/*.h*)

Change-Id: I36ab613ff6aaf7d960e6ba1e94263f8cfdf7c559
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16443
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/notification/cpp-wrapper/SConscript
service/notification/cpp-wrapper/common/SConscript [new file with mode: 0644]
service/notification/cpp-wrapper/consumer/SConscript
service/notification/cpp-wrapper/provider/SConscript

index 7dc5d414118da4a3114fd55fffbea7b57bcd66b0..e6455dad93a780d24991c7b28ed62d492ab460c4 100755 (executable)
@@ -21,6 +21,8 @@
 Import('env')
 target_os = env.get('TARGET_OS')
 
+SConscript('common/SConscript')
+
 # build producer notification wrapper
 SConscript('provider/SConscript')
 
diff --git a/service/notification/cpp-wrapper/common/SConscript b/service/notification/cpp-wrapper/common/SConscript
new file mode 100644 (file)
index 0000000..914f2cb
--- /dev/null
@@ -0,0 +1,35 @@
+#******************************************************************
+#
+# Copyright 2017 Samsung Electronics All Rights Reserved.
+#
+#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+
+##
+# Notification Service c++ wrapper build script
+##
+
+import platform
+Import('env')
+
+lib_env = env.Clone()
+SConscript('#service/third_party_libs.scons', 'lib_env')
+notification_env = lib_env.Clone()
+
+list = [ "NSMessage.h", "NSSyncInfo.h", "NSTopicsList.h", "NSUtils.h"]
+
+for filename in list:
+    notification_env.UserInstallTargetHeader(filename , 'service/notification', filename)
index a131fc63cbef0022bb617fcbd2b60b5f1b421469..115ae46030541a9bacc2e9ae7c5f4862ff73dae7 100755 (executable)
@@ -100,6 +100,9 @@ consumersdk = notification_env.StaticLibrary('notification_consumer_wrapper', no
 notification_env.InstallTarget(consumersdk, 'libnotification_consumer_wrapper')
 notification_env.UserInstallTargetLib(consumersdk, 'libnotification_consumer_wrapper')
 
+notification_env.UserInstallTargetHeader("inc/NSProvider.h", 'service/notification', 'NSProvider.h')
+notification_env.UserInstallTargetHeader("inc/NSConsumerService.h", 'service/notification', 'NSConsumerService.h')
+
 ######################################################################
 # Source files and Targets for Consumer Jni
 ######################################################################
index cc419abd8e037face36b0a89b6aa5fde38ec891a..2be55f14c6c3bc25eb899e489e302b07d64a8216 100755 (executable)
@@ -110,6 +110,8 @@ notification_provider_src = [
 providersdk = notification_env.StaticLibrary('notification_provider_wrapper', notification_provider_src)
 notification_env.InstallTarget(providersdk, 'libnotification_provider_wrapper')
 notification_env.UserInstallTargetLib(providersdk, 'libnotification_provider_wrapper')
+notification_env.UserInstallTargetHeader('inc/NSConsumer.h', 'service/notification', 'NSConsumer.h')
+notification_env.UserInstallTargetHeader('inc/NSProviderService.h', 'service/notification', 'NSProviderService.h')
 
 Export('notificationCommonStaticObjs')
 Export('notificationCommonSharedObjs')