2014-08-17 14:51:37 +00:00
|
|
|
#
|
2020-01-21 16:02:10 +00:00
|
|
|
# Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
|
2014-08-17 14:51:37 +00:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# This code is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License version 2 only, as
|
|
|
|
# published by the Free Software Foundation. Oracle designates this
|
|
|
|
# particular file as subject to the "Classpath" exception as provided
|
|
|
|
# by Oracle in the LICENSE file that accompanied this code.
|
|
|
|
#
|
|
|
|
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
# accompanied this code).
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License version
|
|
|
|
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
#
|
|
|
|
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
# or visit www.oracle.com if you need additional information or have any
|
|
|
|
# questions.
|
|
|
|
#
|
|
|
|
|
|
|
|
# This must be the first rule
|
|
|
|
default: all
|
|
|
|
|
|
|
|
include $(SPEC)
|
|
|
|
include MakeBase.gmk
|
2014-08-21 10:22:42 +00:00
|
|
|
include Modules.gmk
|
2014-08-17 14:51:37 +00:00
|
|
|
include JavaCompilation.gmk
|
|
|
|
|
|
|
|
# Hook to include the corresponding custom file, if present.
|
2017-10-05 10:41:06 +00:00
|
|
|
$(eval $(call IncludeCustomExtension, CompileJavaModules.gmk))
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Module specific build settings
|
|
|
|
|
2020-04-28 17:26:47 +00:00
|
|
|
java.base_DOCLINT += -Xdoclint:all/protected,-reference,-accessibility \
|
|
|
|
'-Xdoclint/package:java.*,javax.*'
|
2020-04-29 06:49:17 +00:00
|
|
|
java.base_JAVAC_FLAGS += -XDstringConcat=inline
|
2020-04-28 17:26:47 +00:00
|
|
|
java.base_COPY += .icu .dat .spp .nrm content-types.properties \
|
|
|
|
hijrah-config-Hijrah-umalqura_islamic-umalqura.properties
|
2017-09-06 14:05:49 +00:00
|
|
|
java.base_CLEAN += intrinsic.properties
|
2014-08-17 14:51:37 +00:00
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
java.base_EXCLUDE_FILES += \
|
2017-09-12 17:03:56 +00:00
|
|
|
$(TOPDIR)/src/java.base/share/classes/jdk/internal/module/ModuleLoaderMap.java
|
2016-03-17 19:03:53 +00:00
|
|
|
|
2014-08-17 14:51:37 +00:00
|
|
|
java.base_EXCLUDES += java/lang/doc-files
|
|
|
|
|
|
|
|
# Exclude BreakIterator classes that are just used in compile process to generate
|
|
|
|
# data files and shouldn't go in the product
|
|
|
|
java.base_EXCLUDE_FILES += sun/text/resources/BreakIteratorRules.java
|
|
|
|
|
8244224: Implementation of JEP 381: Remove the Solaris and SPARC Ports
Reviewed-by: alanb, bchristi, dcubed, dfuchs, eosterlund, erikj, glaubitz, ihse, iignatyev, jjiang, kbarrett, ksrini, kvn, naoto, prr, rriggs, serb, sspitsyn, stefank, tschatzl, valeriep, weijun, weijun
2020-05-21 00:33:37 +00:00
|
|
|
ifeq ($(call isTargetOs, macosx aix), false)
|
2014-08-17 14:51:37 +00:00
|
|
|
java.base_EXCLUDE_FILES += sun/nio/fs/PollingWatchService.java
|
|
|
|
endif
|
|
|
|
|
2019-02-07 11:35:45 +00:00
|
|
|
ifeq ($(call isTargetOs, windows), true)
|
2014-08-17 14:51:37 +00:00
|
|
|
java.base_EXCLUDE_FILES += \
|
|
|
|
sun/nio/ch/SimpleAsynchronousFileChannelImpl.java \
|
|
|
|
#
|
|
|
|
endif
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-28 17:26:47 +00:00
|
|
|
java.compiler_DOCLINT += -Xdoclint:all/protected \
|
|
|
|
'-Xdoclint/package:java.*,javax.*'
|
2015-03-13 20:41:29 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-28 17:26:47 +00:00
|
|
|
java.datatransfer_DOCLINT += -Xdoclint:all/protected,-reference \
|
|
|
|
'-Xdoclint/package:java.*,javax.*'
|
2017-09-06 14:05:49 +00:00
|
|
|
java.datatransfer_COPY += flavormap.properties
|
2015-01-16 15:45:26 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-28 17:26:47 +00:00
|
|
|
java.desktop_DOCLINT += -Xdoclint:all/protected,-reference \
|
|
|
|
'-Xdoclint/package:java.*,javax.*'
|
2017-09-06 14:05:49 +00:00
|
|
|
java.desktop_COPY += .gif .png .wav .txt .xml .css .pf
|
|
|
|
java.desktop_CLEAN += iio-plugin.properties cursors.properties
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
java.desktop_EXCLUDES += \
|
|
|
|
java/awt/doc-files \
|
|
|
|
javax/swing/doc-files \
|
|
|
|
javax/swing/text/doc-files \
|
|
|
|
javax/swing/plaf/synth/doc-files \
|
|
|
|
javax/swing/undo/doc-files \
|
|
|
|
sun/awt/X11/doc-files \
|
|
|
|
#
|
|
|
|
|
|
|
|
java.desktop_EXCLUDE_FILES += \
|
|
|
|
javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
|
|
|
|
javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \
|
|
|
|
javax/swing/plaf/nimbus/ScrollBarPainter.java \
|
|
|
|
javax/swing/plaf/nimbus/SliderPainter.java \
|
|
|
|
javax/swing/plaf/nimbus/SpinnerPainter.java \
|
|
|
|
javax/swing/plaf/nimbus/SplitPanePainter.java \
|
|
|
|
javax/swing/plaf/nimbus/TabbedPanePainter.java \
|
|
|
|
sun/awt/resources/security-icon-bw16.png \
|
|
|
|
sun/awt/resources/security-icon-bw24.png \
|
|
|
|
sun/awt/resources/security-icon-bw32.png \
|
|
|
|
sun/awt/resources/security-icon-bw48.png \
|
|
|
|
sun/awt/resources/security-icon-interim16.png \
|
|
|
|
sun/awt/resources/security-icon-interim24.png \
|
|
|
|
sun/awt/resources/security-icon-interim32.png \
|
|
|
|
sun/awt/resources/security-icon-interim48.png \
|
|
|
|
sun/awt/resources/security-icon-yellow16.png \
|
|
|
|
sun/awt/resources/security-icon-yellow24.png \
|
|
|
|
sun/awt/resources/security-icon-yellow32.png \
|
|
|
|
sun/awt/resources/security-icon-yellow48.png \
|
|
|
|
sun/awt/X11/java-icon16.png \
|
|
|
|
sun/awt/X11/java-icon24.png \
|
|
|
|
sun/awt/X11/java-icon32.png \
|
|
|
|
sun/awt/X11/java-icon48.png \
|
|
|
|
.template \
|
|
|
|
#
|
|
|
|
|
2019-02-07 11:35:45 +00:00
|
|
|
ifeq ($(call isTargetOs, macosx), true)
|
2014-08-17 14:51:37 +00:00
|
|
|
# exclude all X11 on Mac.
|
2015-03-17 19:14:58 +00:00
|
|
|
java.desktop_EXCLUDES += \
|
|
|
|
sun/awt/X11 \
|
|
|
|
sun/java2d/x11 \
|
|
|
|
sun/java2d/jules \
|
|
|
|
sun/java2d/xr \
|
|
|
|
com/sun/java/swing/plaf/gtk \
|
|
|
|
#
|
2014-08-17 14:51:37 +00:00
|
|
|
java.desktop_EXCLUDE_FILES += \
|
2017-09-12 17:03:56 +00:00
|
|
|
$(wildcard $(TOPDIR)/src/java.desktop/unix/classes/sun/java2d/*.java) \
|
|
|
|
$(wildcard $(TOPDIR)/src/java.desktop/unix/classes/sun/java2d/opengl/*.java) \
|
|
|
|
$(wildcard $(TOPDIR)/src/java.desktop/unix/classes/sun/awt/*.java) \
|
|
|
|
$(wildcard $(TOPDIR)/src/java.desktop/unix/classes/sun/font/*.java) \
|
2014-08-17 14:51:37 +00:00
|
|
|
#
|
|
|
|
else
|
|
|
|
# TBD: figure out how to eliminate this long list
|
|
|
|
java.desktop_EXCLUDE_FILES += \
|
|
|
|
sun/awt/X11/ScreenFormat.java \
|
|
|
|
sun/awt/X11/XArc.java \
|
|
|
|
sun/awt/X11/XChar2b.java \
|
|
|
|
sun/awt/X11/XCharStruct.java \
|
|
|
|
sun/awt/X11/XClassHint.java \
|
|
|
|
sun/awt/X11/XComposeStatus.java \
|
|
|
|
sun/awt/X11/XExtCodes.java \
|
|
|
|
sun/awt/X11/XFontProp.java \
|
|
|
|
sun/awt/X11/XFontSetExtents.java \
|
|
|
|
sun/awt/X11/XFontStruct.java \
|
|
|
|
sun/awt/X11/XGCValues.java \
|
|
|
|
sun/awt/X11/XHostAddress.java \
|
|
|
|
sun/awt/X11/XIMCallback.java \
|
|
|
|
sun/awt/X11/XIMHotKeyTrigger.java \
|
|
|
|
sun/awt/X11/XIMHotKeyTriggers.java \
|
|
|
|
sun/awt/X11/XIMPreeditCaretCallbackStruct.java \
|
|
|
|
sun/awt/X11/XIMPreeditDrawCallbackStruct.java \
|
|
|
|
sun/awt/X11/XIMPreeditStateNotifyCallbackStruct.java \
|
|
|
|
sun/awt/X11/XIMStatusDrawCallbackStruct.java \
|
|
|
|
sun/awt/X11/XIMStringConversionCallbackStruct.java \
|
|
|
|
sun/awt/X11/XIMStringConversionText.java \
|
|
|
|
sun/awt/X11/XIMStyles.java \
|
|
|
|
sun/awt/X11/XIMText.java \
|
|
|
|
sun/awt/X11/XIMValuesList.java \
|
|
|
|
sun/awt/X11/XImage.java \
|
|
|
|
sun/awt/X11/XKeyboardControl.java \
|
|
|
|
sun/awt/X11/XKeyboardState.java \
|
|
|
|
sun/awt/X11/XOMCharSetList.java \
|
|
|
|
sun/awt/X11/XOMFontInfo.java \
|
|
|
|
sun/awt/X11/XOMOrientation.java \
|
|
|
|
sun/awt/X11/XPoint.java \
|
|
|
|
sun/awt/X11/XRectangle.java \
|
|
|
|
sun/awt/X11/XSegment.java \
|
|
|
|
sun/awt/X11/XStandardColormap.java \
|
|
|
|
sun/awt/X11/XTextItem.java \
|
|
|
|
sun/awt/X11/XTextItem16.java \
|
|
|
|
sun/awt/X11/XTextProperty.java \
|
|
|
|
sun/awt/X11/XTimeCoord.java \
|
|
|
|
sun/awt/X11/XWindowChanges.java \
|
|
|
|
sun/awt/X11/XdbeSwapInfo.java \
|
|
|
|
sun/awt/X11/XmbTextItem.java \
|
|
|
|
sun/awt/X11/XwcTextItem.java
|
|
|
|
endif
|
|
|
|
|
2019-02-07 11:35:45 +00:00
|
|
|
ifeq ($(call isTargetOs, windows), true)
|
2014-08-17 14:51:37 +00:00
|
|
|
java.desktop_EXCLUDES += com/sun/java/swing/plaf/gtk
|
|
|
|
endif
|
|
|
|
|
2019-02-07 11:35:45 +00:00
|
|
|
ifeq ($(call isTargetOs, windows macosx), false)
|
2014-08-17 14:51:37 +00:00
|
|
|
java.desktop_EXCLUDE_FILES += sun/awt/AWTCharset.java
|
|
|
|
endif
|
|
|
|
|
|
|
|
# These files do not appear in the build result of the old build. This
|
|
|
|
# is because they are generated sources, but the AUTO_JAVA_FILES won't
|
|
|
|
# pick them up since they aren't generated when the source dirs are
|
|
|
|
# searched and they aren't referenced by any other classes so they won't
|
|
|
|
# be picked up by implicit compilation. On a rebuild, they are picked up
|
|
|
|
# and compiled. Exclude them here to produce the same rt.jar as the old
|
|
|
|
# build does when building just once.
|
|
|
|
java.desktop_EXCLUDE_FILES += \
|
|
|
|
javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
|
|
|
|
javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \
|
|
|
|
javax/swing/plaf/nimbus/ScrollBarPainter.java \
|
|
|
|
javax/swing/plaf/nimbus/SliderPainter.java \
|
|
|
|
javax/swing/plaf/nimbus/SpinnerPainter.java \
|
|
|
|
javax/swing/plaf/nimbus/SplitPanePainter.java \
|
|
|
|
javax/swing/plaf/nimbus/TabbedPanePainter.java \
|
|
|
|
#
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-28 17:26:47 +00:00
|
|
|
java.scripting_DOCLINT += -Xdoclint:all/protected \
|
|
|
|
'-Xdoclint/package:java.*,javax.*'
|
2017-09-06 14:05:49 +00:00
|
|
|
java.scripting_COPY += .js
|
|
|
|
java.scripting_CLEAN += .properties
|
2014-12-03 14:20:21 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-28 17:26:47 +00:00
|
|
|
java.instrument_DOCLINT += -Xdoclint:all/protected,-accessibility \
|
|
|
|
'-Xdoclint/package:java.*,javax.*'
|
2015-04-16 19:08:16 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-28 17:26:47 +00:00
|
|
|
java.logging_DOCLINT += -Xdoclint:all/protected,-reference,-accessibility \
|
|
|
|
'-Xdoclint/package:java.*,javax.*'
|
2015-04-16 19:08:16 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-28 17:26:47 +00:00
|
|
|
java.management_DOCLINT += -Xdoclint:all/protected,-reference,-accessibility \
|
|
|
|
'-Xdoclint/package:java.*,javax.*'
|
2015-04-16 19:08:16 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-28 17:26:47 +00:00
|
|
|
java.management.rmi_DOCLINT += -Xdoclint:all/protected \
|
|
|
|
'-Xdoclint/package:javax.*'
|
2017-02-02 16:50:38 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-28 17:26:47 +00:00
|
|
|
java.prefs_DOCLINT += -Xdoclint:all/protected \
|
|
|
|
'-Xdoclint/package:java.*,javax.*'
|
2015-04-16 19:08:16 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-28 17:26:47 +00:00
|
|
|
java.transaction.xa_DOCLINT += -Xdoclint:all/protected \
|
|
|
|
'-Xdoclint/package:javax.*'
|
2018-03-04 22:05:29 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-28 17:26:47 +00:00
|
|
|
java.sql_DOCLINT += -Xdoclint:all/protected \
|
|
|
|
'-Xdoclint/package:java.*,javax.*'
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-28 17:26:47 +00:00
|
|
|
java.sql.rowset_DOCLINT += -Xdoclint:all/protected,-accessibility \
|
|
|
|
'-Xdoclint/package:java.*,javax.*'
|
2017-09-06 14:05:49 +00:00
|
|
|
java.sql.rowset_CLEAN_FILES += $(wildcard \
|
2017-09-12 17:03:56 +00:00
|
|
|
$(TOPDIR)/src/java.sql.rowset/share/classes/com/sun/rowset/*.properties \
|
|
|
|
$(TOPDIR)/src/java.sql.rowset/share/classes/javax/sql/rowset/*.properties)
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-28 17:26:47 +00:00
|
|
|
java.rmi_DOCLINT += -Xdoclint:all/protected \
|
|
|
|
'-Xdoclint/package:java.*,javax.*'
|
2017-09-06 14:05:49 +00:00
|
|
|
java.rmi_CLEAN_FILES += $(wildcard \
|
2017-09-12 17:03:56 +00:00
|
|
|
$(TOPDIR)/src/java.rmi/share/classes/sun/rmi/registry/resources/*.properties \
|
|
|
|
$(TOPDIR)/src/java.rmi/share/classes/sun/rmi/server/resources/*.properties)
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-28 17:26:47 +00:00
|
|
|
java.xml_DOCLINT += -Xdoclint:all/protected,-accessibility \
|
2017-12-01 18:02:25 +00:00
|
|
|
'-Xdoclint/package:$(call CommaList, javax.xml.catalog javax.xml.datatype \
|
|
|
|
javax.xml.transform javax.xml.validation javax.xml.xpath)'
|
2017-09-06 14:05:49 +00:00
|
|
|
java.xml_CLEAN += .properties
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-28 17:26:47 +00:00
|
|
|
java.naming_DOCLINT += -Xdoclint:all/protected,-accessibility \
|
|
|
|
'-Xdoclint/package:java.*,javax.*'
|
2017-09-06 14:05:49 +00:00
|
|
|
java.naming_CLEAN += jndiprovider.properties
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-28 17:26:47 +00:00
|
|
|
java.security.jgss_DOCLINT += -Xdoclint:all/protected \
|
|
|
|
'-Xdoclint/package:java.*,javax.*'
|
2015-04-16 19:08:16 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-28 17:26:47 +00:00
|
|
|
java.smartcardio_DOCLINT += -Xdoclint:all/protected,-accessibility \
|
|
|
|
'-Xdoclint/package:java.*,javax.*'
|
2015-04-16 19:08:16 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-28 17:26:47 +00:00
|
|
|
java.xml.crypto_DOCLINT += -Xdoclint:all/protected \
|
|
|
|
'-Xdoclint/package:java.*,javax.*'
|
2017-09-06 14:05:49 +00:00
|
|
|
java.xml.crypto_COPY += .dtd .xml
|
|
|
|
java.xml.crypto_CLEAN += .properties
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2017-09-06 14:05:49 +00:00
|
|
|
jdk.charsets_COPY += .dat
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2016-10-06 12:03:14 +00:00
|
|
|
################################################################################
|
|
|
|
|
2020-04-28 17:26:47 +00:00
|
|
|
jdk.compiler_DOCLINT += -Xdoclint:all/protected \
|
|
|
|
'-Xdoclint/package:-com.sun.tools.*,-jdk.internal.*,sun.tools.serialver.resources.*'
|
2020-04-29 06:49:17 +00:00
|
|
|
jdk.compiler_JAVAC_FLAGS += -XDstringConcat=inline
|
2017-09-06 14:05:49 +00:00
|
|
|
jdk.compiler_CLEAN_FILES += $(wildcard \
|
2017-09-12 17:03:56 +00:00
|
|
|
$(patsubst %, $(TOPDIR)/src/jdk.compiler/share/classes/%/*.properties, \
|
2014-12-03 14:20:21 +00:00
|
|
|
sun/tools/serialver/resources))
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-21 11:55:23 +00:00
|
|
|
jdk.hotspot.agent_DISABLED_WARNINGS += rawtypes serial cast static overrides \
|
|
|
|
fallthrough
|
2020-05-29 00:12:14 +00:00
|
|
|
jdk.hotspot.agent_COPY += .gif .png .properties
|
2015-11-24 11:18:24 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2017-09-06 14:05:49 +00:00
|
|
|
jdk.editpad_COPY += .properties
|
2016-11-02 23:21:36 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2017-09-06 14:05:49 +00:00
|
|
|
jdk.jshell_COPY += .jsh .properties
|
2017-01-03 02:27:55 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2018-12-11 10:29:28 +00:00
|
|
|
jdk.internal.le_COPY += .properties .caps .txt
|
2015-07-07 11:17:52 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2018-06-06 13:36:29 +00:00
|
|
|
jdk.internal.opt_COPY += .properties
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2017-09-06 14:05:49 +00:00
|
|
|
jdk.jcmd_COPY += _options
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2017-09-06 14:05:49 +00:00
|
|
|
jdk.dynalink_CLEAN += .properties
|
2015-11-24 09:22:14 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-12-17 18:34:27 +00:00
|
|
|
jdk.javadoc_COPY += .xml .css .js .js.template .png .txt
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-08-18 01:58:20 +00:00
|
|
|
jdk.jartool_DISABLED_WARNINGS += missing-explicit-ctor
|
2020-04-29 06:49:17 +00:00
|
|
|
jdk.jartool_JAVAC_FLAGS += -XDstringConcat=inline
|
2017-01-13 06:55:33 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-08-18 01:58:20 +00:00
|
|
|
jdk.httpserver_DISABLED_WARNINGS += missing-explicit-ctor
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
jdk.unsupported.desktop_DISABLED_WARNINGS += missing-explicit-ctor
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2014-08-17 14:51:37 +00:00
|
|
|
# No SCTP implementation on Mac OS X or AIX. These classes should be excluded.
|
|
|
|
SCTP_IMPL_CLASSES = \
|
2017-09-12 17:03:56 +00:00
|
|
|
$(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationChange.java \
|
|
|
|
$(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationImpl.java \
|
|
|
|
$(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/PeerAddrChange.java \
|
|
|
|
$(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/ResultContainer.java \
|
|
|
|
$(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpChannelImpl.java \
|
|
|
|
$(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpMultiChannelImpl.java \
|
|
|
|
$(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpNet.java \
|
|
|
|
$(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpNotification.java \
|
|
|
|
$(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpServerChannelImpl.java \
|
|
|
|
$(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SendFailed.java \
|
|
|
|
$(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/Shutdown.java
|
2014-08-17 14:51:37 +00:00
|
|
|
|
2019-02-07 11:35:45 +00:00
|
|
|
ifeq ($(call isTargetOs, macosx), true)
|
2014-11-10 14:58:12 +00:00
|
|
|
jdk.sctp_EXCLUDE_FILES += $(SCTP_IMPL_CLASSES)
|
2014-08-17 14:51:37 +00:00
|
|
|
endif
|
|
|
|
|
2019-02-07 11:35:45 +00:00
|
|
|
ifeq ($(call isTargetOs, aix), true)
|
2014-11-10 14:58:12 +00:00
|
|
|
jdk.sctp_EXCLUDE_FILES += $(SCTP_IMPL_CLASSES)
|
2014-08-17 14:51:37 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-11-04 20:27:11 +00:00
|
|
|
jdk.jpackage_COPY += .gif .png .txt .spec .script .prerm .preinst \
|
2020-04-28 17:26:47 +00:00
|
|
|
.postrm .postinst .list .sh .desktop .copyright .control .plist .template \
|
2020-05-14 13:58:59 +00:00
|
|
|
.icns .scpt .wxs .wxl .wxi .ico .bmp .tiff
|
2019-12-05 16:25:33 +00:00
|
|
|
|
2020-11-04 20:27:11 +00:00
|
|
|
jdk.jpackage_CLEAN += .properties
|
2019-12-05 16:25:33 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2017-09-06 14:05:49 +00:00
|
|
|
jdk.jconsole_COPY += .gif .png
|
2014-08-17 14:51:37 +00:00
|
|
|
|
2017-09-06 14:05:49 +00:00
|
|
|
jdk.jconsole_CLEAN_FILES += $(wildcard \
|
2017-09-12 17:03:56 +00:00
|
|
|
$(TOPDIR)/src/jdk.jconsole/share/classes/sun/tools/jconsole/resources/*.properties)
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2017-09-06 14:05:49 +00:00
|
|
|
jdk.jdeps_COPY += .txt
|
2016-07-13 21:42:09 +00:00
|
|
|
|
2017-09-06 14:05:49 +00:00
|
|
|
jdk.jdeps_CLEAN_FILES += $(wildcard \
|
2017-09-12 17:03:56 +00:00
|
|
|
$(TOPDIR)/src/jdk.jdeps/share/classes/com/sun/tools/jdeps/resources/*.properties \
|
|
|
|
$(TOPDIR)/src/jdk.jdeps/share/classes/com/sun/tools/javap/resources/*.properties)
|
2015-05-27 20:25:04 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2014-11-10 14:58:12 +00:00
|
|
|
jdk.jdi_EXCLUDES += \
|
2014-08-17 14:51:37 +00:00
|
|
|
com/sun/tools/example/debug/bdi \
|
|
|
|
com/sun/tools/example/debug/event \
|
|
|
|
com/sun/tools/example/debug/gui \
|
|
|
|
com/sun/jdi/doc-files \
|
|
|
|
#
|
|
|
|
|
|
|
|
jdk.jdi_EXCLUDE_FILES += jdi-overview.html
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2017-09-06 14:05:49 +00:00
|
|
|
jdk.dev_CLEAN_FILES += $(wildcard \
|
2017-09-12 17:03:56 +00:00
|
|
|
$(patsubst %, $(TOPDIR)/src/jdk.dev/share/classes/%/*.properties, \
|
2014-08-17 14:51:37 +00:00
|
|
|
com/sun/tools/script/shell))
|
|
|
|
|
2017-09-06 14:05:49 +00:00
|
|
|
jdk.dev_COPY += .js oqlhelp.html .txt
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2017-09-06 14:05:49 +00:00
|
|
|
jdk.internal.jvmstat_COPY += aliasmap
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
2016-10-06 12:03:14 +00:00
|
|
|
|
2016-12-11 20:09:13 +00:00
|
|
|
# -parameters provides method's parameters information in class file,
|
|
|
|
# JVMCI compilers make use of that information for various sanity checks.
|
|
|
|
# Don't use Indy strings concatenation to have good JVMCI startup performance.
|
2017-04-28 06:06:33 +00:00
|
|
|
# The exports are needed since JVMCI is dynamically exported (see
|
|
|
|
# jdk.vm.ci.services.internal.ReflectionAccessJDK::openJVMCITo).
|
2016-12-11 20:09:13 +00:00
|
|
|
|
2020-04-29 06:49:17 +00:00
|
|
|
jdk.internal.vm.ci_JAVAC_FLAGS += -parameters -XDstringConcat=inline
|
2016-12-11 20:09:13 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-29 06:49:17 +00:00
|
|
|
jdk.internal.vm.compiler_JAVAC_FLAGS += -parameters -XDstringConcat=inline \
|
2017-04-28 06:06:33 +00:00
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.aarch64=jdk.internal.vm.compiler \
|
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.amd64=jdk.internal.vm.compiler \
|
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.code=jdk.internal.vm.compiler \
|
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.code.site=jdk.internal.vm.compiler \
|
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.code.stack=jdk.internal.vm.compiler \
|
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.common=jdk.internal.vm.compiler \
|
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspot=jdk.internal.vm.compiler \
|
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspot.aarch64=jdk.internal.vm.compiler \
|
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspot.amd64=jdk.internal.vm.compiler \
|
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.meta=jdk.internal.vm.compiler \
|
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.runtime=jdk.internal.vm.compiler \
|
|
|
|
#
|
2016-12-11 20:09:13 +00:00
|
|
|
|
2017-02-16 23:51:01 +00:00
|
|
|
jdk.internal.vm.compiler_EXCLUDES += \
|
2018-04-24 16:04:57 +00:00
|
|
|
jdk.internal.vm.compiler.collections.test \
|
2018-11-15 17:04:07 +00:00
|
|
|
jdk.tools.jaotc.test \
|
2016-12-11 20:09:13 +00:00
|
|
|
org.graalvm.compiler.api.directives.test \
|
|
|
|
org.graalvm.compiler.api.test \
|
|
|
|
org.graalvm.compiler.asm.aarch64.test \
|
|
|
|
org.graalvm.compiler.asm.amd64.test \
|
|
|
|
org.graalvm.compiler.asm.test \
|
2018-11-15 17:04:07 +00:00
|
|
|
org.graalvm.compiler.core.aarch64.test \
|
2016-12-11 20:09:13 +00:00
|
|
|
org.graalvm.compiler.core.amd64.test \
|
2018-11-15 17:04:07 +00:00
|
|
|
org.graalvm.compiler.core.jdk9.test \
|
|
|
|
org.graalvm.compiler.core.match.processor \
|
2016-12-11 20:09:13 +00:00
|
|
|
org.graalvm.compiler.core.test \
|
|
|
|
org.graalvm.compiler.debug.test \
|
|
|
|
org.graalvm.compiler.graph.test \
|
2019-04-23 20:55:09 +00:00
|
|
|
org.graalvm.compiler.hotspot.aarch64.test \
|
2016-12-11 20:09:13 +00:00
|
|
|
org.graalvm.compiler.hotspot.amd64.test \
|
2020-04-27 21:23:15 +00:00
|
|
|
org.graalvm.compiler.hotspot.jdk15.test \
|
2019-03-12 18:17:42 +00:00
|
|
|
org.graalvm.compiler.hotspot.jdk9.test \
|
2016-12-11 20:09:13 +00:00
|
|
|
org.graalvm.compiler.hotspot.lir.test \
|
|
|
|
org.graalvm.compiler.hotspot.test \
|
|
|
|
org.graalvm.compiler.jtt \
|
|
|
|
org.graalvm.compiler.lir.jtt \
|
|
|
|
org.graalvm.compiler.lir.test \
|
2017-03-22 20:43:01 +00:00
|
|
|
org.graalvm.compiler.loop.test \
|
2016-12-11 20:09:13 +00:00
|
|
|
org.graalvm.compiler.microbenchmarks \
|
2018-11-15 17:04:07 +00:00
|
|
|
org.graalvm.compiler.nodeinfo.processor \
|
2016-12-11 20:09:13 +00:00
|
|
|
org.graalvm.compiler.nodes.test \
|
2018-11-15 17:04:07 +00:00
|
|
|
org.graalvm.compiler.options.processor \
|
2016-12-11 20:09:13 +00:00
|
|
|
org.graalvm.compiler.options.test \
|
|
|
|
org.graalvm.compiler.phases.common.test \
|
2018-11-15 17:04:07 +00:00
|
|
|
org.graalvm.compiler.processor \
|
2020-07-02 20:03:32 +00:00
|
|
|
org.graalvm.compiler.replacements.jdk10.test \
|
2018-11-15 17:04:07 +00:00
|
|
|
org.graalvm.compiler.replacements.jdk12.test \
|
|
|
|
org.graalvm.compiler.replacements.jdk9.test \
|
|
|
|
org.graalvm.compiler.replacements.processor \
|
2016-12-11 20:09:13 +00:00
|
|
|
org.graalvm.compiler.replacements.test \
|
2018-11-15 17:04:07 +00:00
|
|
|
org.graalvm.compiler.serviceprovider.processor \
|
2016-12-11 20:09:13 +00:00
|
|
|
org.graalvm.compiler.test \
|
|
|
|
org.graalvm.compiler.virtual.bench \
|
2017-08-12 00:36:15 +00:00
|
|
|
org.graalvm.micro.benchmarks \
|
2017-03-22 20:43:01 +00:00
|
|
|
org.graalvm.util.test \
|
2016-12-11 20:09:13 +00:00
|
|
|
#
|
2016-10-06 12:03:14 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2017-04-28 06:06:33 +00:00
|
|
|
# -parameters provides method's parameters information in class file,
|
|
|
|
# JVMCI compilers make use of that information for various sanity checks.
|
|
|
|
# Don't use Indy strings concatenation to have good JAOTC startup performance.
|
|
|
|
# The exports are needed since JVMCI is dynamically exported (see
|
|
|
|
# jdk.vm.ci.services.internal.ReflectionAccessJDK::openJVMCITo).
|
|
|
|
|
2020-04-29 06:49:17 +00:00
|
|
|
jdk.aot_JAVAC_FLAGS += -parameters -XDstringConcat=inline \
|
2017-04-28 06:06:33 +00:00
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.aarch64=jdk.internal.vm.compiler,jdk.aot \
|
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.amd64=jdk.internal.vm.compiler,jdk.aot \
|
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.code=jdk.internal.vm.compiler,jdk.aot \
|
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.code.site=jdk.internal.vm.compiler,jdk.aot \
|
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.code.stack=jdk.internal.vm.compiler,jdk.aot \
|
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.common=jdk.internal.vm.compiler,jdk.aot \
|
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspot=jdk.internal.vm.compiler,jdk.aot \
|
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspot.aarch64=jdk.internal.vm.compiler,jdk.aot \
|
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspot.amd64=jdk.internal.vm.compiler,jdk.aot \
|
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.meta=jdk.internal.vm.compiler,jdk.aot \
|
|
|
|
--add-exports jdk.internal.vm.ci/jdk.vm.ci.runtime=jdk.internal.vm.compiler,jdk.aot \
|
|
|
|
#
|
2016-12-12 02:50:18 +00:00
|
|
|
|
2018-08-17 20:20:53 +00:00
|
|
|
jdk.aot_EXCLUDES += \
|
|
|
|
jdk.tools.jaotc.test
|
|
|
|
#
|
|
|
|
|
2016-12-12 02:50:18 +00:00
|
|
|
################################################################################
|
|
|
|
|
2017-09-06 14:05:49 +00:00
|
|
|
sun.charsets_COPY += .dat
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2017-09-06 14:05:49 +00:00
|
|
|
jdk.localedata_COPY += _dict _th
|
2014-08-17 14:51:37 +00:00
|
|
|
# Exclude BreakIterator classes that are just used in compile process to generate
|
|
|
|
# data files and shouldn't go in the product
|
2016-09-12 16:38:26 +00:00
|
|
|
jdk.localedata_EXCLUDE_FILES += sun/text/resources/ext/BreakIteratorRules_th.java
|
2018-06-15 16:53:28 +00:00
|
|
|
jdk.localedata_KEEP_ALL_TRANSLATIONS := true
|
2018-05-15 18:24:34 +00:00
|
|
|
################################################################################
|
|
|
|
|
2020-03-12 18:42:06 +00:00
|
|
|
jdk.jfr_DISABLED_WARNINGS += exports
|
2018-05-15 18:24:34 +00:00
|
|
|
jdk.jfr_COPY := .xsd .xml .dtd
|
2020-04-29 06:49:17 +00:00
|
|
|
jdk.jfr_JAVAC_FLAGS := -XDstringConcat=inline
|
2014-08-17 14:51:37 +00:00
|
|
|
|
2020-10-19 20:37:36 +00:00
|
|
|
################################################################################
|
|
|
|
|
|
|
|
jdk.incubator.vector_DOCLINT += -Xdoclint:all/protected
|
|
|
|
|
2014-08-17 14:51:37 +00:00
|
|
|
################################################################################
|
2016-10-28 12:29:20 +00:00
|
|
|
# If this is an imported module that has prebuilt classes, only compile
|
|
|
|
# module-info.java.
|
2019-03-12 15:04:33 +00:00
|
|
|
ifneq ($(IMPORT_MODULES_CLASSES), )
|
|
|
|
IMPORT_MODULE_DIR := $(IMPORT_MODULES_CLASSES)/$(MODULE)
|
|
|
|
ifneq ($(wildcard $(IMPORT_MODULE_DIR)), )
|
|
|
|
$(MODULE)_INCLUDE_FILES := module-info.java
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
IMPORT_MODULE_DIR :=
|
2016-10-28 12:29:20 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
################################################################################
|
2015-11-24 14:46:04 +00:00
|
|
|
# Setup the compilation for the module
|
2014-08-17 14:51:37 +00:00
|
|
|
#
|
2016-04-13 16:11:29 +00:00
|
|
|
MODULE_SRC_DIRS := $(call FindModuleSrcDirs, $(MODULE))
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
# The JDK_USER_DEFINED_FILTER is a poor man's incremental build: by specifying
|
|
|
|
# JDK_FILTER at the make command line, only a subset of the JDK java files will
|
|
|
|
# be recompiled. If multiple paths are separated by comma, convert that into a
|
|
|
|
# space separated list.
|
|
|
|
JDK_USER_DEFINED_FILTER := $(strip $(subst $(COMMA),$(SPACE), $(JDK_FILTER)))
|
2016-06-10 14:56:29 +00:00
|
|
|
ifeq ($(JDK_FILTER), )
|
|
|
|
FAIL_NO_SRC := true
|
|
|
|
else
|
|
|
|
# When using JDK_FILTER, most module java compilations will end up finding
|
|
|
|
# no source files. Don't let that fail the build.
|
|
|
|
FAIL_NO_SRC := false
|
|
|
|
endif
|
2014-08-17 14:51:37 +00:00
|
|
|
|
2016-04-13 16:11:29 +00:00
|
|
|
# Get the complete module source path.
|
|
|
|
MODULESOURCEPATH := $(call GetModuleSrcPath)
|
2016-03-17 19:03:53 +00:00
|
|
|
|
2016-04-13 16:11:29 +00:00
|
|
|
# Add imported modules to the modulepath
|
|
|
|
MODULEPATH := $(call PathList, $(IMPORT_MODULES_CLASSES))
|
2015-06-09 14:08:38 +00:00
|
|
|
|
2017-02-16 23:51:01 +00:00
|
|
|
ifeq ($(MODULE), jdk.internal.vm.ci)
|
|
|
|
## WORKAROUND jdk.internal.vm.ci source structure issue
|
2016-03-17 19:03:53 +00:00
|
|
|
JVMCI_MODULESOURCEPATH := $(MODULESOURCEPATH) \
|
|
|
|
$(subst /$(MODULE)/,/*/, $(filter-out %processor/src, \
|
2017-09-12 17:03:56 +00:00
|
|
|
$(wildcard $(TOPDIR)/src/$(MODULE)/share/classes/*/src)))
|
2016-04-13 16:11:29 +00:00
|
|
|
MODULESOURCEPATH := $(call PathList, $(JVMCI_MODULESOURCEPATH))
|
2016-03-17 19:03:53 +00:00
|
|
|
endif
|
2015-11-24 14:46:04 +00:00
|
|
|
|
2017-02-16 23:51:01 +00:00
|
|
|
ifeq ($(MODULE), jdk.internal.vm.compiler)
|
|
|
|
## WORKAROUND jdk.internal.vm.compiler source structure issue
|
2016-12-11 20:09:13 +00:00
|
|
|
VM_COMPILER_MODULESOURCEPATH := $(MODULESOURCEPATH) \
|
|
|
|
$(subst /$(MODULE)/,/*/, $(filter-out %processor/src %test/src %jtt/src %bench/src %microbenchmarks/src, \
|
2017-09-12 17:03:56 +00:00
|
|
|
$(wildcard $(TOPDIR)/src/$(MODULE)/share/classes/*/src)))
|
2016-12-11 20:09:13 +00:00
|
|
|
MODULESOURCEPATH := $(call PathList, $(VM_COMPILER_MODULESOURCEPATH))
|
|
|
|
endif
|
|
|
|
|
2016-12-12 02:50:18 +00:00
|
|
|
ifeq ($(MODULE), jdk.aot)
|
|
|
|
## WORKAROUND jdk.aot source structure issue
|
|
|
|
AOT_MODULESOURCEPATH := $(MODULESOURCEPATH) \
|
|
|
|
$(subst /$(MODULE)/,/*/, $(filter-out %processor/src, \
|
2017-09-12 17:03:56 +00:00
|
|
|
$(wildcard $(TOPDIR)/src/$(MODULE)/share/classes/*/src)))
|
2016-12-12 02:50:18 +00:00
|
|
|
MODULESOURCEPATH := $(call PathList, $(AOT_MODULESOURCEPATH))
|
|
|
|
endif
|
|
|
|
|
2015-11-24 14:46:04 +00:00
|
|
|
$(eval $(call SetupJavaCompilation, $(MODULE), \
|
2020-04-29 06:49:17 +00:00
|
|
|
SMALL_JAVA := false, \
|
2016-03-17 19:03:53 +00:00
|
|
|
MODULE := $(MODULE), \
|
|
|
|
SRC := $(wildcard $(MODULE_SRC_DIRS)), \
|
2016-06-10 14:56:29 +00:00
|
|
|
INCLUDES := $(JDK_USER_DEFINED_FILTER), \
|
|
|
|
FAIL_NO_SRC := $(FAIL_NO_SRC), \
|
2016-03-17 19:03:53 +00:00
|
|
|
BIN := $(if $($(MODULE)_BIN), $($(MODULE)_BIN), $(JDK_OUTPUTDIR)/modules), \
|
|
|
|
HEADERS := $(SUPPORT_OUTPUTDIR)/headers, \
|
2017-10-20 11:33:35 +00:00
|
|
|
CREATE_API_DIGEST := true, \
|
2020-04-29 06:49:17 +00:00
|
|
|
JAVAC_FLAGS := \
|
|
|
|
$($(MODULE)_DOCLINT) \
|
|
|
|
$($(MODULE)_JAVAC_FLAGS) \
|
2016-08-10 22:49:03 +00:00
|
|
|
--module-source-path $(MODULESOURCEPATH) \
|
|
|
|
--module-path $(MODULEPATH) \
|
2016-08-31 00:49:50 +00:00
|
|
|
--system none, \
|
2015-11-24 14:46:04 +00:00
|
|
|
))
|
2016-03-17 19:03:53 +00:00
|
|
|
|
2015-11-24 14:46:04 +00:00
|
|
|
TARGETS += $($(MODULE)) $($(MODULE)_COPY_EXTRA)
|
|
|
|
|
|
|
|
# Declare dependencies between java compilations of different modules.
|
|
|
|
# Since the other modules are declared in different invocations of this file,
|
|
|
|
# use the macro to find the correct target file to depend on.
|
|
|
|
# Only the javac compilation actually depends on other modules so limit
|
|
|
|
# dependency declaration to that by using the *_COMPILE_TARGET variable.
|
2016-03-17 19:03:53 +00:00
|
|
|
$($(MODULE)_COMPILE_TARGET): $(foreach d, $(call FindDepsForModule, $(MODULE)), \
|
2017-10-20 11:33:35 +00:00
|
|
|
$(call SetupJavaCompilationApiTarget, $d, \
|
2015-11-24 14:46:04 +00:00
|
|
|
$(if $($d_BIN), $($d_BIN), $(JDK_OUTPUTDIR)/modules/$d)))
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Copy zh_HK properties files from zh_TW
|
|
|
|
|
|
|
|
$(JDK_OUTPUTDIR)/modules/%_zh_HK.properties: $(JDK_OUTPUTDIR)/modules/%_zh_TW.properties
|
|
|
|
$(install-file)
|
|
|
|
|
2015-11-24 14:46:04 +00:00
|
|
|
CreateHkTargets = \
|
2018-07-19 21:25:42 +00:00
|
|
|
$(call FilterExcludedTranslations, \
|
|
|
|
$(patsubst $(TOPDIR)/src/%, $(JDK_OUTPUTDIR)/modules/%, \
|
|
|
|
$(subst /share/classes,, \
|
|
|
|
$(subst _zh_TW,_zh_HK, $(filter %_zh_TW.properties, $1)) \
|
|
|
|
) \
|
|
|
|
), \
|
|
|
|
.properties \
|
|
|
|
)
|
2014-08-17 14:51:37 +00:00
|
|
|
|
2015-11-24 14:46:04 +00:00
|
|
|
ifeq ($(MODULE), java.sql.rowset)
|
|
|
|
TARGETS += $(call CreateHkTargets, $(java.sql.rowset_CLEAN_FILES))
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MODULE), java.rmi)
|
|
|
|
TARGETS += $(call CreateHkTargets, $(java.rmi_CLEAN_FILES))
|
|
|
|
endif
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
################################################################################
|
|
|
|
# If this is an imported module, copy the pre built classes and resources into
|
|
|
|
# the modules output dir
|
|
|
|
|
2019-03-12 15:04:33 +00:00
|
|
|
ifneq ($(wildcard $(IMPORT_MODULE_DIR)), )
|
2016-03-17 19:03:53 +00:00
|
|
|
$(JDK_OUTPUTDIR)/modules/$(MODULE)/_imported.marker: \
|
2017-10-24 08:41:45 +00:00
|
|
|
$(call FindFiles, $(IMPORT_MODULE_DIR))
|
2016-04-18 15:18:41 +00:00
|
|
|
$(call MakeDir, $(@D))
|
|
|
|
# Do not delete marker and build meta data files
|
|
|
|
$(RM) -r $(filter-out $(@D)/_%, $(wildcard $(@D)/*))
|
2019-03-12 15:04:33 +00:00
|
|
|
$(CP) -R $(IMPORT_MODULE_DIR)/* $(@D)/
|
2016-03-17 19:03:53 +00:00
|
|
|
$(TOUCH) $@
|
|
|
|
|
|
|
|
TARGETS += $(JDK_OUTPUTDIR)/modules/$(MODULE)/_imported.marker
|
|
|
|
|
|
|
|
# Add this dependency to avoid a race between compiling module-info.java and
|
|
|
|
# importing the classes.
|
|
|
|
$($(MODULE)_COMPILE_TARGET): $(JDK_OUTPUTDIR)/modules/$(MODULE)/_imported.marker
|
|
|
|
endif
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2017-10-05 10:41:06 +00:00
|
|
|
$(eval $(call IncludeCustomExtension, CompileJavaModules-post.gmk))
|
2016-03-17 19:03:53 +00:00
|
|
|
|
2015-11-24 14:46:04 +00:00
|
|
|
################################################################################
|
2014-08-17 14:51:37 +00:00
|
|
|
|
2015-11-24 14:46:04 +00:00
|
|
|
all: $(TARGETS)
|
2014-08-17 14:51:37 +00:00
|
|
|
|
2015-11-24 14:46:04 +00:00
|
|
|
.PHONY: all
|