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', 'ios', 'linux']:
+ SConscript('mediator/SConscript')
-if es_target in ['android','ios']:
- 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', 'ios', 'linux', 'tizen']:
+ service_easy_setup_env.UserInstallTargetHeader('inc/escommon.h', 'service/easy-setup', 'escommon.h')
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']
easy_setup_env.InstallTarget(es_sdk_shared, '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')
######################################################################