[ismrmrd] 126/281: added custom command to make jar for java bindings
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Jan 14 20:01:05 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag ismrmrd0.5
in repository ismrmrd.
commit 2ce8aee586e6ed6734900f288c3e8e1378876ed7
Author: Joseph Naegele <joseph.naegele at gmail.com>
Date: Wed Apr 3 13:56:34 2013 -0400
added custom command to make jar for java bindings
---
bindings/java/CMakeLists.txt | 9 +++++++++
bindings/java/make_jar.sh | 2 ++
2 files changed, 11 insertions(+)
diff --git a/bindings/java/CMakeLists.txt b/bindings/java/CMakeLists.txt
index 7a73ddb..77a0bae 100644
--- a/bindings/java/CMakeLists.txt
+++ b/bindings/java/CMakeLists.txt
@@ -11,3 +11,12 @@ set_source_files_properties(ismrmrd_java.i PROPERTIES CPLUSPLUS ON)
SWIG_ADD_MODULE(jismrmrd java ismrmrd_java.i ../../ismrmrd_hdf5.cpp)
SWIG_LINK_LIBRARIES(jismrmrd ${HDF5_LIBRARIES} ${Boost_LIBRARIES} ${JAVA_LIBRARIES})
+
+set_source_files_properties(ismrmrd.jar PROPERTIES GENERATED true)
+add_custom_command(
+ TARGET jismrmrd
+ POST_BUILD
+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/make_jar.sh
+ COMMENT "Generating java class files and ismrmrd.jar" VERBATIM
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+)
diff --git a/bindings/java/make_jar.sh b/bindings/java/make_jar.sh
new file mode 100755
index 0000000..6551470
--- /dev/null
+++ b/bindings/java/make_jar.sh
@@ -0,0 +1,2 @@
+javac *.java
+jar -cvf ismrmrd.jar *.class
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ismrmrd.git
More information about the debian-science-commits
mailing list