< prev index next >

jdk/make/CompileJavaClasses.gmk

Print this page


   1 #
   2 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


  37 EXCLUDES :=
  38 
  39 ##########################################################################################
  40 # Include the corresponding custom file, if present.
  41 
  42 -include $(CUSTOM_MAKE_DIR)/CompileJavaClasses.gmk
  43 
  44 ##########################################################################################
  45 
  46 EXCLUDES += com/sun/pept \
  47     com/sun/tools/example/trace \
  48     com/sun/tools/example/debug/bdi \
  49     com/sun/tools/example/debug/event \
  50     com/sun/tools/example/debug/gui
  51 
  52 ifdef OPENJDK
  53   EXCLUDES += sun/dc \
  54       com/sun/jmx/snmp \
  55       sun/management/snmp \
  56       com/sun/script








  57 endif
  58 
  59 ifndef OPENJDK
  60   # There exists two versions of these files...
  61   EXFILES += $(JDK_TOPDIR)/src/share/classes/javax/crypto/JarVerifier.java
  62 
  63   ifeq ($(OPENJDK_TARGET_OS), windows)
  64     # This gets built on unix platforms implicitly in the old build even though
  65     # it's excluded in the closed build.
  66     EXCLUDES += sun/java2d/pisces
  67 
  68     # AccessBridge is compiled separately below.
  69     EXFILES += AccessBridge.java \
  70         AccessBridgeLoader.java \
  71         com/sun/java/accessibility/util/java/awt/ChoiceTranslator.java
  72     # This seems to never be built
  73     EXCLUDES += com/sun/java/accessibility/extensions
  74   endif
  75 
  76 endif
  77 
  78 ifneq ($(OPENJDK_TARGET_OS), solaris)
  79   # Exclude Solaris nio and two security related files in src/share/classes
  80   EXFILES += SolarisAclFileAttributeView.java \
  81       SolarisFileStore.java \
  82       SolarisFileSystem.java \
  83       SolarisFileSystemProvider.java \
  84       SolarisNativeDispatcher.java \
  85       SolarisUserDefinedFileAttributeView.java \
  86       SolarisWatchService.java \
  87       SolarisAclFileAttributeView.java \
  88       SolarisLoginModule.java \
  89       SolarisSystem.java \
  90       sun/nio/ch/DevPollArrayWrapper.java \
  91       sun/nio/ch/DevPollSelectorImpl.java \
  92       sun/nio/ch/DevPollSelectorProvider.java \
  93       sun/nio/ch/EventPortSelectorImpl.java \


 254 # These files do not appear in the build result of the old build. This
 255 # is because they are generated sources, but the AUTO_JAVA_FILES won't
 256 # pick them up since they aren't generated when the source dirs are
 257 # searched and they aren't referenced by any other classes so they won't
 258 # be picked up by implicit compilation. On a rebuild, they are picked up
 259 # and compiled. Exclude them here to produce the same rt.jar as the old
 260 # build does when building just once.
 261 EXFILES += javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
 262     javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \
 263     javax/swing/plaf/nimbus/ScrollBarPainter.java \
 264     javax/swing/plaf/nimbus/SliderPainter.java \
 265     javax/swing/plaf/nimbus/SpinnerPainter.java \
 266     javax/swing/plaf/nimbus/SplitPanePainter.java \
 267     javax/swing/plaf/nimbus/TabbedPanePainter.java
 268 
 269 # Acquire a list of files that should be copied straight over to the classes.
 270 include CopyIntoClasses.gmk
 271 # Now we have COPY_PATTERNS, COPY_FILES and COPY_EXTRA
 272 
 273 ifndef OPENJDK



 274   CLOSED_SRC_DIRS := $(JDK_TOPDIR)/src/closed/share/classes \
 275       $(JDK_TOPDIR)/src/closed/$(OPENJDK_TARGET_OS_API_DIR)/classes

 276 endif
 277 
 278 MACOSX_SRC_DIRS :=
 279 ifeq ($(OPENJDK_TARGET_OS), macosx)
 280   MACOSX_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/classes
 281 
 282   # this files are duplicated in MACOSX_SRC_DIRS
 283   EXFILES += $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/DefaultSelectorProvider.java \
 284       $(JDK_TOPDIR)/src/solaris/classes/sun/java2d/BackBufferCapsProvider.java \
 285       $(JDK_TOPDIR)/src/solaris/classes/java/net/DefaultInterface.java \
 286       $(JDK_TOPDIR)/src/solaris/classes/java/lang/ClassLoaderHelper.java \
 287       $(JDK_TOPDIR)/src/solaris/classes/sun/util/locale/provider/HostLocaleProviderAdapterImpl.java \
 288       $(JDK_TOPDIR)/src/solaris/classes/sun/nio/fs/GnomeFileTypeDetector.java \
 289       $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/SctpChannelImpl.java \
 290       $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/SctpMultiChannelImpl.java \
 291       $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/SctpServerChannelImpl.java
 292 
 293 endif
 294 
 295 # The security classes should not end up in the classes directory as that will prevent them


 362         $(CLOSED_SRC_DIRS), \
 363     INCLUDES := $(SECURITY_PKGS), \
 364     EXCLUDES := $(EXCLUDES), \
 365     EXCLUDE_FILES := $(EXFILES), \
 366     BIN := $(JDK_OUTPUTDIR)/classes_security, \
 367     HEADERS := $(JDK_OUTPUTDIR)/gensrc_headers))
 368 
 369 $(BUILD_SECURITY): $(BUILD_JDK)
 370 
 371 ##########################################################################################
 372 
 373 $(JDK_OUTPUTDIR)/classes/META-INF/services/com.sun.tools.xjc.Plugin:
 374         $(MKDIR) -p $(@D)
 375         $(TOUCH) $@
 376 
 377 ##########################################################################################
 378 
 379 
 380 ##########################################################################################
 381 
 382 ifndef OPENJDK
 383   ifeq ($(OPENJDK_TARGET_OS), windows)
 384     ifeq ($(OPENJDK_TARGET_CPU_BITS), 32)
 385       $(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_32, \
 386           SETUP := GENERATE_JDKBYTECODE, \
 387           JAVAC_FLAGS := -cp $(JDK_OUTPUTDIR)/classes, \
 388           SRC := $(JDK_OUTPUTDIR)/gensrc_ab/32bit, \
 389           BIN := $(JDK_OUTPUTDIR)/classes_ab/32bit, \
 390           HEADERS := $(JDK_OUTPUTDIR)/gensrc_headers))
 391 
 392       $(BUILD_ACCESSBRIDGE_32): $(BUILD_JDK)
 393 
 394       $(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_LEGACY, \
 395           SETUP := GENERATE_JDKBYTECODE, \
 396           JAVAC_FLAGS := -cp $(JDK_OUTPUTDIR)/classes, \
 397           SRC := $(JDK_OUTPUTDIR)/gensrc_ab/legacy, \
 398           BIN := $(JDK_OUTPUTDIR)/classes_ab/legacy, \
 399           HEADERS := $(JDK_OUTPUTDIR)/gensrc_headers))
 400 
 401       $(BUILD_ACCESSBRIDGE_LEGACY): $(BUILD_JDK)
 402 


   1 #
   2 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


  37 EXCLUDES :=
  38 
  39 ##########################################################################################
  40 # Include the corresponding custom file, if present.
  41 
  42 -include $(CUSTOM_MAKE_DIR)/CompileJavaClasses.gmk
  43 
  44 ##########################################################################################
  45 
  46 EXCLUDES += com/sun/pept \
  47     com/sun/tools/example/trace \
  48     com/sun/tools/example/debug/bdi \
  49     com/sun/tools/example/debug/event \
  50     com/sun/tools/example/debug/gui
  51 
  52 ifdef OPENJDK
  53   EXCLUDES += sun/dc \
  54       com/sun/jmx/snmp \
  55       sun/management/snmp \
  56       com/sun/script
  57 
  58   # AccessBridge is compiled separately below.
  59   EXFILES += AccessBridge.java \
  60     AccessBridgeLoader.java \
  61     com/sun/java/accessibility/util/java/awt/ChoiceTranslator.java
  62   # This seems to never be built
  63   EXCLUDES += com/sun/java/accessibility/extensions
  64 
  65 endif
  66 
  67 ifndef OPENJDK
  68   # There exists two versions of these files...
  69   EXFILES += $(JDK_TOPDIR)/src/share/classes/javax/crypto/JarVerifier.java
  70 
  71   ifeq ($(OPENJDK_TARGET_OS), windows)
  72     # This gets built on unix platforms implicitly in the old build even though
  73     # it's excluded in the closed build.
  74     EXCLUDES += sun/java2d/pisces
  75 






  76   endif
  77 
  78 endif
  79 
  80 ifneq ($(OPENJDK_TARGET_OS), solaris)
  81   # Exclude Solaris nio and two security related files in src/share/classes
  82   EXFILES += SolarisAclFileAttributeView.java \
  83       SolarisFileStore.java \
  84       SolarisFileSystem.java \
  85       SolarisFileSystemProvider.java \
  86       SolarisNativeDispatcher.java \
  87       SolarisUserDefinedFileAttributeView.java \
  88       SolarisWatchService.java \
  89       SolarisAclFileAttributeView.java \
  90       SolarisLoginModule.java \
  91       SolarisSystem.java \
  92       sun/nio/ch/DevPollArrayWrapper.java \
  93       sun/nio/ch/DevPollSelectorImpl.java \
  94       sun/nio/ch/DevPollSelectorProvider.java \
  95       sun/nio/ch/EventPortSelectorImpl.java \


 256 # These files do not appear in the build result of the old build. This
 257 # is because they are generated sources, but the AUTO_JAVA_FILES won't
 258 # pick them up since they aren't generated when the source dirs are
 259 # searched and they aren't referenced by any other classes so they won't
 260 # be picked up by implicit compilation. On a rebuild, they are picked up
 261 # and compiled. Exclude them here to produce the same rt.jar as the old
 262 # build does when building just once.
 263 EXFILES += javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
 264     javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \
 265     javax/swing/plaf/nimbus/ScrollBarPainter.java \
 266     javax/swing/plaf/nimbus/SliderPainter.java \
 267     javax/swing/plaf/nimbus/SpinnerPainter.java \
 268     javax/swing/plaf/nimbus/SplitPanePainter.java \
 269     javax/swing/plaf/nimbus/TabbedPanePainter.java
 270 
 271 # Acquire a list of files that should be copied straight over to the classes.
 272 include CopyIntoClasses.gmk
 273 # Now we have COPY_PATTERNS, COPY_FILES and COPY_EXTRA
 274 
 275 ifndef OPENJDK
 276   ifeq ($(OPENJDK_TARGET_OS), windows) 
 277     CLOSED_SRC_DIRS := $(JDK_TOPDIR)/src/closed/share/classes
 278   else
 279     CLOSED_SRC_DIRS := $(JDK_TOPDIR)/src/closed/share/classes \
 280       $(JDK_TOPDIR)/src/closed/$(OPENJDK_TARGET_OS_API_DIR)/classes
 281   endif
 282 endif
 283 
 284 MACOSX_SRC_DIRS :=
 285 ifeq ($(OPENJDK_TARGET_OS), macosx)
 286   MACOSX_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/classes
 287 
 288   # this files are duplicated in MACOSX_SRC_DIRS
 289   EXFILES += $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/DefaultSelectorProvider.java \
 290       $(JDK_TOPDIR)/src/solaris/classes/sun/java2d/BackBufferCapsProvider.java \
 291       $(JDK_TOPDIR)/src/solaris/classes/java/net/DefaultInterface.java \
 292       $(JDK_TOPDIR)/src/solaris/classes/java/lang/ClassLoaderHelper.java \
 293       $(JDK_TOPDIR)/src/solaris/classes/sun/util/locale/provider/HostLocaleProviderAdapterImpl.java \
 294       $(JDK_TOPDIR)/src/solaris/classes/sun/nio/fs/GnomeFileTypeDetector.java \
 295       $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/SctpChannelImpl.java \
 296       $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/SctpMultiChannelImpl.java \
 297       $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/SctpServerChannelImpl.java
 298 
 299 endif
 300 
 301 # The security classes should not end up in the classes directory as that will prevent them


 368         $(CLOSED_SRC_DIRS), \
 369     INCLUDES := $(SECURITY_PKGS), \
 370     EXCLUDES := $(EXCLUDES), \
 371     EXCLUDE_FILES := $(EXFILES), \
 372     BIN := $(JDK_OUTPUTDIR)/classes_security, \
 373     HEADERS := $(JDK_OUTPUTDIR)/gensrc_headers))
 374 
 375 $(BUILD_SECURITY): $(BUILD_JDK)
 376 
 377 ##########################################################################################
 378 
 379 $(JDK_OUTPUTDIR)/classes/META-INF/services/com.sun.tools.xjc.Plugin:
 380         $(MKDIR) -p $(@D)
 381         $(TOUCH) $@
 382 
 383 ##########################################################################################
 384 
 385 
 386 ##########################################################################################
 387 
 388 ifdef OPENJDK
 389   ifeq ($(OPENJDK_TARGET_OS), windows)
 390     ifeq ($(OPENJDK_TARGET_CPU_BITS), 32)
 391       $(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_32, \
 392           SETUP := GENERATE_JDKBYTECODE, \
 393           JAVAC_FLAGS := -cp $(JDK_OUTPUTDIR)/classes, \
 394           SRC := $(JDK_OUTPUTDIR)/gensrc_ab/32bit, \
 395           BIN := $(JDK_OUTPUTDIR)/classes_ab/32bit, \
 396           HEADERS := $(JDK_OUTPUTDIR)/gensrc_headers))
 397 
 398       $(BUILD_ACCESSBRIDGE_32): $(BUILD_JDK)
 399 
 400       $(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_LEGACY, \
 401           SETUP := GENERATE_JDKBYTECODE, \
 402           JAVAC_FLAGS := -cp $(JDK_OUTPUTDIR)/classes, \
 403           SRC := $(JDK_OUTPUTDIR)/gensrc_ab/legacy, \
 404           BIN := $(JDK_OUTPUTDIR)/classes_ab/legacy, \
 405           HEADERS := $(JDK_OUTPUTDIR)/gensrc_headers))
 406 
 407       $(BUILD_ACCESSBRIDGE_LEGACY): $(BUILD_JDK)
 408 


< prev index next >