annotate make/CompileJavaModules.gmk @ 54961:d04f72c354e9

8215363: needless signals in ForkJoinPool Reviewed-by: martin, chegar, dholmes
author dl
date Fri, 15 Feb 2019 11:18:01 -0800
parents 5ff7480c9e28
children b10371bd50c2 b3027df54020 11e24d1deef3 4b4745d185eb
rev   line source
chegar@25854 1 #
lancea@49225 2 # Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
chegar@25854 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
chegar@25854 4 #
chegar@25854 5 # This code is free software; you can redistribute it and/or modify it
chegar@25854 6 # under the terms of the GNU General Public License version 2 only, as
chegar@25854 7 # published by the Free Software Foundation. Oracle designates this
chegar@25854 8 # particular file as subject to the "Classpath" exception as provided
chegar@25854 9 # by Oracle in the LICENSE file that accompanied this code.
chegar@25854 10 #
chegar@25854 11 # This code is distributed in the hope that it will be useful, but WITHOUT
chegar@25854 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
chegar@25854 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
chegar@25854 14 # version 2 for more details (a copy is included in the LICENSE file that
chegar@25854 15 # accompanied this code).
chegar@25854 16 #
chegar@25854 17 # You should have received a copy of the GNU General Public License version
chegar@25854 18 # 2 along with this work; if not, write to the Free Software Foundation,
chegar@25854 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
chegar@25854 20 #
chegar@25854 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
chegar@25854 22 # or visit www.oracle.com if you need additional information or have any
chegar@25854 23 # questions.
chegar@25854 24 #
chegar@25854 25
chegar@25854 26 # This must be the first rule
chegar@25854 27 default: all
chegar@25854 28
chegar@25854 29 include $(SPEC)
chegar@25854 30 include MakeBase.gmk
erikj@26116 31 include Modules.gmk
chegar@25854 32 include JavaCompilation.gmk
erikj@26115 33 include SetupJavaCompilers.gmk
chegar@25854 34
chegar@25854 35 # Hook to include the corresponding custom file, if present.
ihse@47396 36 $(eval $(call IncludeCustomExtension, CompileJavaModules.gmk))
chegar@25854 37
chegar@25854 38 ################################################################################
chegar@25854 39 # Module specific build settings
chegar@25854 40
erikj@47064 41 java.base_ADD_JAVAC_FLAGS += -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*' -XDstringConcat=inline
erikj@47064 42 java.base_COPY += .icu .dat .spp content-types.properties hijrah-config-islamic-umalqura.properties
erikj@47064 43 java.base_CLEAN += intrinsic.properties
chegar@25854 44
alanb@36506 45 java.base_EXCLUDE_FILES += \
erikj@47217 46 $(TOPDIR)/src/java.base/share/classes/jdk/internal/module/ModuleLoaderMap.java
alanb@36506 47
chegar@25854 48 java.base_EXCLUDES += java/lang/doc-files
chegar@25854 49
chegar@25854 50 # Exclude BreakIterator classes that are just used in compile process to generate
chegar@25854 51 # data files and shouldn't go in the product
chegar@25854 52 java.base_EXCLUDE_FILES += sun/text/resources/BreakIteratorRules.java
chegar@25854 53
ihse@54800 54 ifeq ($(call isTargetOs, solaris), false)
chegar@25854 55 java.base_EXCLUDE_FILES += \
chegar@25854 56 SolarisLoginModule.java \
chegar@25854 57 SolarisSystem.java \
chegar@25854 58 #
chegar@25854 59 endif
chegar@25854 60
ihse@54800 61 ifeq ($(call isTargetOs, solaris macosx aix), false)
chegar@25854 62 java.base_EXCLUDE_FILES += sun/nio/fs/PollingWatchService.java
chegar@25854 63 endif
chegar@25854 64
ihse@54800 65 ifeq ($(call isTargetOs, windows), true)
chegar@25854 66 java.base_EXCLUDE_FILES += \
chegar@25854 67 sun/nio/ch/SimpleAsynchronousFileChannelImpl.java \
chegar@25854 68 #
chegar@25854 69 endif
chegar@25854 70
chegar@25854 71 ################################################################################
chegar@25854 72
erikj@47064 73 java.compiler_ADD_JAVAC_FLAGS += -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
darcy@29437 74
darcy@29437 75 ################################################################################
darcy@29437 76
erikj@47064 77 java.datatransfer_ADD_JAVAC_FLAGS += -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
erikj@47064 78 java.datatransfer_COPY += flavormap.properties
serb@28903 79
serb@28903 80 ################################################################################
serb@28903 81
erikj@47064 82 java.desktop_ADD_JAVAC_FLAGS += -Xdoclint:all/protected,-reference \
ihse@45228 83 '-Xdoclint/package:java.*,javax.*' -Xlint:exports \
ihse@45228 84 --doclint-format html4
erikj@47064 85 java.desktop_COPY += .gif .png .wav .txt .xml .css .pf
erikj@47064 86 java.desktop_CLEAN += iio-plugin.properties cursors.properties
chegar@25854 87
chegar@25854 88 java.desktop_EXCLUDES += \
chegar@25854 89 java/awt/doc-files \
chegar@25854 90 javax/swing/doc-files \
chegar@25854 91 javax/swing/text/doc-files \
chegar@25854 92 javax/swing/plaf/synth/doc-files \
chegar@25854 93 javax/swing/undo/doc-files \
chegar@25854 94 sun/awt/X11/doc-files \
chegar@25854 95 #
chegar@25854 96
chegar@25854 97 java.desktop_EXCLUDE_FILES += \
chegar@25854 98 javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
chegar@25854 99 javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \
chegar@25854 100 javax/swing/plaf/nimbus/ScrollBarPainter.java \
chegar@25854 101 javax/swing/plaf/nimbus/SliderPainter.java \
chegar@25854 102 javax/swing/plaf/nimbus/SpinnerPainter.java \
chegar@25854 103 javax/swing/plaf/nimbus/SplitPanePainter.java \
chegar@25854 104 javax/swing/plaf/nimbus/TabbedPanePainter.java \
chegar@25854 105 sun/awt/resources/security-icon-bw16.png \
chegar@25854 106 sun/awt/resources/security-icon-bw24.png \
chegar@25854 107 sun/awt/resources/security-icon-bw32.png \
chegar@25854 108 sun/awt/resources/security-icon-bw48.png \
chegar@25854 109 sun/awt/resources/security-icon-interim16.png \
chegar@25854 110 sun/awt/resources/security-icon-interim24.png \
chegar@25854 111 sun/awt/resources/security-icon-interim32.png \
chegar@25854 112 sun/awt/resources/security-icon-interim48.png \
chegar@25854 113 sun/awt/resources/security-icon-yellow16.png \
chegar@25854 114 sun/awt/resources/security-icon-yellow24.png \
chegar@25854 115 sun/awt/resources/security-icon-yellow32.png \
chegar@25854 116 sun/awt/resources/security-icon-yellow48.png \
chegar@25854 117 sun/awt/X11/java-icon16.png \
chegar@25854 118 sun/awt/X11/java-icon24.png \
chegar@25854 119 sun/awt/X11/java-icon32.png \
chegar@25854 120 sun/awt/X11/java-icon48.png \
chegar@25854 121 .template \
chegar@25854 122 #
chegar@25854 123
ihse@54800 124 ifeq ($(call isTargetOs, macosx), true)
chegar@25854 125 # exclude all X11 on Mac.
prr@29671 126 java.desktop_EXCLUDES += \
prr@29671 127 sun/awt/X11 \
prr@29671 128 sun/java2d/x11 \
prr@29671 129 sun/java2d/jules \
prr@29671 130 sun/java2d/xr \
prr@29671 131 com/sun/java/swing/plaf/gtk \
prr@29671 132 #
chegar@25854 133 java.desktop_EXCLUDE_FILES += \
erikj@47217 134 $(wildcard $(TOPDIR)/src/java.desktop/unix/classes/sun/java2d/*.java) \
erikj@47217 135 $(wildcard $(TOPDIR)/src/java.desktop/unix/classes/sun/java2d/opengl/*.java) \
erikj@47217 136 $(wildcard $(TOPDIR)/src/java.desktop/unix/classes/sun/awt/*.java) \
erikj@47217 137 $(wildcard $(TOPDIR)/src/java.desktop/unix/classes/sun/font/*.java) \
chegar@25854 138 #
chegar@25854 139 else
chegar@25854 140 # TBD: figure out how to eliminate this long list
chegar@25854 141 java.desktop_EXCLUDE_FILES += \
chegar@25854 142 sun/awt/X11/ScreenFormat.java \
chegar@25854 143 sun/awt/X11/XArc.java \
chegar@25854 144 sun/awt/X11/XChar2b.java \
chegar@25854 145 sun/awt/X11/XCharStruct.java \
chegar@25854 146 sun/awt/X11/XClassHint.java \
chegar@25854 147 sun/awt/X11/XComposeStatus.java \
chegar@25854 148 sun/awt/X11/XExtCodes.java \
chegar@25854 149 sun/awt/X11/XFontProp.java \
chegar@25854 150 sun/awt/X11/XFontSetExtents.java \
chegar@25854 151 sun/awt/X11/XFontStruct.java \
chegar@25854 152 sun/awt/X11/XGCValues.java \
chegar@25854 153 sun/awt/X11/XHostAddress.java \
chegar@25854 154 sun/awt/X11/XIMCallback.java \
chegar@25854 155 sun/awt/X11/XIMHotKeyTrigger.java \
chegar@25854 156 sun/awt/X11/XIMHotKeyTriggers.java \
chegar@25854 157 sun/awt/X11/XIMPreeditCaretCallbackStruct.java \
chegar@25854 158 sun/awt/X11/XIMPreeditDrawCallbackStruct.java \
chegar@25854 159 sun/awt/X11/XIMPreeditStateNotifyCallbackStruct.java \
chegar@25854 160 sun/awt/X11/XIMStatusDrawCallbackStruct.java \
chegar@25854 161 sun/awt/X11/XIMStringConversionCallbackStruct.java \
chegar@25854 162 sun/awt/X11/XIMStringConversionText.java \
chegar@25854 163 sun/awt/X11/XIMStyles.java \
chegar@25854 164 sun/awt/X11/XIMText.java \
chegar@25854 165 sun/awt/X11/XIMValuesList.java \
chegar@25854 166 sun/awt/X11/XImage.java \
chegar@25854 167 sun/awt/X11/XKeyboardControl.java \
chegar@25854 168 sun/awt/X11/XKeyboardState.java \
chegar@25854 169 sun/awt/X11/XOMCharSetList.java \
chegar@25854 170 sun/awt/X11/XOMFontInfo.java \
chegar@25854 171 sun/awt/X11/XOMOrientation.java \
chegar@25854 172 sun/awt/X11/XPoint.java \
chegar@25854 173 sun/awt/X11/XRectangle.java \
chegar@25854 174 sun/awt/X11/XSegment.java \
chegar@25854 175 sun/awt/X11/XStandardColormap.java \
chegar@25854 176 sun/awt/X11/XTextItem.java \
chegar@25854 177 sun/awt/X11/XTextItem16.java \
chegar@25854 178 sun/awt/X11/XTextProperty.java \
chegar@25854 179 sun/awt/X11/XTimeCoord.java \
chegar@25854 180 sun/awt/X11/XWindowChanges.java \
chegar@25854 181 sun/awt/X11/XdbeSwapInfo.java \
chegar@25854 182 sun/awt/X11/XmbTextItem.java \
chegar@25854 183 sun/awt/X11/XwcTextItem.java
chegar@25854 184 endif
chegar@25854 185
ihse@54800 186 ifeq ($(call isTargetOs, windows), true)
chegar@25854 187 java.desktop_EXCLUDES += com/sun/java/swing/plaf/gtk
chegar@25854 188 endif
chegar@25854 189
chegar@25854 190 ifdef BUILD_HEADLESS_ONLY
chegar@25854 191 java.desktop_EXCLUDES += sun/applet
chegar@25854 192 endif
chegar@25854 193
ihse@54800 194 ifeq ($(call isTargetOs, windows macosx), false)
chegar@25854 195 java.desktop_EXCLUDE_FILES += sun/awt/AWTCharset.java
chegar@25854 196 endif
chegar@25854 197
chegar@25854 198 # These files do not appear in the build result of the old build. This
chegar@25854 199 # is because they are generated sources, but the AUTO_JAVA_FILES won't
chegar@25854 200 # pick them up since they aren't generated when the source dirs are
chegar@25854 201 # searched and they aren't referenced by any other classes so they won't
chegar@25854 202 # be picked up by implicit compilation. On a rebuild, they are picked up
chegar@25854 203 # and compiled. Exclude them here to produce the same rt.jar as the old
chegar@25854 204 # build does when building just once.
chegar@25854 205 java.desktop_EXCLUDE_FILES += \
chegar@25854 206 javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
chegar@25854 207 javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \
chegar@25854 208 javax/swing/plaf/nimbus/ScrollBarPainter.java \
chegar@25854 209 javax/swing/plaf/nimbus/SliderPainter.java \
chegar@25854 210 javax/swing/plaf/nimbus/SpinnerPainter.java \
chegar@25854 211 javax/swing/plaf/nimbus/SplitPanePainter.java \
chegar@25854 212 javax/swing/plaf/nimbus/TabbedPanePainter.java \
chegar@25854 213 #
chegar@25854 214
chegar@25854 215 ################################################################################
chegar@25854 216
erikj@47064 217 java.scripting_ADD_JAVAC_FLAGS += -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
erikj@47064 218 java.scripting_COPY += .js
erikj@47064 219 java.scripting_CLEAN += .properties
chegar@27560 220
chegar@27560 221 ################################################################################
chegar@27560 222
erikj@47064 223 java.instrument_ADD_JAVAC_FLAGS += -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
darcy@29863 224
darcy@29863 225 ################################################################################
darcy@29863 226
erikj@47064 227 java.logging_ADD_JAVAC_FLAGS += -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
darcy@29863 228
darcy@29863 229 ################################################################################
darcy@29863 230
erikj@47064 231 java.management_ADD_JAVAC_FLAGS += -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
darcy@29863 232
darcy@29863 233 ################################################################################
darcy@29863 234
erikj@47064 235 java.management.rmi_ADD_JAVAC_FLAGS += -Xdoclint:all/protected '-Xdoclint/package:javax.*'
dfuchs@43384 236
dfuchs@43384 237 ################################################################################
dfuchs@43384 238
erikj@47064 239 java.prefs_ADD_JAVAC_FLAGS += -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
darcy@29863 240
darcy@29863 241 ################################################################################
darcy@29863 242
lancea@49557 243 java.transaction.xa_ADD_JAVAC_FLAGS += -Xdoclint:all/protected '-Xdoclint/package:javax.*'
lancea@49557 244
lancea@49557 245 ################################################################################
lancea@49557 246
erikj@47064 247 java.sql_ADD_JAVAC_FLAGS += -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
chegar@25854 248 java.sql_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 249
chegar@25854 250 ################################################################################
chegar@25854 251
erikj@47064 252 java.sql.rowset_ADD_JAVAC_FLAGS += -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
erikj@47064 253 java.sql.rowset_CLEAN_FILES += $(wildcard \
erikj@47217 254 $(TOPDIR)/src/java.sql.rowset/share/classes/com/sun/rowset/*.properties \
erikj@47217 255 $(TOPDIR)/src/java.sql.rowset/share/classes/javax/sql/rowset/*.properties)
chegar@25854 256
chegar@25854 257 ################################################################################
chegar@25854 258
erikj@47064 259 java.rmi_ADD_JAVAC_FLAGS += -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
erikj@47064 260 java.rmi_CLEAN_FILES += $(wildcard \
erikj@47217 261 $(TOPDIR)/src/java.rmi/share/classes/sun/rmi/registry/resources/*.properties \
erikj@47217 262 $(TOPDIR)/src/java.rmi/share/classes/sun/rmi/server/resources/*.properties)
chegar@25854 263
chegar@25854 264 ################################################################################
chegar@25854 265
joehw@48247 266 java.xml_ADD_JAVAC_FLAGS += -Xdoclint:all/protected \
joehw@48247 267 '-Xdoclint/package:$(call CommaList, javax.xml.catalog javax.xml.datatype \
joehw@48247 268 javax.xml.transform javax.xml.validation javax.xml.xpath)'
erikj@47064 269 java.xml_CLEAN += .properties
chegar@25854 270
chegar@25854 271 ################################################################################
chegar@25854 272
erikj@47064 273 java.naming_ADD_JAVAC_FLAGS += -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*' -Xlint:-exports
erikj@47064 274 java.naming_CLEAN += jndiprovider.properties
chegar@25854 275
chegar@25854 276 ################################################################################
chegar@25854 277
erikj@47064 278 java.security.jgss_ADD_JAVAC_FLAGS += -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
darcy@29863 279
darcy@29863 280 ################################################################################
darcy@29863 281
erikj@47064 282 java.smartcardio_ADD_JAVAC_FLAGS += -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
darcy@29863 283
darcy@29863 284 ################################################################################
darcy@29863 285
erikj@47064 286 java.xml.crypto_ADD_JAVAC_FLAGS += -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
erikj@47064 287 java.xml.crypto_COPY += .dtd .xml
erikj@47064 288 java.xml.crypto_CLEAN += .properties
chegar@25854 289
chegar@25854 290 ################################################################################
chegar@25854 291
erikj@47064 292 jdk.charsets_COPY += .dat
chegar@25854 293
chegar@25854 294 ################################################################################
chegar@25854 295
jlahoda@41271 296 ################################################################################
jlahoda@41271 297
erikj@47217 298 jdk.compiler_ADD_JAVAC_FLAGS += -Xdoclint:all/protected \
erikj@47217 299 '-Xdoclint/package:-com.sun.tools.*,-jdk.internal.*,sun.tools.serialver.resources.*' \
alanb@36506 300 -XDstringConcat=inline
erikj@47064 301 jdk.compiler_CLEAN_FILES += $(wildcard \
erikj@47217 302 $(patsubst %, $(TOPDIR)/src/jdk.compiler/share/classes/%/*.properties, \
chegar@27560 303 sun/tools/serialver/resources))
chegar@25854 304
chegar@25854 305 ################################################################################
chegar@25854 306
erikj@47064 307 jdk.hotspot.agent_ADD_JAVAC_FLAGS += $(DISABLE_WARNINGS),-overrides
erikj@47064 308 jdk.hotspot.agent_COPY += .gif .png sa.js .properties
erikj@34116 309
erikj@34116 310 ################################################################################
erikj@34116 311
erikj@47064 312 jdk.editpad_COPY += .properties
rfield@41870 313
rfield@41870 314 ################################################################################
rfield@41870 315
erikj@47064 316 jdk.jshell_COPY += .jsh .properties
rfield@42859 317
rfield@42859 318 ################################################################################
rfield@42859 319
jlahoda@53975 320 jdk.internal.le_COPY += .properties .caps .txt
jlahoda@31512 321
jlahoda@31512 322 ################################################################################
jlahoda@31512 323
jlahoda@51032 324 jdk.internal.opt_COPY += .properties
jlahoda@51032 325
jlahoda@51032 326 ################################################################################
jlahoda@51032 327
erikj@47064 328 jdk.jcmd_COPY += _options
chegar@25854 329
chegar@25854 330 ################################################################################
chegar@25854 331
erikj@47064 332 jdk.dynalink_CLEAN += .properties
attila@34099 333
attila@34099 334 ################################################################################
attila@34099 335
erikj@47064 336 jdk.javadoc_COPY += .xml .css .js .png
chegar@25854 337
chegar@25854 338 ################################################################################
chegar@25854 339
erikj@47064 340 jdk.jartool_ADD_JAVAC_FLAGS += -XDstringConcat=inline
sherman@43054 341
sherman@43054 342 ################################################################################
sherman@43054 343
sundar@51512 344 jdk.scripting.nashorn_ADD_JAVAC_FLAGS += $(DISABLE_WARNINGS),-overrides
erikj@50897 345 jdk.scripting.nashorn_COPY := .properties .js
erikj@50897 346
erikj@50897 347 ################################################################################
erikj@50897 348
sundar@51512 349 jdk.scripting.nashorn.shell_ADD_JAVAC_FLAGS += $(DISABLE_WARNINGS),-overrides
sundar@47859 350 jdk.scripting.nashorn.shell_COPY += .js .properties
sundar@47859 351
sundar@47859 352 ################################################################################
sundar@47859 353
chegar@25854 354 jdk.rmic_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
erikj@47064 355 jdk.rmic_CLEAN += .properties
chegar@25854 356
chegar@25854 357 ################################################################################
chegar@25854 358
chegar@25854 359 # No SCTP implementation on Mac OS X or AIX. These classes should be excluded.
chegar@25854 360 SCTP_IMPL_CLASSES = \
erikj@47217 361 $(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationChange.java \
erikj@47217 362 $(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationImpl.java \
erikj@47217 363 $(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/PeerAddrChange.java \
erikj@47217 364 $(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/ResultContainer.java \
erikj@47217 365 $(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpChannelImpl.java \
erikj@47217 366 $(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpMultiChannelImpl.java \
erikj@47217 367 $(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpNet.java \
erikj@47217 368 $(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpNotification.java \
erikj@47217 369 $(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpServerChannelImpl.java \
erikj@47217 370 $(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SendFailed.java \
erikj@47217 371 $(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/Shutdown.java
chegar@25854 372
ihse@54800 373 ifeq ($(call isTargetOs, macosx), true)
rriggs@27397 374 jdk.sctp_EXCLUDE_FILES += $(SCTP_IMPL_CLASSES)
chegar@25854 375 endif
chegar@25854 376
ihse@54800 377 ifeq ($(call isTargetOs, aix), true)
rriggs@27397 378 jdk.sctp_EXCLUDE_FILES += $(SCTP_IMPL_CLASSES)
chegar@25854 379 endif
chegar@25854 380
chegar@25854 381 ################################################################################
chegar@25854 382
erikj@47064 383 jdk.jconsole_COPY += .gif .png
chegar@25854 384
erikj@47064 385 jdk.jconsole_CLEAN_FILES += $(wildcard \
erikj@47217 386 $(TOPDIR)/src/jdk.jconsole/share/classes/sun/tools/jconsole/resources/*.properties)
chegar@25854 387
chegar@25854 388 ################################################################################
chegar@25854 389
erikj@47064 390 jdk.jdeps_COPY += .txt
mchung@39610 391
erikj@47064 392 jdk.jdeps_CLEAN_FILES += $(wildcard \
erikj@47217 393 $(TOPDIR)/src/jdk.jdeps/share/classes/com/sun/tools/jdeps/resources/*.properties \
erikj@47217 394 $(TOPDIR)/src/jdk.jdeps/share/classes/com/sun/tools/javap/resources/*.properties)
mchung@30742 395
mchung@30742 396 ################################################################################
mchung@30742 397
rriggs@27397 398 jdk.jdi_EXCLUDES += \
chegar@25854 399 com/sun/tools/example/debug/bdi \
chegar@25854 400 com/sun/tools/example/debug/event \
chegar@25854 401 com/sun/tools/example/debug/gui \
chegar@25854 402 com/sun/jdi/doc-files \
chegar@25854 403 #
chegar@25854 404
chegar@25854 405 jdk.jdi_EXCLUDE_FILES += jdi-overview.html
chegar@25854 406
chegar@25854 407 ################################################################################
chegar@25854 408
erikj@47064 409 jdk.dev_CLEAN_FILES += $(wildcard \
erikj@47217 410 $(patsubst %, $(TOPDIR)/src/jdk.dev/share/classes/%/*.properties, \
chegar@25854 411 com/sun/tools/script/shell))
chegar@25854 412
erikj@47064 413 jdk.dev_COPY += .js oqlhelp.html .txt
chegar@25854 414
chegar@25854 415 ################################################################################
chegar@25854 416
erikj@47064 417 jdk.internal.jvmstat_COPY += aliasmap
chegar@25854 418
chegar@25854 419 ################################################################################
chegar@25854 420
kvn@42531 421 # -parameters provides method's parameters information in class file,
kvn@42531 422 # JVMCI compilers make use of that information for various sanity checks.
kvn@42531 423 # Don't use Indy strings concatenation to have good JVMCI startup performance.
dnsimon@44830 424 # The exports are needed since JVMCI is dynamically exported (see
dnsimon@44830 425 # jdk.vm.ci.services.internal.ReflectionAccessJDK::openJVMCITo).
kvn@42531 426
erikj@47064 427 jdk.internal.vm.ci_ADD_JAVAC_FLAGS += -parameters -Xlint:-exports -XDstringConcat=inline
kvn@42531 428
kvn@42531 429 ################################################################################
kvn@42531 430
erikj@47064 431 jdk.internal.vm.compiler_ADD_JAVAC_FLAGS += -parameters -XDstringConcat=inline \
dnsimon@44830 432 --add-exports jdk.internal.vm.ci/jdk.vm.ci.aarch64=jdk.internal.vm.compiler \
dnsimon@44830 433 --add-exports jdk.internal.vm.ci/jdk.vm.ci.amd64=jdk.internal.vm.compiler \
dnsimon@44830 434 --add-exports jdk.internal.vm.ci/jdk.vm.ci.code=jdk.internal.vm.compiler \
dnsimon@44830 435 --add-exports jdk.internal.vm.ci/jdk.vm.ci.code.site=jdk.internal.vm.compiler \
dnsimon@44830 436 --add-exports jdk.internal.vm.ci/jdk.vm.ci.code.stack=jdk.internal.vm.compiler \
dnsimon@44830 437 --add-exports jdk.internal.vm.ci/jdk.vm.ci.common=jdk.internal.vm.compiler \
dnsimon@44830 438 --add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspot=jdk.internal.vm.compiler \
dnsimon@44830 439 --add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspot.aarch64=jdk.internal.vm.compiler \
dnsimon@44830 440 --add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspot.amd64=jdk.internal.vm.compiler \
dnsimon@44830 441 --add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspot.sparc=jdk.internal.vm.compiler \
dnsimon@44830 442 --add-exports jdk.internal.vm.ci/jdk.vm.ci.meta=jdk.internal.vm.compiler \
dnsimon@44830 443 --add-exports jdk.internal.vm.ci/jdk.vm.ci.runtime=jdk.internal.vm.compiler \
dnsimon@44830 444 --add-exports jdk.internal.vm.ci/jdk.vm.ci.sparc=jdk.internal.vm.compiler \
dnsimon@44830 445 #
kvn@42531 446
kvn@43925 447 jdk.internal.vm.compiler_EXCLUDES += \
dlong@50384 448 jdk.internal.vm.compiler.collections.test \
dlong@53546 449 jdk.tools.jaotc.test \
kvn@42531 450 org.graalvm.compiler.api.directives.test \
kvn@42531 451 org.graalvm.compiler.api.test \
kvn@42531 452 org.graalvm.compiler.asm.aarch64.test \
kvn@42531 453 org.graalvm.compiler.asm.amd64.test \
kvn@42531 454 org.graalvm.compiler.asm.sparc.test \
kvn@42531 455 org.graalvm.compiler.asm.test \
dlong@53546 456 org.graalvm.compiler.core.aarch64.test \
kvn@42531 457 org.graalvm.compiler.core.amd64.test \
dlong@53546 458 org.graalvm.compiler.core.jdk9.test \
dlong@53546 459 org.graalvm.compiler.core.match.processor \
kvn@42531 460 org.graalvm.compiler.core.test \
kvn@42531 461 org.graalvm.compiler.debug.test \
kvn@42531 462 org.graalvm.compiler.graph.test \
kvn@42531 463 org.graalvm.compiler.hotspot.amd64.test \
kvn@42531 464 org.graalvm.compiler.hotspot.lir.test \
iveresov@49245 465 org.graalvm.compiler.hotspot.sparc.test \
kvn@42531 466 org.graalvm.compiler.hotspot.test \
kvn@42531 467 org.graalvm.compiler.jtt \
kvn@42531 468 org.graalvm.compiler.lir.jtt \
kvn@42531 469 org.graalvm.compiler.lir.test \
iveresov@46199 470 org.graalvm.compiler.loop.test \
kvn@42531 471 org.graalvm.compiler.microbenchmarks \
dlong@53546 472 org.graalvm.compiler.nodeinfo.processor \
kvn@42531 473 org.graalvm.compiler.nodes.test \
dlong@53546 474 org.graalvm.compiler.options.processor \
kvn@42531 475 org.graalvm.compiler.options.test \
kvn@42531 476 org.graalvm.compiler.phases.common.test \
dlong@53546 477 org.graalvm.compiler.processor \
dlong@53546 478 org.graalvm.compiler.replacements.jdk12.test \
dlong@53546 479 org.graalvm.compiler.replacements.jdk9.test \
dlong@53546 480 org.graalvm.compiler.replacements.processor \
kvn@42531 481 org.graalvm.compiler.replacements.test \
dlong@53546 482 org.graalvm.compiler.serviceprovider.processor \
kvn@42531 483 org.graalvm.compiler.test \
kvn@42531 484 org.graalvm.compiler.virtual.bench \
iveresov@46245 485 org.graalvm.micro.benchmarks \
iveresov@46199 486 org.graalvm.util.test \
kvn@42531 487 #
rfield@42302 488
rfield@42302 489 ################################################################################
rfield@42302 490
dnsimon@44830 491 # -parameters provides method's parameters information in class file,
dnsimon@44830 492 # JVMCI compilers make use of that information for various sanity checks.
dnsimon@44830 493 # Don't use Indy strings concatenation to have good JAOTC startup performance.
dnsimon@44830 494 # The exports are needed since JVMCI is dynamically exported (see
dnsimon@44830 495 # jdk.vm.ci.services.internal.ReflectionAccessJDK::openJVMCITo).
dnsimon@44830 496
erikj@47064 497 jdk.aot_ADD_JAVAC_FLAGS += -parameters -XDstringConcat=inline \
dnsimon@44830 498 --add-exports jdk.internal.vm.ci/jdk.vm.ci.aarch64=jdk.internal.vm.compiler,jdk.aot \
dnsimon@44830 499 --add-exports jdk.internal.vm.ci/jdk.vm.ci.amd64=jdk.internal.vm.compiler,jdk.aot \
dnsimon@44830 500 --add-exports jdk.internal.vm.ci/jdk.vm.ci.code=jdk.internal.vm.compiler,jdk.aot \
dnsimon@44830 501 --add-exports jdk.internal.vm.ci/jdk.vm.ci.code.site=jdk.internal.vm.compiler,jdk.aot \
dnsimon@44830 502 --add-exports jdk.internal.vm.ci/jdk.vm.ci.code.stack=jdk.internal.vm.compiler,jdk.aot \
dnsimon@44830 503 --add-exports jdk.internal.vm.ci/jdk.vm.ci.common=jdk.internal.vm.compiler,jdk.aot \
dnsimon@44830 504 --add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspot=jdk.internal.vm.compiler,jdk.aot \
dnsimon@44830 505 --add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspot.aarch64=jdk.internal.vm.compiler,jdk.aot \
dnsimon@44830 506 --add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspot.amd64=jdk.internal.vm.compiler,jdk.aot \
dnsimon@44830 507 --add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspot.sparc=jdk.internal.vm.compiler,jdk.aot \
dnsimon@44830 508 --add-exports jdk.internal.vm.ci/jdk.vm.ci.meta=jdk.internal.vm.compiler,jdk.aot \
dnsimon@44830 509 --add-exports jdk.internal.vm.ci/jdk.vm.ci.runtime=jdk.internal.vm.compiler,jdk.aot \
dnsimon@44830 510 --add-exports jdk.internal.vm.ci/jdk.vm.ci.sparc=jdk.internal.vm.compiler,jdk.aot \
dnsimon@44830 511 #
jlahoda@41271 512
iveresov@52162 513 jdk.aot_EXCLUDES += \
iveresov@52162 514 jdk.tools.jaotc.test
iveresov@52162 515 #
iveresov@52162 516
jlahoda@41271 517 ################################################################################
jlahoda@41271 518
erikj@47064 519 sun.charsets_COPY += .dat
chegar@25854 520
chegar@25854 521 ################################################################################
chegar@25854 522
erikj@47064 523 jdk.localedata_COPY += _dict _th
chegar@25854 524 # Exclude BreakIterator classes that are just used in compile process to generate
chegar@25854 525 # data files and shouldn't go in the product
naoto@40783 526 jdk.localedata_EXCLUDE_FILES += sun/text/resources/ext/BreakIteratorRules_th.java
erikj@51224 527 jdk.localedata_KEEP_ALL_TRANSLATIONS := true
egahlin@50662 528 ################################################################################
egahlin@50662 529
egahlin@50662 530 # There is an issue in sjavac that triggers a warning in jdk.jfr that isn't
egahlin@50662 531 # triggered without sjavac.
egahlin@50662 532 ifeq ($(ENABLE_SJAVAC), yes)
egahlin@50662 533 jdk.jfr_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
egahlin@50662 534 endif
egahlin@50662 535 jdk.jfr_COPY := .xsd .xml .dtd
egahlin@50662 536 jdk.jfr_ADD_JAVAC_FLAGS := -XDstringConcat=inline -Xlint:-exports
chegar@25854 537
chegar@25854 538 ################################################################################
erikj@41658 539 # If this is an imported module that has prebuilt classes, only compile
erikj@41658 540 # module-info.java.
erikj@41658 541 ifneq ($(wildcard $(IMPORT_MODULES_CLASSES)/$(MODULE)), )
erikj@41658 542 $(MODULE)_INCLUDE_FILES := module-info.java
erikj@41658 543 endif
erikj@41658 544
erikj@41658 545 ################################################################################
erikj@34102 546 # Setup the compilation for the module
chegar@25854 547 #
erikj@37030 548 MODULE_SRC_DIRS := $(call FindModuleSrcDirs, $(MODULE))
chegar@25854 549
chegar@25854 550 # The JDK_USER_DEFINED_FILTER is a poor man's incremental build: by specifying
chegar@25854 551 # JDK_FILTER at the make command line, only a subset of the JDK java files will
chegar@25854 552 # be recompiled. If multiple paths are separated by comma, convert that into a
chegar@25854 553 # space separated list.
chegar@25854 554 JDK_USER_DEFINED_FILTER := $(strip $(subst $(COMMA),$(SPACE), $(JDK_FILTER)))
erikj@38847 555 ifeq ($(JDK_FILTER), )
erikj@38847 556 FAIL_NO_SRC := true
erikj@38847 557 else
erikj@38847 558 # When using JDK_FILTER, most module java compilations will end up finding
erikj@38847 559 # no source files. Don't let that fail the build.
erikj@38847 560 FAIL_NO_SRC := false
erikj@38847 561 endif
chegar@25854 562
erikj@37030 563 # Get the complete module source path.
erikj@37030 564 MODULESOURCEPATH := $(call GetModuleSrcPath)
alundblad@31014 565
erikj@37030 566 # Add imported modules to the modulepath
erikj@37030 567 MODULEPATH := $(call PathList, $(IMPORT_MODULES_CLASSES))
chegar@25854 568
kvn@43925 569 ifeq ($(MODULE), jdk.internal.vm.ci)
kvn@43925 570 ## WORKAROUND jdk.internal.vm.ci source structure issue
alanb@36506 571 JVMCI_MODULESOURCEPATH := $(MODULESOURCEPATH) \
alanb@36506 572 $(subst /$(MODULE)/,/*/, $(filter-out %processor/src, \
erikj@47217 573 $(wildcard $(TOPDIR)/src/$(MODULE)/share/classes/*/src)))
erikj@37030 574 MODULESOURCEPATH := $(call PathList, $(JVMCI_MODULESOURCEPATH))
alanb@36506 575 endif
alanb@36506 576
kvn@43925 577 ifeq ($(MODULE), jdk.internal.vm.compiler)
kvn@43925 578 ## WORKAROUND jdk.internal.vm.compiler source structure issue
kvn@42531 579 VM_COMPILER_MODULESOURCEPATH := $(MODULESOURCEPATH) \
kvn@42531 580 $(subst /$(MODULE)/,/*/, $(filter-out %processor/src %test/src %jtt/src %bench/src %microbenchmarks/src, \
erikj@47217 581 $(wildcard $(TOPDIR)/src/$(MODULE)/share/classes/*/src)))
kvn@42531 582 MODULESOURCEPATH := $(call PathList, $(VM_COMPILER_MODULESOURCEPATH))
kvn@42531 583 endif
kvn@42531 584
kvn@42532 585 ifeq ($(MODULE), jdk.aot)
kvn@42532 586 ## WORKAROUND jdk.aot source structure issue
kvn@42532 587 AOT_MODULESOURCEPATH := $(MODULESOURCEPATH) \
kvn@42532 588 $(subst /$(MODULE)/,/*/, $(filter-out %processor/src, \
erikj@47217 589 $(wildcard $(TOPDIR)/src/$(MODULE)/share/classes/*/src)))
kvn@42532 590 MODULESOURCEPATH := $(call PathList, $(AOT_MODULESOURCEPATH))
kvn@42532 591 endif
kvn@42532 592
erikj@34102 593 $(eval $(call SetupJavaCompilation, $(MODULE), \
erikj@34102 594 SETUP := $(if $($(MODULE)_SETUP), $($(MODULE)_SETUP), GENERATE_JDKBYTECODE), \
alanb@36506 595 MODULE := $(MODULE), \
alanb@36506 596 SRC := $(wildcard $(MODULE_SRC_DIRS)), \
erikj@38847 597 INCLUDES := $(JDK_USER_DEFINED_FILTER), \
erikj@38847 598 FAIL_NO_SRC := $(FAIL_NO_SRC), \
alanb@36506 599 BIN := $(if $($(MODULE)_BIN), $($(MODULE)_BIN), $(JDK_OUTPUTDIR)/modules), \
alanb@36506 600 HEADERS := $(SUPPORT_OUTPUTDIR)/headers, \
erikj@47529 601 CREATE_API_DIGEST := true, \
alanb@36506 602 ADD_JAVAC_FLAGS := \
alanb@36506 603 $($(MODULE)_ADD_JAVAC_FLAGS) \
mchung@40241 604 --module-source-path $(MODULESOURCEPATH) \
mchung@40241 605 --module-path $(MODULEPATH) \
mchung@40611 606 --system none, \
erikj@34102 607 ))
alanb@36506 608
erikj@34102 609 TARGETS += $($(MODULE)) $($(MODULE)_COPY_EXTRA)
chegar@25854 610
erikj@34102 611 # Declare dependencies between java compilations of different modules.
erikj@34102 612 # Since the other modules are declared in different invocations of this file,
erikj@34102 613 # use the macro to find the correct target file to depend on.
erikj@34102 614 # Only the javac compilation actually depends on other modules so limit
erikj@34102 615 # dependency declaration to that by using the *_COMPILE_TARGET variable.
alanb@36506 616 $($(MODULE)_COMPILE_TARGET): $(foreach d, $(call FindDepsForModule, $(MODULE)), \
erikj@47529 617 $(call SetupJavaCompilationApiTarget, $d, \
erikj@34102 618 $(if $($d_BIN), $($d_BIN), $(JDK_OUTPUTDIR)/modules/$d)))
chegar@25854 619
chegar@25854 620 ################################################################################
chegar@25854 621 # Copy zh_HK properties files from zh_TW
chegar@25854 622
chegar@25854 623 $(JDK_OUTPUTDIR)/modules/%_zh_HK.properties: $(JDK_OUTPUTDIR)/modules/%_zh_TW.properties
chegar@25854 624 $(install-file)
chegar@25854 625
erikj@34102 626 CreateHkTargets = \
erikj@51890 627 $(call FilterExcludedTranslations, \
erikj@51890 628 $(patsubst $(TOPDIR)/src/%, $(JDK_OUTPUTDIR)/modules/%, \
erikj@51890 629 $(subst /share/classes,, \
erikj@51890 630 $(subst _zh_TW,_zh_HK, $(filter %_zh_TW.properties, $1)) \
erikj@51890 631 ) \
erikj@51890 632 ), \
erikj@51890 633 .properties \
erikj@51890 634 )
chegar@25854 635
erikj@34102 636 ifeq ($(MODULE), java.sql.rowset)
erikj@34102 637 TARGETS += $(call CreateHkTargets, $(java.sql.rowset_CLEAN_FILES))
erikj@34102 638 endif
chegar@25854 639
erikj@34102 640 ifeq ($(MODULE), java.rmi)
erikj@34102 641 TARGETS += $(call CreateHkTargets, $(java.rmi_CLEAN_FILES))
erikj@34102 642 endif
chegar@25854 643
erikj@34102 644 ################################################################################
alanb@36506 645 # If this is an imported module, copy the pre built classes and resources into
alanb@36506 646 # the modules output dir
alanb@36506 647
alanb@36506 648 ifneq ($(wildcard $(IMPORT_MODULES_CLASSES)/$(MODULE)), )
alanb@36506 649 $(JDK_OUTPUTDIR)/modules/$(MODULE)/_imported.marker: \
alanb@36506 650 $(call CacheFind, $(IMPORT_MODULES_CLASSES)/$(MODULE))
erikj@37037 651 $(call MakeDir, $(@D))
erikj@37037 652 # Do not delete marker and build meta data files
erikj@37037 653 $(RM) -r $(filter-out $(@D)/_%, $(wildcard $(@D)/*))
alanb@36506 654 $(CP) -R $(IMPORT_MODULES_CLASSES)/$(MODULE)/* $(@D)/
alanb@36506 655 $(TOUCH) $@
alanb@36506 656
alanb@36506 657 TARGETS += $(JDK_OUTPUTDIR)/modules/$(MODULE)/_imported.marker
alanb@36506 658
alanb@36506 659 # Add this dependency to avoid a race between compiling module-info.java and
alanb@36506 660 # importing the classes.
alanb@36506 661 $($(MODULE)_COMPILE_TARGET): $(JDK_OUTPUTDIR)/modules/$(MODULE)/_imported.marker
alanb@36506 662 endif
alanb@36506 663
alanb@36506 664 ################################################################################
alanb@36506 665
erikj@50897 666 ifeq ($(MODULE), jdk.scripting.nashorn)
erikj@50897 667 include CompileJavaModulesNashorn.gmk
erikj@50897 668 endif
erikj@50897 669
erikj@50897 670 ################################################################################
erikj@50897 671
ihse@47396 672 $(eval $(call IncludeCustomExtension, CompileJavaModules-post.gmk))
alanb@36506 673
alanb@36506 674 ################################################################################
erikj@34102 675
erikj@34102 676 all: $(TARGETS)
erikj@34102 677
erikj@34102 678 .PHONY: all