< prev index next >

make/CompileJavaModules.gmk

Print this page




  36 $(eval $(call IncludeCustomExtension, , CompileJavaModules.gmk))
  37 
  38 ################################################################################
  39 # Module specific build settings
  40 
  41 java.activation_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
  42 
  43 ################################################################################
  44 
  45 java.base_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
  46 java.base_COPY := .icu .dat .spp content-types.properties hijrah-config-islamic-umalqura.properties
  47 java.base_CLEAN := intrinsic.properties
  48 
  49 java.base_EXCLUDES += java/lang/doc-files
  50 
  51 # Exclude BreakIterator classes that are just used in compile process to generate
  52 # data files and shouldn't go in the product
  53 java.base_EXCLUDE_FILES += sun/text/resources/BreakIteratorRules.java
  54 
  55 ifeq ($(OPENJDK_TARGET_OS), macosx)
  56   JAVA_BASE_UNIX_DIR := $(JDK_TOPDIR)/src/java.base/unix/classes
  57   # TODO: make JavaCompilation handle overrides automatically instead of excluding here
  58   # These files are overridden in macosx
  59   java.base_EXCLUDE_FILES += \
  60       $(JAVA_BASE_UNIX_DIR)/sun/util/locale/provider/HostLocaleProviderAdapterImpl.java \
  61       $(JAVA_BASE_UNIX_DIR)/java/net/DefaultInterface.java \
  62       $(JAVA_BASE_UNIX_DIR)/java/lang/ClassLoaderHelper.java \
  63       $(JAVA_BASE_UNIX_DIR)/sun/nio/ch/DefaultSelectorProvider.java \
  64       #
  65   # This is just skipped on macosx
  66   java.base_EXCLUDE_FILES += $(JAVA_BASE_UNIX_DIR)/sun/nio/fs/GnomeFileTypeDetector.java
  67 endif
  68 
  69 ifneq ($(OPENJDK_TARGET_OS), solaris)
  70   java.base_EXCLUDE_FILES += \
  71       SolarisLoginModule.java \
  72       SolarisSystem.java \
  73       #
  74 endif
  75 
  76 ifeq ($(filter $(OPENJDK_TARGET_OS), solaris macosx aix), )
  77   #
  78   # only solaris, macosx and aix
  79   #
  80   java.base_EXCLUDE_FILES += sun/nio/fs/PollingWatchService.java
  81 endif
  82 
  83 ifeq ($(OPENJDK_TARGET_OS), windows)
  84   java.base_EXCLUDE_FILES += \
  85       sun/nio/ch/AbstractPollSelectorImpl.java \
  86       sun/nio/ch/PollSelectorProvider.java \


 230   java.desktop_EXCLUDE_FILES += sun/awt/AWTCharset.java
 231 endif
 232 
 233 # These files do not appear in the build result of the old build. This
 234 # is because they are generated sources, but the AUTO_JAVA_FILES won't
 235 # pick them up since they aren't generated when the source dirs are
 236 # searched and they aren't referenced by any other classes so they won't
 237 # be picked up by implicit compilation. On a rebuild, they are picked up
 238 # and compiled. Exclude them here to produce the same rt.jar as the old
 239 # build does when building just once.
 240 java.desktop_EXCLUDE_FILES += \
 241     javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
 242     javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \
 243     javax/swing/plaf/nimbus/ScrollBarPainter.java \
 244     javax/swing/plaf/nimbus/SliderPainter.java \
 245     javax/swing/plaf/nimbus/SpinnerPainter.java \
 246     javax/swing/plaf/nimbus/SplitPanePainter.java \
 247     javax/swing/plaf/nimbus/TabbedPanePainter.java \
 248     #
 249 
 250 ifeq ($(OPENJDK_TARGET_OS), macosx)
 251   # These files are duplicated in MACOSX_SRC_DIRS
 252   java.desktop_EXCLUDE_FILES += \
 253       $(JDK_TOPDIR)/src/java.desktop/unix/classes/sun/java2d/BackBufferCapsProvider.java \
 254       #
 255 endif
 256 
 257 ################################################################################
 258 
 259 java.scripting_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
 260 java.scripting_COPY := .js
 261 java.scripting_CLEAN := .properties
 262 
 263 ################################################################################
 264 
 265 java.instrument_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
 266 
 267 ################################################################################
 268 
 269 java.logging_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
 270 
 271 ################################################################################
 272 
 273 java.management_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
 274 
 275 ################################################################################
 276 


 401 
 402 # No SCTP implementation on Mac OS X or AIX. These classes should be excluded.
 403 SCTP_IMPL_CLASSES = \
 404     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationChange.java \
 405     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationImpl.java \
 406     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/PeerAddrChange.java \
 407     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/ResultContainer.java \
 408     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpChannelImpl.java \
 409     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpMultiChannelImpl.java \
 410     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpNet.java \
 411     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpNotification.java \
 412     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpServerChannelImpl.java \
 413     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SendFailed.java \
 414     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/Shutdown.java
 415 
 416 ifeq ($(OPENJDK_TARGET_OS), macosx)
 417   jdk.sctp_EXCLUDE_FILES += $(SCTP_IMPL_CLASSES)
 418 endif
 419 
 420 ifeq ($(OPENJDK_TARGET_OS),aix)
 421   # These files are duplicated in AIX_SRC_DIRS
 422   jdk.sctp_EXCLUDE_FILES += $(SCTP_IMPL_CLASSES)
 423 endif
 424 
 425 ################################################################################
 426 
 427 jdk.jconsole_COPY := .gif .png
 428 
 429 jdk.jconsole_CLEAN_FILES := $(wildcard \
 430     $(JDK_TOPDIR)/src/jdk.jconsole/share/classes/sun/tools/jconsole/resources/*.properties)
 431 
 432 ################################################################################
 433 
 434 jdk.jdi_EXCLUDES += \
 435     com/sun/tools/example/debug/bdi \
 436     com/sun/tools/example/debug/event \
 437     com/sun/tools/example/debug/gui \
 438     com/sun/jdi/doc-files \
 439     #
 440 
 441 jdk.jdi_EXCLUDE_FILES += jdi-overview.html




  36 $(eval $(call IncludeCustomExtension, , CompileJavaModules.gmk))
  37 
  38 ################################################################################
  39 # Module specific build settings
  40 
  41 java.activation_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
  42 
  43 ################################################################################
  44 
  45 java.base_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
  46 java.base_COPY := .icu .dat .spp content-types.properties hijrah-config-islamic-umalqura.properties
  47 java.base_CLEAN := intrinsic.properties
  48 
  49 java.base_EXCLUDES += java/lang/doc-files
  50 
  51 # Exclude BreakIterator classes that are just used in compile process to generate
  52 # data files and shouldn't go in the product
  53 java.base_EXCLUDE_FILES += sun/text/resources/BreakIteratorRules.java
  54 
  55 ifeq ($(OPENJDK_TARGET_OS), macosx)
  56   java.base_EXCLUDE_FILES += sun/nio/fs/GnomeFileTypeDetector.java










  57 endif
  58 
  59 ifneq ($(OPENJDK_TARGET_OS), solaris)
  60   java.base_EXCLUDE_FILES += \
  61       SolarisLoginModule.java \
  62       SolarisSystem.java \
  63       #
  64 endif
  65 
  66 ifeq ($(filter $(OPENJDK_TARGET_OS), solaris macosx aix), )
  67   #
  68   # only solaris, macosx and aix
  69   #
  70   java.base_EXCLUDE_FILES += sun/nio/fs/PollingWatchService.java
  71 endif
  72 
  73 ifeq ($(OPENJDK_TARGET_OS), windows)
  74   java.base_EXCLUDE_FILES += \
  75       sun/nio/ch/AbstractPollSelectorImpl.java \
  76       sun/nio/ch/PollSelectorProvider.java \


 220   java.desktop_EXCLUDE_FILES += sun/awt/AWTCharset.java
 221 endif
 222 
 223 # These files do not appear in the build result of the old build. This
 224 # is because they are generated sources, but the AUTO_JAVA_FILES won't
 225 # pick them up since they aren't generated when the source dirs are
 226 # searched and they aren't referenced by any other classes so they won't
 227 # be picked up by implicit compilation. On a rebuild, they are picked up
 228 # and compiled. Exclude them here to produce the same rt.jar as the old
 229 # build does when building just once.
 230 java.desktop_EXCLUDE_FILES += \
 231     javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
 232     javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \
 233     javax/swing/plaf/nimbus/ScrollBarPainter.java \
 234     javax/swing/plaf/nimbus/SliderPainter.java \
 235     javax/swing/plaf/nimbus/SpinnerPainter.java \
 236     javax/swing/plaf/nimbus/SplitPanePainter.java \
 237     javax/swing/plaf/nimbus/TabbedPanePainter.java \
 238     #
 239 







 240 ################################################################################
 241 
 242 java.scripting_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
 243 java.scripting_COPY := .js
 244 java.scripting_CLEAN := .properties
 245 
 246 ################################################################################
 247 
 248 java.instrument_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
 249 
 250 ################################################################################
 251 
 252 java.logging_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
 253 
 254 ################################################################################
 255 
 256 java.management_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
 257 
 258 ################################################################################
 259 


 384 
 385 # No SCTP implementation on Mac OS X or AIX. These classes should be excluded.
 386 SCTP_IMPL_CLASSES = \
 387     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationChange.java \
 388     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationImpl.java \
 389     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/PeerAddrChange.java \
 390     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/ResultContainer.java \
 391     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpChannelImpl.java \
 392     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpMultiChannelImpl.java \
 393     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpNet.java \
 394     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpNotification.java \
 395     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpServerChannelImpl.java \
 396     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SendFailed.java \
 397     $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/Shutdown.java
 398 
 399 ifeq ($(OPENJDK_TARGET_OS), macosx)
 400   jdk.sctp_EXCLUDE_FILES += $(SCTP_IMPL_CLASSES)
 401 endif
 402 
 403 ifeq ($(OPENJDK_TARGET_OS),aix)

 404   jdk.sctp_EXCLUDE_FILES += $(SCTP_IMPL_CLASSES)
 405 endif
 406 
 407 ################################################################################
 408 
 409 jdk.jconsole_COPY := .gif .png
 410 
 411 jdk.jconsole_CLEAN_FILES := $(wildcard \
 412     $(JDK_TOPDIR)/src/jdk.jconsole/share/classes/sun/tools/jconsole/resources/*.properties)
 413 
 414 ################################################################################
 415 
 416 jdk.jdi_EXCLUDES += \
 417     com/sun/tools/example/debug/bdi \
 418     com/sun/tools/example/debug/event \
 419     com/sun/tools/example/debug/gui \
 420     com/sun/jdi/doc-files \
 421     #
 422 
 423 jdk.jdi_EXCLUDE_FILES += jdi-overview.html


< prev index next >