summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-02-26 16:08:23 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-02-27 18:19:31 +0200
commit427d785848ba1cbf8df095ebe75c8731f30dfb5e (patch)
tree317eb2ba3ba7078f13f00cd83a0368d76f6b949f /platform/android
parent242b719f0cbb24b485e439edd0da5aedee87f444 (diff)
downloadqtlocation-mapboxgl-427d785848ba1cbf8df095ebe75c8731f30dfb5e.tar.gz
[build] Make csscolorparser and parsedate vendors
They have a different license from the rest of the code and this will make it explicit. Also the script for generating the license will dectect them correctly.
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/android.cmake16
1 files changed, 6 insertions, 10 deletions
diff --git a/platform/android/android.cmake b/platform/android/android.cmake
index fafaefd264..1fbe67836d 100644
--- a/platform/android/android.cmake
+++ b/platform/android/android.cmake
@@ -10,17 +10,13 @@ target_compile_definitions(
include(${PROJECT_SOURCE_DIR}/vendor/icu.cmake)
include(${PROJECT_SOURCE_DIR}/vendor/sqlite.cmake)
+# cmake-format: off
+target_compile_options(mbgl-vendor-csscolorparser PRIVATE $<$<CONFIG:Release>:-Oz> $<$<CONFIG:Release>:-Qunused-arguments> $<$<CONFIG:Release>:-flto>)
target_compile_options(mbgl-vendor-icu PRIVATE $<$<CONFIG:Release>:-Oz> $<$<CONFIG:Release>:-Qunused-arguments> $<$<CONFIG:Release>:-flto>)
-
-target_compile_options(
- mbgl-vendor-sqlite
- PRIVATE $<$<CONFIG:Release>:-Oz> $<$<CONFIG:Release>:-Qunused-arguments> $<$<CONFIG:Release>:-flto>
-)
-
-target_compile_options(
- mbgl-compiler-options
- INTERFACE $<$<CONFIG:Release>:-Oz> $<$<CONFIG:Release>:-Qunused-arguments> $<$<CONFIG:Release>:-flto>
-)
+target_compile_options(mbgl-vendor-parsedate PRIVATE $<$<CONFIG:Release>:-Oz> $<$<CONFIG:Release>:-Qunused-arguments> $<$<CONFIG:Release>:-flto>)
+target_compile_options(mbgl-vendor-sqlite PRIVATE $<$<CONFIG:Release>:-Oz> $<$<CONFIG:Release>:-Qunused-arguments> $<$<CONFIG:Release>:-flto>)
+target_compile_options(mbgl-compiler-options INTERFACE $<$<CONFIG:Release>:-Oz> $<$<CONFIG:Release>:-Qunused-arguments> $<$<CONFIG:Release>:-flto>)
+# cmake-format: on
target_link_libraries(
mbgl-compiler-options