CopyFiles.gmk 18.9 KB
Newer Older
1
#
2
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.  Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#

INCLUDEDIR = $(JDK_OUTPUTDIR)/include
27

28
OPENJDK_TARGET_OS_INCLUDE = $(INCLUDEDIR)/$(OPENJDK_TARGET_OS)
29

30
ifeq ($(OPENJDK_TARGET_OS), windows)
31
  OPENJDK_TARGET_OS_INCLUDE = $(INCLUDEDIR)/win32
32
else ifeq ($(OPENJDK_TARGET_OS), macosx)
33
  OPENJDK_TARGET_OS_INCLUDE = $(INCLUDEDIR)/darwin
34 35
endif

36 37 38
#
# Copy exported header files to outputdir.
#
39 40 41 42 43 44 45 46
H_TARGET_FILES = $(INCLUDEDIR)/jdwpTransport.h \
    $(INCLUDEDIR)/jni.h \
    $(INCLUDEDIR)/jvmti.h \
    $(INCLUDEDIR)/jvmticmlr.h \
    $(INCLUDEDIR)/classfile_constants.h \
    $(INCLUDEDIR)/jawt.h \
    $(OPENJDK_TARGET_OS_INCLUDE)/jni_md.h \
    $(OPENJDK_TARGET_OS_INCLUDE)/jawt_md.h
47 48

$(INCLUDEDIR)/%.h: $(JDK_TOPDIR)/src/share/javavm/export/%.h
49
	$(call install-file)
50

51
$(OPENJDK_TARGET_OS_INCLUDE)/%.h: $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_EXPORT_DIR)/javavm/export/%.h
52
	$(call install-file)
53 54 55 56 57

COPY_FILES = $(H_TARGET_FILES)

##########################################################################################

58
  ifeq ($(OPENJDK_TARGET_OS), windows)
59
    COPY_FILES += $(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgeCallbacks.h \
60 61 62 63
        $(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgeCalls.h \
        $(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgePackages.h \
        $(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgeCalls.c \
        $(JDK_OUTPUTDIR)/lib/accessibility.properties
64 65

    $(OPENJDK_TARGET_OS_INCLUDE)/bridge/%: \
66
      $(JDK_TOPDIR)/src/windows/native/sun/bridge/%
67
		$(install-file)
68 69

    $(JDK_OUTPUTDIR)/lib/accessibility.properties: \
70
      $(JDK_TOPDIR)/src/windows/native/sun/bridge/accessibility.properties
71
		$(install-file)
72 73 74 75
endif

##########################################################################################

76 77 78 79 80 81 82 83
LIBDIR = $(JDK_OUTPUTDIR)/lib

MGMT_LIBDIR = $(LIBDIR)/management
MGMT_LIB_SRC = $(JDK_TOPDIR)/src/share/lib/management
MGMT_SRC_FILES = $(wildcard $(MGMT_LIB_SRC)/*)
MGMT_TARGET_FILES = $(subst $(MGMT_LIB_SRC),$(MGMT_LIBDIR),$(MGMT_SRC_FILES))

$(MGMT_LIBDIR)/management.properties: $(MGMT_LIB_SRC)/management.properties
84
	$(call install-file)
85 86
	$(CHMOD) 644 $@

87 88
# this file has different permissions...don't know why...
$(MGMT_LIBDIR)/jmxremote.access: $(MGMT_LIB_SRC)/jmxremote.access
89
	$(call install-file)
90 91
	$(CHMOD) 644 $@

92
$(MGMT_LIBDIR)/%: $(MGMT_LIB_SRC)/%
93
	$(call install-file)
94 95 96 97 98 99 100 101 102
	$(CHMOD) 444 $@

COPY_FILES += $(MGMT_TARGET_FILES)

##########################################################################################

LOGGING_LIB_SRC = $(JDK_TOPDIR)/src/share/lib

$(LIBDIR)/logging.properties: $(LOGGING_LIB_SRC)/logging.properties
103
	$(call install-file)
104 105 106 107 108 109 110 111 112 113 114

COPY_FILES += $(LIBDIR)/logging.properties

##########################################################################################
#
# Copy property files from sun/print to LIBDIR
#
PSFONTPROPFILE_SRC_DIR = $(JDK_TOPDIR)/src/share/classes/sun/print
PSFONTPROPFILE_SRCS = $(wildcard $(PSFONTPROPFILE_SRC_DIR)/*.properties*)
PSFONTPROPFILE_TARGET_FILES = $(subst $(PSFONTPROPFILE_SRC_DIR),$(LIBDIR),$(PSFONTPROPFILE_SRCS))

115
$(LIBDIR)/%: $(PSFONTPROPFILE_SRC_DIR)/%
116
	$(call install-file)
117 118 119 120 121 122 123

COPY_FILES += $(PSFONTPROPFILE_TARGET_FILES)

##########################################################################################
#
# Copy flavormap.properties, cursor.properties and cursors gif files to LIBDIR
#
124
ifneq ($(OPENJDK_TARGET_OS), macosx)
125
  OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib
126
else
127
  OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/macosx/lib
128
endif
129

130
$(LIBDIR)/flavormap.properties: $(OPENJDK_TARGET_OS_LIB_SRC)/flavormap.properties
131
	$(call install-file)
132 133 134 135

COPY_FILES += $(LIBDIR)/flavormap.properties

CURSORS_DEST_DIR = $(LIBDIR)/images/cursors
136
CURSORS_OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib/images/cursors
137

138
$(CURSORS_DEST_DIR)/cursors.properties: $(CURSORS_OPENJDK_TARGET_OS_LIB_SRC)/cursors.properties
139
	$(call install-file)
140 141 142 143

COPY_FILES += $(CURSORS_DEST_DIR)/cursors.properties

CURSORS_LIB_SRC = $(JDK_TOPDIR)/src/share/lib/images/cursors
144
ifeq ($(OPENJDK_TARGET_OS), windows)
145
  CURSORS_SRC_FILES = $(CURSORS_LIB_SRC)/invalid32x32.gif $(wildcard $(CURSORS_LIB_SRC)/win32_*.gif)
146
else # OPENJDK_TARGET_OS
147
  CURSORS_SRC_FILES = $(CURSORS_LIB_SRC)/invalid32x32.gif $(wildcard $(CURSORS_LIB_SRC)/motif_*.gif)
148
endif # OPENJDK_TARGET_OS
149
CURSORS_TARGET_FILES = $(subst $(CURSORS_LIB_SRC),$(CURSORS_DEST_DIR),$(CURSORS_SRC_FILES))
150

151
$(CURSORS_DEST_DIR)/%: $(CURSORS_LIB_SRC)/%
152
	$(call install-file)
153 154 155 156 157

COPY_FILES += $(CURSORS_TARGET_FILES)

##########################################################################################

158
CONTENT_TYPES_SRC = $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib
159 160

$(LIBDIR)/content-types.properties: $(CONTENT_TYPES_SRC)/content-types.properties
161
	$(call install-file)
162 163 164 165 166

COPY_FILES += $(LIBDIR)/content-types.properties

##########################################################################################

167 168 169
CALENDARS_SRC := $(JDK_TOPDIR)/src/share/lib

$(LIBDIR)/calendars.properties: $(CALENDARS_SRC)/calendars.properties
170
	$(call install-file)
171 172 173

COPY_FILES += $(LIBDIR)/calendars.properties

174 175 176 177 178 179 180
$(LIBDIR)/hijrah-config-umalqura.properties: $(CALENDARS_SRC)/hijrah-config-umalqura.properties
	$(MKDIR) -p $(@D)
	$(RM) $@
	$(CP) $< $@

COPY_FILES += $(LIBDIR)/hijrah-config-umalqura.properties

181 182
##########################################################################################

183
ifneq ($(findstring $(OPENJDK_TARGET_OS), windows aix),)
184

185
  TZMAPPINGS_SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS)/lib
186

187
  $(LIBDIR)/tzmappings: $(TZMAPPINGS_SRC)/tzmappings
188
	$(call install-file)
189

190
  COPY_FILES += $(LIBDIR)/tzmappings
191 192 193 194 195

endif

##########################################################################################

196 197 198
ICCPROFILE_DEST_DIR := $(LIBDIR)/cmm

ifdef OPENJDK
199
  ICCPROFILE_SRC_DIR := $(JDK_TOPDIR)/src/share/lib/cmm/lcms
S
sla 已提交
200
else
201
  ICCPROFILE_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/cmm/kcms
202 203
endif

204 205
ICCPROFILE_SRCS := $(wildcard $(ICCPROFILE_SRC_DIR)/*.pf)
ICCPROFILE_TARGET_FILES := $(subst $(ICCPROFILE_SRC_DIR),$(ICCPROFILE_DEST_DIR),$(ICCPROFILE_SRCS))
206 207

$(ICCPROFILE_DEST_DIR)%.pf: $(ICCPROFILE_SRC_DIR)%.pf
208
	$(call install-file)
209 210 211 212 213 214
	$(CHMOD) 444 $@

COPY_FILES += $(ICCPROFILE_TARGET_FILES)

##########################################################################################

I
ihse 已提交
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232
ifneq ($(FREETYPE_BUNDLE_LIB_PATH), )
  # We need to bundle the freetype library, so it will be available at runtime as well as link time.
  #
  # NB: Default freetype build system uses -h linker option and
  # result .so contains hardcoded library name that is later
  # used for adding dependencies to other objects
  # (e.g. libfontmanager.so).
  #
  # It is not obvious how to extract that hardcoded name (libfreetype.so.6)
  # without overcomplicating logic here.
  # To workaround this we hardcode .6 suffix for now.
  #
  # Note that .so.6 library will not be found by System.loadLibrary()
  # but fortunately we need to load FreeType library explicitly
  # on windows only
  #
  #TODO: rework this to avoid hardcoding library name in the makefile
  #
233
  ifeq ($(OPENJDK_TARGET_OS), windows)
I
ihse 已提交
234
    FREETYPE_TARGET_LIB = $(JDK_OUTPUTDIR)/bin/$(call SHARED_LIBRARY,freetype)
235
  else
I
ihse 已提交
236
    FREETYPE_TARGET_LIB = $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/$(call SHARED_LIBRARY,freetype).6
237
  endif
238

I
ihse 已提交
239 240
  $(FREETYPE_TARGET_LIB): $(FREETYPE_BUNDLE_LIB_PATH)/$(call SHARED_LIBRARY,freetype)
	$(CP) $(FREETYPE_BUNDLE_LIB_PATH)/$(call SHARED_LIBRARY,freetype) $@
241 242 243
        ifeq ($(OPENJDK_BUILD_OS), windows)
	  $(CHMOD) +rx $@
        endif
244

I
ihse 已提交
245
  COPY_FILES += $(FREETYPE_TARGET_LIB)
246 247 248 249
endif

##########################################################################################

250
# Copy the microsoft runtime libraries on windows
251
ifeq ($(OPENJDK_TARGET_OS), windows)
252

253
  # Chmod to avoid permission issues if bundles are unpacked on unix platforms.
254 255
  define copy-and-chmod
	$(install-file)
256
	$(CHMOD) a+rx $@
257 258 259 260 261 262 263 264 265 266 267 268 269
  endef

  # Use separate macro calls in case the source files are not in the same
  # directory.
  $(eval $(call SetupCopyFiles,COPY_MSVCR, \
      DEST := $(JDK_OUTPUTDIR)/bin, \
      FILES := $(MSVCR_DLL), \
      MACRO := copy-and-chmod))

  $(eval $(call SetupCopyFiles,COPY_MSVCP, \
      DEST := $(JDK_OUTPUTDIR)/bin, \
      FILES := $(MSVCP_DLL), \
      MACRO := copy-and-chmod))
270

271
  COPY_FILES += $(COPY_MSVCR) $(COPY_MSVCP)
272 273 274
endif

##########################################################################################
275

276
HPROF_SRC = $(JDK_TOPDIR)/src/share/demo/jvmti/hprof/jvm.hprof.txt
277

278
$(LIBDIR)/jvm.hprof.txt: $(HPROF_SRC)
279
	$(call install-file)
280 281 282 283 284 285 286 287 288

COPY_FILES += $(LIBDIR)/jvm.hprof.txt

##########################################################################################

#
# How to install jvm.cfg.
#
ifeq ($(JVM_VARIANT_ZERO), true)
289
  JVMCFG_ARCH := zero
290
else
291
  JVMCFG_ARCH := $(OPENJDK_TARGET_CPU_LEGACY)
292 293
endif

294
ifeq ($(OPENJDK_TARGET_OS), macosx)
295 296
  JVMCFG_SRC := $(JDK_TOPDIR)/src/macosx/bin/$(JVMCFG_ARCH)/jvm.cfg
else
297 298 299 300
  JVMCFG_BASE := $(OPENJDK_TARGET_OS_API_DIR)/bin/$(JVMCFG_ARCH)/jvm.cfg
  ALT_JVMCFG_SRC := $(JDK_TOPDIR)/src/closed/$(JVMCFG_BASE)
  # Use the ALT file if it exists
  JVMCFG_SRC := $(if $(wildcard $(ALT_JVMCFG_SRC)),$(ALT_JVMCFG_SRC),$(JDK_TOPDIR)/src/$(JVMCFG_BASE))
301
endif
302
JVMCFG_DIR := $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)
303 304
JVMCFG := $(JVMCFG_DIR)/jvm.cfg

305
# To do: should this also support -zeroshark?
306

307
ifeq ($(OPENJDK_TARGET_CPU_BITS), 64)
308 309
  COPY_JVM_CFG_FILE := true
else
310 311 312 313 314 315 316 317
  # On 32-bit machines we have three potential VMs: client, server and minimal.
  # Historically we usually have both client and server and so that is what the
  # committed jvm.cfg expects (including platform specific ergonomics switches
  # to decide whether to use client or server by default). So when we have anything
  # other than client and server we need to define a new jvm.cfg file.
  # The main problem is deciding whether to use aliases for the VMs that are not
  # present and the current position is that we add aliases for client and server, but
  # not for minimal.
318
  CLIENT_AND_SERVER := $(and $(findstring true, $(JVM_VARIANT_SERVER)), $(findstring true, $(JVM_VARIANT_CLIENT)))
319
  ifeq ($(CLIENT_AND_SERVER), true)
320 321 322 323 324 325 326 327 328 329
    COPY_JVM_CFG_FILE := true
  else
    # For zero, the default jvm.cfg file is sufficient
    ifeq ($(JVM_VARIANT_ZERO), true)
      COPY_JVM_CFG_FILE := true
    endif
  endif
endif

ifeq ($(COPY_JVM_CFG_FILE), true)
330
  $(JVMCFG): $(JVMCFG_SRC)
331
	$(call install-file)
332
else
333
  $(JVMCFG):
334 335
	$(MKDIR) -p $(@D)
	$(RM) $(@)
336 337 338 339 340
        # Now check for other permutations
        ifeq ($(JVM_VARIANT_SERVER), true)
	  $(PRINTF) "-server KNOWN\n">>$(@)
	  $(PRINTF) "-client ALIASED_TO -server\n">>$(@)
          ifeq ($(JVM_VARIANT_MINIMAL1), true)
341
	    $(PRINTF) "-minimal KNOWN\n">>$(@)
342 343 344
          endif
        else
          ifeq ($(JVM_VARIANT_CLIENT), true)
345 346 347
	    $(PRINTF) "-client KNOWN\n">>$(@)
	    $(PRINTF) "-server ALIASED_TO -client\n">>$(@)
            ifeq ($(JVM_VARIANT_MINIMAL1), true)
348
	      $(PRINTF) "-minimal KNOWN\n">>$(@)
349
            endif
350
          else
351
            ifeq ($(JVM_VARIANT_MINIMAL1), true)
352 353 354
	      $(PRINTF) "-minimal KNOWN\n">>$(@)
	      $(PRINTF) "-server ALIASED_TO -minimal\n">>$(@)
	      $(PRINTF) "-client ALIASED_TO -minimal\n">>$(@)
355
            endif
356
          endif
357 358 359 360 361 362 363
        endif
endif

COPY_FILES += $(JVMCFG)

##########################################################################################

364
PROPS_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.security-$(OPENJDK_TARGET_OS)
365 366
PROPS_DST := $(JDK_OUTPUTDIR)/lib/security/java.security

367 368 369 370 371
ifndef OPENJDK

RESTRICTED_PKGS_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/restricted.pkgs
RESTRICTED_PKGS := $(shell $(CAT) $(RESTRICTED_PKGS_SRC) | $(TR) "\n" " ")

372 373
endif

374 375
$(PROPS_DST): $(PROPS_SRC)
	$(MKDIR) -p $(@D)
376 377 378 379 380 381 382 383 384
        ifndef OPENJDK
	  $(TOOL_ADDTORESTRICTEDPKGS) $^ $@.tmp $(RESTRICTED_PKGS)
        else
	  $(CP) $^ $@.tmp
        endif
        ifeq ($(UNLIMITED_CRYPTO), true)
	  $(TOOL_CRYPTOLEVEL) $@.tmp $@.tmp2 unlimited
	  $(MV) $@.tmp2 $@.tmp
        endif
385 386
	$(MV) $@.tmp $@

387 388 389 390 391 392 393 394
COPY_FILES += $(PROPS_DST)

##########################################################################################

POLICY_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.policy
POLICY_DST := $(JDK_OUTPUTDIR)/lib/security/java.policy

$(POLICY_DST): $(POLICY_SRC)
395
	$(call install-file)
396 397 398 399 400 401 402 403 404

COPY_FILES += $(POLICY_DST)

##########################################################################################

CACERTS_SRC := $(CACERTS_FILE)
CACERTS_DST := $(JDK_OUTPUTDIR)/lib/security/cacerts

$(CACERTS_DST): $(CACERTS_SRC)
405
	$(call install-file)
406 407 408 409 410

COPY_FILES += $(CACERTS_DST)

##########################################################################################

411 412 413
BLACKLISTED_CERTS_SRC := $(JDK_TOPDIR)/src/share/lib/security/blacklisted.certs
BLACKLISTED_CERTS_DST := $(JDK_OUTPUTDIR)/lib/security/blacklisted.certs

414 415
ifndef OPENJDK

416 417
  BLACKLIST_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/blacklist
  BLACKLIST_DST := $(JDK_OUTPUTDIR)/lib/security/blacklist
418

419
  BLACKLISTED_CERTS_SRC += $(wildcard $(JDK_TOPDIR)/src/closed/share/lib/security/blacklisted.certs)
420

421 422
  TRUSTEDLIBS_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/trusted.libraries
  TRUSTEDLIBS_DST := $(JDK_OUTPUTDIR)/lib/security/trusted.libraries
423

424
  $(BLACKLIST_DST): $(BLACKLIST_SRC)
425
	$(call install-file)
426

427
  COPY_FILES += $(BLACKLIST_DST)
428

429
  $(TRUSTEDLIBS_DST): $(TRUSTEDLIBS_SRC)
430
	$(call install-file)
431

432
  COPY_FILES += $(TRUSTEDLIBS_DST)
433 434 435

endif

436 437 438 439 440 441 442 443 444 445 446 447 448 449
$(BLACKLISTED_CERTS_DST): $(BLACKLISTED_CERTS_SRC)
	$(MKDIR) -p $(@D)
	$(CAT) $^ | $(SED) '/^$$/d' | $(SORT) | $(UNIQ) > $@.tmp
	$(GREP) -i Algorithm $@.tmp > $@
	if [ `$(SED) -n -e "$$=" $@` != 1 ]; then \
	   $(ECHO) "Different algorithms defined in $^"; \
	   $(RM) $@ $@.tmp; \
	   false; \
	fi
	$(GREP) -iv Algorithm $@.tmp >> $@
	$(RM) $@.tmp

COPY_FILES += $(BLACKLISTED_CERTS_DST)

450 451 452 453
##########################################################################################

ifndef OPENJDK

454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469
  SHARED_FONTS_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/fonts
  SHARED_FONTS_DST_DIR := $(JDK_OUTPUTDIR)/lib/fonts
  SHARED_FONTS_FILES := \
      LucidaTypewriterRegular.ttf \
      LucidaTypewriterBold.ttf \
      LucidaBrightRegular.ttf \
      LucidaBrightDemiBold.ttf \
      LucidaBrightItalic.ttf \
      LucidaBrightDemiItalic.ttf \
      LucidaSansRegular.ttf \
      LucidaSansDemiBold.ttf \

  SHARED_FONTS_SRC := $(foreach F, $(SHARED_FONTS_FILES), $(SHARED_FONTS_SRC_DIR)/$(F))
  SHARED_FONTS_DST := $(foreach F, $(SHARED_FONTS_FILES), $(SHARED_FONTS_DST_DIR)/$(F))

  $(SHARED_FONTS_DST_DIR)/%.ttf: $(SHARED_FONTS_SRC_DIR)/%.ttf
470
	$(call install-file)
471

472
  $(SHARED_FONTS_DST_DIR)/fonts.dir: $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.fonts.dir
473
	$(call install-file)
474

475
  COPY_FILES += $(SHARED_FONTS_DST)
476

477
  ifneq ($(OPENJDK_TARGET_OS), windows)
478
    COPY_FILES += $(SHARED_FONTS_DST_DIR)/fonts.dir
479
  endif
480

481
  ifeq ($(OPENJDK_TARGET_OS), linux)
482

483
  # The oblique fonts are only needed/wanted on Linux.
484

485 486 487 488
    OBL_FONTS_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/fonts/oblique
    OBL_FONTS_DST_DIR := $(JDK_OUTPUTDIR)/lib/oblique-fonts
    OBL_FONTS_FILES := LucidaTypewriterOblique.ttf LucidaTypewriterBoldOblique.ttf \
        LucidaSansOblique.ttf LucidaSansDemiOblique.ttf
489

490 491
    OBL_FONTS_SRC := $(foreach F, $(OBL_FONTS_FILES), $(OBL_FONTS_SRC_DIR)/$(F))
    OBL_FONTS_DST := $(foreach F, $(OBL_FONTS_FILES), $(OBL_FONTS_DST_DIR)/$(F))
492

493
    $(OBL_FONTS_DST_DIR)/%.ttf: $(OBL_FONTS_SRC_DIR)/%.ttf
494
	$(call install-file)
495

496
    $(OBL_FONTS_DST_DIR)/fonts.dir: $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.oblique-fonts.dir
497
	$(call install-file)
498

499
    COPY_FILES += $(OBL_FONTS_DST) $(OBL_FONTS_DST_DIR)/fonts.dir
500

501
  endif # linux
502 503 504 505 506 507
endif # OPENJDK

##########################################################################################

ifndef OPENJDK

508 509 510
  #
  # Solaris X11 Direct Graphics Access library
  #
511

512 513 514 515 516 517
  _DGALIBS_sparc = \
      libxinerama.so \
      libjdgaSUNWcg6.so \
      libjdgaSUNWffb.so \
      libjdgaSUNWm64.so \
      libjdgaSUNWafb.so
518

519 520 521 522 523 524
  _DGALIBS_sparcv9 = \
      libxinerama.so \
      libjdgaSUNWcg6.so \
      libjdgaSUNWffb.so \
      libjdgaSUNWm64.so \
      libjdgaSUNWafb.so
525

526
  _DGALIBS_i586 = # no i586 library yet
527

528
  _DGALIBS_amd64 = # no amd64 library yet
529

530
  DGALIBS = $(_DGALIBS_$(OPENJDK_TARGET_CPU_LEGACY):%=$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/%)
531

532
  $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libxinerama.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(OPENJDK_TARGET_CPU_LEGACY)/libxinerama.so
533
	$(call install-file)
534
	$(CHMOD) 755 $@
535

536
  $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNW%.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(OPENJDK_TARGET_CPU_LEGACY)/libjdgaSUNW%.so
537
	$(call install-file)
538
	$(CHMOD) 755 $@
539

540
  $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNWafb.so: $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNWffb.so
541 542
	$(MKDIR) -p $(@D)
	$(RM) $@
O
ohair 已提交
543
	$(LN) -s $(<F) $@
544

545
  COPY_FILES += $(DGALIBS)
546 547 548 549 550

endif

##########################################################################################

551
ifeq ($(OPENJDK_TARGET_OS), solaris)
552

553 554
  SUNPKCS11_CFG_SRC := $(JDK_TOPDIR)/src/share/lib/security/sunpkcs11-solaris.cfg
  SUNPKCS11_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/sunpkcs11-solaris.cfg
555

556
  $(SUNPKCS11_CFG_DST): $(SUNPKCS11_CFG_SRC)
557
	$(call install-file)
558

559
  COPY_FILES += $(SUNPKCS11_CFG_DST)
560 561 562 563 564 565

endif

##########################################################################################

ifndef OPENJDK
566
  ifeq ($(OPENJDK_TARGET_OS), solaris)
567

568 569
    UCRYPTO_CFG_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/ucrypto-solaris.cfg
    UCRYPTO_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/ucrypto-solaris.cfg
570

571
    $(UCRYPTO_CFG_DST): $(UCRYPTO_CFG_SRC)
572
	$(call install-file)
573

574
    COPY_FILES += $(UCRYPTO_CFG_DST)
575

576
  endif
577 578 579 580
endif

##########################################################################################

581
$(JDK_OUTPUTDIR)/lib/sound.properties: $(JDK_TOPDIR)/src/share/lib/sound.properties
582
	$(call install-file)
583 584 585 586

COPY_FILES += $(JDK_OUTPUTDIR)/lib/sound.properties

##########################################################################################
S
sla 已提交
587

588
-include $(CUSTOM_MAKE_DIR)/CopyFiles.gmk