mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 04:58:14 +00:00
Use NDK_ARCHITECTURE instead of CMAKE_SYSTEM_PROCESSOR as library name suffix when building for Android.
This commit is contained in:
parent
eeebd4aa4f
commit
415c6a4eec
2 changed files with 2 additions and 2 deletions
|
|
@ -224,7 +224,7 @@ if(ENABLE_SHARED)
|
|||
if(WIN32 AND CMAKE_SYSTEM_NAME STREQUAL "WindowsPhone" AND NOT CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||
set_target_properties(linphone PROPERTIES PREFIX "lib")
|
||||
elseif(ANDROID)
|
||||
set_target_properties(linphone PROPERTIES OUTPUT_NAME "linphone-${CMAKE_SYSTEM_PROCESSOR}")
|
||||
set_target_properties(linphone PROPERTIES OUTPUT_NAME "linphone-${NDK_ARCHITECTURE}")
|
||||
add_dependencies(linphone linphonecore-jni-header)
|
||||
endif()
|
||||
if(MSVC)
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@ endif()
|
|||
if(ANDROID OR IOS)
|
||||
if(ANDROID)
|
||||
add_library(linphonetester SHARED ${SOURCE_FILES_C})
|
||||
set_target_properties(linphonetester PROPERTIES OUTPUT_NAME "linphonetester-${CMAKE_SYSTEM_PROCESSOR}")
|
||||
set_target_properties(linphonetester PROPERTIES OUTPUT_NAME "linphonetester-${NDK_ARCHITECTURE}")
|
||||
endif()
|
||||
if(IOS)
|
||||
add_library(linphonetester STATIC ${SOURCE_FILES_C})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue