8188814: Simplify IncludeCustomExtension

Reviewed-by: dholmes
This commit is contained in:
Magnus Ihse Bursie 2017-10-05 12:41:06 +02:00
parent ecd3cd8f8c
commit 5f7dcca036
47 changed files with 52 additions and 53 deletions

View File

@ -40,7 +40,7 @@ ifeq ($(OPENJDK_BUILD_OS), windows)
endif
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , Bundles-pre.gmk))
$(eval $(call IncludeCustomExtension, Bundles-pre.gmk))
################################################################################
# BUNDLE : Name of bundle to create
# FILES : Files in BASE_DIRS to add to bundle
@ -322,7 +322,7 @@ endif
################################################################################
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , Bundles.gmk))
$(eval $(call IncludeCustomExtension, Bundles.gmk))
################################################################################

View File

@ -303,7 +303,7 @@ endif
################################################################################
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , CompileDemos.gmk))
$(eval $(call IncludeCustomExtension, CompileDemos.gmk))
all: $(TARGETS)
images: $(IMAGES_TARGETS)

View File

@ -33,7 +33,7 @@ include JavaCompilation.gmk
include SetupJavaCompilers.gmk
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , CompileJavaModules.gmk))
$(eval $(call IncludeCustomExtension, CompileJavaModules.gmk))
################################################################################
# Module specific build settings
@ -689,7 +689,7 @@ endif
################################################################################
$(eval $(call IncludeCustomExtension, , CompileJavaModules-post.gmk))
$(eval $(call IncludeCustomExtension, CompileJavaModules-post.gmk))
################################################################################

View File

@ -35,7 +35,7 @@ include SetupJavaCompilers.gmk
TARGETS :=
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , hotspot/CompileTools.gmk))
$(eval $(call IncludeCustomExtension, hotspot/CompileTools.gmk))
ifeq ($(INCLUDE_GRAAL), true)
VM_CI_SRC_DIR := $(TOPDIR)/src/jdk.internal.vm.ci/share/classes

View File

@ -32,7 +32,7 @@ include SetupJavaCompilers.gmk
################################################################################
$(eval $(call IncludeCustomExtension, , CompileTools.gmk))
$(eval $(call IncludeCustomExtension, CompileTools.gmk))
################################################################################

View File

@ -37,7 +37,7 @@ $(eval $(call ReadImportMetaData))
################################################################################
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , Docs.gmk))
$(eval $(call IncludeCustomExtension, Docs.gmk))
################################################################################
# This file generates all documentation for OpenJDK.

View File

@ -34,7 +34,7 @@ JDK_TARGETS :=
JRE_TARGETS :=
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , Images-pre.gmk))
$(eval $(call IncludeCustomExtension, Images-pre.gmk))
############################################################################
@ -426,7 +426,7 @@ $(call SetupCopyDebuginfo,JRE)
# Include custom post hook here to make it possible to augment the target lists
# before actual target prerequisites are declared.
$(eval $(call IncludeCustomExtension, , Images-post.gmk))
$(eval $(call IncludeCustomExtension, Images-post.gmk))
################################################################################

View File

@ -104,4 +104,4 @@ ALL_TARGETS += jprt_bundle
################################################################################
$(eval $(call IncludeCustomExtension, , Jprt.gmk))
$(eval $(call IncludeCustomExtension, Jprt.gmk))

View File

@ -51,7 +51,7 @@ include $(TOPDIR)/make/common/FindTests.gmk
ALL_TARGETS :=
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , Main.gmk))
$(eval $(call IncludeCustomExtension, Main.gmk))
# All modules for the current target platform.
ALL_MODULES := $(call FindAllModules)

View File

@ -80,7 +80,7 @@ TARGETS += $(BASE_RELEASE_FILE)
################################################################################
$(eval $(call IncludeCustomExtension, , ReleaseFile.gmk))
$(eval $(call IncludeCustomExtension, ReleaseFile.gmk))
################################################################################

View File

@ -36,7 +36,7 @@ include FindTests.gmk
JTREG_TEST_TOPDIRS := $(TOPDIR) $(JTREG_TESTROOTS)
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , RunTests.gmk))
$(eval $(call IncludeCustomExtension, RunTests.gmk))
TEST_RESULTS_DIR := $(OUTPUTDIR)/test-results
TEST_SUPPORT_DIR := $(OUTPUTDIR)/test-support

View File

@ -28,7 +28,7 @@ default: all
include $(SPEC)
include MakeBase.gmk
$(eval $(call IncludeCustomExtension, , SourceRevision.gmk))
$(eval $(call IncludeCustomExtension, SourceRevision.gmk))
################################################################################
# Keep track of what source revision is used to create the build, by creating

View File

@ -29,7 +29,7 @@ _TOOLS_GMK := 1
include JavaCompilation.gmk
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , Tools.gmk))
$(eval $(call IncludeCustomExtension, Tools.gmk))
################################################################################
# To avoid reevaluating the compilation setup for the tools each time this file

View File

@ -63,7 +63,7 @@ TARGETS += $(testing)
################################################################################
$(eval $(call IncludeCustomExtension, , UpdateBuildDocs.gmk))
$(eval $(call IncludeCustomExtension, UpdateBuildDocs.gmk))
################################################################################

View File

@ -33,7 +33,7 @@ include Modules.gmk
SRC_ZIP_WORK_DIR := $(SUPPORT_OUTPUTDIR)/src
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , ZipSource.gmk))
$(eval $(call IncludeCustomExtension, ZipSource.gmk))
################################################################################
# Create the directory structure for src.zip using symlinks.

View File

@ -847,9 +847,8 @@ CONFIGURE_CMD := $(TOPDIR)/configure
# This macro is called to allow inclusion of closed source counterparts.
# Unless overridden in closed sources, it expands to nothing.
# Usage: This function is called in an open makefile, with the following
# arguments:
# $1 the name of the repo, or empty if the top-level repo.
# $2 the name of the makefile
# argument:
# $1 the name of the makefile
define IncludeCustomExtension
endef

View File

@ -27,7 +27,7 @@ ifndef _FIND_TESTS_GMK
_FIND_TESTS_GMK := 1
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , common/FindTests.gmk))
$(eval $(call IncludeCustomExtension, common/FindTests.gmk))
# JTREG_TESTROOTS might have been set by a custom extension
JTREG_TESTROOTS += $(addprefix $(TOPDIR)/test/, hotspot/jtreg jdk langtools nashorn jaxp)

View File

@ -991,6 +991,6 @@ ColonList = \
################################################################################
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , common/MakeBase.gmk))
$(eval $(call IncludeCustomExtension, common/MakeBase.gmk))
endif # _MAKEBASE_GMK

View File

@ -43,7 +43,7 @@ AGGREGATOR_MODULES :=
DOCS_MODULES :=
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , common/Modules.gmk))
$(eval $(call IncludeCustomExtension, common/Modules.gmk))
BOOT_MODULES += \
java.base \

View File

@ -25,7 +25,7 @@
include CopyCommon.gmk
$(eval $(call IncludeCustomExtension, , copy/Copy-java.base.gmk))
$(eval $(call IncludeCustomExtension, copy/Copy-java.base.gmk))
################################################################################
#

View File

@ -25,7 +25,7 @@
include CopyCommon.gmk
$(eval $(call IncludeCustomExtension, , copy/Copy-java.desktop.gmk))
$(eval $(call IncludeCustomExtension, copy/Copy-java.desktop.gmk))
################################################################################

View File

@ -26,7 +26,7 @@
include GendataCommon.gmk
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , gendata/Gendata-java.base.gmk))
$(eval $(call IncludeCustomExtension, gendata/Gendata-java.base.gmk))
include GendataBreakIterator.gmk

View File

@ -23,7 +23,7 @@
# questions.
#
$(eval $(call IncludeCustomExtension, , gendata/GendataBlacklistedCerts.gmk))
$(eval $(call IncludeCustomExtension, gendata/GendataBlacklistedCerts.gmk))
GENDATA_BLACKLISTED_CERTS_SRC += $(TOPDIR)/make/data/blacklistedcertsconverter/blacklisted.certs.pem
GENDATA_BLACKLISTED_CERTS := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE)/security/blacklisted.certs

View File

@ -23,7 +23,7 @@
# questions.
#
$(eval $(call IncludeCustomExtension, , gendata/GendataFontConfig.gmk))
$(eval $(call IncludeCustomExtension, gendata/GendataFontConfig.gmk))
GENDATA_FONT_CONFIG_DST := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE)

View File

@ -26,7 +26,7 @@
include GensrcCommonJdk.gmk
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , gensrc/Gensrc-java.desktop.gmk))
$(eval $(call IncludeCustomExtension, gensrc/Gensrc-java.desktop.gmk))
ifneq ($(OPENJDK_TARGET_OS), windows)
include GensrcIcons.gmk

View File

@ -28,7 +28,7 @@ default: all
include $(SPEC)
include MakeBase.gmk
$(eval $(call IncludeCustomExtension, , gensrc/Gensrc-jdk.internal.vm.compiler.gmk))
$(eval $(call IncludeCustomExtension, gensrc/Gensrc-jdk.internal.vm.compiler.gmk))
GENSRC_DIR := $(SUPPORT_OUTPUTDIR)/gensrc/$(MODULE)
SRC_DIR := $(TOPDIR)/src/$(MODULE)/share/classes

View File

@ -26,7 +26,7 @@
include GensrcCommonJdk.gmk
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , gensrc/Gensrc-jdk.localedata.gmk))
$(eval $(call IncludeCustomExtension, gensrc/Gensrc-jdk.localedata.gmk))
include GensrcLocaleData.gmk
include GensrcCLDR.gmk

View File

@ -23,7 +23,7 @@
# questions.
#
$(eval $(call IncludeCustomExtension, , gensrc/GensrcIcons.gmk))
$(eval $(call IncludeCustomExtension, gensrc/GensrcIcons.gmk))
GENSRC_AWT_ICONS :=
GENSRC_AWT_ICONS_SRC :=

View File

@ -39,7 +39,7 @@ include gensrc/GensrcAdlc.gmk
include gensrc/GensrcDtrace.gmk
include gensrc/GensrcJvmti.gmk
$(eval $(call IncludeCustomExtension, , hotspot/gensrc/GenerateSources.gmk))
$(eval $(call IncludeCustomExtension, hotspot/gensrc/GenerateSources.gmk))
# While technically the rules below are "gendata" which can be done in parallel
# with native compilation, let's keep it here for simplicity.

View File

@ -23,7 +23,7 @@
# questions.
#
$(eval $(call IncludeCustomExtension, , hotspot/gensrc/GensrcAdlc.gmk))
$(eval $(call IncludeCustomExtension, hotspot/gensrc/GensrcAdlc.gmk))
ifeq ($(call check-jvm-feature, compiler2), true)

View File

@ -23,7 +23,7 @@
# questions.
#
$(eval $(call IncludeCustomExtension, , hotspot/gensrc/GensrcJvmti.gmk))
$(eval $(call IncludeCustomExtension, hotspot/gensrc/GensrcJvmti.gmk))
################################################################################
# Build tools needed for the JVMTI source code generation

View File

@ -23,7 +23,7 @@
# questions.
#
$(eval $(call IncludeCustomExtension, , hotspot/lib/CompileGtest.gmk))
$(eval $(call IncludeCustomExtension, hotspot/lib/CompileGtest.gmk))
GTEST_TEST_SRC += $(TOPDIR)/test/hotspot/gtest
GTEST_LAUNCHER_SRC := $(TOPDIR)/test/hotspot/gtest/gtestLauncher.cpp

View File

@ -28,7 +28,7 @@
include lib/JvmFeatures.gmk
include lib/JvmOverrideFiles.gmk
$(eval $(call IncludeCustomExtension, , hotspot/lib/CompileJvm.gmk))
$(eval $(call IncludeCustomExtension, hotspot/lib/CompileJvm.gmk))
################################################################################
# Setup compilation of the main Hotspot native library (libjvm).

View File

@ -23,7 +23,7 @@
# questions.
#
$(eval $(call IncludeCustomExtension, , hotspot/lib/JvmFeatures.gmk))
$(eval $(call IncludeCustomExtension, hotspot/lib/JvmFeatures.gmk))
################################################################################
# Setup CFLAGS and EXCLUDES for the libjvm compilation, depending on which

View File

@ -23,7 +23,7 @@
# questions.
#
$(eval $(call IncludeCustomExtension, , hotspot/lib/JvmMapfile.gmk))
$(eval $(call IncludeCustomExtension, hotspot/lib/JvmMapfile.gmk))
################################################################################
# Combine a list of static symbols

View File

@ -23,7 +23,7 @@
# questions.
#
$(eval $(call IncludeCustomExtension, , hotspot/lib/JvmOverrideFiles.gmk))
$(eval $(call IncludeCustomExtension, hotspot/lib/JvmOverrideFiles.gmk))
################################################################################
# This file contains explicit overrides of CFLAGS and/or precompiled header

View File

@ -25,7 +25,7 @@
include LauncherCommon.gmk
$(eval $(call IncludeCustomExtension, , launcher/Launcher-java.base.gmk))
$(eval $(call IncludeCustomExtension, launcher/Launcher-java.base.gmk))
JAVA_RC_FLAGS += -I $(TOPDIR)/src/java.base/windows/native/common
JAVA_RC_FLAGS += -I $(TOPDIR)/src/java.base/windows/native/launcher/icons

View File

@ -26,7 +26,7 @@
include LauncherCommon.gmk
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , launcher/Launcher-java.desktop.gmk))
$(eval $(call IncludeCustomExtension, launcher/Launcher-java.desktop.gmk))
ifeq ($(ENABLE_HEADLESS_ONLY), false)
$(eval $(call SetupBuildLauncher, appletviewer, \

View File

@ -23,7 +23,7 @@
# questions.
#
$(eval $(call IncludeCustomExtension, , lib/Awt2dLibraries-pre.gmk))
$(eval $(call IncludeCustomExtension, lib/Awt2dLibraries-pre.gmk))
WIN_AWT_LIB := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libawt/awt.lib
@ -1070,4 +1070,4 @@ endif
################################################################################
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , lib/Awt2dLibraries.gmk))
$(eval $(call IncludeCustomExtension, lib/Awt2dLibraries.gmk))

View File

@ -26,7 +26,7 @@
WIN_VERIFY_LIB := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libverify/verify.lib
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , lib/CoreLibraries.gmk))
$(eval $(call IncludeCustomExtension, lib/CoreLibraries.gmk))
##########################################################################################

View File

@ -26,7 +26,7 @@
include LibCommon.gmk
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , lib/Lib-java.instrument.gmk))
$(eval $(call IncludeCustomExtension, lib/Lib-java.instrument.gmk))
################################################################################

View File

@ -26,7 +26,7 @@
include LibCommon.gmk
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , lib/Lib-java.management.gmk))
$(eval $(call IncludeCustomExtension, lib/Lib-java.management.gmk))
################################################################################

View File

@ -25,7 +25,7 @@
include NativeCompilation.gmk
$(eval $(call IncludeCustomExtension, , hotspot/lib/Lib-jdk.hotspot.agent.gmk))
$(eval $(call IncludeCustomExtension, hotspot/lib/Lib-jdk.hotspot.agent.gmk))
################################################################################

View File

@ -26,7 +26,7 @@
include LibCommon.gmk
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , lib/Lib-jdk.management.gmk))
$(eval $(call IncludeCustomExtension, lib/Lib-jdk.management.gmk))
################################################################################

View File

@ -26,7 +26,7 @@
include NativeCompilation.gmk
# Hook to include the corresponding custom file, if present.
$(eval $(call IncludeCustomExtension, , lib/LibCommon.gmk))
$(eval $(call IncludeCustomExtension, lib/LibCommon.gmk))
################################################################################

View File

@ -35,7 +35,7 @@ include $(SPEC)
include MakeBase.gmk
include TestFilesCompilation.gmk
$(eval $(call IncludeCustomExtension, , hotspot/test/JtregNative.gmk))
$(eval $(call IncludeCustomExtension, hotspot/test/JtregNative.gmk))
################################################################################
# Targets for building the native tests themselves.

View File

@ -35,7 +35,7 @@ include $(SPEC)
include MakeBase.gmk
include TestFilesCompilation.gmk
$(eval $(call IncludeCustomExtension, , test/JtregNative.gmk))
$(eval $(call IncludeCustomExtension, test/JtregNative.gmk))
################################################################################
# Targets for building the native tests themselves.