Skip to content

Commit

Permalink
perf: more generic build of java jar
Browse files Browse the repository at this point in the history
Signed-off-by: msclock <msclock@qq.com>
  • Loading branch information
msclock committed Oct 28, 2023
1 parent 7f3efd9 commit 282004e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/jni/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ add_custom_command(
${CMAKE_CURRENT_BINARY_DIR}/class .
DEPENDS ${java_files}
VERBATIM)
add_jar(test_jar SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/java/MyTest.java
add_jar(test_jar SOURCE ${java_files}
INCLUDE_JARS ${CMAKE_CURRENT_BINARY_DIR}/build.jar)
add_custom_command(
TARGET test_jar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ add_custom_command(
${CMAKE_CURRENT_BINARY_DIR}/class .
DEPENDS ${java_files}
VERBATIM)
add_jar(test_jar SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/java/MyTest.java
add_jar(test_jar SOURCE ${java_files}
INCLUDE_JARS ${CMAKE_CURRENT_BINARY_DIR}/build.jar)
add_custom_command(
TARGET test_jar
Expand Down

0 comments on commit 282004e

Please sign in to comment.