mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-30 20:16:45 +08:00
[android]: use static library in android rather than share library
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@898 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
@@ -1301,10 +1301,10 @@ endif()
|
||||
|
||||
# add crt object to executable link list for Android SDK build
|
||||
# ----------------------------------------------------------------------------
|
||||
set( ANDROID_CRT_BEGIN "${ANDROID_SYSROOT}/usr/lib/crtbegin_dynamic.o")
|
||||
set( ANDROID_CRT_END "${ANDROID_SYSROOT}/usr/lib/crtend_android.o")
|
||||
set( CMAKE_C_LINK_EXECUTABLE "${CMAKE_C_LINK_EXECUTABLE} ${ANDROID_CRT_BEGIN} ${ANDROID_CRT_END}" )
|
||||
set( CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} ${ANDROID_CRT_BEGIN} ${ANDROID_CRT_END}" )
|
||||
#set( ANDROID_CRT_BEGIN "${ANDROID_SYSROOT}/usr/lib/crtbegin_dynamic.o")
|
||||
#set( ANDROID_CRT_END "${ANDROID_SYSROOT}/usr/lib/crtend_android.o")
|
||||
#set( CMAKE_C_LINK_EXECUTABLE "${CMAKE_C_LINK_EXECUTABLE} ${ANDROID_CRT_BEGIN} ${ANDROID_CRT_END}" )
|
||||
#set( CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} ${ANDROID_CRT_BEGIN} ${ANDROID_CRT_END}" )
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
@@ -32,6 +32,7 @@ add_library(osal STATIC
|
||||
)
|
||||
|
||||
if(ANDROID)
|
||||
add_definitions(-static)
|
||||
# in Android pthread is in libc, also need liblog
|
||||
target_link_libraries(osal log stdc++ m c )
|
||||
else()
|
||||
|
||||
Reference in New Issue
Block a user