Build scripts updated for android build issue for connectivity layer
authorsaurabh.s9 <saurabh.s9@samsung.com>
Mon, 5 Sep 2016 06:52:44 +0000 (12:22 +0530)
committerRandeep Singh <randeep.s@samsung.com>
Tue, 6 Sep 2016 14:08:00 +0000 (14:08 +0000)
Change-Id: Ia8781f4adbf39529c763521bc6dcfb5c5b4a78c1
Signed-off-by: saurabh.s9 <saurabh.s9@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11399
Reviewed-by: Ashwini Kumar <k.ashwini@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
build_common/android/SConscript
resource/csdk/connectivity/src/SConscript

index 20d7c38..fa45866 100644 (file)
@@ -221,8 +221,10 @@ env.AppendUnique(LIBPATH = [src_dir + '/resource/csdk/connectivity/lib/android']
 env.AppendUnique(LIBS = ['log', 'coap'])
 
 if env.get('SECURED') == '1':
+       env.SConscript('#extlibs/tinydtls/SConscript')
        env.AppendUnique(LIBS = ['tinydtls'])
        if env.get('WITH_TCP'):
+               env.SConscript('#extlibs/mbedtls/SConscript')
                env.AppendUnique(LIBS = ['mbedtls','mbedx509','mbedcrypto'])
 
 # From android-5 (API > 20), all application must be built with flags '-fPIE' '-pie'.
index 6063875..16d654c 100644 (file)
@@ -81,7 +81,8 @@ if ((secured == '1') and (with_tcp == True)):
                env.SConscript(os.path.join(root_dir, tls_path + '/SConscript'))
                env.AppendUnique(CPPPATH = [os.path.join(root_dir, tls_path + '/' + tls_headers_path)])
        else:
-               env.SConscript('#' + tls_path + '/SConscript')
+               if ca_os != 'android':
+                       env.SConscript('#' + tls_path + '/SConscript')
                env.AppendUnique(CPPPATH = ['#' + tls_path + '/' + tls_headers_path])
                env.AppendUnique(CA_SRC = [os.path.join(ca_path, 'adapter_util/ca_adapter_net_tls.c')])