< prev index next >

make/CreateJmods.gmk

Print this page




 101 endif
 102 
 103 # Add dependencies on other jmod files. Only java.base needs access to other
 104 # jmods.
 105 ifeq ($(MODULE), java.base)
 106   # When creating a BUILDJDK, we don't need to add hashes to java.base
 107   ifneq ($(CREATING_BUILDJDK), true)
 108     # When creating interim versions of jmods, skip hashes
 109     ifneq ($(INTERIM_JMOD), true)
 110       ALL_UPGRADEABLE_MODULES := $(call FindAllUpgradeableModules)
 111       DEPS += $(patsubst %, $(JMODS_DIR)/%.jmod, \
 112           $(filter-out java.base $(ALL_UPGRADEABLE_MODULES), $(call FindAllModules)))
 113 
 114       EXCLUDE_PATTERN := $(strip $(subst $(SPACE),$$|,$(strip $(ALL_UPGRADEABLE_MODULES))))
 115 
 116       JMOD_FLAGS += --module-path $(JMODS_DIR) \
 117           --hash-modules '^(?!$(EXCLUDE_PATTERN)$$)'
 118     endif
 119   endif
 120 else # not java.base
 121   ifeq ($(OPENJDK_TARGET_OS), windows)
 122     # Only java.base needs to include the MSVC*_DLLs. Make sure no other module
 123     # tries to include them (typically imported ones).
 124     ifneq ($(MSVCR_DLL), )
 125       ifneq ($(wildcard $(LIBS_DIR)/$(notdir $(MSVCR_DLL))), )
 126         JMOD_FLAGS += --exclude '$(notdir $(MSVCR_DLL))'
 127       endif
 128     endif
 129     ifneq ($(MSVCP_DLL), )
 130       ifneq ($(wildcard $(LIBS_DIR)/$(notdir $(MSVCP_DLL))), )
 131         JMOD_FLAGS += --exclude '$(notdir $(MSVCP_DLL))'
 132       endif
 133     endif
 134     ifneq ($(UCRT_DLL_DIR), )
 135       UCRT_DLL_FILES := $(notdir $(wildcard $(UCRT_DLL_DIR)/*.dll))
 136       ifneq ($(wildcard $(LIBS_DIR)/$(firstword $(UCRT_DLL_FILES))), )
 137         JMOD_FLAGS += $(patsubst %, --exclude '%', $(UCRT_DLL_FILES))
 138       endif
 139     endif
 140   endif
 141 endif




 101 endif
 102 
 103 # Add dependencies on other jmod files. Only java.base needs access to other
 104 # jmods.
 105 ifeq ($(MODULE), java.base)
 106   # When creating a BUILDJDK, we don't need to add hashes to java.base
 107   ifneq ($(CREATING_BUILDJDK), true)
 108     # When creating interim versions of jmods, skip hashes
 109     ifneq ($(INTERIM_JMOD), true)
 110       ALL_UPGRADEABLE_MODULES := $(call FindAllUpgradeableModules)
 111       DEPS += $(patsubst %, $(JMODS_DIR)/%.jmod, \
 112           $(filter-out java.base $(ALL_UPGRADEABLE_MODULES), $(call FindAllModules)))
 113 
 114       EXCLUDE_PATTERN := $(strip $(subst $(SPACE),$$|,$(strip $(ALL_UPGRADEABLE_MODULES))))
 115 
 116       JMOD_FLAGS += --module-path $(JMODS_DIR) \
 117           --hash-modules '^(?!$(EXCLUDE_PATTERN)$$)'
 118     endif
 119   endif
 120 else # not java.base
 121   ifeq ($(call isTargetOs, windows), true)
 122     # Only java.base needs to include the MSVC*_DLLs. Make sure no other module
 123     # tries to include them (typically imported ones).
 124     ifneq ($(MSVCR_DLL), )
 125       ifneq ($(wildcard $(LIBS_DIR)/$(notdir $(MSVCR_DLL))), )
 126         JMOD_FLAGS += --exclude '$(notdir $(MSVCR_DLL))'
 127       endif
 128     endif
 129     ifneq ($(MSVCP_DLL), )
 130       ifneq ($(wildcard $(LIBS_DIR)/$(notdir $(MSVCP_DLL))), )
 131         JMOD_FLAGS += --exclude '$(notdir $(MSVCP_DLL))'
 132       endif
 133     endif
 134     ifneq ($(UCRT_DLL_DIR), )
 135       UCRT_DLL_FILES := $(notdir $(wildcard $(UCRT_DLL_DIR)/*.dll))
 136       ifneq ($(wildcard $(LIBS_DIR)/$(firstword $(UCRT_DLL_FILES))), )
 137         JMOD_FLAGS += $(patsubst %, --exclude '%', $(UCRT_DLL_FILES))
 138       endif
 139     endif
 140   endif
 141 endif


< prev index next >