diff options
author | Sven Gothel <[email protected]> | 2021-01-25 09:50:27 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-01-25 09:50:27 +0100 |
commit | 0d276fd2a834206990cd81d36388015f21b4eee3 (patch) | |
tree | cdfee61aeecd78cfde0d06a8f761dc305c1dbde0 /java_jni | |
parent | c705b5bbc5ee842fb58089b7931be78dad726fad (diff) |
java: install single jaulib_jar (next to jaulib_fat_jar) & java-source-zip; RELEASE: strip native libs, no java debug symbols.
Do not install java sub-modules jaulib_base, jaulib_jni, jaulib_net nor jaulib_pkg.
Diffstat (limited to 'java_jni')
-rw-r--r-- | java_jni/CMakeLists.txt | 2 | ||||
-rw-r--r-- | java_jni/jni/CMakeLists.txt | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/java_jni/CMakeLists.txt b/java_jni/CMakeLists.txt index e758520..106eb4d 100644 --- a/java_jni/CMakeLists.txt +++ b/java_jni/CMakeLists.txt @@ -15,7 +15,7 @@ add_dependencies(jaulib_jni_jar jaulib_base_jar) #add_dependencies(jaulib_pkg_jar jaulib_base_jar jaulib_jni_jar jaulib_net_jar) set(JNI_HEADER_PATH "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_FILES_DIRECTORY}/jaulib_jni_jar.dir/jni") -install (FILES ${CMAKE_CURRENT_BINARY_DIR}/jaulib_jni.jar DESTINATION ${CMAKE_INSTALL_LIBDIR}/../lib/java) +# install (FILES ${CMAKE_CURRENT_BINARY_DIR}/jaulib_jni.jar DESTINATION ${CMAKE_INSTALL_LIBDIR}/../lib/java) add_subdirectory (jni) diff --git a/java_jni/jni/CMakeLists.txt b/java_jni/jni/CMakeLists.txt index 5a0065c..800eaef 100644 --- a/java_jni/jni/CMakeLists.txt +++ b/java_jni/jni/CMakeLists.txt @@ -29,6 +29,14 @@ set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed") add_library (jaulib_jni_jni SHARED ${jaulib_jni_JNI_SRCS}) target_link_libraries(jaulib_jni_jni ${JNI_LIBRARIES} jaulib) +if(USE_STRIP) +add_custom_command(TARGET jaulib_jni_jni POST_BUILD + COMMAND ${STRIP} ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}jaulib_jni_jni${CMAKE_SHARED_LIBRARY_SUFFIX}.${jaulib_VERSION_STRING} + COMMENT "stripping jaulib_jni_jni" + VERBATIM + ) +endif(USE_STRIP) + set_target_properties( jaulib_jni_jni PROPERTIES |