< prev index next >

make/CompileJavaModules.gmk

Print this page




 435     com/sun/tools/example/debug/gui \
 436     com/sun/jdi/doc-files \
 437     #
 438 
 439 jdk.jdi_EXCLUDE_FILES += jdi-overview.html
 440 
 441 ################################################################################
 442 
 443 jdk.dev_CLEAN_FILES := $(wildcard \
 444     $(patsubst %, $(JDK_TOPDIR)/src/jdk.dev/share/classes/%/*.properties, \
 445         com/sun/tools/script/shell))
 446 
 447 jdk.dev_COPY := .js oqlhelp.html .txt
 448 
 449 ################################################################################
 450 
 451 jdk.jvmstat_COPY := aliasmap
 452 
 453 ################################################################################
 454 
 455 jdk.vm.ci_ADD_JAVAC_FLAGS := -Xlint:-exports






































 456 
 457 ################################################################################
 458 
 459 jdk.xml.bind_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
 460 jdk.xml.bind_CLEAN := .properties
 461 jdk.xml.bind_COPY := .xsd JAXBContextFactory.java ZeroOneBooleanAdapter.java
 462 
 463 ################################################################################
 464 
 465 jdk.xml.ws_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
 466 jdk.xml.ws_CLEAN := .properties
 467 
 468 ################################################################################
 469 
 470 sun.charsets_COPY := .dat
 471 
 472 ################################################################################
 473 
 474 jdk.localedata_COPY := _dict _th
 475 # Exclude BreakIterator classes that are just used in compile process to generate


 496 ifeq ($(JDK_FILTER), )
 497   FAIL_NO_SRC := true
 498 else
 499   # When using JDK_FILTER, most module java compilations will end up finding
 500   # no source files. Don't let that fail the build.
 501   FAIL_NO_SRC := false
 502 endif
 503 
 504 # Get the complete module source path.
 505 MODULESOURCEPATH := $(call GetModuleSrcPath)
 506 
 507 # Add imported modules to the modulepath
 508 MODULEPATH := $(call PathList, $(IMPORT_MODULES_CLASSES))
 509 
 510 ifeq ($(MODULE), jdk.vm.ci)
 511   ## WORKAROUND jdk.vm.ci source structure issue
 512   JVMCI_MODULESOURCEPATH := $(MODULESOURCEPATH) \
 513       $(subst /$(MODULE)/,/*/, $(filter-out %processor/src, \
 514           $(wildcard $(HOTSPOT_TOPDIR)/src/jdk.vm.ci/share/classes/*/src)))
 515   MODULESOURCEPATH := $(call PathList, $(JVMCI_MODULESOURCEPATH))








 516 endif
 517 
 518 $(eval $(call SetupJavaCompilation, $(MODULE), \
 519     SETUP := $(if $($(MODULE)_SETUP), $($(MODULE)_SETUP), GENERATE_JDKBYTECODE), \
 520     MODULE := $(MODULE), \
 521     SRC := $(wildcard $(MODULE_SRC_DIRS)), \
 522     INCLUDES := $(JDK_USER_DEFINED_FILTER), \
 523     FAIL_NO_SRC := $(FAIL_NO_SRC), \
 524     BIN := $(if $($(MODULE)_BIN), $($(MODULE)_BIN), $(JDK_OUTPUTDIR)/modules), \
 525     HEADERS := $(SUPPORT_OUTPUTDIR)/headers, \
 526     ADD_JAVAC_FLAGS := \
 527         $($(MODULE)_ADD_JAVAC_FLAGS) \
 528         --module-source-path $(MODULESOURCEPATH) \
 529         --module-path $(MODULEPATH) \
 530         --system none, \
 531 ))
 532 
 533 TARGETS += $($(MODULE)) $($(MODULE)_COPY_EXTRA)
 534 
 535 # Declare dependencies between java compilations of different modules.




 435     com/sun/tools/example/debug/gui \
 436     com/sun/jdi/doc-files \
 437     #
 438 
 439 jdk.jdi_EXCLUDE_FILES += jdi-overview.html
 440 
 441 ################################################################################
 442 
 443 jdk.dev_CLEAN_FILES := $(wildcard \
 444     $(patsubst %, $(JDK_TOPDIR)/src/jdk.dev/share/classes/%/*.properties, \
 445         com/sun/tools/script/shell))
 446 
 447 jdk.dev_COPY := .js oqlhelp.html .txt
 448 
 449 ################################################################################
 450 
 451 jdk.jvmstat_COPY := aliasmap
 452 
 453 ################################################################################
 454 
 455 # -parameters provides method's parameters information in class file,
 456 # JVMCI compilers make use of that information for various sanity checks.
 457 # Don't use Indy strings concatenation to have good JVMCI startup performance.
 458 
 459 jdk.vm.ci_ADD_JAVAC_FLAGS := -parameters -Xlint:-exports -XDstringConcat=inline
 460 
 461 ################################################################################
 462 
 463 jdk.vm.compiler_ADD_JAVAC_FLAGS := -parameters -XDstringConcat=inline
 464 
 465 jdk.vm.compiler_EXCLUDES += \
 466     org.graalvm.compiler.core.match.processor \
 467     org.graalvm.compiler.nodeinfo.processor \
 468     org.graalvm.compiler.options.processor \
 469     org.graalvm.compiler.serviceprovider.processor \
 470     org.graalvm.compiler.replacements.verifier \
 471     org.graalvm.compiler.api.directives.test \
 472     org.graalvm.compiler.api.test \
 473     org.graalvm.compiler.asm.aarch64.test \
 474     org.graalvm.compiler.asm.amd64.test \
 475     org.graalvm.compiler.asm.sparc.test \
 476     org.graalvm.compiler.asm.test \
 477     org.graalvm.compiler.core.amd64.test \
 478     org.graalvm.compiler.core.sparc.test \
 479     org.graalvm.compiler.core.test \
 480     org.graalvm.compiler.debug.test \
 481     org.graalvm.compiler.graph.test \
 482     org.graalvm.compiler.hotspot.amd64.test \
 483     org.graalvm.compiler.hotspot.lir.test \
 484     org.graalvm.compiler.hotspot.test \
 485     org.graalvm.compiler.jtt \
 486     org.graalvm.compiler.lir.jtt \
 487     org.graalvm.compiler.lir.test \
 488     org.graalvm.compiler.nodes.test \
 489     org.graalvm.compiler.options.test \
 490     org.graalvm.compiler.phases.common.test \
 491     org.graalvm.compiler.replacements.test \
 492     org.graalvm.compiler.test \
 493     #
 494 
 495 ################################################################################
 496 
 497 jdk.xml.bind_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
 498 jdk.xml.bind_CLEAN := .properties
 499 jdk.xml.bind_COPY := .xsd JAXBContextFactory.java ZeroOneBooleanAdapter.java
 500 
 501 ################################################################################
 502 
 503 jdk.xml.ws_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
 504 jdk.xml.ws_CLEAN := .properties
 505 
 506 ################################################################################
 507 
 508 sun.charsets_COPY := .dat
 509 
 510 ################################################################################
 511 
 512 jdk.localedata_COPY := _dict _th
 513 # Exclude BreakIterator classes that are just used in compile process to generate


 534 ifeq ($(JDK_FILTER), )
 535   FAIL_NO_SRC := true
 536 else
 537   # When using JDK_FILTER, most module java compilations will end up finding
 538   # no source files. Don't let that fail the build.
 539   FAIL_NO_SRC := false
 540 endif
 541 
 542 # Get the complete module source path.
 543 MODULESOURCEPATH := $(call GetModuleSrcPath)
 544 
 545 # Add imported modules to the modulepath
 546 MODULEPATH := $(call PathList, $(IMPORT_MODULES_CLASSES))
 547 
 548 ifeq ($(MODULE), jdk.vm.ci)
 549   ## WORKAROUND jdk.vm.ci source structure issue
 550   JVMCI_MODULESOURCEPATH := $(MODULESOURCEPATH) \
 551       $(subst /$(MODULE)/,/*/, $(filter-out %processor/src, \
 552           $(wildcard $(HOTSPOT_TOPDIR)/src/jdk.vm.ci/share/classes/*/src)))
 553   MODULESOURCEPATH := $(call PathList, $(JVMCI_MODULESOURCEPATH))
 554 endif
 555 
 556 ifeq ($(MODULE), jdk.vm.compiler)
 557   ## WORKAROUND jdk.vm.compiler source structure issue
 558   VM_COMPILER_MODULESOURCEPATH := $(MODULESOURCEPATH) \
 559       $(subst /$(MODULE)/,/*/, $(filter-out %processor/src %test/src %jtt/src, \
 560           $(wildcard $(HOTSPOT_TOPDIR)/src/$(MODULE)/share/classes/*/src)))
 561   MODULESOURCEPATH := $(call PathList, $(VM_COMPILER_MODULESOURCEPATH))
 562 endif
 563 
 564 $(eval $(call SetupJavaCompilation, $(MODULE), \
 565     SETUP := $(if $($(MODULE)_SETUP), $($(MODULE)_SETUP), GENERATE_JDKBYTECODE), \
 566     MODULE := $(MODULE), \
 567     SRC := $(wildcard $(MODULE_SRC_DIRS)), \
 568     INCLUDES := $(JDK_USER_DEFINED_FILTER), \
 569     FAIL_NO_SRC := $(FAIL_NO_SRC), \
 570     BIN := $(if $($(MODULE)_BIN), $($(MODULE)_BIN), $(JDK_OUTPUTDIR)/modules), \
 571     HEADERS := $(SUPPORT_OUTPUTDIR)/headers, \
 572     ADD_JAVAC_FLAGS := \
 573         $($(MODULE)_ADD_JAVAC_FLAGS) \
 574         --module-source-path $(MODULESOURCEPATH) \
 575         --module-path $(MODULEPATH) \
 576         --system none, \
 577 ))
 578 
 579 TARGETS += $($(MODULE)) $($(MODULE)_COPY_EXTRA)
 580 
 581 # Declare dependencies between java compilations of different modules.


< prev index next >