diff options
Diffstat (limited to 'base/java-tools')
-rw-r--r-- | base/java-tools/src/CMakeLists.txt | 108 |
1 files changed, 65 insertions, 43 deletions
diff --git a/base/java-tools/src/CMakeLists.txt b/base/java-tools/src/CMakeLists.txt index e6152dcf9..8249a0086 100644 --- a/base/java-tools/src/CMakeLists.txt +++ b/base/java-tools/src/CMakeLists.txt @@ -31,59 +31,81 @@ find_file(XERCES_JAR /usr/share/java ) -set(pki-tools_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 - com/netscape/cmstools/DRMTool.java +# build pki-tools +javac(pki-tools-classes + SOURCES + com/netscape/cmstools/*.java + CLASSPATH + ${PKI_NSUTIL_JAR} ${PKI_CMSUTIL_JAR} + ${XALAN_JAR} ${XERCES_JAR} + ${JSS_JAR} ${COMMONS_CODEC_JAR} + OUTPUT_DIR + ${CMAKE_BINARY_DIR}/classes + DEPENDS + pki-nsutil pki-cmsutil ) -set(CMAKE_JAVA_INCLUDE_PATH - ${PKI_NSUTIL_JAR} ${PKI_CMSUTIL_JAR} - ${XALAN_JAR} ${XERCES_JAR} - ${JSS_JAR} ${COMMONS_CODEC_JAR}) +jar(pki-tools-jar + CREATE + ${CMAKE_BINARY_DIR}/dist/pki-tools-${APPLICATION_VERSION}.jar + INPUT_DIR + ${CMAKE_BINARY_DIR}/classes + FILES + com/netscape/cmstools/*.class + DEPENDS + pki-tools-classes +) -set(CMAKE_JAVA_TARGET_VERSION ${APPLICATION_VERSION}) +link(pki-tools + SOURCE + ${CMAKE_BINARY_DIR}/dist/pki-tools.jar + DEST + pki-tools-${APPLICATION_VERSION}.jar + DEPENDS + pki-tools-jar +) + +install( + FILES + ${CMAKE_BINARY_DIR}/dist/pki-tools.jar + ${CMAKE_BINARY_DIR}/dist/pki-tools-${APPLICATION_VERSION}.jar + DESTINATION + ${JAVA_JAR_INSTALL_DIR}/pki +) -# build pki-tools -add_jar(pki-tools ${pki-tools_java_SRCS}) -add_dependencies(pki-tools pki-nsutil pki-cmsutil) install( FILES com/netscape/cmstools/DRMTool.cfg DESTINATION - ${SHARE_INSTALL_PREFIX}/pki/java-tools/ + ${SHARE_INSTALL_PREFIX}/pki/java-tools ) -install_jar(pki-tools ${JAVA_JAR_INSTALL_DIR}/pki) -set(PKI_TOOLS_JAR ${pki-tools_JAR_FILE} CACHE INTERNAL "pki-tools jar file") + +set(PKI_TOOLS_JAR ${CMAKE_BINARY_DIR}/dist/pki-tools.jar CACHE INTERNAL "pki-tools jar file") if(WITH_JAVADOC) - create_javadoc(pki-java-tools-${APPLICATION_VERSION} - FILES ${pki-tools_java_SRCS} - CLASSPATH ${CMAKE_JAVA_INCLUDE_PATH} - WINDOWTITLE "pki-java-tools" - DOCTITLE "<h1>pki-java-tools</h1>" - AUTHOR TRUE - USE TRUE - VERSION TRUE + javadoc(pki-tools-javadoc + DEST + ${CMAKE_CURRENT_BINARY_DIR}/javadoc/pki-java-tools-${APPLICATION_VERSION} + SUBPACKAGES + com.netscape.cmstools + CLASSPATH + ${PKI_NSUTIL_JAR} ${PKI_CMSUTIL_JAR} + ${XALAN_JAR} ${XERCES_JAR} + ${JSS_JAR} ${COMMONS_CODEC_JAR} + OPTIONS + -windowtitle 'pki-java-tools' + -doctitle '<h1>pki-java-tools</h1>' + -author + -use + -version + DEPENDS + pki-tools + ) + + install( + FILES + ${CMAKE_CURRENT_BINARY_DIR}/javadoc/pki-java-tools-${APPLICATION_VERSION} + DESTINATION + ${CMAKE_INSTALL_PREFIX}/share/javadoc ) - add_dependencies(pki-java-tools-${APPLICATION_VERSION}_javadoc pki-tools) endif(WITH_JAVADOC) |