aboutsummaryrefslogtreecommitdiffstats
path: root/java/jni
diff options
context:
space:
mode:
Diffstat (limited to 'java/jni')
-rw-r--r--java/jni/direct_bt/CMakeLists.txt8
-rw-r--r--java/jni/tinyb/CMakeLists.txt8
2 files changed, 16 insertions, 0 deletions
diff --git a/java/jni/direct_bt/CMakeLists.txt b/java/jni/direct_bt/CMakeLists.txt
index ec5bddfc..92f83970 100644
--- a/java/jni/direct_bt/CMakeLists.txt
+++ b/java/jni/direct_bt/CMakeLists.txt
@@ -42,6 +42,14 @@ set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed")
add_library (javadirect_bt SHARED ${direct_bt_JNI_SRCS})
target_link_libraries(javadirect_bt ${JNI_LIBRARIES} direct_bt)
+if(USE_STRIP)
+add_custom_command(TARGET javadirect_bt POST_BUILD
+ COMMAND ${STRIP} ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}javadirect_bt${CMAKE_SHARED_LIBRARY_SUFFIX}.${direct_bt_VERSION_STRING}
+ COMMENT "stripping javadirect_bt"
+ VERBATIM
+ )
+endif(USE_STRIP)
+
set_target_properties(
javadirect_bt
PROPERTIES
diff --git a/java/jni/tinyb/CMakeLists.txt b/java/jni/tinyb/CMakeLists.txt
index 6ae9b25c..0e98beb3 100644
--- a/java/jni/tinyb/CMakeLists.txt
+++ b/java/jni/tinyb/CMakeLists.txt
@@ -43,6 +43,14 @@ set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed")
add_library (javatinyb SHARED ${tinyb_JNI_SRCS})
target_link_libraries(javatinyb ${JNI_LIBRARIES} tinyb)
+if(USE_STRIP)
+add_custom_command(TARGET javatinyb POST_BUILD
+ COMMAND ${STRIP} ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}javatinyb${CMAKE_SHARED_LIBRARY_SUFFIX}.${tinyb_VERSION_STRING}
+ COMMENT "stripping javatinyb"
+ VERBATIM
+ )
+endif(USE_STRIP)
+
set_target_properties(
javatinyb
PROPERTIES