CopyFiles.gmk 18.5 KB
Newer Older
1
#
2
# Copyright (c) 2011, 2015, 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

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

O
ohair 已提交
250
# Copy msvcrXX.dll on windows
251

252 253 254 255
ifeq ($(OPENJDK_TARGET_OS), windows)
  MSVCR_TARGET := $(JDK_OUTPUTDIR)/bin/$(notdir $(MSVCR_DLL))
  # Chmod to avoid permission issues if bundles are unpacked on unix platforms.
  $(MSVCR_TARGET): $(MSVCR_DLL)
256
	$(call install-file)
257
	$(CHMOD) a+rx $@
258

259
  COPY_FILES += $(MSVCR_TARGET)
260 261 262
endif

##########################################################################################
263

264
HPROF_SRC = $(JDK_TOPDIR)/src/share/demo/jvmti/hprof/jvm.hprof.txt
265

266
$(LIBDIR)/jvm.hprof.txt: $(HPROF_SRC)
267
	$(call install-file)
268 269 270 271 272 273 274 275 276

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

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

#
# How to install jvm.cfg.
#
ifeq ($(JVM_VARIANT_ZERO), true)
277
  JVMCFG_ARCH := zero
278
else
279
  JVMCFG_ARCH := $(OPENJDK_TARGET_CPU_LEGACY)
280 281
endif

282
ifeq ($(OPENJDK_TARGET_OS), macosx)
283 284
  JVMCFG_SRC := $(JDK_TOPDIR)/src/macosx/bin/$(JVMCFG_ARCH)/jvm.cfg
else
285 286 287 288
  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))
289
endif
290
JVMCFG_DIR := $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)
291 292
JVMCFG := $(JVMCFG_DIR)/jvm.cfg

293
# To do: should this also support -zeroshark?
294

295
ifeq ($(OPENJDK_TARGET_CPU_BITS), 64)
296 297
  COPY_JVM_CFG_FILE := true
else
298 299 300 301 302 303 304 305
  # 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.
306
  CLIENT_AND_SERVER := $(and $(findstring true, $(JVM_VARIANT_SERVER)), $(findstring true, $(JVM_VARIANT_CLIENT)))
307
  ifeq ($(CLIENT_AND_SERVER), true)
308 309 310 311 312 313 314 315 316 317
    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)
318
  $(JVMCFG): $(JVMCFG_SRC)
319
	$(call install-file)
320
else
321
  $(JVMCFG):
322 323
	$(MKDIR) -p $(@D)
	$(RM) $(@)
324 325 326 327 328
        # 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)
329
	    $(PRINTF) "-minimal KNOWN\n">>$(@)
330 331 332
          endif
        else
          ifeq ($(JVM_VARIANT_CLIENT), true)
333 334 335
	    $(PRINTF) "-client KNOWN\n">>$(@)
	    $(PRINTF) "-server ALIASED_TO -client\n">>$(@)
            ifeq ($(JVM_VARIANT_MINIMAL1), true)
336
	      $(PRINTF) "-minimal KNOWN\n">>$(@)
337
            endif
338
          else
339
            ifeq ($(JVM_VARIANT_MINIMAL1), true)
340 341 342
	      $(PRINTF) "-minimal KNOWN\n">>$(@)
	      $(PRINTF) "-server ALIASED_TO -minimal\n">>$(@)
	      $(PRINTF) "-client ALIASED_TO -minimal\n">>$(@)
343
            endif
344
          endif
345 346 347 348 349 350 351
        endif
endif

COPY_FILES += $(JVMCFG)

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

352
PROPS_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.security-$(OPENJDK_TARGET_OS)
353 354
PROPS_DST := $(JDK_OUTPUTDIR)/lib/security/java.security

355 356 357 358 359 360 361 362 363 364 365 366
ifndef OPENJDK

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

$(PROPS_DST): $(PROPS_SRC)
	$(MKDIR) -p $(@D)
	$(TOOL_ADDTORESTRICTEDPKGS) $^ $@.tmp $(RESTRICTED_PKGS)
	$(MV) $@.tmp $@

else

367
$(PROPS_DST): $(PROPS_SRC)
368
	$(call install-file)
369

370 371
endif

372 373 374 375 376 377 378 379
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)
380
	$(call install-file)
381 382 383 384 385 386 387 388 389

COPY_FILES += $(POLICY_DST)

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

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

$(CACERTS_DST): $(CACERTS_SRC)
390
	$(call install-file)
391 392 393 394 395

COPY_FILES += $(CACERTS_DST)

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

396 397 398
BLACKLISTED_CERTS_SRC := $(JDK_TOPDIR)/src/share/lib/security/blacklisted.certs
BLACKLISTED_CERTS_DST := $(JDK_OUTPUTDIR)/lib/security/blacklisted.certs

399 400
ifndef OPENJDK

401 402
  BLACKLIST_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/blacklist
  BLACKLIST_DST := $(JDK_OUTPUTDIR)/lib/security/blacklist
403

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

406 407
  TRUSTEDLIBS_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/trusted.libraries
  TRUSTEDLIBS_DST := $(JDK_OUTPUTDIR)/lib/security/trusted.libraries
408

409
  $(BLACKLIST_DST): $(BLACKLIST_SRC)
410
	$(call install-file)
411

412
  COPY_FILES += $(BLACKLIST_DST)
413

414
  $(TRUSTEDLIBS_DST): $(TRUSTEDLIBS_SRC)
415
	$(call install-file)
416

417
  COPY_FILES += $(TRUSTEDLIBS_DST)
418 419 420

endif

421 422 423 424 425 426 427 428 429 430 431 432 433 434
$(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)

435 436 437 438
##########################################################################################

ifndef OPENJDK

439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454
  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
455
	$(call install-file)
456

457
  $(SHARED_FONTS_DST_DIR)/fonts.dir: $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.fonts.dir
458
	$(call install-file)
459

460
  COPY_FILES += $(SHARED_FONTS_DST)
461

462
  ifneq ($(OPENJDK_TARGET_OS), windows)
463
    COPY_FILES += $(SHARED_FONTS_DST_DIR)/fonts.dir
464
  endif
465

466
  ifeq ($(OPENJDK_TARGET_OS), linux)
467

468
  # The oblique fonts are only needed/wanted on Linux.
469

470 471 472 473
    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
474

475 476
    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))
477

478
    $(OBL_FONTS_DST_DIR)/%.ttf: $(OBL_FONTS_SRC_DIR)/%.ttf
479
	$(call install-file)
480

481
    $(OBL_FONTS_DST_DIR)/fonts.dir: $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.oblique-fonts.dir
482
	$(call install-file)
483

484
    COPY_FILES += $(OBL_FONTS_DST) $(OBL_FONTS_DST_DIR)/fonts.dir
485

486
  endif # linux
487 488 489 490 491 492
endif # OPENJDK

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

ifndef OPENJDK

493 494 495
  #
  # Solaris X11 Direct Graphics Access library
  #
496

497 498 499 500 501 502
  _DGALIBS_sparc = \
      libxinerama.so \
      libjdgaSUNWcg6.so \
      libjdgaSUNWffb.so \
      libjdgaSUNWm64.so \
      libjdgaSUNWafb.so
503

504 505 506 507 508 509
  _DGALIBS_sparcv9 = \
      libxinerama.so \
      libjdgaSUNWcg6.so \
      libjdgaSUNWffb.so \
      libjdgaSUNWm64.so \
      libjdgaSUNWafb.so
510

511
  _DGALIBS_i586 = # no i586 library yet
512

513
  _DGALIBS_amd64 = # no amd64 library yet
514

515
  DGALIBS = $(_DGALIBS_$(OPENJDK_TARGET_CPU_LEGACY):%=$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/%)
516

517
  $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libxinerama.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(OPENJDK_TARGET_CPU_LEGACY)/libxinerama.so
518
	$(call install-file)
519
	$(CHMOD) 755 $@
520

521
  $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNW%.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(OPENJDK_TARGET_CPU_LEGACY)/libjdgaSUNW%.so
522
	$(call install-file)
523
	$(CHMOD) 755 $@
524

525
  $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNWafb.so: $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNWffb.so
526 527
	$(MKDIR) -p $(@D)
	$(RM) $@
O
ohair 已提交
528
	$(LN) -s $(<F) $@
529

530
  COPY_FILES += $(DGALIBS)
531 532 533 534 535

endif

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

536
ifeq ($(OPENJDK_TARGET_OS), solaris)
537

538 539
  SUNPKCS11_CFG_SRC := $(JDK_TOPDIR)/src/share/lib/security/sunpkcs11-solaris.cfg
  SUNPKCS11_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/sunpkcs11-solaris.cfg
540

541
  $(SUNPKCS11_CFG_DST): $(SUNPKCS11_CFG_SRC)
542
	$(call install-file)
543

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

endif

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

ifndef OPENJDK
551
  ifeq ($(OPENJDK_TARGET_OS), solaris)
552

553 554
    UCRYPTO_CFG_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/ucrypto-solaris.cfg
    UCRYPTO_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/ucrypto-solaris.cfg
555

556
    $(UCRYPTO_CFG_DST): $(UCRYPTO_CFG_SRC)
557
	$(call install-file)
558

559
    COPY_FILES += $(UCRYPTO_CFG_DST)
560

561
  endif
562 563 564 565
endif

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

566
$(JDK_OUTPUTDIR)/lib/sound.properties: $(JDK_TOPDIR)/src/share/lib/sound.properties
567
	$(call install-file)
568 569 570 571

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

##########################################################################################
S
sla 已提交
572

573
-include $(CUSTOM_MAKE_DIR)/CopyFiles.gmk