diff options
author | Sven Gothel <[email protected]> | 2021-01-25 23:56:30 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-01-25 23:56:30 +0100 |
commit | 959c604af7c100d7d06b51d92d16aed64fac286f (patch) | |
tree | 014cebb20f5aa73d6ee67d93aaa55e618c48a3c9 /java/jni | |
parent | 7054cd13119c6dc5e113dc5436e226ad70b380fc (diff) |
Complete build change: Using jaulib[_fat] if available (for Java) incl. native lib loading. Added junit test facility (Java).
Diffstat (limited to 'java/jni')
-rw-r--r-- | java/jni/direct_bt/CMakeLists.txt | 8 | ||||
-rw-r--r-- | java/jni/tinyb/CMakeLists.txt | 8 |
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 |