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