diff options
author | asn <asn@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2010-10-19 17:44:10 +0000 |
---|---|---|
committer | asn <asn@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2010-10-19 17:44:10 +0000 |
commit | c11ecd68c684f1d7c8d0033489d975fb2db551b3 (patch) | |
tree | 4235911b4552f0a8f63fd1cd43a35233469b985d /pki | |
parent | 06044d2b83b29baafc6f9d4f6d3fb4d6e4042667 (diff) | |
download | pki-c11ecd68c684f1d7c8d0033489d975fb2db551b3.tar.gz pki-c11ecd68c684f1d7c8d0033489d975fb2db551b3.tar.xz pki-c11ecd68c684f1d7c8d0033489d975fb2db551b3.zip |
cmake: Added java-tools java build.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1379 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki')
-rw-r--r-- | pki/base/CMakeLists.txt | 1 | ||||
-rw-r--r-- | pki/base/java-tools/CMakeLists.txt | 3 | ||||
-rw-r--r-- | pki/base/java-tools/src/CMakeLists.txt | 48 |
3 files changed, 52 insertions, 0 deletions
diff --git a/pki/base/CMakeLists.txt b/pki/base/CMakeLists.txt index c6dce8a84..1b295a4c0 100644 --- a/pki/base/CMakeLists.txt +++ b/pki/base/CMakeLists.txt @@ -6,3 +6,4 @@ add_subdirectory(native-tools) add_subdirectory(util) add_subdirectory(setup) add_subdirectory(common) +add_subdirectory(java-tools) diff --git a/pki/base/java-tools/CMakeLists.txt b/pki/base/java-tools/CMakeLists.txt new file mode 100644 index 000000000..dfe76f0c5 --- /dev/null +++ b/pki/base/java-tools/CMakeLists.txt @@ -0,0 +1,3 @@ +project(java-tools Java) + +add_subdirectory(src) diff --git a/pki/base/java-tools/src/CMakeLists.txt b/pki/base/java-tools/src/CMakeLists.txt new file mode 100644 index 000000000..68da22f6c --- /dev/null +++ b/pki/base/java-tools/src/CMakeLists.txt @@ -0,0 +1,48 @@ +project(cmstools_java Java) + +set(CMSTOOLS_JAVA_OBJECT_DIR "${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/cmstool.dir/" PARENT_SCOPE) +set(CMSTOOLS_JAR "${CMAKE_CURRENT_BINARY_DIR}/cmstools.jar" CACHE INTERNAL "cmstools jar file") + +find_file(JSS_JAR + NAMES + jss4.jar + PATHS + /usr/lib/java + /usr/share/java +) + +set(cmstools_java_SRCS + com/netscape/cmstools/PrettyPrintCrl.java + com/netscape/cmstools/BtoA.java + com/netscape/cmstools/PasswordCache.java + com/netscape/cmstools/OCSPClient.java + com/netscape/cmstools/PKCS12Export.java + com/netscape/cmstools/TestCRLSigning.java + com/netscape/cmstools/CRMFPopClient.java + com/netscape/cmstools/AuditVerify.java + com/netscape/cmstools/PrettyPrintCert.java + com/netscape/cmstools/HttpClient.java + com/netscape/cmstools/GenExtKeyUsage.java + com/netscape/cmstools/CMCRevoke.java + com/netscape/cmstools/TokenInfo.java + com/netscape/cmstools/CMCEnroll.java + com/netscape/cmstools/ExtJoiner.java + com/netscape/cmstools/CMCRequest.java + com/netscape/cmstools/AtoB.java + com/netscape/cmstools/GenIssuerAltNameExt.java + com/netscape/cmstools/GenSubjectAltNameExt.java + com/netscape/cmstools/CMCResponse.java + com/netscape/cmstools/PKCS10Client.java +) + +set(CMAKE_JAVA_INCLUDE_PATH ${JSS_JAR} ${OSUTIL_JAR} ${NSUTIL_JAR} ${CMSUTIL_JAR} ${CMS_JAR}) + +add_jar(cmstools ${netscape_java_SRCS} ${cmstools_java_SRCS}) +add_dependencies(cmstools osutil nsutil cmsutil cms) + +install( + FILES + ${CMSTOOLS_JAR} + DESTINATION + ${JAVA_JAR_INSTALL_DIR}/pki +) |