< prev index next >

make/common/Modules.gmk

Print this page




  54   $(filter-out $(MODULES_FILTER), $(sort $(notdir \
  55       $(patsubst %/,%, $(dir $(patsubst %/,%, $(dir $(patsubst %/,%, $(dir \
  56       $(wildcard $(patsubst %,%/*/share/classes/*, $(ALL_TOP_SRC_DIRS)) \
  57           $(patsubst %,%/*/$(OPENJDK_TARGET_OS)/classes/*, $(ALL_TOP_SRC_DIRS)) \
  58           $(patsubst %,%/*/$(OPENJDK_TARGET_OS_TYPE)/classes/*, $(ALL_TOP_SRC_DIRS))))))))))) \
  59       jdk.hotspot.agent)
  60 endef
  61 
  62 # Find all modules with source for the target platform.
  63 # jdk.hotspot.agent currently doesn't comply with source dir policy.
  64 define FindAllModules
  65   $(sort $(filter-out $(MODULES_FILTER) closed demo sample, \
  66       $(notdir $(patsubst %/,%, $(dir \
  67       $(wildcard $(patsubst %, %/*/share, $(ALL_TOP_SRC_DIRS)) \
  68       $(patsubst %, %/*/$(OPENJDK_TARGET_OS), $(ALL_TOP_SRC_DIRS)) \
  69       $(patsubst %, %/*/$(OPENJDK_TARGET_OS_TYPE), $(ALL_TOP_SRC_DIRS)))))) \
  70       jdk.hotspot.agent))
  71 endef
  72 
  73 ################################################################################
  74 
  75 $(eval $(call SetupJavaCompilation,BUILD_GENMODULESLIST, \
  76     SETUP := BOOT_JAVAC, \
  77     SRC := $(JDK_TOPDIR)/make/src/classes, \
  78     INCLUDES := build/tools/module, \
  79     EXCLUDE_FILES := ImageBuilder.java ModuleArchive.java, \
  80     BIN := $(MAKESUPPORT_OUTPUTDIR)/bt_classes_moduleslist, \
  81     DISABLE_SJAVAC := true))
  82 
  83 TOOL_GENMODULESLIST = $(JAVA_SMALL) \
  84     -cp "$(MAKESUPPORT_OUTPUTDIR)/bt_classes_moduleslist" \
  85     build.tools.module.GenModulesList
  86 
  87 MODULES_LIST_FILE := $(MAKESUPPORT_OUTPUTDIR)/modules.list
  88 MODULE_DEPS_MAKEFILE := $(MAKESUPPORT_OUTPUTDIR)/module-deps.gmk
  89 
  90 $(MODULES_LIST_FILE): $(SRC_ROOT)/modules.xml \
  91     $(BUILD_GENMODULESLIST)
  92         $(TOOL_GENMODULESLIST) -o $@ $(filter %.xml, $^)
  93 
  94 $(MODULE_DEPS_MAKEFILE): $(MODULES_LIST_FILE)
  95         $(CAT) $^ | $(SED) -e 's/^\([^:]*\):/DEPS_\1 :=/g' > $@
  96 
  97 -include $(MODULE_DEPS_MAKEFILE)
  98 
  99 # Param 1: Module to find deps for
 100 define FindDepsForModule
 101   $(DEPS_$(strip $1))
 102 endef
 103 
 104 ################################################################################
 105 
 106 # Hook to include the corresponding custom file, if present.
 107 $(eval $(call IncludeCustomExtension, , common/Modules.gmk))
 108 
 109 endif # _MODULES_GMK


  54   $(filter-out $(MODULES_FILTER), $(sort $(notdir \
  55       $(patsubst %/,%, $(dir $(patsubst %/,%, $(dir $(patsubst %/,%, $(dir \
  56       $(wildcard $(patsubst %,%/*/share/classes/*, $(ALL_TOP_SRC_DIRS)) \
  57           $(patsubst %,%/*/$(OPENJDK_TARGET_OS)/classes/*, $(ALL_TOP_SRC_DIRS)) \
  58           $(patsubst %,%/*/$(OPENJDK_TARGET_OS_TYPE)/classes/*, $(ALL_TOP_SRC_DIRS))))))))))) \
  59       jdk.hotspot.agent)
  60 endef
  61 
  62 # Find all modules with source for the target platform.
  63 # jdk.hotspot.agent currently doesn't comply with source dir policy.
  64 define FindAllModules
  65   $(sort $(filter-out $(MODULES_FILTER) closed demo sample, \
  66       $(notdir $(patsubst %/,%, $(dir \
  67       $(wildcard $(patsubst %, %/*/share, $(ALL_TOP_SRC_DIRS)) \
  68       $(patsubst %, %/*/$(OPENJDK_TARGET_OS), $(ALL_TOP_SRC_DIRS)) \
  69       $(patsubst %, %/*/$(OPENJDK_TARGET_OS_TYPE), $(ALL_TOP_SRC_DIRS)))))) \
  70       jdk.hotspot.agent))
  71 endef
  72 
  73 ################################################################################
  74 # The module deps makefile is generated in make/GenerateModuleDeps.gmk













  75 MODULE_DEPS_MAKEFILE := $(MAKESUPPORT_OUTPUTDIR)/module-deps.gmk
  76 include $(MODULE_DEPS_MAKEFILE)








  77 
  78 # Param 1: Module to find deps for
  79 define FindDepsForModule
  80   $(DEPS_$(strip $1))
  81 endef
  82 
  83 ################################################################################
  84 
  85 # Hook to include the corresponding custom file, if present.
  86 $(eval $(call IncludeCustomExtension, , common/Modules.gmk))
  87 
  88 endif # _MODULES_GMK
< prev index next >