tizen: Use mediator richsdk lib 83/112583/6
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Wed, 1 Feb 2017 14:15:31 +0000 (15:15 +0100)
committerPhilippe Coval <philippe.coval@osg.samsung.com>
Thu, 2 Feb 2017 10:21:43 +0000 (11:21 +0100)
Change-Id: Ib63db28697925b02349da82c5feabc1334a39ba2
Forwarded: https://gerrit.iotivity.org/gerrit/#/q/Ib63db28697925b02349da82c5feabc1334a39ba2
Origin: https://review.tizen.org/gerrit/112583
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16963
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
service/easy-setup/mediator/richsdk/SConscript

index 0c706bd..87ed3a4 100755 (executable)
@@ -77,7 +77,7 @@ if target_os in ['android']:
        if not env.get('RELEASE'):
                easy_setup_env.AppendUnique(LIBS = ['log'])
 
-if target_os in ['linux']:
+if target_os in ['linux', 'tizen']:
        easy_setup_env.AppendUnique(LIBPATH = [env.get('BUILD_DIR')])
        easy_setup_env.AppendUnique(RPATH = [env.get('BUILD_DIR')])
        easy_setup_env.AppendUnique(CXXFLAGS = ['-pthread'])
@@ -127,7 +127,7 @@ print"easysetup_path %s" % easysetup_path
 
 es_src = None
 
-if target_os in ['android','linux','ios']:
+if target_os in ['android','linux','ios','tizen']:
        if env.get('SECURED') == '1':
                env.AppendUnique(es_src = [os.path.join(easysetup_path, 'src/EnrolleeSecurity.cpp')])
 
@@ -143,7 +143,7 @@ if target_os in ['android','linux','ios']:
        easy_setup_env.InstallTarget(es_sdk_static, 'libESMediatorRich')
        if target_os not in ['ios']:
                es_sdk_shared = easy_setup_env.SharedLibrary('ESMediatorRich', env.get('es_src'))
-               easy_setup_env.InstallTarget(es_sdk_shared, 'libESMediatorRich')
+               easy_setup_env.UserInstallTargetLib(es_sdk_shared, 'libESMediatorRich')
                easy_setup_env.AppendUnique(LINKFLAGS = ['-Wl,-soname,libESMediatorRich.so'])
 
 filenames = [ 'ESException.h', 'ESRichCommon.h', 'EasySetup.hpp', 'RemoteEnrollee.h' ]