diff --git a/.gitmodules b/.gitmodules index 53d5b7712..d5deb56bd 100644 --- a/.gitmodules +++ b/.gitmodules @@ -91,3 +91,9 @@ [submodule "submodules/mscodec2"] path = submodules/mscodec2 url = git://git.linphone.org/mscodec2.git +[submodule "submodules/bctoolbox"] + path = submodules/bctoolbox + url = git://git.linphone.org/bctoolbox.git +[submodule "submodules/externals/mbedtls"] + path = submodules/externals/mbedtls + url = https://github.com/ARMmbed/mbedtls.git diff --git a/Makefile b/Makefile index 142822082..06d8e9084 100644 --- a/Makefile +++ b/Makefile @@ -61,6 +61,7 @@ BUILD_RTP_MAP=0 BUILD_DONT_CHECK_HEADERS_IN_MESSAGE=0 BUILD_ILBC=1 BUILD_CODEC2=0 +BUILD_BCTOOLBOX_MBEDTLS=0 LIBLINPHONE_EXTENDED_SRC_FILES= LIBLINPHONE_EXTENDED_C_INCLUDES= LIBLINPHONE_EXTENDED_CFLAGS= diff --git a/jni/Android.mk b/jni/Android.mk index 30cf57f03..2fb28ef27 100755 --- a/jni/Android.mk +++ b/jni/Android.mk @@ -57,7 +57,14 @@ ifeq ($(BUILD_MATROSKA), 1) include $(linphone-root-dir)/submodules/externals/build/libmatroska-c/Android.mk endif +ifeq ($(BUILD_BCTOOLBOX_MBEDTLS),1) +include $(linphone-root-dir)/submodules/externals/build/mbedtls/Android.mk +include $(linphone-root-dir)/submodules/bctoolbox/build/android/Android-mbedtls.mk +else include $(linphone-root-dir)/submodules/externals/build/polarssl/Android.mk +include $(linphone-root-dir)/submodules/bctoolbox/build/android/Android-polarssl.mk +endif + ifeq ($(BUILD_MEDIASTREAMER2_SDK), 0) include $(linphone-root-dir)/submodules/externals/build/antlr3/Android.mk include $(linphone-root-dir)/submodules/belle-sip/build/android/Android.mk diff --git a/jni/Application.mk b/jni/Application.mk index ab32cd6d1..ff8d1493e 100644 --- a/jni/Application.mk +++ b/jni/Application.mk @@ -55,10 +55,15 @@ ifeq ($(BUILD_UPNP),1) APP_MODULES += libupnp endif +APP_MODULES +=bctoolbox ifeq ($(BUILD_TLS),1) +ifeq ($(BUILD_BCTOOLBOX_MBEDTLS),1) +APP_MODULES +=mbedtls +else APP_MODULES +=polarssl endif endif +endif ifeq ($(BUILD_VIDEO),1) APP_MODULES += libffmpeg-linphone diff --git a/submodules/bctoolbox b/submodules/bctoolbox new file mode 160000 index 000000000..f0080ffcb --- /dev/null +++ b/submodules/bctoolbox @@ -0,0 +1 @@ +Subproject commit f0080ffcb26883b664bc785abff15a6698dee0c3 diff --git a/submodules/belle-sip b/submodules/belle-sip index 77d350a94..43b9e1814 160000 --- a/submodules/belle-sip +++ b/submodules/belle-sip @@ -1 +1 @@ -Subproject commit 77d350a949ad073de0718ab60b86c74930517f1b +Subproject commit 43b9e1814e91b0c298ebe6590d37fc2ba81acd91 diff --git a/submodules/externals/mbedtls b/submodules/externals/mbedtls new file mode 160000 index 000000000..bfafadb45 --- /dev/null +++ b/submodules/externals/mbedtls @@ -0,0 +1 @@ +Subproject commit bfafadb45daf8d2114e3109e2f9021fc72ee36bb