annotate make/CopyFiles.gmk @ 10607:19e02e44f2c8

Merge
author asaha
date Mon, 01 Dec 2014 11:37:49 -0800
parents 4be14673b9bf
children 927e614aab98 a8fa94609c3a
rev   line source
ohair@5221 1 #
dholmes@7040 2 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
ohair@5221 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ohair@5221 4 #
ohair@5221 5 # This code is free software; you can redistribute it and/or modify it
ohair@5221 6 # under the terms of the GNU General Public License version 2 only, as
ohair@5221 7 # published by the Free Software Foundation. Oracle designates this
ohair@5221 8 # particular file as subject to the "Classpath" exception as provided
ohair@5221 9 # by Oracle in the LICENSE file that accompanied this code.
ohair@5221 10 #
ohair@5221 11 # This code is distributed in the hope that it will be useful, but WITHOUT
ohair@5221 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ohair@5221 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ohair@5221 14 # version 2 for more details (a copy is included in the LICENSE file that
ohair@5221 15 # accompanied this code).
ohair@5221 16 #
ohair@5221 17 # You should have received a copy of the GNU General Public License version
ohair@5221 18 # 2 along with this work; if not, write to the Free Software Foundation,
ohair@5221 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ohair@5221 20 #
ohair@5221 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@5221 22 # or visit www.oracle.com if you need additional information or have any
ohair@5221 23 # questions.
ohair@5221 24 #
ohair@5221 25
ohair@5221 26 INCLUDEDIR = $(JDK_OUTPUTDIR)/include
erikj@5507 27
erikj@5596 28 OPENJDK_TARGET_OS_INCLUDE = $(INCLUDEDIR)/$(OPENJDK_TARGET_OS)
ohair@5221 29
erikj@5596 30 ifeq ($(OPENJDK_TARGET_OS), windows)
ihse@8330 31 OPENJDK_TARGET_OS_INCLUDE = $(INCLUDEDIR)/win32
erikj@5596 32 else ifeq ($(OPENJDK_TARGET_OS), macosx)
ihse@8330 33 OPENJDK_TARGET_OS_INCLUDE = $(INCLUDEDIR)/darwin
erikj@5507 34 endif
erikj@5507 35
ohair@5221 36 #
ohair@5221 37 # Copy exported header files to outputdir.
ohair@5221 38 #
ihse@8330 39 H_TARGET_FILES = $(INCLUDEDIR)/jdwpTransport.h \
ihse@8330 40 $(INCLUDEDIR)/jni.h \
ihse@8330 41 $(INCLUDEDIR)/jvmti.h \
ihse@8330 42 $(INCLUDEDIR)/jvmticmlr.h \
ihse@8330 43 $(INCLUDEDIR)/classfile_constants.h \
ihse@8330 44 $(INCLUDEDIR)/jawt.h \
ihse@8330 45 $(OPENJDK_TARGET_OS_INCLUDE)/jni_md.h \
ihse@8330 46 $(OPENJDK_TARGET_OS_INCLUDE)/jawt_md.h
ohair@5221 47
ohair@5221 48 $(INCLUDEDIR)/%.h: $(JDK_TOPDIR)/src/share/javavm/export/%.h
erikj@6824 49 $(call install-file)
ohair@5221 50
dholmes@8499 51 $(OPENJDK_TARGET_OS_INCLUDE)/%.h: $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_EXPORT_DIR)/javavm/export/%.h
erikj@6824 52 $(call install-file)
ohair@5221 53
ohair@5221 54 COPY_FILES = $(H_TARGET_FILES)
ohair@5221 55
ohair@5221 56 ##########################################################################################
ohair@5221 57
raginip@6453 58 ifndef OPENJDK
ihse@8330 59 ifeq ($(OPENJDK_TARGET_OS), windows)
raginip@6453 60 COPY_FILES += $(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgeCallbacks.h \
ihse@8330 61 $(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgeCalls.h \
ihse@8330 62 $(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgePackages.h \
ihse@8330 63 $(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgeCalls.c \
ihse@8330 64 $(JDK_OUTPUTDIR)/lib/accessibility.properties
raginip@6453 65
raginip@6453 66 $(OPENJDK_TARGET_OS_INCLUDE)/bridge/%: \
ihse@8330 67 $(JDK_TOPDIR)/src/closed/windows/native/sun/bridge/%
ihse@8330 68 $(install-file)
raginip@6453 69
raginip@6453 70 $(JDK_OUTPUTDIR)/lib/accessibility.properties: \
ihse@8330 71 $(JDK_TOPDIR)/src/closed/windows/native/sun/bridge/accessibility.properties
ihse@8330 72 $(install-file)
raginip@6453 73
ihse@8330 74 endif
raginip@6453 75 endif
raginip@6453 76
raginip@6453 77 ##########################################################################################
raginip@6453 78
ohair@5221 79 LIBDIR = $(JDK_OUTPUTDIR)/lib
ohair@5221 80
ohair@5221 81 MGMT_LIBDIR = $(LIBDIR)/management
ohair@5221 82 MGMT_LIB_SRC = $(JDK_TOPDIR)/src/share/lib/management
ohair@5221 83 MGMT_SRC_FILES = $(wildcard $(MGMT_LIB_SRC)/*)
ohair@5221 84 MGMT_TARGET_FILES = $(subst $(MGMT_LIB_SRC),$(MGMT_LIBDIR),$(MGMT_SRC_FILES))
ohair@5221 85
ohair@5221 86 $(MGMT_LIBDIR)/management.properties: $(MGMT_LIB_SRC)/management.properties
erikj@6824 87 $(call install-file)
ohair@5221 88 $(CHMOD) 644 $@
ohair@5221 89
erikj@5596 90 # this file has different permissions...don't know why...
erikj@5596 91 $(MGMT_LIBDIR)/jmxremote.access: $(MGMT_LIB_SRC)/jmxremote.access
erikj@6824 92 $(call install-file)
erikj@5596 93 $(CHMOD) 644 $@
erikj@5596 94
ohair@5221 95 $(MGMT_LIBDIR)/%: $(MGMT_LIB_SRC)/%
erikj@6824 96 $(call install-file)
ohair@5221 97 $(CHMOD) 444 $@
ohair@5221 98
ohair@5221 99 COPY_FILES += $(MGMT_TARGET_FILES)
ohair@5221 100
ohair@5221 101 ##########################################################################################
ohair@5221 102
ohair@5221 103 LOGGING_LIB_SRC = $(JDK_TOPDIR)/src/share/lib
ohair@5221 104
ohair@5221 105 $(LIBDIR)/logging.properties: $(LOGGING_LIB_SRC)/logging.properties
erikj@6824 106 $(call install-file)
ohair@5221 107
ohair@5221 108 COPY_FILES += $(LIBDIR)/logging.properties
ohair@5221 109
ohair@5221 110 ##########################################################################################
ohair@5221 111 #
ohair@5221 112 # Copy property files from sun/print to LIBDIR
ohair@5221 113 #
ohair@5221 114 PSFONTPROPFILE_SRC_DIR = $(JDK_TOPDIR)/src/share/classes/sun/print
ohair@5221 115 PSFONTPROPFILE_SRCS = $(wildcard $(PSFONTPROPFILE_SRC_DIR)/*.properties*)
ohair@5221 116 PSFONTPROPFILE_TARGET_FILES = $(subst $(PSFONTPROPFILE_SRC_DIR),$(LIBDIR),$(PSFONTPROPFILE_SRCS))
ohair@5221 117
erikj@5507 118 $(LIBDIR)/%: $(PSFONTPROPFILE_SRC_DIR)/%
erikj@6824 119 $(call install-file)
ohair@5221 120
ohair@5221 121 COPY_FILES += $(PSFONTPROPFILE_TARGET_FILES)
ohair@5221 122
ohair@5221 123 ##########################################################################################
ohair@5221 124 #
ohair@5221 125 # Copy flavormap.properties, cursor.properties and cursors gif files to LIBDIR
ohair@5221 126 #
erikj@5596 127 ifneq ($(OPENJDK_TARGET_OS), macosx)
ihse@8330 128 OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib
erikj@5596 129 else
ihse@8330 130 OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/macosx/lib
erikj@5596 131 endif
ohair@5221 132
erikj@5596 133 $(LIBDIR)/flavormap.properties: $(OPENJDK_TARGET_OS_LIB_SRC)/flavormap.properties
erikj@6824 134 $(call install-file)
ohair@5221 135
ohair@5221 136 COPY_FILES += $(LIBDIR)/flavormap.properties
ohair@5221 137
ohair@5221 138 CURSORS_DEST_DIR = $(LIBDIR)/images/cursors
ohair@5819 139 CURSORS_OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib/images/cursors
ohair@5221 140
erikj@5596 141 $(CURSORS_DEST_DIR)/cursors.properties: $(CURSORS_OPENJDK_TARGET_OS_LIB_SRC)/cursors.properties
erikj@6824 142 $(call install-file)
ohair@5221 143
ohair@5221 144 COPY_FILES += $(CURSORS_DEST_DIR)/cursors.properties
ohair@5221 145
ohair@5221 146 CURSORS_LIB_SRC = $(JDK_TOPDIR)/src/share/lib/images/cursors
erikj@5596 147 ifeq ($(OPENJDK_TARGET_OS), windows)
ihse@8330 148 CURSORS_SRC_FILES = $(CURSORS_LIB_SRC)/invalid32x32.gif $(wildcard $(CURSORS_LIB_SRC)/win32_*.gif)
erikj@5596 149 else # OPENJDK_TARGET_OS
ihse@8330 150 CURSORS_SRC_FILES = $(CURSORS_LIB_SRC)/invalid32x32.gif $(wildcard $(CURSORS_LIB_SRC)/motif_*.gif)
erikj@5596 151 endif # OPENJDK_TARGET_OS
ihse@8330 152 CURSORS_TARGET_FILES = $(subst $(CURSORS_LIB_SRC),$(CURSORS_DEST_DIR),$(CURSORS_SRC_FILES))
ohair@5221 153
erikj@5507 154 $(CURSORS_DEST_DIR)/%: $(CURSORS_LIB_SRC)/%
erikj@6824 155 $(call install-file)
ohair@5221 156
ohair@5221 157 COPY_FILES += $(CURSORS_TARGET_FILES)
ohair@5221 158
ohair@5221 159 ##########################################################################################
ohair@5221 160
ihse@8330 161 CONTENT_TYPES_SRC = $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib
ohair@5221 162
ohair@5221 163 $(LIBDIR)/content-types.properties: $(CONTENT_TYPES_SRC)/content-types.properties
erikj@6824 164 $(call install-file)
ohair@5221 165
ohair@5221 166 COPY_FILES += $(LIBDIR)/content-types.properties
ohair@5221 167
ohair@5221 168 ##########################################################################################
ohair@5221 169
erikj@5507 170 CALENDARS_SRC := $(JDK_TOPDIR)/src/share/lib
erikj@5507 171
erikj@5507 172 $(LIBDIR)/calendars.properties: $(CALENDARS_SRC)/calendars.properties
erikj@6824 173 $(call install-file)
erikj@5507 174
erikj@5507 175 COPY_FILES += $(LIBDIR)/calendars.properties
erikj@5507 176
sherman@6897 177 $(LIBDIR)/hijrah-config-umalqura.properties: $(CALENDARS_SRC)/hijrah-config-umalqura.properties
sherman@6897 178 $(MKDIR) -p $(@D)
sherman@6897 179 $(RM) $@
sherman@6897 180 $(CP) $< $@
sherman@6897 181
sherman@6897 182 COPY_FILES += $(LIBDIR)/hijrah-config-umalqura.properties
sherman@6897 183
erikj@5507 184 ##########################################################################################
erikj@5507 185
luchsh@9599 186 ifneq ($(findstring $(OPENJDK_TARGET_OS), windows aix),)
erikj@5507 187
luchsh@9599 188 TZMAPPINGS_SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS)/lib
erikj@5507 189
ihse@8330 190 $(LIBDIR)/tzmappings: $(TZMAPPINGS_SRC)/tzmappings
erikj@6824 191 $(call install-file)
erikj@5507 192
ihse@8330 193 COPY_FILES += $(LIBDIR)/tzmappings
erikj@5507 194
erikj@5507 195 endif
erikj@5507 196
erikj@5507 197 ##########################################################################################
erikj@5507 198
ohair@5221 199 ICCPROFILE_DEST_DIR := $(LIBDIR)/cmm
ohair@5221 200
ohair@5221 201 ifdef OPENJDK
ihse@8330 202 ICCPROFILE_SRC_DIR := $(JDK_TOPDIR)/src/share/lib/cmm/lcms
sla@7317 203 else
ihse@8330 204 ICCPROFILE_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/cmm/kcms
ohair@5221 205 endif
ohair@5221 206
ihse@8330 207 ICCPROFILE_SRCS := $(wildcard $(ICCPROFILE_SRC_DIR)/*.pf)
ihse@8330 208 ICCPROFILE_TARGET_FILES := $(subst $(ICCPROFILE_SRC_DIR),$(ICCPROFILE_DEST_DIR),$(ICCPROFILE_SRCS))
ohair@5221 209
ohair@5221 210 $(ICCPROFILE_DEST_DIR)%.pf: $(ICCPROFILE_SRC_DIR)%.pf
erikj@6824 211 $(call install-file)
ohair@5221 212 $(CHMOD) 444 $@
ohair@5221 213
ohair@5221 214 COPY_FILES += $(ICCPROFILE_TARGET_FILES)
ohair@5221 215
ohair@5221 216 ##########################################################################################
ohair@5221 217
ihse@8494 218 ifneq ($(FREETYPE_BUNDLE_LIB_PATH), )
ihse@8494 219 # We need to bundle the freetype library, so it will be available at runtime as well as link time.
ihse@8494 220 #
ihse@8494 221 # NB: Default freetype build system uses -h linker option and
ihse@8494 222 # result .so contains hardcoded library name that is later
ihse@8494 223 # used for adding dependencies to other objects
ihse@8494 224 # (e.g. libfontmanager.so).
ihse@8494 225 #
ihse@8494 226 # It is not obvious how to extract that hardcoded name (libfreetype.so.6)
ihse@8494 227 # without overcomplicating logic here.
ihse@8494 228 # To workaround this we hardcode .6 suffix for now.
ihse@8494 229 #
ihse@8494 230 # Note that .so.6 library will not be found by System.loadLibrary()
ihse@8494 231 # but fortunately we need to load FreeType library explicitly
ihse@8494 232 # on windows only
ihse@8494 233 #
ihse@8494 234 #TODO: rework this to avoid hardcoding library name in the makefile
ihse@8494 235 #
ihse@8330 236 ifeq ($(OPENJDK_TARGET_OS), windows)
ihse@8494 237 FREETYPE_TARGET_LIB = $(JDK_OUTPUTDIR)/bin/$(call SHARED_LIBRARY,freetype)
ihse@8330 238 else
ihse@8494 239 FREETYPE_TARGET_LIB = $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/$(call SHARED_LIBRARY,freetype).6
ihse@8330 240 endif
ihse@8330 241
ihse@8494 242 $(FREETYPE_TARGET_LIB): $(FREETYPE_BUNDLE_LIB_PATH)/$(call SHARED_LIBRARY,freetype)
ihse@8494 243 $(CP) $(FREETYPE_BUNDLE_LIB_PATH)/$(call SHARED_LIBRARY,freetype) $@
ihse@8330 244 ifeq ($(OPENJDK_BUILD_OS), windows)
ihse@8330 245 $(CHMOD) +rx $@
ohair@5221 246 endif
ohair@5221 247
ihse@8494 248 COPY_FILES += $(FREETYPE_TARGET_LIB)
ohair@5221 249 endif
ohair@5221 250
ohair@5221 251 ##########################################################################################
ohair@5221 252
ohair@6025 253 # Copy msvcrXX.dll on windows
ohair@5221 254
ihse@8330 255 ifeq ($(OPENJDK_TARGET_OS), windows)
ihse@8330 256 MSVCR_TARGET := $(JDK_OUTPUTDIR)/bin/$(notdir $(MSVCR_DLL))
ihse@8330 257 # Chmod to avoid permission issues if bundles are unpacked on unix platforms.
ihse@8330 258 $(MSVCR_TARGET): $(MSVCR_DLL)
erikj@6824 259 $(call install-file)
erikj@6469 260 $(CHMOD) a+rx $@
ohair@5221 261
ihse@8330 262 COPY_FILES += $(MSVCR_TARGET)
ohair@5221 263 endif
ohair@5221 264
ohair@5221 265 ##########################################################################################
erikj@5507 266
ihse@8330 267 HPROF_SRC = $(JDK_TOPDIR)/src/share/demo/jvmti/hprof/jvm.hprof.txt
erikj@5507 268
ihse@8330 269 $(LIBDIR)/jvm.hprof.txt: $(HPROF_SRC)
erikj@6824 270 $(call install-file)
erikj@5507 271
erikj@5507 272 COPY_FILES += $(LIBDIR)/jvm.hprof.txt
erikj@5507 273
erikj@5507 274 ##########################################################################################
erikj@5507 275
erikj@5507 276 #
erikj@5507 277 # How to install jvm.cfg.
erikj@5507 278 #
erikj@5507 279 ifeq ($(JVM_VARIANT_ZERO), true)
ihse@8330 280 JVMCFG_ARCH := zero
erikj@5507 281 else
ihse@8330 282 JVMCFG_ARCH := $(OPENJDK_TARGET_CPU_LEGACY)
erikj@5507 283 endif
erikj@5507 284
ihse@8330 285 ifeq ($(OPENJDK_TARGET_OS), macosx)
erikj@5507 286 JVMCFG_SRC := $(JDK_TOPDIR)/src/macosx/bin/$(JVMCFG_ARCH)/jvm.cfg
erikj@5507 287 else
ohair@5819 288 JVMCFG_SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/$(JVMCFG_ARCH)/jvm.cfg
erikj@5507 289 endif
ohair@5819 290 JVMCFG_DIR := $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)
erikj@5507 291 JVMCFG := $(JVMCFG_DIR)/jvm.cfg
erikj@5507 292
omajid@7925 293 # To do: should this also support -zeroshark?
erikj@5507 294
ihse@8330 295 ifeq ($(OPENJDK_TARGET_CPU_BITS), 64)
omajid@7925 296 COPY_JVM_CFG_FILE := true
omajid@7925 297 else
dholmes@7040 298 # On 32-bit machines we have three potential VMs: client, server and minimal.
dholmes@7040 299 # Historically we usually have both client and server and so that is what the
dholmes@7040 300 # committed jvm.cfg expects (including platform specific ergonomics switches
dholmes@7040 301 # to decide whether to use client or server by default). So when we have anything
dholmes@7040 302 # other than client and server we need to define a new jvm.cfg file.
dholmes@7040 303 # The main problem is deciding whether to use aliases for the VMs that are not
dholmes@7040 304 # present and the current position is that we add aliases for client and server, but
dholmes@7040 305 # not for minimal.
ihse@8330 306 CLIENT_AND_SERVER := $(and $(findstring true, $(JVM_VARIANT_SERVER)), $(findstring true, $(JVM_VARIANT_CLIENT)))
omajid@7925 307 ifeq ($(CLIENT_AND_SERVER), true)
omajid@7925 308 COPY_JVM_CFG_FILE := true
omajid@7925 309 else
omajid@7925 310 # For zero, the default jvm.cfg file is sufficient
omajid@7925 311 ifeq ($(JVM_VARIANT_ZERO), true)
omajid@7925 312 COPY_JVM_CFG_FILE := true
omajid@7925 313 endif
omajid@7925 314 endif
omajid@7925 315 endif
erikj@5507 316
omajid@7925 317 ifeq ($(COPY_JVM_CFG_FILE), true)
ihse@8330 318 $(JVMCFG): $(JVMCFG_SRC)
dholmes@7040 319 $(call install-file)
omajid@7925 320 else
ihse@8330 321 $(JVMCFG):
dholmes@7040 322 $(MKDIR) -p $(@D)
dholmes@7040 323 $(RM) $(@)
ihse@8330 324 # Now check for other permutations
ihse@8330 325 ifeq ($(JVM_VARIANT_SERVER), true)
ihse@8330 326 $(PRINTF) "-server KNOWN\n">>$(@)
ihse@8330 327 $(PRINTF) "-client ALIASED_TO -server\n">>$(@)
ihse@8330 328 ifeq ($(JVM_VARIANT_MINIMAL1), true)
dholmes@7040 329 $(PRINTF) "-minimal KNOWN\n">>$(@)
ihse@8330 330 endif
ihse@8330 331 else
ihse@8330 332 ifeq ($(JVM_VARIANT_CLIENT), true)
dholmes@7040 333 $(PRINTF) "-client KNOWN\n">>$(@)
dholmes@7040 334 $(PRINTF) "-server ALIASED_TO -client\n">>$(@)
dholmes@7040 335 ifeq ($(JVM_VARIANT_MINIMAL1), true)
ihse@8330 336 $(PRINTF) "-minimal KNOWN\n">>$(@)
dholmes@7040 337 endif
ihse@8330 338 else
dholmes@7040 339 ifeq ($(JVM_VARIANT_MINIMAL1), true)
ihse@8330 340 $(PRINTF) "-minimal KNOWN\n">>$(@)
ihse@8330 341 $(PRINTF) "-server ALIASED_TO -minimal\n">>$(@)
ihse@8330 342 $(PRINTF) "-client ALIASED_TO -minimal\n">>$(@)
dholmes@7040 343 endif
ihse@8330 344 endif
erikj@5507 345 endif
erikj@5507 346 endif
erikj@5507 347
erikj@5507 348 COPY_FILES += $(JVMCFG)
erikj@5507 349
erikj@5507 350 ##########################################################################################
erikj@5507 351
alanb@6225 352 PROPS_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.security-$(OPENJDK_TARGET_OS)
erikj@5507 353 PROPS_DST := $(JDK_OUTPUTDIR)/lib/security/java.security
erikj@5507 354
mullan@8369 355 ifndef OPENJDK
mullan@8369 356
mullan@8369 357 RESTRICTED_PKGS_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/restricted.pkgs
mullan@8369 358 RESTRICTED_PKGS := $(shell $(CAT) $(RESTRICTED_PKGS_SRC) | $(TR) "\n" " ")
mullan@8369 359
mullan@8369 360 $(PROPS_DST): $(PROPS_SRC)
mullan@8369 361 $(MKDIR) -p $(@D)
mullan@8369 362 $(TOOL_ADDTORESTRICTEDPKGS) $^ $@.tmp $(RESTRICTED_PKGS)
mullan@8369 363 $(MV) $@.tmp $@
mullan@8369 364
mullan@8369 365 else
mullan@8369 366
erikj@5507 367 $(PROPS_DST): $(PROPS_SRC)
erikj@6824 368 $(call install-file)
erikj@5507 369
mullan@8369 370 endif
mullan@8369 371
erikj@5507 372 COPY_FILES += $(PROPS_DST)
erikj@5507 373
erikj@5507 374 ##########################################################################################
erikj@5507 375
erikj@5507 376 POLICY_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.policy
erikj@5507 377 POLICY_DST := $(JDK_OUTPUTDIR)/lib/security/java.policy
erikj@5507 378
erikj@5507 379 $(POLICY_DST): $(POLICY_SRC)
erikj@6824 380 $(call install-file)
erikj@5507 381
erikj@5507 382 COPY_FILES += $(POLICY_DST)
erikj@5507 383
erikj@5507 384 ##########################################################################################
erikj@5507 385
erikj@5507 386 CACERTS_SRC := $(CACERTS_FILE)
erikj@5507 387 CACERTS_DST := $(JDK_OUTPUTDIR)/lib/security/cacerts
erikj@5507 388
erikj@5507 389 $(CACERTS_DST): $(CACERTS_SRC)
erikj@6824 390 $(call install-file)
erikj@5507 391
erikj@5507 392 COPY_FILES += $(CACERTS_DST)
erikj@5507 393
erikj@5507 394 ##########################################################################################
erikj@5507 395
weijun@8163 396 BLACKLISTED_CERTS_SRC := $(JDK_TOPDIR)/src/share/lib/security/blacklisted.certs
weijun@8163 397 BLACKLISTED_CERTS_DST := $(JDK_OUTPUTDIR)/lib/security/blacklisted.certs
weijun@8163 398
erikj@5507 399 ifndef OPENJDK
erikj@5507 400
ihse@8330 401 BLACKLIST_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/blacklist
ihse@8330 402 BLACKLIST_DST := $(JDK_OUTPUTDIR)/lib/security/blacklist
erikj@5507 403
ihse@8330 404 BLACKLISTED_CERTS_SRC += $(wildcard $(JDK_TOPDIR)/src/closed/share/lib/security/blacklisted.certs)
weijun@8163 405
ihse@8330 406 TRUSTEDLIBS_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/trusted.libraries
ihse@8330 407 TRUSTEDLIBS_DST := $(JDK_OUTPUTDIR)/lib/security/trusted.libraries
erikj@5507 408
ihse@8330 409 $(BLACKLIST_DST): $(BLACKLIST_SRC)
erikj@6824 410 $(call install-file)
erikj@5507 411
ihse@8330 412 COPY_FILES += $(BLACKLIST_DST)
erikj@5507 413
ihse@8330 414 $(TRUSTEDLIBS_DST): $(TRUSTEDLIBS_SRC)
erikj@6824 415 $(call install-file)
erikj@5507 416
ihse@8330 417 COPY_FILES += $(TRUSTEDLIBS_DST)
erikj@5507 418
erikj@5507 419 endif
erikj@5507 420
weijun@8163 421 $(BLACKLISTED_CERTS_DST): $(BLACKLISTED_CERTS_SRC)
weijun@8163 422 $(MKDIR) -p $(@D)
weijun@8163 423 $(CAT) $^ | $(SED) '/^$$/d' | $(SORT) | $(UNIQ) > $@.tmp
weijun@8163 424 $(GREP) -i Algorithm $@.tmp > $@
weijun@8163 425 if [ `$(SED) -n -e "$$=" $@` != 1 ]; then \
weijun@8163 426 $(ECHO) "Different algorithms defined in $^"; \
weijun@8163 427 $(RM) $@ $@.tmp; \
weijun@8163 428 false; \
weijun@8163 429 fi
weijun@8163 430 $(GREP) -iv Algorithm $@.tmp >> $@
weijun@8163 431 $(RM) $@.tmp
weijun@8163 432
weijun@8163 433 COPY_FILES += $(BLACKLISTED_CERTS_DST)
weijun@8163 434
erikj@5507 435 ##########################################################################################
erikj@5507 436
erikj@5507 437 ifndef OPENJDK
erikj@5507 438
ihse@8330 439 SHARED_FONTS_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/fonts
ihse@8330 440 SHARED_FONTS_DST_DIR := $(JDK_OUTPUTDIR)/lib/fonts
ihse@8330 441 SHARED_FONTS_FILES := \
ihse@8330 442 LucidaTypewriterRegular.ttf \
ihse@8330 443 LucidaTypewriterBold.ttf \
ihse@8330 444 LucidaBrightRegular.ttf \
ihse@8330 445 LucidaBrightDemiBold.ttf \
ihse@8330 446 LucidaBrightItalic.ttf \
ihse@8330 447 LucidaBrightDemiItalic.ttf \
ihse@8330 448 LucidaSansRegular.ttf \
ihse@8330 449 LucidaSansDemiBold.ttf \
erikj@5507 450
ihse@8330 451 SHARED_FONTS_SRC := $(foreach F, $(SHARED_FONTS_FILES), $(SHARED_FONTS_SRC_DIR)/$(F))
ihse@8330 452 SHARED_FONTS_DST := $(foreach F, $(SHARED_FONTS_FILES), $(SHARED_FONTS_DST_DIR)/$(F))
erikj@5507 453
ihse@8330 454 $(SHARED_FONTS_DST_DIR)/%.ttf: $(SHARED_FONTS_SRC_DIR)/%.ttf
erikj@6824 455 $(call install-file)
erikj@5507 456
ihse@8330 457 $(SHARED_FONTS_DST_DIR)/fonts.dir: $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.fonts.dir
erikj@6824 458 $(call install-file)
erikj@5507 459
ihse@8330 460 COPY_FILES += $(SHARED_FONTS_DST)
ohair@5819 461
ihse@8330 462 ifneq ($(OPENJDK_TARGET_OS), windows)
ohair@5819 463 COPY_FILES += $(SHARED_FONTS_DST_DIR)/fonts.dir
ihse@8330 464 endif
erikj@5507 465
ihse@8330 466 ifeq ($(OPENJDK_TARGET_OS), linux)
erikj@5507 467
ihse@8330 468 # The oblique fonts are only needed/wanted on Linux.
erikj@5507 469
ihse@8330 470 OBL_FONTS_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/fonts/oblique
ihse@8330 471 OBL_FONTS_DST_DIR := $(JDK_OUTPUTDIR)/lib/oblique-fonts
ihse@8330 472 OBL_FONTS_FILES := LucidaTypewriterOblique.ttf LucidaTypewriterBoldOblique.ttf \
ihse@8330 473 LucidaSansOblique.ttf LucidaSansDemiOblique.ttf
erikj@5507 474
ihse@8330 475 OBL_FONTS_SRC := $(foreach F, $(OBL_FONTS_FILES), $(OBL_FONTS_SRC_DIR)/$(F))
ihse@8330 476 OBL_FONTS_DST := $(foreach F, $(OBL_FONTS_FILES), $(OBL_FONTS_DST_DIR)/$(F))
erikj@5507 477
ihse@8330 478 $(OBL_FONTS_DST_DIR)/%.ttf: $(OBL_FONTS_SRC_DIR)/%.ttf
erikj@6824 479 $(call install-file)
erikj@5507 480
ihse@8330 481 $(OBL_FONTS_DST_DIR)/fonts.dir: $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.oblique-fonts.dir
erikj@6824 482 $(call install-file)
erikj@5507 483
ihse@8330 484 COPY_FILES += $(OBL_FONTS_DST) $(OBL_FONTS_DST_DIR)/fonts.dir
erikj@5507 485
ihse@8330 486 endif # linux
erikj@5507 487 endif # OPENJDK
erikj@5507 488
erikj@5507 489 ##########################################################################################
erikj@5507 490
erikj@5507 491 ifndef OPENJDK
erikj@5507 492
ihse@8330 493 #
ihse@8330 494 # Solaris X11 Direct Graphics Access library
ihse@8330 495 #
erikj@5507 496
ihse@8330 497 _DGALIBS_sparc = \
ihse@8330 498 libxinerama.so \
ihse@8330 499 libjdgaSUNWcg6.so \
ihse@8330 500 libjdgaSUNWffb.so \
ihse@8330 501 libjdgaSUNWm64.so \
ihse@8330 502 libjdgaSUNWafb.so
erikj@5507 503
ihse@8330 504 _DGALIBS_sparcv9 = \
ihse@8330 505 libxinerama.so \
ihse@8330 506 libjdgaSUNWcg6.so \
ihse@8330 507 libjdgaSUNWffb.so \
ihse@8330 508 libjdgaSUNWm64.so \
ihse@8330 509 libjdgaSUNWafb.so
erikj@5507 510
ihse@8330 511 _DGALIBS_i586 = # no i586 library yet
erikj@5507 512
ihse@8330 513 _DGALIBS_amd64 = # no amd64 library yet
erikj@5507 514
ihse@8330 515 DGALIBS = $(_DGALIBS_$(OPENJDK_TARGET_CPU_LEGACY):%=$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/%)
erikj@5507 516
ihse@8330 517 $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libxinerama.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(OPENJDK_TARGET_CPU_LEGACY)/libxinerama.so
erikj@6824 518 $(call install-file)
erikj@5596 519 $(CHMOD) 755 $@
erikj@5507 520
ihse@8330 521 $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNW%.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(OPENJDK_TARGET_CPU_LEGACY)/libjdgaSUNW%.so
erikj@6824 522 $(call install-file)
erikj@5596 523 $(CHMOD) 755 $@
erikj@5507 524
ihse@8330 525 $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNWafb.so: $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNWffb.so
erikj@5507 526 $(MKDIR) -p $(@D)
erikj@5507 527 $(RM) $@
ohair@6025 528 $(LN) -s $(<F) $@
erikj@5507 529
ihse@8330 530 COPY_FILES += $(DGALIBS)
erikj@5507 531
erikj@5507 532 endif
erikj@5507 533
erikj@5507 534 ##########################################################################################
erikj@5507 535
erikj@5596 536 ifeq ($(OPENJDK_TARGET_OS), solaris)
erikj@5507 537
ihse@8330 538 SUNPKCS11_CFG_SRC := $(JDK_TOPDIR)/src/share/lib/security/sunpkcs11-solaris.cfg
ihse@8330 539 SUNPKCS11_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/sunpkcs11-solaris.cfg
erikj@5507 540
ihse@8330 541 $(SUNPKCS11_CFG_DST): $(SUNPKCS11_CFG_SRC)
erikj@6824 542 $(call install-file)
erikj@5507 543
ihse@8330 544 COPY_FILES += $(SUNPKCS11_CFG_DST)
erikj@5507 545
erikj@5507 546 endif
erikj@5507 547
erikj@5507 548 ##########################################################################################
erikj@5507 549
erikj@5507 550 ifndef OPENJDK
ihse@8330 551 ifeq ($(OPENJDK_TARGET_OS), solaris)
erikj@5507 552
ihse@8330 553 UCRYPTO_CFG_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/ucrypto-solaris.cfg
ihse@8330 554 UCRYPTO_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/ucrypto-solaris.cfg
erikj@5507 555
ihse@8330 556 $(UCRYPTO_CFG_DST): $(UCRYPTO_CFG_SRC)
erikj@6824 557 $(call install-file)
erikj@5507 558
ihse@8330 559 COPY_FILES += $(UCRYPTO_CFG_DST)
erikj@5507 560
ihse@8330 561 endif
erikj@5507 562 endif
erikj@5507 563
erikj@5507 564 ##########################################################################################
erikj@5507 565
ihse@8330 566 $(JDK_OUTPUTDIR)/lib/sound.properties: $(JDK_TOPDIR)/src/share/lib/sound.properties
erikj@6824 567 $(call install-file)
erikj@5507 568
erikj@5507 569 COPY_FILES += $(JDK_OUTPUTDIR)/lib/sound.properties
erikj@5507 570
erikj@5507 571 ##########################################################################################
sla@7317 572
erikj@7506 573 -include $(CUSTOM_MAKE_DIR)/CopyFiles.gmk