26 ifndef _MODULES_GMK 27 _MODULES_GMK := 1 28 29 include JavaCompilation.gmk 30 include SetupJavaCompilers.gmk 31 32 ################################################################################ 33 # Module list macros 34 35 ALL_TOP_SRC_DIRS := \ 36 $(JDK_TOPDIR)/src \ 37 $(LANGTOOLS_TOPDIR)/src \ 38 $(CORBA_TOPDIR)/src \ 39 $(JAXP_TOPDIR)/src \ 40 $(JAXWS_TOPDIR)/src \ 41 $(NASHORN_TOPDIR)/src \ 42 # 43 44 # Find all modules with java sources by looking in the source dirs 45 define FindJavaModules 46 $(filter-out $(JAVA_MODULES_FILTER), $(sort $(notdir \ 47 $(patsubst %/,%, $(dir $(patsubst %/,%, $(dir $(patsubst %/,%, $(dir \ 48 $(wildcard $(patsubst %,%/*/share/classes/*, $(ALL_TOP_SRC_DIRS)) \ 49 $(patsubst %,%/*/$(OPENJDK_TARGET_OS)/classes/*, $(ALL_TOP_SRC_DIRS)) \ 50 $(patsubst %,%/*/$(OPENJDK_TARGET_OS_TYPE)/classes/*, $(ALL_TOP_SRC_DIRS)))))))))))) 51 endef 52 53 # Find all modules with source for the target platform. 54 define FindAllModules 55 $(sort $(filter-out closed demo sample, $(notdir $(patsubst %/,%, $(dir \ 56 $(wildcard $(patsubst %, %/*/share, $(ALL_TOP_SRC_DIRS)) \ 57 $(patsubst %, %/*/$(OPENJDK_TARGET_OS), $(ALL_TOP_SRC_DIRS)) \ 58 $(patsubst %, %/*/$(OPENJDK_TARGET_OS_TYPE), $(ALL_TOP_SRC_DIRS)))))))) 59 endef 60 61 ################################################################################ 62 63 $(eval $(call SetupJavaCompilation,BUILD_GENMODULESLIST, \ 64 SETUP := BOOT_JAVAC, \ 65 SRC := $(JDK_TOPDIR)/make/src/classes, \ 66 INCLUDES := build/tools/module, \ 67 EXCLUDE_FILES := ImageBuilder.java ModuleArchive.java, \ 68 BIN := $(MAKESUPPORT_OUTPUTDIR)/bt_classes_moduleslist, \ 69 DISABLE_SJAVAC := true)) 70 71 TOOL_GENMODULESLIST = $(JAVA_SMALL) \ 72 -cp "$(MAKESUPPORT_OUTPUTDIR)/bt_classes_moduleslist" \ 73 build.tools.module.GenModulesList 74 75 MODULES_LIST_FILE := $(MAKESUPPORT_OUTPUTDIR)/modules.list | 26 ifndef _MODULES_GMK 27 _MODULES_GMK := 1 28 29 include JavaCompilation.gmk 30 include SetupJavaCompilers.gmk 31 32 ################################################################################ 33 # Module list macros 34 35 ALL_TOP_SRC_DIRS := \ 36 $(JDK_TOPDIR)/src \ 37 $(LANGTOOLS_TOPDIR)/src \ 38 $(CORBA_TOPDIR)/src \ 39 $(JAXP_TOPDIR)/src \ 40 $(JAXWS_TOPDIR)/src \ 41 $(NASHORN_TOPDIR)/src \ 42 # 43 44 # Find all modules with java sources by looking in the source dirs 45 define FindJavaModules 46 $(filter-out $(MODULES_FILTER), $(sort $(notdir \ 47 $(patsubst %/,%, $(dir $(patsubst %/,%, $(dir $(patsubst %/,%, $(dir \ 48 $(wildcard $(patsubst %,%/*/share/classes/*, $(ALL_TOP_SRC_DIRS)) \ 49 $(patsubst %,%/*/$(OPENJDK_TARGET_OS)/classes/*, $(ALL_TOP_SRC_DIRS)) \ 50 $(patsubst %,%/*/$(OPENJDK_TARGET_OS_TYPE)/classes/*, $(ALL_TOP_SRC_DIRS)))))))))))) 51 endef 52 53 # Find all modules with source for the target platform. 54 define FindAllModules 55 $(sort $(filter-out $(MODULES_FILTER) closed demo sample, \ 56 $(notdir $(patsubst %/,%, $(dir \ 57 $(wildcard $(patsubst %, %/*/share, $(ALL_TOP_SRC_DIRS)) \ 58 $(patsubst %, %/*/$(OPENJDK_TARGET_OS), $(ALL_TOP_SRC_DIRS)) \ 59 $(patsubst %, %/*/$(OPENJDK_TARGET_OS_TYPE), $(ALL_TOP_SRC_DIRS)))))))) 60 endef 61 62 ################################################################################ 63 64 $(eval $(call SetupJavaCompilation,BUILD_GENMODULESLIST, \ 65 SETUP := BOOT_JAVAC, \ 66 SRC := $(JDK_TOPDIR)/make/src/classes, \ 67 INCLUDES := build/tools/module, \ 68 EXCLUDE_FILES := ImageBuilder.java ModuleArchive.java, \ 69 BIN := $(MAKESUPPORT_OUTPUTDIR)/bt_classes_moduleslist, \ 70 DISABLE_SJAVAC := true)) 71 72 TOOL_GENMODULESLIST = $(JAVA_SMALL) \ 73 -cp "$(MAKESUPPORT_OUTPUTDIR)/bt_classes_moduleslist" \ 74 build.tools.module.GenModulesList 75 76 MODULES_LIST_FILE := $(MAKESUPPORT_OUTPUTDIR)/modules.list |