aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2011-10-05 07:53:29 +0000
committerDRC <dcommander@users.sourceforge.net>2011-10-05 07:53:29 +0000
commit11ca3b4c77a4cb2c2bb83427de3aa03bf319001c (patch)
tree807d97c8d078803a76737b78590fe6491288c465 /java
parent5397062d379bae8e842546c2389e624798704a39 (diff)
downloadtigervnc-11ca3b4c77a4cb2c2bb83427de3aa03bf319001c.tar.gz
tigervnc-11ca3b4c77a4cb2c2bb83427de3aa03bf319001c.zip
Sign the JAR file so clipboard transfer will work
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4699 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java')
-rw-r--r--java/src/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/java/src/CMakeLists.txt b/java/src/CMakeLists.txt
index f5d18227..7ab9fc67 100644
--- a/java/src/CMakeLists.txt
+++ b/java/src/CMakeLists.txt
@@ -92,6 +92,13 @@ add_custom_command(OUTPUT VncViewer.jar
add_custom_target(java ALL DEPENDS VncViewer.jar)
+string(REGEX REPLACE "jar" "" Java_PATH ${Java_JAR_EXECUTABLE})
+
+add_custom_command(TARGET java POST_BUILD COMMAND
+ ${CMAKE_COMMAND} -DJava_PATH=${Java_PATH}
+ -DJAR_FILE=${CMAKE_CURRENT_BINARY_DIR}/VncViewer.jar
+ -P ${CMAKE_SOURCE_DIR}/cmake/SignJar.cmake)
+
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/VncViewer.jar
${JAVA_SRCDIR}/README