summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-11-17 15:39:40 +0100
committerKonstantin Käfer <mail@kkaefer.com>2016-11-22 15:55:37 +0100
commit66e6946b8c22fca826fde9f08c89cff056a1d6f4 (patch)
tree0ea14d4dd8d55a8c0d195033421ae1d1d80d8b62
parentbf7ab7ba2b1ca952a62cef12d578795a332a12cd (diff)
downloadqtlocation-mapboxgl-66e6946b8c22fca826fde9f08c89cff056a1d6f4.tar.gz
[build] Use thin archives for Android
-rw-r--r--platform/android/config.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/android/config.cmake b/platform/android/config.cmake
index beae982f18..1af81d6841 100644
--- a/platform/android/config.cmake
+++ b/platform/android/config.cmake
@@ -3,6 +3,12 @@ add_definitions(-DMBGL_USE_GLES2=1)
#Include to use build specific variables
include(${CMAKE_CURRENT_BINARY_DIR}/toolchain.cmake)
+# Build thin archives.
+set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> cruT <TARGET> <LINK_FLAGS> <OBJECTS>")
+set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> cruT <TARGET> <LINK_FLAGS> <OBJECTS>")
+set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> ruT <TARGET> <LINK_FLAGS> <OBJECTS>")
+set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> ruT <TARGET> <LINK_FLAGS> <OBJECTS>")
+
mason_use(jni.hpp VERSION 2.0.0 HEADER_ONLY)
mason_use(libjpeg-turbo VERSION 1.5.0)
mason_use(libpng VERSION 1.6.25)