Commit b50b4267 authored by Philippe Coval's avatar Philippe Coval Committed by Uze Choi

build: Install easy-setup headers

It look like project public headers
 are installed to 2 level depth
 subdirectories (service/$domain/*.h*)

Change-Id: Ia7a66caf5381d24b56f0c5ac1a91929eff9ba7d7
Signed-off-by: default avatarPhilippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16453Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
Tested-by: default avatarUze Choi <uzchoi@samsung.com>
parent e8b3dca9
......@@ -24,13 +24,13 @@
Import('env')
es_target = env.get ('TARGET_OS')
service_easy_setup_env = env.Clone()
if es_target in ['linux']:
SConscript('mediator/SConscript')
SConscript('enrollee/SConscript')
if es_target in ['android', 'linux']:
SConscript('mediator/SConscript')
if es_target in ['android']:
SConscript('mediator/SConscript')
if es_target in ['linux', 'tizen']:
SConscript('enrollee/SConscript')
if es_target in ['tizen']:
SConscript('enrollee/SConscript')
if es_target in ['android', 'linux', 'tizen']:
service_easy_setup_env.UserInstallTargetHeader('inc/escommon.h', 'service/easy-setup', 'escommon.h')
......@@ -111,6 +111,8 @@ if target_os in ['linux', 'tizen']:
enrollee_sdk_static = enrollee_env.StaticLibrary('ESEnrolleeSDK', es_enrollee_common_src)
enrollee_env.InstallTarget([enrollee_sdk_shared, enrollee_sdk_static], 'libESEnrollee')
enrollee_env.UserInstallTargetLib([enrollee_sdk_shared, enrollee_sdk_static], 'libESEnrollee')
enrollee_env.UserInstallTargetHeader('inc/ESEnrolleeCommon.h', 'service/easy-setup', 'ESEnrolleeCommon.h')
enrollee_env.UserInstallTargetHeader('inc/easysetup.h', 'service/easy-setup', 'easysetup.h')
if target_os == 'arduino':
es_enrollee_common_src = ['./src/easysetup.c','./src/resourcehandler.c']
......
......@@ -145,6 +145,10 @@ if target_os in ['android','linux']:
easy_setup_env.InstallTarget([es_sdk_shared, es_sdk_static], 'libESMediatorRich')
easy_setup_env.AppendUnique(LINKFLAGS = ['-Wl,-soname,libESMediatorRich.so'])
filenames = [ 'ESRichCommon.h', 'EasySetup.h', 'RemoteEnrollee.h' ]
for filename in filenames:
easy_setup_env.UserInstallTargetHeader('inc/' + filename, "service/easy-setup", filename)
print "Files path is %s" % env.get('es_src')
######################################################################
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment