Skip to content

Commit

Permalink
Force API level on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
bear101 committed Feb 25, 2025
1 parent 0e8a9cc commit 6a3c123
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/TeamTalkLib/build/webrtc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ else()
message(WARNING "Unknown Android architecture")
endif()

set (ANDROID_NDK_HOME $ENV{ANDROID_NDK_HOME})
configure_file(${CMAKE_CURRENT_LIST_DIR}/args.gn_android ${WEBRTC_INSTALL_ROOT}/args.gn @ONLY)

elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
Expand Down Expand Up @@ -221,7 +222,7 @@ else()
)
ExternalProject_Get_Property(depot-tools SOURCE_DIR)
set (DEPOTTOOLS_DIR ${SOURCE_DIR})
set (DEPOTTOOLS_EXPORT export PATH=$ENV{PATH}:${DEPOTTOOLS_DIR})
set (DEPOTTOOLS_EXPORT export PATH=$ENV{PATH}:${DEPOTTOOLS_DIR} DEPOT_TOOLS_UPDATE=0)

if (${CMAKE_SYSTEM_NAME} MATCHES "iOS")
set (WEBRTC_REPO_NAME webrtc_ios)
Expand Down
3 changes: 3 additions & 0 deletions Library/TeamTalkLib/build/webrtc/args.gn_android
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ target_cpu="@WEBRTC_ARCH@"
target_os="android"
treat_warnings_as_errors=false
use_custom_libcxx=false
android_ndk_root="@ANDROID_NDK_HOME@"
android32_ndk_api_level=@ANDROID_PLATFORM_LEVEL@
android64_ndk_api_level=@ANDROID_PLATFORM_LEVEL@

0 comments on commit 6a3c123

Please sign in to comment.