< prev index next >

make/CreateJmods.gmk

Print this page




  80 ifneq ($(MAN_DIR), )
  81   JMOD_FLAGS += --man-pages $(MAN_DIR)
  82   DEPS += $(call FindFiles, $(MAN_DIR))
  83 endif
  84 
  85 # If a specific modules_legal dir exists for this module, only pick up files
  86 # from there. These files were explicitly filtered or modified in <module>-copy
  87 # targets. For the rest, just pick up everything from the source legal dirs.
  88 LEGAL_NOTICES := \
  89     $(SUPPORT_OUTPUTDIR)/modules_legal/common \
  90     $(if $(wildcard $(SUPPORT_OUTPUTDIR)/modules_legal/$(MODULE)), \
  91       $(wildcard $(SUPPORT_OUTPUTDIR)/modules_legal/$(MODULE)), \
  92       $(call FindModuleLegalSrcDirs, $(MODULE)) \
  93     )
  94 
  95 LEGAL_NOTICES_PATH := $(call PathList, $(LEGAL_NOTICES))
  96 DEPS += $(call FindFiles, $(LEGAL_NOTICES))
  97 
  98 JMOD_FLAGS += --legal-notices $(LEGAL_NOTICES_PATH)
  99 




 100 ifeq ($(filter-out jdk.incubator.%, $(MODULE)), )
 101   JMOD_FLAGS += --do-not-resolve-by-default
 102   JMOD_FLAGS += --warn-if-resolved=incubating
 103 endif
 104 
 105 # Add dependencies on other jmod files. Only java.base needs access to other
 106 # jmods.
 107 ifeq ($(MODULE), java.base)
 108   # When creating a BUILDJDK, we don't need to add hashes to java.base
 109   ifneq ($(CREATING_BUILDJDK), true)
 110     # When creating interim versions of jmods, skip hashes
 111     ifneq ($(INTERIM_JMOD), true)
 112       ALL_UPGRADEABLE_MODULES := $(call FindAllUpgradeableModules)
 113       DEPS += $(patsubst %, $(JMODS_DIR)/%.jmod, \
 114           $(filter-out java.base $(ALL_UPGRADEABLE_MODULES), $(call FindAllModules)))
 115 
 116       EXCLUDE_PATTERN := $(strip $(subst $(SPACE),$$|,$(strip $(ALL_UPGRADEABLE_MODULES))))
 117 
 118       JMOD_FLAGS += --module-path $(JMODS_DIR) \
 119           --hash-modules '^(?!$(EXCLUDE_PATTERN)$$)'




  80 ifneq ($(MAN_DIR), )
  81   JMOD_FLAGS += --man-pages $(MAN_DIR)
  82   DEPS += $(call FindFiles, $(MAN_DIR))
  83 endif
  84 
  85 # If a specific modules_legal dir exists for this module, only pick up files
  86 # from there. These files were explicitly filtered or modified in <module>-copy
  87 # targets. For the rest, just pick up everything from the source legal dirs.
  88 LEGAL_NOTICES := \
  89     $(SUPPORT_OUTPUTDIR)/modules_legal/common \
  90     $(if $(wildcard $(SUPPORT_OUTPUTDIR)/modules_legal/$(MODULE)), \
  91       $(wildcard $(SUPPORT_OUTPUTDIR)/modules_legal/$(MODULE)), \
  92       $(call FindModuleLegalSrcDirs, $(MODULE)) \
  93     )
  94 
  95 LEGAL_NOTICES_PATH := $(call PathList, $(LEGAL_NOTICES))
  96 DEPS += $(call FindFiles, $(LEGAL_NOTICES))
  97 
  98 JMOD_FLAGS += --legal-notices $(LEGAL_NOTICES_PATH)
  99 
 100 ifeq ($(filter-out jdk.jpackage, $(MODULE)), )
 101   JMOD_FLAGS += --do-not-resolve-by-default
 102 endif
 103 
 104 ifeq ($(filter-out jdk.incubator.%, $(MODULE)), )
 105   JMOD_FLAGS += --do-not-resolve-by-default
 106   JMOD_FLAGS += --warn-if-resolved=incubating
 107 endif
 108 
 109 # Add dependencies on other jmod files. Only java.base needs access to other
 110 # jmods.
 111 ifeq ($(MODULE), java.base)
 112   # When creating a BUILDJDK, we don't need to add hashes to java.base
 113   ifneq ($(CREATING_BUILDJDK), true)
 114     # When creating interim versions of jmods, skip hashes
 115     ifneq ($(INTERIM_JMOD), true)
 116       ALL_UPGRADEABLE_MODULES := $(call FindAllUpgradeableModules)
 117       DEPS += $(patsubst %, $(JMODS_DIR)/%.jmod, \
 118           $(filter-out java.base $(ALL_UPGRADEABLE_MODULES), $(call FindAllModules)))
 119 
 120       EXCLUDE_PATTERN := $(strip $(subst $(SPACE),$$|,$(strip $(ALL_UPGRADEABLE_MODULES))))
 121 
 122       JMOD_FLAGS += --module-path $(JMODS_DIR) \
 123           --hash-modules '^(?!$(EXCLUDE_PATTERN)$$)'


< prev index next >