8005540: build-infra: Improve incremental build speed on windows by caching find results
Reviewed-by: ohair
This commit is contained in:
parent
78bc845d66
commit
b9ea1c8108
@ -39,10 +39,7 @@ include NativeCompilation.gmk
|
|||||||
# Setup the java compilers for the JDK build.
|
# Setup the java compilers for the JDK build.
|
||||||
include Setup.gmk
|
include Setup.gmk
|
||||||
|
|
||||||
# Setup the build tools.
|
import: import-only
|
||||||
include Tools.gmk
|
|
||||||
|
|
||||||
import: $(BUILD_TOOLS) import-only
|
|
||||||
import-only:
|
import-only:
|
||||||
# Import (corba jaxp jaxws langtools hotspot)
|
# Import (corba jaxp jaxws langtools hotspot)
|
||||||
+$(MAKE) -f Import.gmk
|
+$(MAKE) -f Import.gmk
|
||||||
|
@ -33,6 +33,9 @@ include NativeCompilation.gmk
|
|||||||
# Setup the java compilers for the JDK build.
|
# Setup the java compilers for the JDK build.
|
||||||
include Setup.gmk
|
include Setup.gmk
|
||||||
|
|
||||||
|
# Prepare the find cache. Only used if running on windows.
|
||||||
|
$(eval $(call FillCacheFind,$(JDK_TOPDIR)/src))
|
||||||
|
|
||||||
# Append demo goals to this variable.
|
# Append demo goals to this variable.
|
||||||
BUILD_DEMOS=
|
BUILD_DEMOS=
|
||||||
|
|
||||||
@ -185,7 +188,7 @@ ifndef OPENJDK
|
|||||||
|
|
||||||
BUILD_DEMOS += $(patsubst $(JDK_TOPDIR)/src/closed/share/demo/nbproject/%,\
|
BUILD_DEMOS += $(patsubst $(JDK_TOPDIR)/src/closed/share/demo/nbproject/%,\
|
||||||
$(JDK_OUTPUTDIR)/demo/nbproject/%,\
|
$(JDK_OUTPUTDIR)/demo/nbproject/%,\
|
||||||
$(shell $(FIND) $(JDK_TOPDIR)/src/closed/share/demo/nbproject/ -type f))
|
$(call CacheFind,$(JDK_TOPDIR)/src/closed/share/demo/nbproject))
|
||||||
$(JDK_OUTPUTDIR)/demo/nbproject/% : $(JDK_TOPDIR)/src/closed/share/demo/nbproject/%
|
$(JDK_OUTPUTDIR)/demo/nbproject/% : $(JDK_TOPDIR)/src/closed/share/demo/nbproject/%
|
||||||
$(MKDIR) -p $(@D)
|
$(MKDIR) -p $(@D)
|
||||||
$(CP) $< $@
|
$(CP) $< $@
|
||||||
@ -317,7 +320,7 @@ $(eval $(call SetupJVMTIDemo,versionCheck, agent_util))
|
|||||||
|
|
||||||
# The jpda demo (com/sun/tools/example) is oddly enough stored in src/share/classes.
|
# The jpda demo (com/sun/tools/example) is oddly enough stored in src/share/classes.
|
||||||
# At least, we do not need to compile the jpda demo, just jar/zip up the sources.
|
# At least, we do not need to compile the jpda demo, just jar/zip up the sources.
|
||||||
JPDA_SOURCES:=$(shell $(FIND) $(JDK_TOPDIR)/src/share/classes/com/sun/tools/example -type f)
|
JPDA_SOURCES:=$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/tools/example)
|
||||||
# The number of files are few enough so that we can use echo safely below to list them.
|
# The number of files are few enough so that we can use echo safely below to list them.
|
||||||
JPDA_FILES:=$(subst $(JDK_TOPDIR)/src/share/classes/,,$(JPDA_SOURCES))
|
JPDA_FILES:=$(subst $(JDK_TOPDIR)/src/share/classes/,,$(JPDA_SOURCES))
|
||||||
|
|
||||||
@ -363,7 +366,7 @@ BUILD_DEMOS += $(JDK_OUTPUTDIR)/demo/management/index.html \
|
|||||||
# The netbeans project files are copied into the demo directory.
|
# The netbeans project files are copied into the demo directory.
|
||||||
BUILD_DEMOS += $(patsubst $(JDK_TOPDIR)/src/share/demo/nbproject/%,\
|
BUILD_DEMOS += $(patsubst $(JDK_TOPDIR)/src/share/demo/nbproject/%,\
|
||||||
$(JDK_OUTPUTDIR)/demo/nbproject/%,\
|
$(JDK_OUTPUTDIR)/demo/nbproject/%,\
|
||||||
$(shell $(FIND) $(JDK_TOPDIR)/src/share/demo/nbproject/ -type f))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/demo/nbproject))
|
||||||
|
|
||||||
$(JDK_OUTPUTDIR)/demo/nbproject/% : $(JDK_TOPDIR)/src/share/demo/nbproject/%
|
$(JDK_OUTPUTDIR)/demo/nbproject/% : $(JDK_TOPDIR)/src/share/demo/nbproject/%
|
||||||
$(MKDIR) -p $(@D)
|
$(MKDIR) -p $(@D)
|
||||||
@ -439,7 +442,7 @@ endif
|
|||||||
##################################################################################################
|
##################################################################################################
|
||||||
|
|
||||||
ifndef OPENJDK
|
ifndef OPENJDK
|
||||||
DB_DEMO_ZIPFILE := $(shell $(FIND) $(JDK_TOPDIR)/src/closed/share/db -name "*demo*.zip")
|
DB_DEMO_ZIPFILE := $(wildcard $(JDK_TOPDIR)/src/closed/share/db/*demo*.zip)
|
||||||
|
|
||||||
$(JDK_OUTPUTDIR)/demo/_the.db.unzipped: $(DB_DEMO_ZIPFILE)
|
$(JDK_OUTPUTDIR)/demo/_the.db.unzipped: $(DB_DEMO_ZIPFILE)
|
||||||
$(MKDIR) -p $(@D)
|
$(MKDIR) -p $(@D)
|
||||||
|
@ -32,6 +32,9 @@ include NativeCompilation.gmk
|
|||||||
# Setup the java compilers for the JDK build.
|
# Setup the java compilers for the JDK build.
|
||||||
include Setup.gmk
|
include Setup.gmk
|
||||||
|
|
||||||
|
# Prepare the find cache. Only used on windows.
|
||||||
|
$(eval $(call FillCacheFind,$(JDK_TOPDIR)/src/share/bin))
|
||||||
|
|
||||||
# Build tools
|
# Build tools
|
||||||
include Tools.gmk
|
include Tools.gmk
|
||||||
|
|
||||||
|
@ -35,6 +35,9 @@ include Setup.gmk
|
|||||||
# Copy files (can now depend on $(COPY_FILES))
|
# Copy files (can now depend on $(COPY_FILES))
|
||||||
include CopyFiles.gmk
|
include CopyFiles.gmk
|
||||||
|
|
||||||
|
# Prepare the find cache. Only used if running on windows.
|
||||||
|
$(eval $(call FillCacheFind,$(JDK_TOPDIR)/src))
|
||||||
|
|
||||||
# Build tools
|
# Build tools
|
||||||
include Tools.gmk
|
include Tools.gmk
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ COPY_FILES += \
|
|||||||
# are uncommented and the configuration file is stored in the output META-INF directory.
|
# are uncommented and the configuration file is stored in the output META-INF directory.
|
||||||
|
|
||||||
# Make sure the output directory is created.
|
# Make sure the output directory is created.
|
||||||
$(shell $(MKDIR) -p $(JDK_OUTPUTDIR)/classes/META-INF/services)
|
$(eval $(call MakeDir,$(JDK_OUTPUTDIR)/classes/META-INF/services))
|
||||||
# Find all META-INF/services/* files
|
# Find all META-INF/services/* files
|
||||||
ALL_META-INF_DIRS_share:=$(shell $(FIND) $(JDK_TOPDIR)/src/share/classes -type d -a -name META-INF)
|
ALL_META-INF_DIRS_share:=$(shell $(FIND) $(JDK_TOPDIR)/src/share/classes -type d -a -name META-INF)
|
||||||
ALL_META-INF_DIRS_targetapi:=$(shell $(FIND) $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes -type d -a -name META-INF)
|
ALL_META-INF_DIRS_targetapi:=$(shell $(FIND) $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes -type d -a -name META-INF)
|
||||||
|
@ -30,6 +30,9 @@ include Setup.gmk
|
|||||||
|
|
||||||
default: all
|
default: all
|
||||||
|
|
||||||
|
# Prepare the find cache. Only used if running on windows.
|
||||||
|
$(eval $(call FillCacheFind,$(JDK_OUTPUTDIR)/classes))
|
||||||
|
|
||||||
include Tools.gmk
|
include Tools.gmk
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -275,8 +278,8 @@ ifeq ($(OPENJDK_TARGET_OS), macosx)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Find all files in the classes dir to use as dependencies. This could be more fine granular.
|
# Find all files in the classes dir to use as dependencies. This could be more fine granular.
|
||||||
ALL_FILES_IN_CLASSES := $(shell $(FIND) $(JDK_OUTPUTDIR)/classes -type f \
|
ALL_FILES_IN_CLASSES := $(call not-containing,_the.,$(filter-out %javac_state,\
|
||||||
| $(GREP) -v -e '/_the\.*' -e '^_the\.*' -e 'javac_state')
|
$(call CacheFind,$(JDK_OUTPUTDIR)/classes)))
|
||||||
|
|
||||||
RT_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib/_the.rt.jar_manifest
|
RT_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib/_the.rt.jar_manifest
|
||||||
RESOURCE_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib/_the.resources.jar_manifest
|
RESOURCE_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib/_the.resources.jar_manifest
|
||||||
@ -819,7 +822,7 @@ $(IMAGES_OUTPUTDIR)/symbols/_the.symbols: $(IMAGES_OUTPUTDIR)/lib/rt.jar
|
|||||||
$(CORE_PKGS) $(NON_CORE_PKGS) $(EXCLUDE_PROPWARN_PKGS) $(EXPORTED_PRIVATE_PKGS)
|
$(CORE_PKGS) $(NON_CORE_PKGS) $(EXCLUDE_PROPWARN_PKGS) $(EXPORTED_PRIVATE_PKGS)
|
||||||
$(TOUCH) $@
|
$(TOUCH) $@
|
||||||
|
|
||||||
$(shell $(MKDIR) -p $(IMAGES_OUTPUTDIR)/symbols)
|
$(eval $(call MakeDir,$(IMAGES_OUTPUTDIR)/symbols))
|
||||||
$(eval $(call SetupArchive,BUILD_CT_SYM,$(IMAGES_OUTPUTDIR)/symbols/_the.symbols,\
|
$(eval $(call SetupArchive,BUILD_CT_SYM,$(IMAGES_OUTPUTDIR)/symbols/_the.symbols,\
|
||||||
SRCS:=$(IMAGES_OUTPUTDIR)/symbols,\
|
SRCS:=$(IMAGES_OUTPUTDIR)/symbols,\
|
||||||
INCLUDES:=META-INF/sym,\
|
INCLUDES:=META-INF/sym,\
|
||||||
|
@ -23,6 +23,9 @@
|
|||||||
# questions.
|
# questions.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Prepare the find cache. This is only used on windows.
|
||||||
|
$(eval $(call FillCacheFind,$(JDK_TOPDIR)/src/share/classes $(JDK_TOPDIR)/src/windows/classes))
|
||||||
|
|
||||||
# All .properties files to be compiled are appended to this variable.
|
# All .properties files to be compiled are appended to this variable.
|
||||||
ALL_COMPILED_PROPSOURCES:=
|
ALL_COMPILED_PROPSOURCES:=
|
||||||
# All generated .java files from compilation are appended to this variable.
|
# All generated .java files from compilation are appended to this variable.
|
||||||
@ -117,44 +120,54 @@ endef
|
|||||||
#com/apple/laf/resources
|
#com/apple/laf/resources
|
||||||
ifeq ($(OPENJDK_TARGET_OS),macosx)
|
ifeq ($(OPENJDK_TARGET_OS),macosx)
|
||||||
$(eval $(call add_properties_to_compile,COM_APPLE_LAF,\
|
$(eval $(call add_properties_to_compile,COM_APPLE_LAF,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/macosx/classes/com/apple/laf/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle))
|
$(call CacheFind,$(JDK_TOPDIR)/src/macosx/classes/com/apple/laf/resources)),\
|
||||||
|
ListResourceBundle))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#com/sun/accessibility/internal/resources
|
#com/sun/accessibility/internal/resources
|
||||||
$(eval $(call add_properties_to_compile,COM_SUN_ACCESSIBILITY,\
|
$(eval $(call add_properties_to_compile,COM_SUN_ACCESSIBILITY,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/accessibility/internal/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/accessibility/internal/resources)),\
|
||||||
|
ListResourceBundle))
|
||||||
$(eval $(call add_properties_to_compile,COM_SUN_ACCESSIBILITY_HK,\
|
$(eval $(call add_properties_to_compile,COM_SUN_ACCESSIBILITY_HK,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/accessibility/internal/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle,%zh_TW,%zh_HK))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/accessibility/internal/resources)),\
|
||||||
|
ListResourceBundle,%zh_TW,%zh_HK))
|
||||||
#com/sun/imageio/plugins/common
|
#com/sun/imageio/plugins/common
|
||||||
$(eval $(call add_properties_to_clean,COM_SUN_IMAGEIO,\
|
$(eval $(call add_properties_to_clean,COM_SUN_IMAGEIO,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/imageio -name "*.properties")))
|
$(filter %.properties,\
|
||||||
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/imageio))))
|
||||||
#com/sun/java/swing/plaf/gtk/resources
|
#com/sun/java/swing/plaf/gtk/resources
|
||||||
ifneq ($(OPENJDK_TARGET_OS), windows)
|
ifneq ($(OPENJDK_TARGET_OS), windows)
|
||||||
# Only compile GTK resource bundles on Solaris/Linux
|
# Only compile GTK resource bundles on Solaris/Linux
|
||||||
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_GTK,\
|
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_GTK,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/java/swing/plaf/gtk/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/java/swing/plaf/gtk/resources)),\
|
||||||
|
ListResourceBundle))
|
||||||
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_GTK_HK,\
|
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_GTK_HK,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/java/swing/plaf/gtk/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle,%zh_TW,%zh_HK))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/java/swing/plaf/gtk/resources)),\
|
||||||
|
ListResourceBundle,%zh_TW,%zh_HK))
|
||||||
endif
|
endif
|
||||||
#com/sun/java/swing/plaf/motif/resources
|
#com/sun/java/swing/plaf/motif/resources
|
||||||
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_MOTIF,\
|
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_MOTIF,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/java/swing/plaf/motif/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/java/swing/plaf/motif/resources)),\
|
||||||
|
ListResourceBundle))
|
||||||
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_MOTIF_HK,\
|
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_MOTIF_HK,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/java/swing/plaf/motif/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle,%zh_TW,%zh_HK))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/java/swing/plaf/motif/resources)),\
|
||||||
|
ListResourceBundle,%zh_TW,%zh_HK))
|
||||||
#com/sun/java/swing/plaf/windows/resources
|
#com/sun/java/swing/plaf/windows/resources
|
||||||
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_WINDOWS,\
|
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_WINDOWS,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/java/swing/plaf/windows/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/java/swing/plaf/windows/resources)),\
|
||||||
|
ListResourceBundle))
|
||||||
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_WINDOWS_HK,\
|
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_WINDOWS_HK,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/java/swing/plaf/windows/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle,%zh_TW,%zh_HK))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/java/swing/plaf/windows/resources)),\
|
||||||
|
ListResourceBundle,%zh_TW,%zh_HK))
|
||||||
#com/sun/java/util/jar/pack
|
#com/sun/java/util/jar/pack
|
||||||
$(eval $(call add_properties_to_clean,JNDI_COSNAMING,\
|
$(eval $(call add_properties_to_clean,JNDI_COSNAMING,\
|
||||||
$(JDK_TOPDIR)/src/share/classes/com/sun/java/util/jar/pack/intrinsic.properties))
|
$(JDK_TOPDIR)/src/share/classes/com/sun/java/util/jar/pack/intrinsic.properties))
|
||||||
@ -169,138 +182,171 @@ $(eval $(call add_properties_to_clean,JNDI_COSNAMING,\
|
|||||||
#FIXME: The "xmlsecurity*.properties" pattern is not ideal; we might want to find
|
#FIXME: The "xmlsecurity*.properties" pattern is not ideal; we might want to find
|
||||||
#a better way to select the properties files that are needed.
|
#a better way to select the properties files that are needed.
|
||||||
$(eval $(call add_properties_to_clean,XML_SECURITY,\
|
$(eval $(call add_properties_to_clean,XML_SECURITY,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/org/apache/xml/internal/security/resource -name "xmlsecurity*.properties")))
|
$(filter $(JDK_TOPDIR)/src/share/classes/com/sun/org/apache/xml/internal/security/resource/xmlsecurity%.properties,\
|
||||||
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/org/apache/xml/internal/security/resource))))
|
||||||
|
|
||||||
#com/sun/rowset
|
#com/sun/rowset
|
||||||
$(eval $(call add_properties_to_clean,COM_SUN_ROWSET,\
|
$(eval $(call add_properties_to_clean,COM_SUN_ROWSET,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/rowset -name "*.properties")))
|
$(filter %.properties,\
|
||||||
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/rowset))))
|
||||||
$(eval $(call add_properties_to_clean,COM_SUN_ROWSET_HK,\
|
$(eval $(call add_properties_to_clean,COM_SUN_ROWSET_HK,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/rowset -name "*zh_TW.properties"),\
|
$(filter %zh_TW.properties,\
|
||||||
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/rowset)),\
|
||||||
%zh_TW,%zh_HK))
|
%zh_TW,%zh_HK))
|
||||||
|
|
||||||
#com/sun/servicetag/resources
|
#com/sun/servicetag/resources
|
||||||
#com/sun/swing/internal/plaf/basic/resources
|
#com/sun/swing/internal/plaf/basic/resources
|
||||||
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_BASIC,\
|
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_BASIC,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/swing/internal/plaf/basic/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/swing/internal/plaf/basic/resources)),\
|
||||||
|
ListResourceBundle))
|
||||||
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_BASIC_HK,\
|
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_BASIC_HK,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/swing/internal/plaf/basic/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle,%zh_TW,%zh_HK))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/swing/internal/plaf/basic/resources)),\
|
||||||
|
ListResourceBundle,%zh_TW,%zh_HK))
|
||||||
#com/sun/swing/internal/plaf/metal/resources
|
#com/sun/swing/internal/plaf/metal/resources
|
||||||
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_METAL,\
|
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_METAL,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/swing/internal/plaf/metal/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/swing/internal/plaf/metal/resources)),\
|
||||||
|
ListResourceBundle))
|
||||||
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_METAL_HK,\
|
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_METAL_HK,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/swing/internal/plaf/metal/resources -name "*.properties"),\
|
$(filter %.properties,$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/swing/internal/plaf/metal/resources)),\
|
||||||
ListResourceBundle,%zh_TW,%zh_HK))
|
ListResourceBundle,%zh_TW,%zh_HK))
|
||||||
#com/sun/swing/internal/plaf/synth/resources
|
#com/sun/swing/internal/plaf/synth/resources
|
||||||
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_SYNTH,\
|
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_SYNTH,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/swing/internal/plaf/synth/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/swing/internal/plaf/synth/resources)),\
|
||||||
|
ListResourceBundle))
|
||||||
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_SYNTH_HK,\
|
$(eval $(call add_properties_to_compile,COM_SUN_SWING_PLAF_SYNTH_HK,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/swing/internal/plaf/synth/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle,%zh_TW,%zh_HK))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/swing/internal/plaf/synth/resources)),\
|
||||||
|
ListResourceBundle,%zh_TW,%zh_HK))
|
||||||
|
|
||||||
#com/sun/tools/jdi/resources
|
#com/sun/tools/jdi/resources
|
||||||
$(eval $(call add_properties_to_compile,COM_SUN_TOOLS_JDI,\
|
$(eval $(call add_properties_to_compile,COM_SUN_TOOLS_JDI,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/com/sun/tools/jdi/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/com/sun/tools/jdi/resources)),\
|
||||||
|
ListResourceBundle))
|
||||||
|
|
||||||
#com/sun/tools/script/shell
|
#com/sun/tools/script/shell
|
||||||
#java/util
|
#java/util
|
||||||
#javax/sql/rowset
|
#javax/sql/rowset
|
||||||
$(eval $(call add_properties_to_clean,JAVAX_SQL_ROWSET,\
|
$(eval $(call add_properties_to_clean,JAVAX_SQL_ROWSET,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/javax/sql/rowset -name "*.properties")))
|
$(filter %.properties,\
|
||||||
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/javax/sql/rowset))))
|
||||||
#sun/awt/resources
|
#sun/awt/resources
|
||||||
$(eval $(call add_properties_to_compile,SUN_AWT,\
|
$(eval $(call add_properties_to_compile,SUN_AWT,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/awt/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/awt/resources)),\
|
||||||
|
ListResourceBundle))
|
||||||
$(eval $(call add_properties_to_compile,SUN_AWT_HK,\
|
$(eval $(call add_properties_to_compile,SUN_AWT_HK,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/awt/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle,%zh_TW,%zh_HK))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/awt/resources)),\
|
||||||
|
ListResourceBundle,%zh_TW,%zh_HK))
|
||||||
#sun/awt/windows/
|
#sun/awt/windows/
|
||||||
ifeq ($(OPENJDK_TARGET_OS),windows)
|
ifeq ($(OPENJDK_TARGET_OS),windows)
|
||||||
$(eval $(call add_properties_to_compile,SUN_AWT,\
|
$(eval $(call add_properties_to_compile,SUN_AWT,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/windows/classes/sun/awt/windows -name "awtLocalization*.properties"),\
|
$(filter $(JDK_TOPDIR)/src/windows/classes/sun/awt/windows/awtLocalization%.properties,\
|
||||||
ListResourceBundle))
|
$(call CacheFind,$(JDK_TOPDIR)/src/windows/classes/sun/awt/windows)),\
|
||||||
|
ListResourceBundle))
|
||||||
$(eval $(call add_properties_to_compile,SUN_AWT_HK,\
|
$(eval $(call add_properties_to_compile,SUN_AWT_HK,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/windows/classes/sun/awt/windows -name "awtLocalization*.properties"),\
|
$(filter $(JDK_TOPDIR)/src/windows/classes/sun/awt/windows/awtLocalization%.properties,\
|
||||||
ListResourceBundle,%zh_TW,%zh_HK))
|
$(call CacheFind,$(JDK_TOPDIR)/src/windows/classes/sun/awt/windows)),\
|
||||||
|
ListResourceBundle,%zh_TW,%zh_HK))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#sun/launcher/resources
|
#sun/launcher/resources
|
||||||
$(eval $(call add_properties_to_compile,SUN_LAUNCHER,\
|
$(eval $(call add_properties_to_compile,SUN_LAUNCHER,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/launcher/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/launcher/resources)),\
|
||||||
|
ListResourceBundle))
|
||||||
$(eval $(call add_properties_to_compile,SUN_LAUNCHER_HK,\
|
$(eval $(call add_properties_to_compile,SUN_LAUNCHER_HK,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/launcher/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle,%zh_TW,%zh_HK))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/launcher/resources)),\
|
||||||
|
ListResourceBundle,%zh_TW,%zh_HK))
|
||||||
#sun/management/resources
|
#sun/management/resources
|
||||||
$(eval $(call add_properties_to_compile,SUN_MANAGEMENT,\
|
$(eval $(call add_properties_to_compile,SUN_MANAGEMENT,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/management/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/management/resources)),\
|
||||||
|
ListResourceBundle))
|
||||||
$(eval $(call add_properties_to_compile,SUN_MANAGEMENT_KH,\
|
$(eval $(call add_properties_to_compile,SUN_MANAGEMENT_KH,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/management/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle,%zh_TW,%zh_HK))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/management/resources)),\
|
||||||
|
ListResourceBundle,%zh_TW,%zh_HK))
|
||||||
#sun/print
|
#sun/print
|
||||||
#sun/print/resources
|
#sun/print/resources
|
||||||
$(eval $(call add_properties_to_compile,SUN_PRINT,\
|
$(eval $(call add_properties_to_compile,SUN_PRINT,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/print/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/print/resources)),\
|
||||||
|
ListResourceBundle))
|
||||||
$(eval $(call add_properties_to_compile,SUN_PRINT_HK,\
|
$(eval $(call add_properties_to_compile,SUN_PRINT_HK,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/print/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle,%zh_TW,%zh_HK))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/print/resources)),\
|
||||||
|
ListResourceBundle,%zh_TW,%zh_HK))
|
||||||
#sun/rmi/registry/resources
|
#sun/rmi/registry/resources
|
||||||
$(eval $(call add_properties_to_clean,SUN_RMI_REGISTRY,\
|
$(eval $(call add_properties_to_clean,SUN_RMI_REGISTRY,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/rmi/registry/resources -name "*.properties")))
|
$(filter %.properties,\
|
||||||
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/rmi/registry/resources))))
|
||||||
$(eval $(call add_properties_to_clean,SUN_RMI_REGISTRY_HK,\
|
$(eval $(call add_properties_to_clean,SUN_RMI_REGISTRY_HK,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/rmi/registry/resources -name "*zh_TW.properties"),\
|
$(filter %zh_TW.properties,\
|
||||||
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/rmi/registry/resources)),\
|
||||||
%zh_TW,%zh_HK))
|
%zh_TW,%zh_HK))
|
||||||
|
|
||||||
#sun/rmi/rmic/resources
|
#sun/rmi/rmic/resources
|
||||||
$(eval $(call add_properties_to_clean,SUN_RMI_RMIC,\
|
$(eval $(call add_properties_to_clean,SUN_RMI_RMIC,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/rmi/rmic/resources -name "*.properties")))
|
$(filter %.properties,\
|
||||||
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/rmi/rmic/resources))))
|
||||||
|
|
||||||
#sun/rmi/server/resources
|
#sun/rmi/server/resources
|
||||||
$(eval $(call add_properties_to_clean,SUN_RMI_SERVER,\
|
$(eval $(call add_properties_to_clean,SUN_RMI_SERVER,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/rmi/server/resources -name "*.properties")))
|
$(filter %.properties,\
|
||||||
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/rmi/server/resources))))
|
||||||
$(eval $(call add_properties_to_clean,SUN_RMI_SERVER_HK,\
|
$(eval $(call add_properties_to_clean,SUN_RMI_SERVER_HK,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/rmi/server/resources -name "*zh_TW.properties"),\
|
$(filter %zh_TW.properties,\
|
||||||
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/rmi/server/resources)),\
|
||||||
%zh_TW,%zh_HK))
|
%zh_TW,%zh_HK))
|
||||||
|
|
||||||
# sun/tools/jar/resources
|
# sun/tools/jar/resources
|
||||||
$(eval $(call add_properties_to_compile,SUN_TOOLS_JAR,\
|
$(eval $(call add_properties_to_compile,SUN_TOOLS_JAR,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/tools/jar/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/tools/jar/resources)),\
|
||||||
|
ListResourceBundle))
|
||||||
$(eval $(call add_properties_to_compile,SUN_TOOLS_JAR_HK,\
|
$(eval $(call add_properties_to_compile,SUN_TOOLS_JAR_HK,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/tools/jar/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle,%zh_TW,%zh_HK))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/tools/jar/resources)),\
|
||||||
|
ListResourceBundle,%zh_TW,%zh_HK))
|
||||||
|
|
||||||
#sun/tools/javac/resources
|
#sun/tools/javac/resources
|
||||||
# It's unclear if the other localized property files here are supposed to be copied or not
|
# It's unclear if the other localized property files here are supposed to be copied or not
|
||||||
# but the old build system didn't copy them.
|
# but the old build system didn't copy them.
|
||||||
$(eval $(call add_properties_to_clean,SUN_TOOLS_SERIALVER,\
|
$(eval $(call add_properties_to_clean,SUN_TOOLS_SERIALVER,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/tools/javac/resources -name "javac.properties")))
|
$(filter %javac.properties,\
|
||||||
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/tools/javac/resources))))
|
||||||
|
|
||||||
#sun/tools/jconsole/resources
|
#sun/tools/jconsole/resources
|
||||||
$(eval $(call add_properties_to_clean,SUN_TOOLS_JCONSOLE,\
|
$(eval $(call add_properties_to_clean,SUN_TOOLS_JCONSOLE,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/tools/jconsole/resources -name "*.properties")))
|
$(filter %.properties,\
|
||||||
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/tools/jconsole/resources))))
|
||||||
|
|
||||||
#sun/tools/serialver
|
#sun/tools/serialver
|
||||||
$(eval $(call add_properties_to_clean,SUN_TOOLS_SERIALVER,\
|
$(eval $(call add_properties_to_clean,SUN_TOOLS_SERIALVER,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/tools/serialver -name "*.properties"),,,resources))
|
$(filter %.properties,\
|
||||||
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/tools/serialver)),,,resources))
|
||||||
|
|
||||||
#sun/util/logging/resources
|
#sun/util/logging/resources
|
||||||
$(eval $(call add_properties_to_compile,SUN_UTIL_LOGGING,\
|
$(eval $(call add_properties_to_compile,SUN_UTIL_LOGGING,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/util/logging/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/util/logging/resources)),\
|
||||||
|
ListResourceBundle))
|
||||||
$(eval $(call add_properties_to_compile,SUN_UTIL_LOGGING_HK,\
|
$(eval $(call add_properties_to_compile,SUN_UTIL_LOGGING_HK,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/util/logging/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
ListResourceBundle,%zh_TW,%zh_HK))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/util/logging/resources)),\
|
||||||
|
ListResourceBundle,%zh_TW,%zh_HK))
|
||||||
# sun/util/resources
|
# sun/util/resources
|
||||||
$(eval $(call add_properties_to_compile,SUN_UTIL,\
|
$(eval $(call add_properties_to_compile,SUN_UTIL,\
|
||||||
$(shell find $(JDK_TOPDIR)/src/share/classes/sun/util/resources -name "*.properties"),\
|
$(filter %.properties,\
|
||||||
sun.util.resources.LocaleNamesBundle))
|
$(call CacheFind,$(JDK_TOPDIR)/src/share/classes/sun/util/resources)),\
|
||||||
|
sun.util.resources.LocaleNamesBundle))
|
||||||
|
|
||||||
# Now setup the rule for the generation of the resource bundles.
|
# Now setup the rule for the generation of the resource bundles.
|
||||||
$(JDK_OUTPUTDIR)/gensrc/_the.compiled_properties : $(ALL_COMPILED_PROPSOURCES) $(BUILD_TOOLS)
|
$(JDK_OUTPUTDIR)/gensrc/_the.compiled_properties : $(ALL_COMPILED_PROPSOURCES) $(BUILD_TOOLS)
|
||||||
|
@ -54,7 +54,7 @@ endif
|
|||||||
|
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
|
|
||||||
$(GENSRC_X11WRAPPERS_TMP)/sizer/sizer.%.c : $(GENSRC_SIZER_SRC)/xlibtypes.txt
|
$(GENSRC_X11WRAPPERS_TMP)/sizer/sizer.%.c : $(GENSRC_SIZER_SRC)/xlibtypes.txt $(BUILD_TOOLS)
|
||||||
$(ECHO) "Generating X11 wrapper ($*-bit version)"
|
$(ECHO) "Generating X11 wrapper ($*-bit version)"
|
||||||
$(MKDIR) -p $(@D)
|
$(MKDIR) -p $(@D)
|
||||||
$(RM) $@
|
$(RM) $@
|
||||||
@ -92,7 +92,7 @@ $(GENSRC_X11WRAPPERS_TMP)/sizer/sizes.64 : $(JDK_TOPDIR)/src/solaris/classes/sun
|
|||||||
$(CP) $< $@
|
$(CP) $< $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(GENSRC_X11WRAPPERS_DST)/_the.generated.x11 : $(foreach S,$(GENSRC_SIZES),$(GENSRC_X11WRAPPERS_TMP)/sizer/$(S))
|
$(GENSRC_X11WRAPPERS_DST)/_the.generated.x11 : $(foreach S,$(GENSRC_SIZES),$(GENSRC_X11WRAPPERS_TMP)/sizer/$(S)) $(BUILD_TOOLS)
|
||||||
$(RM) $@
|
$(RM) $@
|
||||||
$(MKDIR) -p $(@D)/sun/awt/X11
|
$(MKDIR) -p $(@D)/sun/awt/X11
|
||||||
$(TOOL_WRAPPERGENERATOR) $(@D)/sun/awt/X11 $(GENSRC_SIZER_SRC)/xlibtypes.txt "gen" $(GENSRC_X11WRAPPERS_TMP)/sizer/sizes
|
$(TOOL_WRAPPERGENERATOR) $(@D)/sun/awt/X11 $(GENSRC_SIZER_SRC)/xlibtypes.txt "gen" $(GENSRC_X11WRAPPERS_TMP)/sizer/sizes
|
||||||
|
@ -30,6 +30,15 @@ include Setup.gmk
|
|||||||
|
|
||||||
default: images
|
default: images
|
||||||
|
|
||||||
|
# Prepare the find cache. Only used if running on windows.
|
||||||
|
$(eval $(call FillCacheFind,\
|
||||||
|
$(wildcard $(JDK_OUTPUTDIR)/bin \
|
||||||
|
$(JDK_OUTPUTDIR)/lib \
|
||||||
|
$(IMAGES_OUTPUTDIR)/lib \
|
||||||
|
$(JDK_OUTPUTDIR)/include \
|
||||||
|
$(JDK_OUTPUTDIR)/sample \
|
||||||
|
$(JDK_OUTPUTDIR)/demo)))
|
||||||
|
|
||||||
include Tools.gmk
|
include Tools.gmk
|
||||||
|
|
||||||
# Note: This double-colon rule is intentional, to support
|
# Note: This double-colon rule is intentional, to support
|
||||||
@ -132,7 +141,7 @@ WINDOWS_JDKJRE_BIN_FILES := \
|
|||||||
$(SALIB_NAME)
|
$(SALIB_NAME)
|
||||||
|
|
||||||
# Find all files in bin dir
|
# Find all files in bin dir
|
||||||
ALL_BIN_LIST := $(shell $(FIND) $(JDK_OUTPUTDIR)/bin -type f)
|
ALL_BIN_LIST := $(call CacheFind,$(JDK_OUTPUTDIR)/bin)
|
||||||
|
|
||||||
# Prevent sjavac from entering the images.
|
# Prevent sjavac from entering the images.
|
||||||
ALL_BIN_LIST := $(filter-out %/sjavac,$(ALL_BIN_LIST))
|
ALL_BIN_LIST := $(filter-out %/sjavac,$(ALL_BIN_LIST))
|
||||||
@ -144,7 +153,7 @@ ifneq ($(OPENJDK_TARGET_OS),windows)
|
|||||||
else
|
else
|
||||||
# On windows, the libraries are in the bin dir, only filter out debuginfo files
|
# On windows, the libraries are in the bin dir, only filter out debuginfo files
|
||||||
# for executables. "java" is both a library and executable.
|
# for executables. "java" is both a library and executable.
|
||||||
ALL_BIN_EXEC_FILES := $(filter-out java.exe,$(notdir $(shell $(FIND) $(JDK_OUTPUTDIR)/bin -type f -name "*.exe")))
|
ALL_BIN_EXEC_FILES := $(filter-out java.exe,$(notdir $(filter %.exe,$(ALL_BIN_LIST))))
|
||||||
ALL_BIN_DEBUG_FILTER := $(addprefix %,$(patsubst %.exe,%.debuginfo,$(ALL_BIN_EXEC_FILES)) \
|
ALL_BIN_DEBUG_FILTER := $(addprefix %,$(patsubst %.exe,%.debuginfo,$(ALL_BIN_EXEC_FILES)) \
|
||||||
$(patsubst %.exe,%.diz,$(ALL_BIN_EXEC_FILES))) %.pdb
|
$(patsubst %.exe,%.diz,$(ALL_BIN_EXEC_FILES))) %.pdb
|
||||||
ALL_BIN_LIST := $(filter-out $(ALL_BIN_DEBUG_FILTER),$(ALL_BIN_LIST))
|
ALL_BIN_LIST := $(filter-out $(ALL_BIN_DEBUG_FILTER),$(ALL_BIN_LIST))
|
||||||
@ -212,13 +221,13 @@ endif
|
|||||||
|
|
||||||
# Find all files to copy from $(JDK_OUTPUTDIR)/lib
|
# Find all files to copy from $(JDK_OUTPUTDIR)/lib
|
||||||
# Jar files are not expected to be here
|
# Jar files are not expected to be here
|
||||||
ALL_JDKOUT_LIB_LIST := $(shell $(FIND) $(JDK_OUTPUTDIR)/lib \( -type f -o -type l \) -a ! \
|
ALL_JDKOUT_LIB_LIST := $(call not-containing,_the.,$(filter-out %.jar,\
|
||||||
\( -name "_the*" -o -name "javac_state " -o -name "*.jar" \) )
|
$(call CacheFind,$(JDK_OUTPUTDIR)/lib)))
|
||||||
# Find all files to copy from $(IMAGES_OUTPUTDIR)/lib
|
# Find all files to copy from $(IMAGES_OUTPUTDIR)/lib
|
||||||
# This is were the jar files are and might not exist if building overlay-images
|
# This is were the jar files are and might not exist if building overlay-images
|
||||||
ifneq ($(wildcard $(IMAGES_OUTPUTDIR)/lib),)
|
ifneq ($(wildcard $(IMAGES_OUTPUTDIR)/lib),)
|
||||||
ALL_IMAGES_LIB_LIST := $(shell $(FIND) $(IMAGES_OUTPUTDIR)/lib \( -type f -o -type l \) -a ! \
|
ALL_IMAGES_LIB_LIST := $(call not-containing,_the.,\
|
||||||
\( -name "_the*" -o -name "javac_state " \) )
|
$(call CacheFind,$(IMAGES_OUTPUTDIR)/lib))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Filter files to copy for each destination
|
# Filter files to copy for each destination
|
||||||
@ -493,13 +502,13 @@ define CreateOverlayDemoRule
|
|||||||
|
|
||||||
JDK_OVERLAY_DEMO_TARGETS += $$($1_TARGET)
|
JDK_OVERLAY_DEMO_TARGETS += $$($1_TARGET)
|
||||||
endef
|
endef
|
||||||
JDK_OVERLAY_DEMO_SOURCES := $(shell $(FIND) $(JDK_OUTPUTDIR)/demo -name "*$(SHARED_LIBRARY_SUFFIX)")
|
JDK_OVERLAY_DEMO_SOURCES := $(filter %$(SHARED_LIBRARY_SUFFIX),$(call CacheFind,$(JDK_OUTPUTDIR)/demo))
|
||||||
$(foreach lib,$(JDK_OVERLAY_DEMO_SOURCES),$(eval $(call CreateOverlayDemoRule,$(lib))))
|
$(foreach lib,$(JDK_OVERLAY_DEMO_SOURCES),$(eval $(call CreateOverlayDemoRule,$(lib))))
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# /sample dir
|
# /sample dir
|
||||||
|
|
||||||
$(foreach f,$(shell $(FIND) $(JDK_OUTPUTDIR)/sample -type f),\
|
$(foreach f,$(call CacheFind,$(JDK_OUTPUTDIR)/sample),\
|
||||||
$(eval $(call AddFileToCopy,$(JDK_OUTPUTDIR),$(JDK_IMAGE_DIR),$f,JDK_SAMPLE_TARGETS)))
|
$(eval $(call AddFileToCopy,$(JDK_OUTPUTDIR),$(JDK_IMAGE_DIR),$f,JDK_SAMPLE_TARGETS)))
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -518,7 +527,7 @@ ifndef OPENJDK
|
|||||||
$(install-file)
|
$(install-file)
|
||||||
|
|
||||||
JDK_DB_TARGETS := $(patsubst $(JDK_TOPDIR)/src/closed/share/db/%,$(IMAGES_OUTPUTDIR)/_unzip/%.unzipped,\
|
JDK_DB_TARGETS := $(patsubst $(JDK_TOPDIR)/src/closed/share/db/%,$(IMAGES_OUTPUTDIR)/_unzip/%.unzipped,\
|
||||||
$(shell $(FIND) $(JDK_TOPDIR)/src/closed/share/db -name "*.zip" ! -name "*demo*")) \
|
$(call not-containing,demo,$(wildcard $(JDK_TOPDIR)/src/closed/share/db/*.zip))) \
|
||||||
$(JDK_IMAGE_DIR)/db/README-JDK.html
|
$(JDK_IMAGE_DIR)/db/README-JDK.html
|
||||||
|
|
||||||
endif
|
endif
|
||||||
@ -526,7 +535,7 @@ endif
|
|||||||
################################################################################
|
################################################################################
|
||||||
# /include dir
|
# /include dir
|
||||||
|
|
||||||
$(foreach f,$(shell $(FIND) $(JDK_OUTPUTDIR)/include -type f),\
|
$(foreach f,$(call CacheFind,$(JDK_OUTPUTDIR)/include),\
|
||||||
$(eval $(call AddFileToCopy,$(JDK_OUTPUTDIR),$(JDK_IMAGE_DIR),$f,JDK_INCLUDE_TARGETS)))
|
$(eval $(call AddFileToCopy,$(JDK_OUTPUTDIR),$(JDK_IMAGE_DIR),$f,JDK_INCLUDE_TARGETS)))
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -625,8 +634,7 @@ $(JDK_IMAGE_DIR)/src.zip: $(IMAGES_OUTPUTDIR)/src.zip
|
|||||||
|
|
||||||
ifneq ($(POST_STRIP_CMD),)
|
ifneq ($(POST_STRIP_CMD),)
|
||||||
ifeq ($(OPENJDK_TARGET_OS), windows)
|
ifeq ($(OPENJDK_TARGET_OS), windows)
|
||||||
EXEC_LIST_BIN:=$(shell $(FIND) $(JDK_OUTPUTDIR)/bin -type f -name \*.exe \
|
EXEC_LIST_BIN:=$(filter-out %$(notdir $(MSVCR_DLL)),$(filter %.exe %.dll,$(ALL_BIN_LIST)))
|
||||||
-o -name \*.dll | $(EGREP) -v -i "$(MSVCR_DLL)")
|
|
||||||
else
|
else
|
||||||
# Find all executables in JDK_OUTPUTDIR since they exist when this makefile is parsed
|
# Find all executables in JDK_OUTPUTDIR since they exist when this makefile is parsed
|
||||||
EXEC_LIST_BIN:=$(shell $(FILE) `$(FIND) $(JDK_OUTPUTDIR)/bin -type f -name \*$(EXE_SUFFIX)` \
|
EXEC_LIST_BIN:=$(shell $(FILE) `$(FIND) $(JDK_OUTPUTDIR)/bin -type f -name \*$(EXE_SUFFIX)` \
|
||||||
|
@ -23,6 +23,11 @@
|
|||||||
# questions.
|
# questions.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Cache all finds needed for this file. Only used on windows.
|
||||||
|
$(eval $(call FillCacheFind,$(JDK_TOPDIR)/make/tools \
|
||||||
|
$(JDK_TOPDIR)/src/solaris/classes \
|
||||||
|
$(JDK_TOPDIR)/makefiles/sun))
|
||||||
|
|
||||||
# The exception handling of swing beaninfo which have the own tool directory
|
# The exception handling of swing beaninfo which have the own tool directory
|
||||||
ifeq (,$(BUILD_TOOLS))
|
ifeq (,$(BUILD_TOOLS))
|
||||||
$(eval $(call SetupJavaCompilation,BUILD_TOOLS,\
|
$(eval $(call SetupJavaCompilation,BUILD_TOOLS,\
|
||||||
|
Loading…
Reference in New Issue
Block a user