< prev index next >

make/CreateJmods.gmk

Print this page




  63   JMOD_FLAGS += --cmds $(CMDS_DIR)
  64   DEPS += $(call CacheFind, $(CMDS_DIR))
  65 endif
  66 ifneq ($(CONF_DIR), )
  67   JMOD_FLAGS += --config $(CONF_DIR)
  68   DEPS += $(call CacheFind, $(CONF_DIR))
  69 endif
  70 ifneq ($(CLASSES_DIR), )
  71   JMOD_FLAGS += --class-path $(CLASSES_DIR)
  72   DEPS += $(call CacheFind, $(CLASSES_DIR))
  73 endif
  74 ifneq ($(INCLUDE_HEADERS_DIR), )
  75   JMOD_FLAGS += --header-files $(INCLUDE_HEADERS_DIR)
  76   DEPS += $(call CacheFind, $(INCLUDE_HEADERS_DIR))
  77 endif
  78 ifneq ($(MAN_DIR), )
  79   JMOD_FLAGS += --man-pages $(MAN_DIR)
  80   DEPS += $(call CacheFind, $(MAN_DIR))
  81 endif
  82 



  83 LEGAL_NOTICES := \
  84     $(call uniq, $(SUPPORT_OUTPUTDIR)/modules_legal/java.base \
  85     $(call FindModuleLegalDirs, $(MODULE))) \
  86     #


  87 
  88 LEGAL_NOTICES_PATH := $(call PathList, $(LEGAL_NOTICES))
  89 DEPS += $(call CacheFind, $(LEGAL_NOTICES))
  90 
  91 JMOD_FLAGS += --legal-notices $(LEGAL_NOTICES_PATH)
  92 
  93 ifeq ($(filter-out jdk.incubator.%, $(MODULE)), )
  94   JMOD_FLAGS += --do-not-resolve-by-default
  95   JMOD_FLAGS += --warn-if-resolved=incubating
  96 endif
  97 
  98 # Add dependencies on other jmod files. Only java.base needs access to other
  99 # jmods.
 100 ifeq ($(MODULE), java.base)
 101   # When creating a BUILDJDK, we don't need to add hashes to java.base
 102   ifneq ($(CREATING_BUILDJDK), true)
 103     # When creating interim versions of jmods, skip hashes
 104     ifneq ($(INTERIM_JMOD), true)
 105       ALL_UPGRADEABLE_MODULES := $(call FindAllUpgradeableModules)
 106       DEPS += $(patsubst %, $(JMODS_DIR)/%.jmod, \




  63   JMOD_FLAGS += --cmds $(CMDS_DIR)
  64   DEPS += $(call CacheFind, $(CMDS_DIR))
  65 endif
  66 ifneq ($(CONF_DIR), )
  67   JMOD_FLAGS += --config $(CONF_DIR)
  68   DEPS += $(call CacheFind, $(CONF_DIR))
  69 endif
  70 ifneq ($(CLASSES_DIR), )
  71   JMOD_FLAGS += --class-path $(CLASSES_DIR)
  72   DEPS += $(call CacheFind, $(CLASSES_DIR))
  73 endif
  74 ifneq ($(INCLUDE_HEADERS_DIR), )
  75   JMOD_FLAGS += --header-files $(INCLUDE_HEADERS_DIR)
  76   DEPS += $(call CacheFind, $(INCLUDE_HEADERS_DIR))
  77 endif
  78 ifneq ($(MAN_DIR), )
  79   JMOD_FLAGS += --man-pages $(MAN_DIR)
  80   DEPS += $(call CacheFind, $(MAN_DIR))
  81 endif
  82 
  83 # If a specific modules_legal dir exists for this module, only pick up files
  84 # from there. These files were explicitly filtered or modified in <module>-copy
  85 # targets. For the rest, just pick up everything from the source legal dirs.
  86 LEGAL_NOTICES := \
  87     $(SUPPORT_OUTPUTDIR)/modules_legal/common \
  88     $(if $(wildcard $(SUPPORT_OUTPUTDIR)/modules_legal/$(MODULE)), \
  89       $(wildcard $(SUPPORT_OUTPUTDIR)/modules_legal/$(MODULE)), \
  90       $(call FindModuleLegalSrcDirs, $(MODULE)) \
  91     )
  92 
  93 LEGAL_NOTICES_PATH := $(call PathList, $(LEGAL_NOTICES))
  94 DEPS += $(call CacheFind, $(LEGAL_NOTICES))
  95 
  96 JMOD_FLAGS += --legal-notices $(LEGAL_NOTICES_PATH)
  97 
  98 ifeq ($(filter-out jdk.incubator.%, $(MODULE)), )
  99   JMOD_FLAGS += --do-not-resolve-by-default
 100   JMOD_FLAGS += --warn-if-resolved=incubating
 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, \


< prev index next >