8178038: Copy jdwp-protocol.html to proper location
8178039: Copy jvmti.html to proper location 8178316: Add JVM-MANAGEMENT-MIB.mib to jdk/src/java.management/share/specs/ Reviewed-by: erikj, mchung
This commit is contained in:
parent
d28d3f3d59
commit
241efa9566
@ -343,27 +343,42 @@ $(eval $(call SetupApiDocsGeneration, JAVASE_API, \
|
||||
# JAVASE_API_MODULEGRAPH_TARGETS.
|
||||
|
||||
################################################################################
|
||||
# Copy targets
|
||||
# Copy JDK specs files
|
||||
|
||||
JDWP_HTML := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/jdwp-protocol.html
|
||||
# For all html documentation in $module/share/specs directories, copy it
|
||||
# unmodified
|
||||
|
||||
$(eval $(call SetupCopyFiles, COPY_JDWP_HTML, \
|
||||
FILES := $(JDWP_HTML), \
|
||||
DEST := $(JAVADOC_OUTPUTDIR)/platform/jpda/jdwp, \
|
||||
ALL_MODULES := $(call FindAllModules)
|
||||
COPY_SPEC_FILTER := %.html %.gif %.jpg %.mib
|
||||
|
||||
$(foreach m, $(ALL_MODULES), \
|
||||
$(eval SPECS_$m := $(call FindModuleSpecsDirs, $m)) \
|
||||
$(if $(SPECS_$m), \
|
||||
$(eval $(call SetupCopyFiles, COPY_$m, \
|
||||
SRC := $(SPECS_$m), \
|
||||
FILES := $(filter $(COPY_SPEC_FILTER), $(call CacheFind, $(SPECS_$m))), \
|
||||
DEST := $(JAVADOC_OUTPUTDIR)/specs/, \
|
||||
)) \
|
||||
$(eval JDK_SPECS_TARGETS += $(COPY_$m)) \
|
||||
) \
|
||||
)
|
||||
|
||||
# Special treatment for generated documentation
|
||||
|
||||
JDWP_PROTOCOL := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/jdwp-protocol.html
|
||||
$(eval $(call SetupCopyFiles, COPY_JDWP_PROTOCOL, \
|
||||
FILES := $(JDWP_PROTOCOL), \
|
||||
DEST := $(JAVADOC_OUTPUTDIR)/specs/jdwp, \
|
||||
))
|
||||
JDK_SPECS_TARGETS += $(COPY_JDWP_PROTOCOL)
|
||||
|
||||
COPY_TARGETS += $(COPY_JDWP_HTML)
|
||||
|
||||
# Pick jvmti.html from any jvm variant, they are all the same.
|
||||
JVMTI_HTML := $(firstword \
|
||||
$(wildcard $(HOTSPOT_OUTPUTDIR)/variant-*/gensrc/jvmtifiles/jvmti.html))
|
||||
|
||||
# Get jvmti.html from the main jvm variant (all variants' jvmti.html are identical).
|
||||
JVMTI_HTML := $(HOTSPOT_OUTPUTDIR)/variant-$(JVM_VARIANT_MAIN)/gensrc/jvmtifiles/jvmti.html
|
||||
$(eval $(call SetupCopyFiles, COPY_JVMTI_HTML, \
|
||||
FILES := $(JVMTI_HTML), \
|
||||
DEST := $(JAVADOC_OUTPUTDIR)/platform/jvmti, \
|
||||
DEST := $(JAVADOC_OUTPUTDIR)/specs, \
|
||||
))
|
||||
|
||||
COPY_TARGETS += $(COPY_JVMTI_HTML)
|
||||
JDK_SPECS_TARGETS += $(COPY_JVMTI_HTML)
|
||||
|
||||
################################################################################
|
||||
# Optional target which bundles all generated javadocs into a zip archive.
|
||||
@ -375,7 +390,7 @@ $(eval $(call SetupZipArchive, BUILD_JAVADOC_ZIP, \
|
||||
SRC := $(JAVADOC_OUTPUTDIR), \
|
||||
ZIP := $(JAVADOC_ZIP_FILE), \
|
||||
EXTRA_DEPS := $(JDK_API_JAVADOC_TARGETS) $(JDK_API_MODULEGRAPH_TARGETS) \
|
||||
$(COPY_TARGETS), \
|
||||
$(JDK_SPECS_TARGETS), \
|
||||
))
|
||||
|
||||
ZIP_TARGETS += $(BUILD_JAVADOC_ZIP)
|
||||
@ -395,12 +410,12 @@ docs-javase-api-javadoc: $(JAVASE_API_JAVADOC_TARGETS)
|
||||
|
||||
docs-javase-api-modulegraph: $(JAVASE_API_MODULEGRAPH_TARGETS)
|
||||
|
||||
docs-copy: $(COPY_TARGETS)
|
||||
docs-jdk-specs: $(JDK_SPECS_TARGETS)
|
||||
|
||||
docs-zip: $(ZIP_TARGETS)
|
||||
|
||||
all: docs-jdk-api-javadoc docs-jdk-api-modulegraph docs-javase-api-javadoc \
|
||||
docs-javase-api-modulegraph docs-copy docs-zip
|
||||
docs-javase-api-modulegraph docs-jdk-specs docs-zip
|
||||
|
||||
.PHONY: default all docs-jdk-api-javadoc docs-jdk-api-modulegraph \
|
||||
docs-javase-api-javadoc docs-javase-api-modulegraph docs-copy docs-zip
|
||||
docs-javase-api-javadoc docs-javase-api-modulegraph docs-jdk-specs docs-zip
|
||||
|
@ -374,8 +374,8 @@ docs-javase-api-javadoc:
|
||||
docs-javase-api-modulegraph:
|
||||
+($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs-javase-api-modulegraph)
|
||||
|
||||
docs-copy:
|
||||
+($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs-copy)
|
||||
docs-jdk-specs:
|
||||
+($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs-jdk-specs)
|
||||
|
||||
docs-zip:
|
||||
+($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs-zip)
|
||||
@ -384,8 +384,8 @@ update-build-docs:
|
||||
+($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f UpdateBuildDocs.gmk)
|
||||
|
||||
ALL_TARGETS += docs-jdk-api-javadoc docs-jdk-api-modulegraph \
|
||||
docs-javase-api-javadoc docs-javase-api-modulegraph docs-copy docs-zip \
|
||||
update-build-docs
|
||||
docs-javase-api-javadoc docs-javase-api-modulegraph docs-jdk-specs \
|
||||
docs-zip update-build-docs
|
||||
|
||||
################################################################################
|
||||
# Cross compilation support
|
||||
@ -790,10 +790,10 @@ else
|
||||
|
||||
docs-javase-api-modulegraph: exploded-image buildtools-modules
|
||||
|
||||
# The gensrc step for jdk.jdi creates an html file that is used by docs-copy.
|
||||
docs-copy: hotspot-$(JVM_VARIANT_MAIN)-gensrc jdk.jdi-gensrc
|
||||
# The gensrc steps for hotspot and jdk.jdi create html spec files.
|
||||
docs-jdk-specs: hotspot-$(JVM_VARIANT_MAIN)-gensrc jdk.jdi-gensrc
|
||||
|
||||
docs-zip: docs-jdk docs-copy
|
||||
docs-zip: docs-jdk
|
||||
|
||||
test: jdk-image test-image
|
||||
|
||||
@ -922,7 +922,7 @@ ifeq ($(ENABLE_FULL_DOCS), true)
|
||||
docs-javase-api: docs-javase-api-modulegraph
|
||||
endif
|
||||
|
||||
docs-jdk: docs-jdk-api
|
||||
docs-jdk: docs-jdk-api docs-jdk-specs
|
||||
docs-javase: docs-javase-api
|
||||
|
||||
# alias for backwards compatibility
|
||||
@ -959,7 +959,7 @@ ifeq ($(OPENJDK_TARGET_OS), macosx)
|
||||
endif
|
||||
|
||||
# This target builds the documentation image
|
||||
docs-image: docs-jdk docs-copy
|
||||
docs-image: docs-jdk
|
||||
|
||||
# This target builds the test image
|
||||
test-image: prepare-test-image test-image-hotspot-jtreg-native \
|
||||
|
@ -229,6 +229,8 @@ ifneq ($(OPENJDK_TARGET_OS), $(OPENJDK_TARGET_OS_TYPE))
|
||||
endif
|
||||
SRC_SUBDIRS += share/classes
|
||||
|
||||
SPEC_SUBDIRS += share/specs
|
||||
|
||||
# Find all module-info.java files for the current build target platform and
|
||||
# configuration.
|
||||
# Param 1 - Module to find for, set to * for finding all
|
||||
@ -281,6 +283,12 @@ FindModuleSrcDirs = \
|
||||
$(addsuffix /$(strip $1), $(GENERATED_SRC_DIRS) $(IMPORT_MODULES_SRC)) \
|
||||
$(foreach sub, $(SRC_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS)))))
|
||||
|
||||
# Find all specs dirs for a particular module
|
||||
# $1 - Module to find specs dirs for
|
||||
FindModuleSpecsDirs = \
|
||||
$(strip $(wildcard \
|
||||
$(foreach sub, $(SPEC_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS)))))
|
||||
|
||||
# Construct the complete module source path
|
||||
GetModuleSrcPath = \
|
||||
$(call PathList, \
|
||||
|
Loading…
Reference in New Issue
Block a user