diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-03-23 10:44:33 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-03-26 12:54:21 -0500 |
commit | 78378144e71a00a67690a1f99152402c892b0103 (patch) | |
tree | ad4a0fb27d54d0b5da4adfe6b9626cab7a939c69 /base | |
parent | 621d9e5c413e561293d7484b93882d985b3fe15f (diff) | |
download | pki-78378144e71a00a67690a1f99152402c892b0103.tar.gz pki-78378144e71a00a67690a1f99152402c892b0103.tar.xz pki-78378144e71a00a67690a1f99152402c892b0103.zip |
Added option to build without Javadoc.
The build scripts have been modified to provide an option to build
without Javadoc to speed up development builds. The option can be
used as follows:
compose_pki_core_packages --without-javadoc hybrid_rpms
Ticket #111
Diffstat (limited to 'base')
-rw-r--r-- | base/common/src/CMakeLists.txt | 22 | ||||
-rw-r--r-- | base/java-tools/src/CMakeLists.txt | 22 | ||||
-rw-r--r-- | base/util/src/CMakeLists.txt | 43 |
3 files changed, 46 insertions, 41 deletions
diff --git a/base/common/src/CMakeLists.txt b/base/common/src/CMakeLists.txt index a9d4a765c..7a7c38a44 100644 --- a/base/common/src/CMakeLists.txt +++ b/base/common/src/CMakeLists.txt @@ -1063,16 +1063,18 @@ add_dependencies(pki-cms pki-nsutil pki-cmsutil pki-certsrv) install_jar(pki-cms ${JAVA_JAR_INSTALL_DIR}/pki) set(PKI_CMS_JAR ${pki-cms_JAR_FILE} CACHE INTERNAL "pki-cms jar file") -create_javadoc(pki-common-${APPLICATION_VERSION} - FILES ${pki-cms_java_SRCS} ${pki-certsrv_java_SRCS} - CLASSPATH ${CMAKE_JAVA_INCLUDE_PATH} ${pki-certsrv_JAR_FILE} - WINDOWTITLE "pki-common" - DOCTITLE "<h1>pki-common</h1>" - AUTHOR TRUE - USE TRUE - VERSION TRUE -) -add_dependencies(pki-common-${APPLICATION_VERSION}_javadoc pki-cms pki-certsrv) +if(WITH_JAVADOC) + create_javadoc(pki-common-${APPLICATION_VERSION} + FILES ${pki-cms_java_SRCS} ${pki-certsrv_java_SRCS} + CLASSPATH ${CMAKE_JAVA_INCLUDE_PATH} ${pki-certsrv_JAR_FILE} + WINDOWTITLE "pki-common" + DOCTITLE "<h1>pki-common</h1>" + AUTHOR TRUE + USE TRUE + VERSION TRUE + ) + add_dependencies(pki-common-${APPLICATION_VERSION}_javadoc pki-cms pki-certsrv) +endif(WITH_JAVADOC) # build pki-cmscore set(CMAKE_JAR_CLASSES_PREFIX com/netscape/cmscore) diff --git a/base/java-tools/src/CMakeLists.txt b/base/java-tools/src/CMakeLists.txt index 0411a54c7..e6152dcf9 100644 --- a/base/java-tools/src/CMakeLists.txt +++ b/base/java-tools/src/CMakeLists.txt @@ -75,13 +75,15 @@ install( install_jar(pki-tools ${JAVA_JAR_INSTALL_DIR}/pki) set(PKI_TOOLS_JAR ${pki-tools_JAR_FILE} CACHE INTERNAL "pki-tools jar file") -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 -) -add_dependencies(pki-java-tools-${APPLICATION_VERSION}_javadoc pki-tools) +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 + ) + add_dependencies(pki-java-tools-${APPLICATION_VERSION}_javadoc pki-tools) +endif(WITH_JAVADOC) diff --git a/base/util/src/CMakeLists.txt b/base/util/src/CMakeLists.txt index 592e3b59b..f0c586ad6 100644 --- a/base/util/src/CMakeLists.txt +++ b/base/util/src/CMakeLists.txt @@ -346,24 +346,25 @@ add_dependencies(pki-cmsutil pki-nsutil) install_jar(pki-cmsutil ${JAVA_JAR_INSTALL_DIR}/pki) set(PKI_CMSUTIL_JAR ${pki-cmsutil_JAR_FILE} CACHE INTERNAL "pki-cmsutil jar file") -create_javadoc(pki-util-${APPLICATION_VERSION} - PACKAGES com.netscape.cmsutil.crypto - com.netscape.cmsutil.http - com.netscape.cmsutil.ldap - com.netscape.cmsutil.net - com.netscape.cmsutil.ocsp - com.netscape.cmsutil.password - com.netscape.cmsutil.radius - com.netscape.cmsutil.scep - com.netscape.cmsutil.util - com.netscape.cmsutil.xml - SOURCEPATH ${CMAKE_CURRENT_SOURCE_DIR} - CLASSPATH ${CMAKE_JAVA_INCLUDE_PATH} - WINDOWTITLE "pki-util" - WINDOWTITLE "pki-util" - DOCTITLE "<h1>dogtag</h1>" - AUTHOR TRUE - USE TRUE - VERSION TRUE -) -add_dependencies(pki-util-${APPLICATION_VERSION}_javadoc pki-cmsutil) +if(WITH_JAVADOC) + create_javadoc(pki-util-${APPLICATION_VERSION} + PACKAGES com.netscape.cmsutil.crypto + com.netscape.cmsutil.http + com.netscape.cmsutil.ldap + com.netscape.cmsutil.net + com.netscape.cmsutil.ocsp + com.netscape.cmsutil.password + com.netscape.cmsutil.radius + com.netscape.cmsutil.scep + com.netscape.cmsutil.util + com.netscape.cmsutil.xml + SOURCEPATH ${CMAKE_CURRENT_SOURCE_DIR} + CLASSPATH ${CMAKE_JAVA_INCLUDE_PATH} + WINDOWTITLE "pki-util" + DOCTITLE "<h1>dogtag</h1>" + AUTHOR TRUE + USE TRUE + VERSION TRUE + ) + add_dependencies(pki-util-${APPLICATION_VERSION}_javadoc pki-cmsutil) +endif(WITH_JAVADOC) |