annotate make/CompileJavaModules.gmk @ 48678:42ad9a781f51

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