diff --git a/.gitmodules b/.gitmodules index ed9cb07c..ff74e77f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,3 +13,6 @@ [submodule "www/webassist"] path = www/webassist url = https://gitee.com/victor1002/zlm_webassist +[submodule "3rdpart/libsrtp"] + path = 3rdpart/libsrtp + url = https://github.com/cisco/libsrtp.git diff --git a/3rdpart/libsrtp b/3rdpart/libsrtp new file mode 160000 index 00000000..9a139f5c --- /dev/null +++ b/3rdpart/libsrtp @@ -0,0 +1 @@ +Subproject commit 9a139f5c8ba7629b3c0ac9cc7bbf74e4bf10313a diff --git a/Android/app/libs/arm64-v8a/libsrtp2.a b/Android/app/libs/arm64-v8a/libsrtp2.a new file mode 100644 index 00000000..15e8e839 Binary files /dev/null and b/Android/app/libs/arm64-v8a/libsrtp2.a differ diff --git a/Android/app/src/main/cpp/CMakeLists.txt b/Android/app/src/main/cpp/CMakeLists.txt index 64585f55..b2bbdae6 100644 --- a/Android/app/src/main/cpp/CMakeLists.txt +++ b/Android/app/src/main/cpp/CMakeLists.txt @@ -14,6 +14,14 @@ set(OPENSSL_INCLUDE_DIR "3rdpart/openssl/include") set(OPENSSL_CRYPTO_LIBRARY "Android/app/libs/arm64-v8a/libcrypto.a") set(OPENSSL_SSL_LIBRARY "Android/app/libs/arm64-v8a/libssl.a") + + +set(SRTP_INCLUDE_DIRS "3rdpart/libsrtp/include") +set(SRTP_LIBRARIES "Android/app/libs/arm64-v8a/libsrtp2.a") + +include_directories(${OPENSSL_INCLUDE_DIR}) +include_directories(${SRTP_INCLUDE_DIRS}) + ################################################################### # 编译openssl 1.1.1k