< prev index next >

make/modules/java.base/Copy.gmk

Print this page
rev 59383 : [mq]: final


 132 POLICY_DST := $(CONF_DST_DIR)/security/java.policy
 133 
 134 POLICY_SRC_LIST := $(POLICY_SRC)
 135 
 136 $(POLICY_DST): $(POLICY_SRC_LIST)
 137         $(call MakeTargetDir)
 138         $(RM) $@ $@.tmp
 139         $(foreach f,$(POLICY_SRC_LIST),$(CAT) $(f) >> $@.tmp;)
 140         $(MV) $@.tmp $@
 141 
 142 TARGETS += $(POLICY_DST)
 143 
 144 ################################################################################
 145 
 146 DEF_POLICY_SRC := $(TOPDIR)/src/java.base/share/lib/security/default.policy
 147 DEF_POLICY_DST := $(LIB_DST_DIR)/security/default.policy
 148 
 149 DEF_POLICY_SRC_LIST := $(DEF_POLICY_SRC)
 150 DEF_POLICY_SRC_LIST += $(CUSTOM_POLICY_SRC_LIST)
 151 
 152 ifeq ($(call isTargetOs, windows solaris), true)
 153   DEF_POLICY_SRC_LIST += $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/lib/security/default.policy
 154 endif
 155 
 156 # Allow imported modules to modify the java.policy
 157 ifneq ($(IMPORT_MODULES_CONF), )
 158   DEF_POLICY_SRC_LIST += $(wildcard $(IMPORT_MODULES_CONF)/java.base/security/java.policy.extra)
 159 endif
 160 
 161 $(DEF_POLICY_DST): $(DEF_POLICY_SRC_LIST)
 162         $(call MakeTargetDir)
 163         $(RM) $@ $@.tmp
 164         $(foreach f,$(DEF_POLICY_SRC_LIST),$(CAT) $(f) >> $@.tmp;)
 165         $(MV) $@.tmp $@
 166 
 167 TARGETS += $(DEF_POLICY_DST)
 168 
 169 ################################################################################
 170 
 171 # CACERTS_FILE is optionally set in configure to override the default cacerts
 172 # which is otherwise generated in Gendata-java.base.gmk
 173 CACERTS_DST := $(LIB_DST_DIR)/security/cacerts
 174 
 175 $(CACERTS_DST): $(CACERTS_FILE)
 176         $(call LogInfo, Copying $(patsubst $(OUTPUTDIR)/%, %, $@))
 177         $(call install-file)
 178 
 179 ifneq ($(CACERTS_FILE), )
 180   TARGETS += $(CACERTS_DST)
 181 endif
 182 
 183 ################################################################################
 184 
 185 $(eval $(call SetupCopyFiles, COPY_NET_PROPERTIES, \
 186     FILES := $(TOPDIR)/src/java.base/share/conf/net.properties, \
 187     DEST := $(CONF_DST_DIR), \
 188 ))
 189 
 190 TARGETS += $(COPY_NET_PROPERTIES)
 191 
 192 ifeq ($(call isTargetOs, solaris linux), true)
 193   $(eval $(call SetupCopyFiles, COPY_SDP_CONF, \
 194       FILES := $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/conf/sdp/sdp.conf.template, \
 195       DEST := $(CONF_DST_DIR)/sdp, \
 196   ))
 197 
 198   TARGETS += $(COPY_SDP_CONF)
 199 endif
 200 
 201 ################################################################################
 202 
 203 # JDK license and assembly exception files to be packaged in JMOD
 204 
 205 # The license files may not be present if the source has been obtained using a
 206 # different license.
 207 JDK_LICENSE ?= $(wildcard $(TOPDIR)/LICENSE)
 208 JDK_NOTICE  ?= $(wildcard $(TOPDIR)/ASSEMBLY_EXCEPTION)
 209 JDK_ADDITIONAL_LICENSE_INFO  ?= $(wildcard $(TOPDIR)/ADDITIONAL_LICENSE_INFO)
 210 
 211 $(eval $(call SetupCopyFiles, COPY_JDK_NOTICES, \
 212     FILES := $(JDK_LICENSE) $(JDK_NOTICE) $(JDK_ADDITIONAL_LICENSE_INFO), \




 132 POLICY_DST := $(CONF_DST_DIR)/security/java.policy
 133 
 134 POLICY_SRC_LIST := $(POLICY_SRC)
 135 
 136 $(POLICY_DST): $(POLICY_SRC_LIST)
 137         $(call MakeTargetDir)
 138         $(RM) $@ $@.tmp
 139         $(foreach f,$(POLICY_SRC_LIST),$(CAT) $(f) >> $@.tmp;)
 140         $(MV) $@.tmp $@
 141 
 142 TARGETS += $(POLICY_DST)
 143 
 144 ################################################################################
 145 
 146 DEF_POLICY_SRC := $(TOPDIR)/src/java.base/share/lib/security/default.policy
 147 DEF_POLICY_DST := $(LIB_DST_DIR)/security/default.policy
 148 
 149 DEF_POLICY_SRC_LIST := $(DEF_POLICY_SRC)
 150 DEF_POLICY_SRC_LIST += $(CUSTOM_POLICY_SRC_LIST)
 151 
 152 ifeq ($(call isTargetOs, windows), true)
 153   DEF_POLICY_SRC_LIST += $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/lib/security/default.policy
 154 endif
 155 
 156 # Allow imported modules to modify the java.policy
 157 ifneq ($(IMPORT_MODULES_CONF), )
 158   DEF_POLICY_SRC_LIST += $(wildcard $(IMPORT_MODULES_CONF)/java.base/security/java.policy.extra)
 159 endif
 160 
 161 $(DEF_POLICY_DST): $(DEF_POLICY_SRC_LIST)
 162         $(call MakeTargetDir)
 163         $(RM) $@ $@.tmp
 164         $(foreach f,$(DEF_POLICY_SRC_LIST),$(CAT) $(f) >> $@.tmp;)
 165         $(MV) $@.tmp $@
 166 
 167 TARGETS += $(DEF_POLICY_DST)
 168 
 169 ################################################################################
 170 
 171 # CACERTS_FILE is optionally set in configure to override the default cacerts
 172 # which is otherwise generated in Gendata-java.base.gmk
 173 CACERTS_DST := $(LIB_DST_DIR)/security/cacerts
 174 
 175 $(CACERTS_DST): $(CACERTS_FILE)
 176         $(call LogInfo, Copying $(patsubst $(OUTPUTDIR)/%, %, $@))
 177         $(call install-file)
 178 
 179 ifneq ($(CACERTS_FILE), )
 180   TARGETS += $(CACERTS_DST)
 181 endif
 182 
 183 ################################################################################
 184 
 185 $(eval $(call SetupCopyFiles, COPY_NET_PROPERTIES, \
 186     FILES := $(TOPDIR)/src/java.base/share/conf/net.properties, \
 187     DEST := $(CONF_DST_DIR), \
 188 ))
 189 
 190 TARGETS += $(COPY_NET_PROPERTIES)
 191 
 192 ifeq ($(call isTargetOs, linux), true)
 193   $(eval $(call SetupCopyFiles, COPY_SDP_CONF, \
 194       FILES := $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/conf/sdp/sdp.conf.template, \
 195       DEST := $(CONF_DST_DIR)/sdp, \
 196   ))
 197 
 198   TARGETS += $(COPY_SDP_CONF)
 199 endif
 200 
 201 ################################################################################
 202 
 203 # JDK license and assembly exception files to be packaged in JMOD
 204 
 205 # The license files may not be present if the source has been obtained using a
 206 # different license.
 207 JDK_LICENSE ?= $(wildcard $(TOPDIR)/LICENSE)
 208 JDK_NOTICE  ?= $(wildcard $(TOPDIR)/ASSEMBLY_EXCEPTION)
 209 JDK_ADDITIONAL_LICENSE_INFO  ?= $(wildcard $(TOPDIR)/ADDITIONAL_LICENSE_INFO)
 210 
 211 $(eval $(call SetupCopyFiles, COPY_JDK_NOTICES, \
 212     FILES := $(JDK_LICENSE) $(JDK_NOTICE) $(JDK_ADDITIONAL_LICENSE_INFO), \


< prev index next >