< prev index next >

make/CompileJavaModules.gmk

Print this page




  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
  23 # questions.
  24 #
  25 
  26 # This must be the first rule
  27 default: all
  28 
  29 include $(SPEC)
  30 include MakeBase.gmk
  31 include Modules.gmk
  32 include JavaCompilation.gmk
  33 include SetupJavaCompilers.gmk
  34 
  35 # Hook to include the corresponding custom file, if present.
  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.*' -XDstringConcat=inline
  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_EXCLUDE_FILES += \
  50   $(TOPDIR)/src/java.base/share/classes/jdk/internal/module/ModuleLoaderMap.java
  51 
  52 java.base_EXCLUDES += java/lang/doc-files
  53 
  54 # Exclude BreakIterator classes that are just used in compile process to generate
  55 # data files and shouldn't go in the product
  56 java.base_EXCLUDE_FILES += sun/text/resources/BreakIteratorRules.java


 672 # the modules output dir
 673 
 674 ifneq ($(wildcard $(IMPORT_MODULES_CLASSES)/$(MODULE)), )
 675   $(JDK_OUTPUTDIR)/modules/$(MODULE)/_imported.marker: \
 676       $(call CacheFind, $(IMPORT_MODULES_CLASSES)/$(MODULE))
 677         $(call MakeDir, $(@D))
 678         # Do not delete marker and build meta data files
 679         $(RM) -r $(filter-out $(@D)/_%, $(wildcard $(@D)/*))
 680         $(CP) -R $(IMPORT_MODULES_CLASSES)/$(MODULE)/* $(@D)/
 681         $(TOUCH) $@
 682 
 683   TARGETS += $(JDK_OUTPUTDIR)/modules/$(MODULE)/_imported.marker
 684 
 685   # Add this dependency to avoid a race between compiling module-info.java and
 686   # importing the classes.
 687   $($(MODULE)_COMPILE_TARGET): $(JDK_OUTPUTDIR)/modules/$(MODULE)/_imported.marker
 688 endif
 689 
 690 ################################################################################
 691 
 692 $(eval $(call IncludeCustomExtension, , CompileJavaModules-post.gmk))
 693 
 694 ################################################################################
 695 
 696 all: $(TARGETS)
 697 
 698 .PHONY: all


  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
  23 # questions.
  24 #
  25 
  26 # This must be the first rule
  27 default: all
  28 
  29 include $(SPEC)
  30 include MakeBase.gmk
  31 include Modules.gmk
  32 include JavaCompilation.gmk
  33 include SetupJavaCompilers.gmk
  34 
  35 # Hook to include the corresponding custom file, if present.
  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.*' -XDstringConcat=inline
  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_EXCLUDE_FILES += \
  50   $(TOPDIR)/src/java.base/share/classes/jdk/internal/module/ModuleLoaderMap.java
  51 
  52 java.base_EXCLUDES += java/lang/doc-files
  53 
  54 # Exclude BreakIterator classes that are just used in compile process to generate
  55 # data files and shouldn't go in the product
  56 java.base_EXCLUDE_FILES += sun/text/resources/BreakIteratorRules.java


 672 # the modules output dir
 673 
 674 ifneq ($(wildcard $(IMPORT_MODULES_CLASSES)/$(MODULE)), )
 675   $(JDK_OUTPUTDIR)/modules/$(MODULE)/_imported.marker: \
 676       $(call CacheFind, $(IMPORT_MODULES_CLASSES)/$(MODULE))
 677         $(call MakeDir, $(@D))
 678         # Do not delete marker and build meta data files
 679         $(RM) -r $(filter-out $(@D)/_%, $(wildcard $(@D)/*))
 680         $(CP) -R $(IMPORT_MODULES_CLASSES)/$(MODULE)/* $(@D)/
 681         $(TOUCH) $@
 682 
 683   TARGETS += $(JDK_OUTPUTDIR)/modules/$(MODULE)/_imported.marker
 684 
 685   # Add this dependency to avoid a race between compiling module-info.java and
 686   # importing the classes.
 687   $($(MODULE)_COMPILE_TARGET): $(JDK_OUTPUTDIR)/modules/$(MODULE)/_imported.marker
 688 endif
 689 
 690 ################################################################################
 691 
 692 $(eval $(call IncludeCustomExtension, CompileJavaModules-post.gmk))
 693 
 694 ################################################################################
 695 
 696 all: $(TARGETS)
 697 
 698 .PHONY: all
< prev index next >