make/common/Defs-modules.gmk

Print this page




  97 # Modules for JDK only
  98 JDK_MODULES = $(MODULE_CLASSLIST_DIR)/jdk.modules.list
  99 JRE_MODULES = $(MODULE_CLASSLIST_DIR)/jdk.jre.modules.list
 100 JDK_BASE_MODULES = $(MODULE_CLASSLIST_DIR)/$(BASE_TOOLS_MODULE).modules.list
 101 JRE_BASE_MODULES = $(MODULE_CLASSLIST_DIR)/$(JDK_BASE_MODULE).modules.list
 102 
 103 #
 104 # Build units may or may not define MODULE.  Default to "other".
 105 #
 106 # MODULE variable defines the lowest-level module name that
 107 # might or might not be the name of the modules created in
 108 # the modules build (see make/modules/modules.config and
 109 # modules.group).
 110 #
 111 
 112 ifndef MODULE
 113   MODULE = other
 114 endif
 115 override MODULE_DEST_DIR = $(SUBMODULES_DIR)/$(strip $(MODULE))
 116 
 117 MODULE_PATH_PATTERN = -e 's%.*\/classes\/%classes\/%' \

 118                       -e 's%.*\/$(UNIQUE_PATH_PATTERN)\/%classes\/%' \
 119                       -e 's%.*\/lib\/%lib\/%' \










 120                       -e 's%.*\/bin\/%bin\/%' \
 121                       -e 's%.*\/include\/%include\/%' \
 122                       -e 's%.*\/demo\/%demo\/%' \
 123                       -e 's%.*\/sample\/%sample\/%'

 124 
 125 # Gets the module destination corresponding to the specified directory
 126 define GetModuleDest
 127 $(shell $(ECHO) $1 | $(SED) $(MODULE_PATH_PATTERN) | \
 128     $(NAWK) '{print "$(MODULE_DEST_DIR)/"$$0}')
 129 endef
 130 
 131 define GetBaseModuleDest
 132 $(shell $(ECHO) $1 | $(SED) $(MODULE_PATH_PATTERN) | \
 133     $(NAWK) '{print "$(SUBMODULES_DIR)/base/"$$0}')
 134 endef
 135 
 136 define TouchModule
 137 $(ECHO) $(MODULE) >> $(MODULES_UPDATE_MARKER)
 138 endef
 139 
 140 # 
 141 # Minimize module library footprint. For now this applies to
 142 # both the JRE and JDK images that the build generates.
 143 #


  97 # Modules for JDK only
  98 JDK_MODULES = $(MODULE_CLASSLIST_DIR)/jdk.modules.list
  99 JRE_MODULES = $(MODULE_CLASSLIST_DIR)/jdk.jre.modules.list
 100 JDK_BASE_MODULES = $(MODULE_CLASSLIST_DIR)/$(BASE_TOOLS_MODULE).modules.list
 101 JRE_BASE_MODULES = $(MODULE_CLASSLIST_DIR)/$(JDK_BASE_MODULE).modules.list
 102 
 103 #
 104 # Build units may or may not define MODULE.  Default to "other".
 105 #
 106 # MODULE variable defines the lowest-level module name that
 107 # might or might not be the name of the modules created in
 108 # the modules build (see make/modules/modules.config and
 109 # modules.group).
 110 #
 111 
 112 ifndef MODULE
 113   MODULE = other
 114 endif
 115 override MODULE_DEST_DIR = $(SUBMODULES_DIR)/$(strip $(MODULE))
 116 
 117 ifeq ($(PLATFORM), windows)
 118     MODULE_PATH_PATTERN = -e 's%.*\/classes\/%classes\/%' \
 119                           -e 's%.*\/$(UNIQUE_PATH_PATTERN)\/%classes\/%' \
 120                           -e 's%.*\/lib\/%etc\/%' \
 121                           -e 's%.*\/bin\/%lib\/%' \
 122                           -e 's%.*\/include\/%include\/%' \
 123                           -e 's%.*\/demo\/%demo\/%' \
 124                           -e 's%.*\/sample\/%sample\/%'
 125 
 126 else
 127     MODULE_PATH_PATTERN = -e 's%.*\/classes\/%classes\/%' \
 128                           -e 's%.*\/$(UNIQUE_PATH_PATTERN)\/%classes\/%' \
 129                           -e 's%.*\/lib\/$(LIBARCH)\/%lib\/%' \
 130                           -e 's%.*\/lib\/%etc\/%' \
 131                           -e 's%.*\/bin\/%bin\/%' \
 132                           -e 's%.*\/include\/%include\/%' \
 133                           -e 's%.*\/demo\/%demo\/%' \
 134                           -e 's%.*\/sample\/%sample\/%'
 135 endif
 136 
 137 # Gets the module destination corresponding to the specified directory
 138 define GetModuleDest
 139 $(shell $(ECHO) $1 | $(SED) $(MODULE_PATH_PATTERN) | \
 140     $(NAWK) '{print "$(MODULE_DEST_DIR)/"$$0}')
 141 endef
 142 
 143 define GetBaseModuleDest
 144 $(shell $(ECHO) $1 | $(SED) $(MODULE_PATH_PATTERN) | \
 145     $(NAWK) '{print "$(SUBMODULES_DIR)/base/"$$0}')
 146 endef
 147 
 148 define TouchModule
 149 $(ECHO) $(MODULE) >> $(MODULES_UPDATE_MARKER)
 150 endef
 151 
 152 # 
 153 # Minimize module library footprint. For now this applies to
 154 # both the JRE and JDK images that the build generates.
 155 #