8067194: Restructure hotspot/agent/src to conform the modular source layout
Move sources under jdk.hotspot.agent Reviewed-by: ihse, erikj, jbachorik
This commit is contained in:
parent
19cddada2c
commit
c28f46f637
@ -367,10 +367,6 @@ jdk.compiler_CLEAN_FILES := $(wildcard \
|
||||
|
||||
################################################################################
|
||||
|
||||
jdk.hotspot.agent_SRC += \
|
||||
$(SUPPORT_OUTPUTDIR)/gensrc/jdk.hotspot.agent \
|
||||
$(HOTSPOT_TOPDIR)/agent/src/share/classes \
|
||||
#
|
||||
jdk.hotspot.agent_ADD_JAVAC_FLAGS := $(DISABLE_WARNINGS),-overrides
|
||||
jdk.hotspot.agent_COPY := .png sa.js .properties
|
||||
|
||||
@ -381,9 +377,9 @@ ifeq ($(MODULE), jdk.hotspot.agent)
|
||||
# These can't be handled by COPY to SetupJavaCompilation since they chop off
|
||||
# one directory level.
|
||||
$(eval $(call SetupCopyFiles, COPY_SA_IMAGES, \
|
||||
SRC := $(HOTSPOT_TOPDIR)/agent/src/share/classes/images, \
|
||||
SRC := $(HOTSPOT_TOPDIR)/src/jdk.hotspot.agent/share/classes/images, \
|
||||
DEST := $(JDK_OUTPUTDIR)/modules/$(MODULE), \
|
||||
FILES := $(wildcard $(HOTSPOT_TOPDIR)/agent/src/share/classes/images/*/*/*.gif), \
|
||||
FILES := $(wildcard $(HOTSPOT_TOPDIR)/src/jdk.hotspot.agent/share/classes/images/*/*/*.gif), \
|
||||
))
|
||||
jdk.hotspot.agent: $(COPY_SA_IMAGES)
|
||||
endif
|
||||
|
@ -49,25 +49,21 @@ ALL_TOP_SRC_DIRS := \
|
||||
#
|
||||
|
||||
# Find all modules with java sources by looking in the source dirs
|
||||
# jdk.hotspot.agent currently doesn't comply with source dir policy.
|
||||
define FindJavaModules
|
||||
$(filter-out $(MODULES_FILTER), $(sort $(notdir \
|
||||
$(patsubst %/,%, $(dir $(patsubst %/,%, $(dir $(patsubst %/,%, $(dir \
|
||||
$(wildcard $(patsubst %,%/*/share/classes/*, $(ALL_TOP_SRC_DIRS)) \
|
||||
$(patsubst %,%/*/$(OPENJDK_TARGET_OS)/classes/*, $(ALL_TOP_SRC_DIRS)) \
|
||||
$(patsubst %,%/*/$(OPENJDK_TARGET_OS_TYPE)/classes/*, $(ALL_TOP_SRC_DIRS))))))))))) \
|
||||
jdk.hotspot.agent)
|
||||
$(patsubst %,%/*/$(OPENJDK_TARGET_OS_TYPE)/classes/*, $(ALL_TOP_SRC_DIRS))))))))))))
|
||||
endef
|
||||
|
||||
# Find all modules with source for the target platform.
|
||||
# jdk.hotspot.agent currently doesn't comply with source dir policy.
|
||||
define FindAllModules
|
||||
$(sort $(filter-out $(MODULES_FILTER) closed demo sample, \
|
||||
$(notdir $(patsubst %/,%, $(dir \
|
||||
$(wildcard $(patsubst %, %/*/share, $(ALL_TOP_SRC_DIRS)) \
|
||||
$(patsubst %, %/*/$(OPENJDK_TARGET_OS), $(ALL_TOP_SRC_DIRS)) \
|
||||
$(patsubst %, %/*/$(OPENJDK_TARGET_OS_TYPE), $(ALL_TOP_SRC_DIRS)))))) \
|
||||
jdk.hotspot.agent))
|
||||
$(patsubst %, %/*/$(OPENJDK_TARGET_OS_TYPE), $(ALL_TOP_SRC_DIRS))))))))
|
||||
endef
|
||||
|
||||
################################################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user