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