summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-01-25 13:15:56 +0100
committerSven Gothel <[email protected]>2021-01-25 13:15:56 +0100
commit4408859569896d4843a28fd805ca44323d65c243 (patch)
treee475adae83e948c5ebbecfcd3169f23b4722a8ce /src
parentc5de4100951279125fbcd9a1af5781e457307031 (diff)
Use new jaulib/JaulibSetup.cmake (Unified Setup); RELEASE: Strip native libs and drop javac debug info (Current jaulib default)
Diffstat (limited to 'src')
-rw-r--r--src/direct_bt/CMakeLists.txt8
-rw-r--r--src/tinyb/CMakeLists.txt8
2 files changed, 16 insertions, 0 deletions
diff --git a/src/direct_bt/CMakeLists.txt b/src/direct_bt/CMakeLists.txt
index ef627120..0325c058 100644
--- a/src/direct_bt/CMakeLists.txt
+++ b/src/direct_bt/CMakeLists.txt
@@ -46,6 +46,14 @@ target_link_libraries (
${CMAKE_THREAD_LIBS_INIT}
)
+if(USE_STRIP)
+add_custom_command(TARGET direct_bt POST_BUILD
+ COMMAND ${STRIP} ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}direct_bt${CMAKE_SHARED_LIBRARY_SUFFIX}.${direct_bt_VERSION_STRING}
+ COMMENT "stripping direct_bt"
+ VERBATIM
+ )
+endif(USE_STRIP)
+
set_target_properties(
direct_bt
PROPERTIES
diff --git a/src/tinyb/CMakeLists.txt b/src/tinyb/CMakeLists.txt
index 23d76e48..d87a1aab 100644
--- a/src/tinyb/CMakeLists.txt
+++ b/src/tinyb/CMakeLists.txt
@@ -61,6 +61,14 @@ target_link_libraries (
${GIO_LIBRARIES}
)
+if(USE_STRIP)
+add_custom_command(TARGET tinyb POST_BUILD
+ COMMAND ${STRIP} ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}tinyb${CMAKE_SHARED_LIBRARY_SUFFIX}.${tinyb_VERSION_STRING}
+ COMMENT "stripping tinyb"
+ VERBATIM
+ )
+endif(USE_STRIP)
+
set_target_properties(
tinyb
PROPERTIES