fix android Build Scons for Security
authorjihwan.seo <jihwan.seo@samsung.com>
Mon, 29 Aug 2016 09:58:50 +0000 (18:58 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Tue, 30 Aug 2016 11:45:48 +0000 (11:45 +0000)
Change-Id: I30a868beac8e1268ccc73da1f8a1c61a206f819e
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11033
Reviewed-by: Hyuna Jo <hyuna0213.jo@samsung.com>
Reviewed-by: Jaewook Jung <jw0213.jung@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
build_common/android/SConscript

index 2b20c10..20d7c38 100644 (file)
@@ -222,9 +222,9 @@ env.AppendUnique(LIBS = ['log', 'coap'])
 
 if env.get('SECURED') == '1':
        env.AppendUnique(LIBS = ['tinydtls'])
+       if env.get('WITH_TCP'):
+               env.AppendUnique(LIBS = ['mbedtls','mbedx509','mbedcrypto'])
 
-if env.get('WITH_TCP'):
-       env.AppendUnique(LIBS = ['mbedtls','mbedx509','mbedcrypto'])
 # From android-5 (API > 20), all application must be built with flags '-fPIE' '-pie'.
 # Due to the limitation of Scons, it's required to added it into the command line
 # directly (otherwise, it will also be added when build share library)