< prev index next >

make/CompileInterimLangtools.gmk

Print this page




  52 ################################################################################
  53 # Setup the rules to build interim langtools, which is compiled by the boot
  54 # javac and can be run on the boot jdk. This will be used to compile the rest of
  55 # the product. Each module is compiled separately because a multi module setup
  56 # would require the source files to be copied into directories named after the
  57 # actual interim modules.
  58 
  59 # Param 1 - Name of module to compile
  60 define SetupInterimModule
  61   $$(eval $$(call SetupJavaCompilation, BUILD_$1.interim, \
  62       SETUP := BOOT_JAVAC, \
  63       DISABLE_SJAVAC := true, \
  64       SRC := $(BUILDTOOLS_OUTPUTDIR)/gensrc/$1.interim \
  65           $$(wildcard $(SUPPORT_OUTPUTDIR)/gensrc/$1) \
  66           $(TOPDIR)/src/$1/share/classes, \
  67       EXCLUDES := sun, \
  68       EXCLUDE_FILES := $(TOPDIR)/src/$1/share/classes/module-info.java \
  69           Standard.java, \
  70       EXTRA_FILES := $(BUILDTOOLS_OUTPUTDIR)/gensrc/$1.interim/module-info.java, \
  71       COPY := .gif .png .xml .css .js javax.tools.JavaCompilerTool, \
  72       BIN := $(BUILDTOOLS_OUTPUTDIR)/interim_modules/$1.interim, \
  73       ADD_JAVAC_FLAGS := --module-path $(BUILDTOOLS_OUTPUTDIR)/interim_modules \
  74           $$(INTERIM_LANGTOOLS_ADD_EXPORTS) \
  75           -Xlint:-module, \
  76   ))
  77 
  78   $1_DEPS_INTERIM := $$(addsuffix .interim, $$(filter \
  79       $$(INTERIM_LANGTOOLS_BASE_MODULES), $$(call FindTransitiveDepsForModule, $1)))
  80 
  81   $$(BUILD_$1.interim): $$(foreach d, $$($1_DEPS_INTERIM), $$(BUILD_$$d))
  82 
  83   TARGETS += $$(BUILD_$1.interim)
  84 endef
  85 
  86 $(foreach m, $(INTERIM_LANGTOOLS_BASE_MODULES), \
  87   $(eval $(call SetupInterimModule,$m)) \
  88 )
  89 
  90 ################################################################################
  91 
  92 all: $(TARGETS)


  52 ################################################################################
  53 # Setup the rules to build interim langtools, which is compiled by the boot
  54 # javac and can be run on the boot jdk. This will be used to compile the rest of
  55 # the product. Each module is compiled separately because a multi module setup
  56 # would require the source files to be copied into directories named after the
  57 # actual interim modules.
  58 
  59 # Param 1 - Name of module to compile
  60 define SetupInterimModule
  61   $$(eval $$(call SetupJavaCompilation, BUILD_$1.interim, \
  62       SETUP := BOOT_JAVAC, \
  63       DISABLE_SJAVAC := true, \
  64       SRC := $(BUILDTOOLS_OUTPUTDIR)/gensrc/$1.interim \
  65           $$(wildcard $(SUPPORT_OUTPUTDIR)/gensrc/$1) \
  66           $(TOPDIR)/src/$1/share/classes, \
  67       EXCLUDES := sun, \
  68       EXCLUDE_FILES := $(TOPDIR)/src/$1/share/classes/module-info.java \
  69           Standard.java, \
  70       EXTRA_FILES := $(BUILDTOOLS_OUTPUTDIR)/gensrc/$1.interim/module-info.java, \
  71       COPY := .gif .png .xml .css .js javax.tools.JavaCompilerTool, \
  72       BIN := $(BUILDTOOLS_OUTPUTDIR)/interim_langtools_modules/$1.interim, \
  73       ADD_JAVAC_FLAGS := --module-path $(BUILDTOOLS_OUTPUTDIR)/interim_langtools_modules \
  74           $$(INTERIM_LANGTOOLS_ADD_EXPORTS) \
  75           -Xlint:-module, \
  76   ))
  77 
  78   $1_DEPS_INTERIM := $$(addsuffix .interim, $$(filter \
  79       $$(INTERIM_LANGTOOLS_BASE_MODULES), $$(call FindTransitiveDepsForModule, $1)))
  80 
  81   $$(BUILD_$1.interim): $$(foreach d, $$($1_DEPS_INTERIM), $$(BUILD_$$d))
  82 
  83   TARGETS += $$(BUILD_$1.interim)
  84 endef
  85 
  86 $(foreach m, $(INTERIM_LANGTOOLS_BASE_MODULES), \
  87   $(eval $(call SetupInterimModule,$m)) \
  88 )
  89 
  90 ################################################################################
  91 
  92 all: $(TARGETS)
< prev index next >