Skip to content

Commit

Permalink
feat(core): upgrade to ndk 26
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Jul 9, 2024
1 parent 47a0366 commit 73b93e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion srtdroid-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ configurePublication()
android {
namespace = "io.github.thibaultbee.srtdroid.core"
compileSdk = AndroidVersions.COMPILE_SDK
ndkVersion = "21.4.7075529"
ndkVersion = "26.1.10909125"

defaultConfig {
minSdk = AndroidVersions.MIN_SDK
Expand Down
6 changes: 3 additions & 3 deletions srtdroid-core/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ set(SRT_VERSION "1.5.3")
ExternalProject_Add(openssl_project
GIT_REPOSITORY https://github.com/openssl/openssl.git
GIT_TAG ${OPENSSL_VERSION}
CONFIGURE_COMMAND ${CMAKE_COMMAND} -E env PATH=${CMAKE_C_COMPILER_EXTERNAL_TOOLCHAIN}/bin:$ENV{PATH} CC=${CMAKE_C_COMPILER} ANDROID_NDK_ROOT=${ANDROID_NDK} perl <SOURCE_DIR>/Configure android-${ANDROID_ARCH_NAME} -D__ANDROID_API__=${ANDROID_NATIVE_API_LEVEL} --openssldir=${CMAKE_LIBRARY_OUTPUT_DIRECTORY} --libdir="" --prefix=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
BUILD_COMMAND ${CMAKE_COMMAND} -E env PATH=${CMAKE_C_COMPILER_EXTERNAL_TOOLCHAIN}/bin:$ENV{PATH} ANDROID_NDK_ROOT=${ANDROID_NDK} make
CONFIGURE_COMMAND ${CMAKE_COMMAND} -E env PATH=${ANDROID_TOOLCHAIN_ROOT}/bin:$ENV{PATH} CC=${CMAKE_C_COMPILER} ANDROID_NDK_ROOT=${ANDROID_NDK} perl <SOURCE_DIR>/Configure android-${ANDROID_ARCH_NAME} --openssldir=${CMAKE_LIBRARY_OUTPUT_DIRECTORY} --libdir="" --prefix=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
BUILD_COMMAND ${CMAKE_COMMAND} -E env PATH=${ANDROID_TOOLCHAIN_ROOT}/bin:$ENV{PATH} ANDROID_NDK_ROOT=${ANDROID_NDK} make
BUILD_BYPRODUCTS ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libssl.so ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libcrypto.so
BUILD_IN_SOURCE 1
)
Expand Down Expand Up @@ -54,9 +54,9 @@ ExternalProject_Add(srt_project
-DANDROID_CPP_FEATURES=${ANDROID_CPP_FEATURES}
-DANDROID_ALLOW_UNDEFINED_SYMBOLS=${ANDROID_ALLOW_UNDEFINED_SYMBOLS}
-DANDROID_ARM_MODE=${ANDROID_ARM_MODE}
-DANDROID_ARM_NEON=${ANDROID_ARM_NEON}
-DANDROID_DISABLE_FORMAT_STRING_CHECKS=${ANDROID_DISABLE_FORMAT_STRING_CHECKS}
-DANDROID_CCACHE=${ANDROID_CCACHE}
-DANDROID_SANITIZE=${ANDROID_SANITIZE}
BUILD_BYPRODUCTS ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libsrt.so
DEPENDS crypto ssl
BUILD_IN_SOURCE 1
Expand Down

0 comments on commit 73b93e0

Please sign in to comment.