From cf160a24d0380e8c8125d79cfb15991c19f50d98 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Mon, 25 Nov 2019 15:50:32 +0200 Subject: [PATCH] [build] Install some of our targets This will make it easier to measure the binary size because we can strip the binaries from symbols in a portable way. --- next/bin/CMakeLists.txt | 2 ++ next/platform/android/android.cmake | 2 ++ next/platform/glfw/CMakeLists.txt | 2 ++ 3 files changed, 6 insertions(+) diff --git a/next/bin/CMakeLists.txt b/next/bin/CMakeLists.txt index e4222774b..b00278377 100644 --- a/next/bin/CMakeLists.txt +++ b/next/bin/CMakeLists.txt @@ -18,6 +18,8 @@ target_link_libraries( PRIVATE Mapbox::Base::Extras::args mbgl-core ) +install(TARGETS mbgl-offline mbgl-render RUNTIME DESTINATION bin) + # FIXME: CI must have a valid token # # add_test(NAME mbgl-offline-tool-test COMMAND mbgl-offline -s mapbox://styles/mapbox/satellite-v9 --maxZoom=0 WORKING_DIRECTORY diff --git a/next/platform/android/android.cmake b/next/platform/android/android.cmake index e086f8b75..b0c9c712d 100644 --- a/next/platform/android/android.cmake +++ b/next/platform/android/android.cmake @@ -393,3 +393,5 @@ target_compile_options(mbgl-core PRIVATE $<$:-Qunused-arguments target_compile_options(mbgl-render-test-runner PRIVATE $<$:-Qunused-arguments -flto>) target_compile_options(mbgl-vendor-icu PRIVATE $<$:-Qunused-arguments -flto>) target_compile_options(mbgl-vendor-sqlite PRIVATE $<$:-Qunused-arguments -flto>) + +install(TARGETS mapbox-gl LIBRARY DESTINATION lib) diff --git a/next/platform/glfw/CMakeLists.txt b/next/platform/glfw/CMakeLists.txt index d4f1b9d54..e4c0920a4 100644 --- a/next/platform/glfw/CMakeLists.txt +++ b/next/platform/glfw/CMakeLists.txt @@ -36,3 +36,5 @@ target_link_libraries( ) set_property(TARGET mbgl-glfw PROPERTY FOLDER Executables) + +install(TARGETS mbgl-glfw RUNTIME DESTINATION bin)