Commit cbf3897d authored by Ghislain MARY's avatar Ghislain MARY

Generate scripts to strip the libraries on Android.

parent a7de34e0
#!/bin/sh
@ANDROID_TOOLCHAIN_STRIP@ $*
\ No newline at end of file
......@@ -56,6 +56,7 @@ if(CMAKE_SYSTEM_PROCESSOR STREQUAL "armeabi" AND ENABLE_VIDEO)
set(ENABLE_X264 NO CACHE BOOL "" FORCE)
endif()
# Include builders
include(builders/CMakeLists.txt)
......@@ -147,4 +148,10 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
CMAKE_GENERATOR ${CMAKE_GENERATOR}
CMAKE_ARGS ${LINPHONE_BUILDER_EP_ARGS} -DANDROID_NDK_PATH=${ANDROID_NDK_PATH} -DARCHITECTURE=${ARCHITECTURE}
)
# Dummy stript to not strip compiled libs from the general Makefile
file(WRITE "${LINPHONE_BUILDER_WORK_DIR}/strip.sh" "")
else()
# Script to be able to strip compiled libs from the general Makefile
configure_file("${CMAKE_CURRENT_LIST_DIR}/android/strip.sh.cmake" "${LINPHONE_BUILDER_WORK_DIR}/strip.sh" @ONLY)
endif()
......@@ -102,6 +102,7 @@ if(CLANG_EXECUTABLE)
set(CMAKE_CXX_COMPILER_EXTERNAL_TOOLCHAIN "${EXTERNAL_TOOLCHAIN_PATH}/..")
set(ANDROID_TOOLCHAIN_PREFIX "${EXTERNAL_TOOLCHAIN_PATH}/${COMPILER_PREFIX}-")
set(ANDROID_TOOLCHAIN_STRIP "${ANDROID_TOOLCHAIN_PREFIX}strip")
else()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment