author | duke |
Wed, 05 Jul 2017 18:46:58 +0200 | |
changeset 16416 | bcebd3fdefc9 |
parent 16035 | defa7fe4d2bd |
child 16478 | 52ea0de470fd |
child 21381 | 2e106db79c90 |
permissions | -rw-r--r-- |
12892 | 1 |
# |
15681 | 2 |
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
12892 | 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 |
include $(SPEC) |
|
27 |
include MakeBase.gmk |
|
28 |
include JavaCompilation.gmk |
|
29 |
include Setup.gmk |
|
30 |
||
31 |
default: all |
|
32 |
||
15126
bceb690ccf35
8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents:
14790
diff
changeset
|
33 |
# Prepare the find cache. Only used if running on windows. |
bceb690ccf35
8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents:
14790
diff
changeset
|
34 |
$(eval $(call FillCacheFind,$(JDK_OUTPUTDIR)/classes)) |
bceb690ccf35
8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents:
14790
diff
changeset
|
35 |
|
12892 | 36 |
include Tools.gmk |
37 |
||
15681 | 38 |
include Profiles.gmk |
39 |
||
13164 | 40 |
# |
41 |
# This makefile...so that altering will trigger rebuilding include/exclude-lists => jars |
|
42 |
# |
|
43 |
MAKEFILE=$(JDK_TOPDIR)/makefiles/CreateJars.gmk |
|
15681 | 44 |
# |
45 |
# And similarly for the Profiles |
|
46 |
PROFILE_MAKEFILES=$(JDK_TOPDIR)/makefiles/Profiles.gmk $(JDK_TOPDIR)/makefiles/profile-rtjar-includes.txt |
|
12892 | 47 |
|
48 |
MAINMANIFEST := $(JDK_TOPDIR)/make/tools/manifest.mf |
|
49 |
BEANMANIFEST := $(JDK_TOPDIR)/make/javax/swing/beaninfo/manifest |
|
50 |
||
14231 | 51 |
$(eval $(call MakeDir,$(IMAGES_OUTPUTDIR)/lib)) |
52 |
||
12892 | 53 |
########################################################################################## |
54 |
||
14231 | 55 |
$(eval $(call SetupArchive,BUILD_JCONSOLE_JAR,,\ |
12892 | 56 |
SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
13164 | 57 |
SUFFIXES:=.class .gif .png .properties,\ |
12892 | 58 |
INCLUDES:=sun/tools/jconsole com/sun/tools/jconsole,\ |
59 |
JARMAIN:=sun.tools.jconsole.JConsole,\ |
|
14231 | 60 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/jconsole.jar,\ |
12892 | 61 |
SKIP_METAINF:=true)) |
62 |
||
63 |
||
64 |
########################################################################################## |
|
65 |
||
14231 | 66 |
$(eval $(call SetupArchive,BUILD_DNS_JAR,,\ |
12892 | 67 |
SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
68 |
INCLUDES:=sun/net/spi/nameservice/dns,\ |
|
69 |
EXTRA_FILES:=META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor,\ |
|
14231 | 70 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/dnsns.jar,\ |
12892 | 71 |
SKIP_METAINF:=true)) |
72 |
||
73 |
||
74 |
########################################################################################## |
|
75 |
||
15289 | 76 |
$(IMAGES_OUTPUTDIR)/lib/tzdb.jar: $(JDK_OUTPUTDIR)/lib/tzdb.jar |
77 |
$(install-file) |
|
78 |
||
79 |
JARS += $(IMAGES_OUTPUTDIR)/lib/tzdb.jar |
|
80 |
||
81 |
########################################################################################## |
|
82 |
||
14334
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
83 |
LOCALEDATA_INCLUDE_LOCALES := ar be bg ca cs da de el es et fi fr ga hi hr hu in is it \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
84 |
iw ja ko lt lv mk ms mt nl no pl pt ro ru sk sl sq sr sv \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
85 |
th tr uk vi zh |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
86 |
|
13583 | 87 |
LOCALEDATA_INCLUDES := $(addprefix sun/text/resources/,$(LOCALEDATA_INCLUDE_LOCALES)) \ |
88 |
$(addprefix sun/util/resources/,$(LOCALEDATA_INCLUDE_LOCALES)) |
|
12892 | 89 |
|
14334
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
90 |
# For non-US English locale data |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
91 |
|
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
92 |
LOCALEDATA_INCLUDES += \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
93 |
sun/text/resources/en/FormatData_en_AU.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
94 |
sun/text/resources/en/FormatData_en_CA.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
95 |
sun/text/resources/en/FormatData_en_GB.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
96 |
sun/text/resources/en/FormatData_en_IE.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
97 |
sun/text/resources/en/FormatData_en_IN.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
98 |
sun/text/resources/en/FormatData_en_MT.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
99 |
sun/text/resources/en/FormatData_en_NZ.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
100 |
sun/text/resources/en/FormatData_en_PH.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
101 |
sun/text/resources/en/FormatData_en_SG.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
102 |
sun/text/resources/en/FormatData_en_ZA.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
103 |
sun/util/resources/en/CalendarData_en_GB.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
104 |
sun/util/resources/en/CalendarData_en_IE.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
105 |
sun/util/resources/en/CalendarData_en_MT.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
106 |
sun/util/resources/en/CurrencyNames_en_AU.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
107 |
sun/util/resources/en/CurrencyNames_en_CA.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
108 |
sun/util/resources/en/CurrencyNames_en_GB.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
109 |
sun/util/resources/en/CurrencyNames_en_IE.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
110 |
sun/util/resources/en/CurrencyNames_en_IN.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
111 |
sun/util/resources/en/CurrencyNames_en_MT.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
112 |
sun/util/resources/en/CurrencyNames_en_NZ.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
113 |
sun/util/resources/en/CurrencyNames_en_PH.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
114 |
sun/util/resources/en/CurrencyNames_en_SG.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
115 |
sun/util/resources/en/CurrencyNames_en_ZA.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
116 |
sun/util/resources/en/LocaleNames_en_MT.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
117 |
sun/util/resources/en/LocaleNames_en_PH.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
118 |
sun/util/resources/en/LocaleNames_en_SG.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
119 |
sun/util/resources/en/TimeZoneNames_en_CA.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
120 |
sun/util/resources/en/TimeZoneNames_en_GB.class \ |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
121 |
sun/util/resources/en/TimeZoneNames_en_IE.class |
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
122 |
|
12892 | 123 |
$(eval $(call SetupArchive,BUILD_LOCALEDATA_JAR,,\ |
124 |
SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
|
125 |
SUFFIXES:=.class _dict _th,\ |
|
126 |
INCLUDES:=$(LOCALEDATA_INCLUDES),\ |
|
13583 | 127 |
EXCLUDES:=sun/text/resources/th/BreakIteratorRules_th.class,\ |
14231 | 128 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/localedata.jar,\ |
12892 | 129 |
SKIP_METAINF:=true)) |
130 |
||
131 |
########################################################################################## |
|
15681 | 132 |
# |
133 |
# Different variants of rt.jar are built based on the current profile. The output |
|
134 |
# directory is augmented with the profile name so that the final jar file and all the |
|
135 |
# intermediary list files will be in directory. This has the form lib$PROFILE rather than |
|
136 |
# lib/$PROFILE so that it won't get copied as part of the image generation process. |
|
137 |
# Each profile customizes the RT_JAR_EXCLUDES variable. |
|
138 |
# |
|
139 |
########################################################################################## |
|
12892 | 140 |
|
15681 | 141 |
# Full JRE exclude list for rt.jar and resources.jar |
142 |
# This value should exclude types destined for jars other than rt.jar and resources.jar. |
|
143 |
# When building a Profile this value augments the profile specific exclusions |
|
144 |
RT_JAR_EXCLUDES += \ |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
145 |
com/oracle/security \ |
15130
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
146 |
com/sun/codemodel \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
147 |
com/sun/crypto/provider \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
148 |
com/sun/istack/internal/tools \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
149 |
com/sun/jarsigner \ |
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
150 |
com/sun/java/accessibility \ |
12892 | 151 |
com/sun/javadoc \ |
152 |
com/sun/jdi \ |
|
15130
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
153 |
com/sun/net/ssl/internal/ssl \ |
12892 | 154 |
com/sun/source \ |
155 |
com/sun/tools \ |
|
156 |
com/sun/xml/internal/dtdparser \ |
|
157 |
com/sun/xml/internal/rngom \ |
|
158 |
com/sun/xml/internal/xsom \ |
|
15130
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
159 |
javax/crypto \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
160 |
javax/swing/AbstractButtonBeanInfo.class \ |
12892 | 161 |
javax/swing/beaninfo \ |
162 |
javax/swing/BoxBeanInfo.class \ |
|
163 |
javax/swing/JAppletBeanInfo.class \ |
|
164 |
javax/swing/JButtonBeanInfo.class \ |
|
165 |
javax/swing/JCheckBoxBeanInfo.class \ |
|
166 |
javax/swing/JCheckBoxMenuItemBeanInfo.class \ |
|
167 |
javax/swing/JColorChooserBeanInfo.class \ |
|
168 |
javax/swing/JComboBoxBeanInfo.class \ |
|
169 |
javax/swing/JComponentBeanInfo.class \ |
|
170 |
javax/swing/JDesktopPaneBeanInfo.class \ |
|
171 |
javax/swing/JDialogBeanInfo.class \ |
|
172 |
javax/swing/JEditorPaneBeanInfo.class \ |
|
173 |
javax/swing/JFileChooserBeanInfo.class \ |
|
174 |
javax/swing/JFormattedTextFieldBeanInfo.class \ |
|
175 |
javax/swing/JFrameBeanInfo.class \ |
|
176 |
javax/swing/JInternalFrameBeanInfo.class \ |
|
177 |
javax/swing/JLabelBeanInfo.class \ |
|
178 |
javax/swing/JLayeredPaneBeanInfo.class \ |
|
179 |
javax/swing/JListBeanInfo.class \ |
|
180 |
javax/swing/JMenuBarBeanInfo.class \ |
|
181 |
javax/swing/JMenuBeanInfo.class \ |
|
182 |
javax/swing/JMenuItemBeanInfo.class \ |
|
183 |
javax/swing/JOptionPaneBeanInfo.class \ |
|
184 |
javax/swing/JPanelBeanInfo.class \ |
|
185 |
javax/swing/JPasswordFieldBeanInfo.class \ |
|
186 |
javax/swing/JPopupMenuBeanInfo.class \ |
|
187 |
javax/swing/JProgressBarBeanInfo.class \ |
|
188 |
javax/swing/JRadioButtonBeanInfo.class \ |
|
189 |
javax/swing/JRadioButtonMenuItemBeanInfo.class \ |
|
190 |
javax/swing/JScrollBarBeanInfo.class \ |
|
191 |
javax/swing/JScrollPaneBeanInfo.class \ |
|
192 |
javax/swing/JSeparatorBeanInfo.class \ |
|
193 |
javax/swing/JSliderBeanInfo.class \ |
|
194 |
javax/swing/JSpinnerBeanInfo.class \ |
|
195 |
javax/swing/JSplitPaneBeanInfo.class \ |
|
196 |
javax/swing/JTabbedPaneBeanInfo.class \ |
|
197 |
javax/swing/JTableBeanInfo.class \ |
|
198 |
javax/swing/JTextAreaBeanInfo.class \ |
|
199 |
javax/swing/JTextFieldBeanInfo.class \ |
|
200 |
javax/swing/JTextPaneBeanInfo.class \ |
|
201 |
javax/swing/JToggleButtonBeanInfo.class \ |
|
202 |
javax/swing/JToolBarBeanInfo.class \ |
|
203 |
javax/swing/JTreeBeanInfo.class \ |
|
204 |
javax/swing/JWindowBeanInfo.class \ |
|
205 |
javax/swing/SwingBeanInfoBase.class \ |
|
206 |
javax/swing/text/JTextComponentBeanInfo.class \ |
|
15130
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
207 |
META-INF/services/com.sun.jdi.connect.Connector \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
208 |
META-INF/services/com.sun.jdi.connect.spi.TransportService \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
209 |
META-INF/services/com.sun.tools.attach.spi.AttachProvider \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
210 |
META-INF/services/com.sun.tools.xjc.Plugin \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
211 |
META-INF/services/java.nio.charset.spi.CharsetProvider \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
212 |
META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
213 |
org/relaxng/datatype \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
214 |
sun/awt/HKSCS.class \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
215 |
sun/awt/motif/X11GB2312.class \ |
16035
defa7fe4d2bd
8009029: SunEC provider classes ending up in rt.jar after Nashorn build changes
alanb
parents:
16029
diff
changeset
|
216 |
sun/awt/motif/X11GB2312\$$Decoder.class \ |
defa7fe4d2bd
8009029: SunEC provider classes ending up in rt.jar after Nashorn build changes
alanb
parents:
16029
diff
changeset
|
217 |
sun/awt/motif/X11GB2312\$$Encoder.class \ |
15130
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
218 |
sun/awt/motif/X11GBK.class \ |
16035
defa7fe4d2bd
8009029: SunEC provider classes ending up in rt.jar after Nashorn build changes
alanb
parents:
16029
diff
changeset
|
219 |
sun/awt/motif/X11GBK\$$Encoder.class \ |
15130
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
220 |
sun/awt/motif/X11KSC5601.class \ |
16035
defa7fe4d2bd
8009029: SunEC provider classes ending up in rt.jar after Nashorn build changes
alanb
parents:
16029
diff
changeset
|
221 |
sun/awt/motif/X11KSC5601\$$Decoder.class \ |
defa7fe4d2bd
8009029: SunEC provider classes ending up in rt.jar after Nashorn build changes
alanb
parents:
16029
diff
changeset
|
222 |
sun/awt/motif/X11KSC5601\$$Encoder.class \ |
15130
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
223 |
sun/jvmstat \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
224 |
sun/net/spi/nameservice/dns \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
225 |
sun/nio/cs/ext \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
226 |
sun/rmi/rmic \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
227 |
sun/security/ec/ECDHKeyAgreement.class \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
228 |
sun/security/ec/ECDSASignature.class \ |
16035
defa7fe4d2bd
8009029: SunEC provider classes ending up in rt.jar after Nashorn build changes
alanb
parents:
16029
diff
changeset
|
229 |
sun/security/ec/ECDSASignature\$$Raw.class \ |
defa7fe4d2bd
8009029: SunEC provider classes ending up in rt.jar after Nashorn build changes
alanb
parents:
16029
diff
changeset
|
230 |
sun/security/ec/ECDSASignature\$$SHA1.class \ |
defa7fe4d2bd
8009029: SunEC provider classes ending up in rt.jar after Nashorn build changes
alanb
parents:
16029
diff
changeset
|
231 |
sun/security/ec/ECDSASignature\$$SHA224.class \ |
defa7fe4d2bd
8009029: SunEC provider classes ending up in rt.jar after Nashorn build changes
alanb
parents:
16029
diff
changeset
|
232 |
sun/security/ec/ECDSASignature\$$SHA256.class \ |
defa7fe4d2bd
8009029: SunEC provider classes ending up in rt.jar after Nashorn build changes
alanb
parents:
16029
diff
changeset
|
233 |
sun/security/ec/ECDSASignature\$$SHA384.class \ |
defa7fe4d2bd
8009029: SunEC provider classes ending up in rt.jar after Nashorn build changes
alanb
parents:
16029
diff
changeset
|
234 |
sun/security/ec/ECDSASignature\$$SHA512.class \ |
15130
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
235 |
sun/security/ec/ECKeyFactory.class \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
236 |
sun/security/ec/ECKeyPairGenerator.class \ |
16035
defa7fe4d2bd
8009029: SunEC provider classes ending up in rt.jar after Nashorn build changes
alanb
parents:
16029
diff
changeset
|
237 |
sun/security/ec/SunEC\$$1.class \ |
15130
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
238 |
sun/security/ec/SunEC.class \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
239 |
sun/security/ec/SunECEntries.class \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
240 |
sun/security/internal \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
241 |
sun/security/mscapi \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
242 |
sun/security/pkcs11 \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
243 |
sun/security/provider/Sun.class \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
244 |
sun/security/rsa/SunRsaSign.class \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
245 |
sun/security/ssl \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
246 |
sun/security/tools/jarsigner \ |
12892 | 247 |
sun/swing/BeanInfoUtils.class \ |
13583 | 248 |
sun/text/resources/cldr \ |
15130
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
249 |
sun/tools/asm \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
250 |
sun/tools/attach \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
251 |
sun/tools/java \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
252 |
sun/tools/javac \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
253 |
sun/tools/jcmd \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
254 |
sun/tools/jconsole \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
255 |
sun/tools/jinfo \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
256 |
sun/tools/jmap \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
257 |
sun/tools/jps \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
258 |
sun/tools/jstack \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
259 |
sun/tools/jstat \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
260 |
sun/tools/jstatd \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
261 |
sun/tools/native2ascii \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
262 |
sun/tools/serialver \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
263 |
sun/tools/tree \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
264 |
sun/tools/util \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
265 |
sun/util/cldr/CLDRLocaleDataMetaInfo.class \ |
13583 | 266 |
sun/util/resources/cldr \ |
15681 | 267 |
$(LOCALEDATA_INCLUDES) \ |
12892 | 268 |
com/oracle/jrockit/jfr \ |
269 |
oracle/jrockit/jfr |
|
13164 | 270 |
|
271 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
272 |
RT_JAR_EXCLUDES += com/sun/nio/sctp \ |
|
14425
0005b8b4ec0b
8003161: small fixes to re-enable new build system
ohrstrom
parents:
14345
diff
changeset
|
273 |
sun/nio/ch/sctp |
12892 | 274 |
endif |
275 |
||
276 |
# Find all files in the classes dir to use as dependencies. This could be more fine granular. |
|
15126
bceb690ccf35
8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents:
14790
diff
changeset
|
277 |
ALL_FILES_IN_CLASSES := $(call not-containing,_the.,$(filter-out %javac_state,\ |
bceb690ccf35
8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents:
14790
diff
changeset
|
278 |
$(call CacheFind,$(JDK_OUTPUTDIR)/classes))) |
12892 | 279 |
|
15681 | 280 |
RT_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar_manifest |
281 |
RESOURCE_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar_manifest |
|
12892 | 282 |
|
283 |
$(RT_JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST) |
|
284 |
$(MKDIR) -p $(@D) |
|
13702 | 285 |
$(RM) $@ $@.tmp |
12892 | 286 |
$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \ |
287 |
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \ |
|
13702 | 288 |
$(MAINMANIFEST) >> $@.tmp |
289 |
$(ECHO) >> $@.tmp |
|
290 |
$(CAT) $(BEANMANIFEST) >> $@.tmp |
|
291 |
$(MV) $@.tmp $@ |
|
12892 | 292 |
|
293 |
$(RESOURCE_JAR_MANIFEST_FILE): $(MAINMANIFEST) |
|
294 |
$(MKDIR) -p $(@D) |
|
13702 | 295 |
$(RM) $@ $@.tmp |
12892 | 296 |
$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \ |
297 |
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \ |
|
13702 | 298 |
$(MAINMANIFEST) >> $@.tmp |
299 |
$(MV) $@.tmp $@ |
|
12892 | 300 |
|
15681 | 301 |
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.exclude: $(MAKEFILE) $(PROFILE_MAKEFILES) |
12892 | 302 |
$(MKDIR) -p $(@D) |
13702 | 303 |
$(RM) $@ $@.tmp |
304 |
$(call ListPathsSafely,RT_JAR_EXCLUDES,\n, >> $@.tmp) |
|
305 |
$(MV) $@.tmp $@ |
|
12892 | 306 |
|
14231 | 307 |
$(IMAGES_OUTPUTDIR)/lib/classlist : $(JDK_TOPDIR)/make/tools/sharing/classlist.$(OPENJDK_TARGET_OS) \ |
13164 | 308 |
$(MAKEFILE) |
309 |
$(MKDIR) -p $(@D) |
|
13702 | 310 |
$(RM) $@ $@.tmp |
311 |
$(TOOL_ADDJSUM) $< $@.tmp |
|
312 |
$(MV) $@.tmp $@ |
|
13164 | 313 |
|
15681 | 314 |
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents: $(BUILD_TOOLS) $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.exclude \ |
14231 | 315 |
$(ALL_FILES_IN_CLASSES) $(IMAGES_OUTPUTDIR)/lib/classlist |
12892 | 316 |
$(MKDIR) -p $(@D) |
13702 | 317 |
$(RM) $@ $@.tmp |
12892 | 318 |
($(CD) $(JDK_OUTPUTDIR)/classes && \ |
319 |
$(TOOL_JARREORDER) \ |
|
15681 | 320 |
-o $@.tmp $(IMAGES_OUTPUTDIR)/lib/classlist $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.exclude . ) |
13702 | 321 |
$(MV) $@.tmp $@ |
12892 | 322 |
|
15681 | 323 |
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar.contents: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents |
13702 | 324 |
$(MKDIR) -p $(@D) |
325 |
$(RM) $@ $@.tmp |
|
15681 | 326 |
$(GREP) -e '\.class$$' $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents > $@.tmp |
327 |
ifneq ($(PROFILE),) |
|
328 |
# # Add back classes from excluded packages (fixing the $ substitution in the process) |
|
329 |
for type in $(subst \$$,\, $(RT_JAR_INCLUDE_TYPES)) ; do \ |
|
330 |
$(ECHO) $$type >> $@.tmp ; \ |
|
331 |
done |
|
332 |
endif |
|
13702 | 333 |
$(MV) $@.tmp $@ |
12892 | 334 |
|
15681 | 335 |
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents |
13702 | 336 |
$(MKDIR) -p $(@D) |
337 |
$(RM) $@ $@.tmp |
|
338 |
$(GREP) -v -e '\.class$$' \ |
|
339 |
-e '/_the\.*' -e '^_the\.*' -e '\\_the\.*' -e 'javac_state' \ |
|
15681 | 340 |
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents > $@.tmp |
341 |
ifneq ($(PROFILE),) |
|
342 |
# # Strip out all META-INF/services/ entries |
|
343 |
$(GREP) -v -e 'META-INF/services/' $@.tmp > $@.tmp2 |
|
344 |
# # Add back the required services |
|
345 |
# # FIXME: On Solaris if PROFILE_INCLUDE_METAINF_SERVICES is not defined |
|
346 |
# # we get a syntax error from sh. That doesn't happen on linux |
|
347 |
for service in $(PROFILE_INCLUDE_METAINF_SERVICES) ; do \ |
|
348 |
$(ECHO) $$service >> $@.tmp2; \ |
|
349 |
done |
|
350 |
$(MV) $@.tmp2 $@.tmp |
|
351 |
endif |
|
13702 | 352 |
$(MV) $@.tmp $@ |
12892 | 353 |
|
15681 | 354 |
# This is a hack but I don't know how to make this fit into the existing scheme |
355 |
$(PROFILE_VERSION_CLASS_TARGETS) : $(PROFILE_VERSION_JAVA_TARGETS) |
|
356 |
@$(JAVAC) -d $(@D)/../../ $(@D)/$(VERSION_JAVA_FILE) |
|
357 |
||
358 |
||
359 |
# Support for removing the addPropertyChangeListener and removePropertyChangeListener |
|
360 |
# methods from classes that only go into the profile builds. For now the Pack200.Packer |
|
361 |
# and Packer200.Unpacker classes have special handling because of the $ in the file |
|
362 |
# name. |
|
363 |
BEANLESS_CLASSES = $(IMAGES_OUTPUTDIR)/beanless |
|
364 |
||
365 |
$(BEANLESS_CLASSES)/%: $(JDK_OUTPUTDIR)/classes/% |
|
366 |
$(MKDIR) -p $(@D) |
|
367 |
$(TOOL_REMOVEMETHODS) $< $@ addPropertyChangeListener removePropertyChangeListener |
|
368 |
||
369 |
CLASSES_TO_DEBEAN = \ |
|
370 |
java/util/logging/LogManager.class \ |
|
371 |
com/sun/java/util/jar/pack/PackerImpl.class \ |
|
372 |
com/sun/java/util/jar/pack/UnpackerImpl.class |
|
373 |
||
374 |
BEANLESS_CLASSES_TARGETS = |
|
375 |
ifneq ($(PROFILE),) |
|
376 |
BEANLESS_CLASSES_TARGETS := $(foreach c, $(CLASSES_TO_DEBEAN), $(BEANLESS_CLASSES)/$c) |
|
377 |
endif |
|
378 |
||
379 |
||
13164 | 380 |
RT_JAR_CREATE_OPTIONS := c0fm |
15681 | 381 |
RT_JAR_UPDATE_OPTIONS := u0f |
13164 | 382 |
ifeq ($(COMPRESS_JARS), true) |
383 |
RT_JAR_CREATE_OPTIONS := cfm |
|
15681 | 384 |
RT_JAR_UPDATE_OPTIONS := uf |
13164 | 385 |
endif |
386 |
||
15681 | 387 |
# This defines a target-specific variables to make the shell logic easier to see. |
388 |
# We need to find the Version.class file for the profile currently being built |
|
389 |
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/rt.jar: \ |
|
390 |
CLASS_FILE = $(if $(PROFILE),$(strip $(foreach class,$(PROFILE_VERSION_CLASS_TARGETS),$(if $(findstring $(PROFILE),$(class)),$(class)))), NO_SUCH_FILE) |
|
391 |
# This is the real target |
|
392 |
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/rt.jar: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar.contents $(RT_JAR_MANIFEST_FILE) $(PROFILE_VERSION_CLASS_TARGETS) $(BEANLESS_CLASSES_TARGETS) |
|
393 |
$(ECHO) Creating rt.jar $(PROFILE) Compressed=$(COMPRESS_JARS) |
|
13702 | 394 |
$(MKDIR) -p $(@D) |
395 |
$(RM) $@ $@.tmp |
|
12892 | 396 |
$(CD) $(JDK_OUTPUTDIR)/classes && \ |
13702 | 397 |
$(JAR) $(RT_JAR_CREATE_OPTIONS) $@.tmp $(RT_JAR_MANIFEST_FILE) \ |
15681 | 398 |
@$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar.contents && \ |
399 |
if [ -f $(CLASS_FILE) ]; then \ |
|
400 |
$(ECHO) Updating rt.jar $(PROFILE) && \ |
|
401 |
$(CD) $(patsubst %$(VERSION_CLASS_PATH),%,$(CLASS_FILE)) && \ |
|
402 |
$(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(VERSION_CLASS_PATH); \ |
|
403 |
$(MKDIR) -p $(BEANLESS_CLASSES)/java/util/jar; \ |
|
404 |
$(TOOL_REMOVEMETHODS) $(JDK_OUTPUTDIR)/classes/java/util/jar/Pack200\$$Packer.class \ |
|
405 |
$(BEANLESS_CLASSES)/java/util/jar/Pack200\$$Packer.class addPropertyChangeListener removePropertyChangeListener; \ |
|
406 |
$(TOOL_REMOVEMETHODS) $(JDK_OUTPUTDIR)/classes/java/util/jar/Pack200\$$Unpacker.class \ |
|
407 |
$(BEANLESS_CLASSES)/java/util/jar/Pack200\$$Unpacker.class addPropertyChangeListener removePropertyChangeListener; \ |
|
408 |
$(CD) $(BEANLESS_CLASSES) && \ |
|
409 |
$(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(CLASSES_TO_DEBEAN) java/util/jar/* ; \ |
|
410 |
fi |
|
13702 | 411 |
$(MV) $@.tmp $@ |
12892 | 412 |
|
15681 | 413 |
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/resources.jar: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents \ |
12892 | 414 |
$(RESOURCE_JAR_MANIFEST_FILE) |
415 |
$(ECHO) Creating resources.jar |
|
13702 | 416 |
$(MKDIR) -p $(@D) |
417 |
$(RM) $@ $@.tmp |
|
12892 | 418 |
$(CD) $(JDK_OUTPUTDIR)/classes && \ |
13702 | 419 |
$(JAR) $(RT_JAR_CREATE_OPTIONS) $@.tmp $(RESOURCE_JAR_MANIFEST_FILE) \ |
15681 | 420 |
@$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents |
13702 | 421 |
$(MV) $@.tmp $@ |
12892 | 422 |
|
423 |
########################################################################################## |
|
424 |
||
13164 | 425 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
12892 | 426 |
CHARSETS_EXTRA_FILES:=sun/awt/motif/X11GBK.class \ |
427 |
sun/awt/motif/X11GB2312\$$$$Decoder.class \ |
|
428 |
sun/awt/motif/X11GB2312.class \ |
|
429 |
sun/awt/motif/X11KSC5601\$$$$Decoder.class \ |
|
430 |
sun/awt/motif/X11KSC5601\$$$$Encoder.class \ |
|
431 |
sun/awt/motif/X11GB2312\$$$$Encoder.class \ |
|
432 |
sun/awt/motif/X11GBK\$$$$Encoder.class \ |
|
433 |
sun/awt/motif/X11KSC5601.class |
|
434 |
endif |
|
435 |
||
14231 | 436 |
$(eval $(call SetupArchive,BUILD_CHARSETS_JAR,,\ |
12892 | 437 |
SRCS:=$(JDK_OUTPUTDIR)/classes, \ |
438 |
SUFFIXES:=.class .dat,\ |
|
439 |
INCLUDES:=sun/nio/cs/ext,\ |
|
440 |
EXTRA_FILES := sun/awt/HKSCS.class \ |
|
441 |
$(CHARSETS_EXTRA_FILES) \ |
|
442 |
META-INF/services/java.nio.charset.spi.CharsetProvider, \ |
|
14231 | 443 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/charsets.jar, \ |
13164 | 444 |
SKIP_METAINF := true, \ |
445 |
CHECK_COMPRESS_JAR:=true)) |
|
12892 | 446 |
|
447 |
########################################################################################## |
|
448 |
||
14231 | 449 |
ifndef OPENJDK |
13164 | 450 |
ifeq ($(ENABLE_JFR), true) |
12892 | 451 |
$(eval $(call SetupArchive,BUILD_JFR_JAR,,\ |
452 |
SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
|
453 |
INCLUDES:=com/oracle/jrockit/jfr \ |
|
454 |
oracle/jrockit/jfr,\ |
|
14231 | 455 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/jfr.jar,\ |
12892 | 456 |
SKIP_METAINF:=true,\ |
13164 | 457 |
MANIFEST:=$(MAINMANIFEST), \ |
458 |
CHECK_COMPRESS_JAR:=true)) |
|
12892 | 459 |
|
14231 | 460 |
endif |
12892 | 461 |
endif |
462 |
||
463 |
########################################################################################## |
|
464 |
||
465 |
$(eval $(call SetupArchive,BUILD_JSSE_JAR,,\ |
|
466 |
SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
|
467 |
INCLUDES:=sun/security/provider/Sun.class \ |
|
468 |
sun/security/rsa/SunRsaSign.class \ |
|
469 |
sun/security/ssl \ |
|
470 |
com/sun/net/ssl/internal/ssl,\ |
|
14231 | 471 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/jsse.jar,\ |
12892 | 472 |
SKIP_METAINF:=true,\ |
13164 | 473 |
MANIFEST:=$(MAINMANIFEST), \ |
474 |
CHECK_COMPRESS_JAR:=true)) |
|
12892 | 475 |
|
476 |
########################################################################################## |
|
14527
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
477 |
# Create manifest for security jars |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
478 |
|
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
479 |
# |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
480 |
# Include these extra attributes for now, should probably take out. |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
481 |
# |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
482 |
JCE_MANIFEST := $(IMAGES_OUTPUTDIR)/lib/_the.security.manifest.mf |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
483 |
$(JCE_MANIFEST): $(MAINMANIFEST) |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
484 |
$(MKDIR) -p $(@D) |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
485 |
$(RM) $@ $@.tmp |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
486 |
$(SED) -e "s#@@RELEASE@@#$(JDK_VERSION)#" \ |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
487 |
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \ |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
488 |
$(MAINMANIFEST) >> $@.tmp |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
489 |
$(ECHO) "Extension-Name: javax.crypto" >> $@.tmp |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
490 |
$(ECHO) "Implementation-Vendor-Id: com.sun" >> $@.tmp |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
491 |
$(MV) $@.tmp $@ |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
492 |
|
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
493 |
########################################################################################## |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
494 |
# For all security jars, always build the jar, but for closed, install the prebuilt signed |
15681 | 495 |
# version instead of the newly built jar. Unsigned jars are treated as intermediate targets |
496 |
# and explicitly added to the JARS list. For open, signing is not needed. See SignJars.gmk |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
497 |
# for more information. |
12892 | 498 |
|
14231 | 499 |
SUNPKCS11_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunpkcs11.jar |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
500 |
SUNPKCS11_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/sunpkcs11.jar |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
501 |
|
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
502 |
$(eval $(call SetupArchive,BUILD_SUNPKCS11_JAR,,\ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
503 |
SRCS:=$(JDK_OUTPUTDIR)/classes, \ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
504 |
SUFFIXES:=.class,\ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
505 |
INCLUDES:=sun/security/pkcs11,\ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
506 |
JAR:=$(SUNPKCS11_JAR_UNSIGNED), \ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
507 |
MANIFEST:=$(JCE_MANIFEST), \ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
508 |
SKIP_METAINF := true)) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
509 |
|
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
510 |
$(SUNPKCS11_JAR_UNSIGNED): $(JCE_MANIFEST) |
12892 | 511 |
|
13702 | 512 |
ifndef OPENJDK |
513 |
SUNPKCS11_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/pkcs11/sunpkcs11.jar |
|
514 |
$(SUNPKCS11_JAR_DST) : $(SUNPKCS11_JAR_SRC) |
|
14231 | 515 |
@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunPKCS11 provider..." |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
516 |
$(install-file) |
13702 | 517 |
else |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
518 |
$(SUNPKCS11_JAR_DST) : $(SUNPKCS11_JAR_UNSIGNED) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
519 |
$(install-file) |
13702 | 520 |
endif |
12892 | 521 |
|
15681 | 522 |
JARS += $(SUNPKCS11_JAR_UNSIGNED) |
12892 | 523 |
|
524 |
########################################################################################## |
|
525 |
||
14231 | 526 |
SUNEC_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunec.jar |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
527 |
SUNEC_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/sunec.jar |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
528 |
|
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
529 |
$(eval $(call SetupArchive,BUILD_SUNEC_JAR,,\ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
530 |
SRCS:=$(JDK_OUTPUTDIR)/classes, \ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
531 |
SUFFIXES:=.class,\ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
532 |
INCLUDES:=sun/security/ec,\ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
533 |
JAR:=$(SUNEC_JAR_UNSIGNED), \ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
534 |
MANIFEST:=$(JCE_MANIFEST), \ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
535 |
SKIP_METAINF := true)) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
536 |
|
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
537 |
$(SUNEC_JAR_UNSIGNED): $(JCE_MANIFEST) |
12892 | 538 |
|
539 |
ifndef OPENJDK |
|
14527
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
540 |
SUNEC_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ec/sunec.jar |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
541 |
$(SUNEC_JAR_DST) : $(SUNEC_JAR_SRC) |
14231 | 542 |
@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunEC provider..." |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
543 |
$(install-file) |
12892 | 544 |
else |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
545 |
$(SUNEC_JAR_DST) : $(SUNEC_JAR_UNSIGNED) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
546 |
$(install-file) |
12892 | 547 |
endif |
548 |
||
15681 | 549 |
JARS += $(SUNEC_JAR_UNSIGNED) |
12892 | 550 |
|
551 |
########################################################################################## |
|
552 |
||
553 |
$(eval $(call SetupArchive,BUILD_SWINGBEANS_JAR,,\ |
|
554 |
SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
|
555 |
SUFFIXES:=BeanInfo.class .gif,\ |
|
556 |
INCLUDES:=javax/swing sun/swing,\ |
|
557 |
EXCLUDES:=javax/swing/plaf,\ |
|
558 |
EXTRA_FILES:=javax/swing/SwingBeanInfoBase.class sun/swing/BeanInfoUtils.class,\ |
|
14231 | 559 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/dt.jar,\ |
12892 | 560 |
SKIP_METAINF:=true)) |
561 |
||
562 |
########################################################################################## |
|
563 |
||
14231 | 564 |
SUNJCE_PROVIDER_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunjce_provider.jar |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
565 |
SUNJCE_PROVIDER_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/sunjce_provider.jar |
12892 | 566 |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
567 |
$(eval $(call SetupArchive,BUILD_SUNJCE_PROVIDER_JAR,,\ |
12892 | 568 |
SRCS:=$(JDK_OUTPUTDIR)/classes, \ |
569 |
SUFFIXES:=.class,\ |
|
570 |
INCLUDES:= com/sun/crypto/provider,\ |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
571 |
JAR:=$(SUNJCE_PROVIDER_JAR_UNSIGNED), \ |
14527
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
572 |
MANIFEST:=$(JCE_MANIFEST), \ |
12892 | 573 |
SKIP_METAINF := true)) |
14527
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
574 |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
575 |
$(SUNJCE_PROVIDER_JAR_UNSIGNED): $(JCE_MANIFEST) |
14527
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
576 |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
577 |
ifndef OPENJDK |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
578 |
SUNJCE_PROVIDER_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/sunjce_provider.jar |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
579 |
$(SUNJCE_PROVIDER_JAR_DST) : $(SUNJCE_PROVIDER_JAR_SRC) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
580 |
@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunJCE provider..." |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
581 |
$(install-file) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
582 |
else |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
583 |
$(SUNJCE_PROVIDER_JAR_DST) : $(SUNJCE_PROVIDER_JAR_UNSIGNED) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
584 |
$(install-file) |
12892 | 585 |
endif |
586 |
||
15681 | 587 |
JARS += $(SUNJCE_PROVIDER_JAR_UNSIGNED) |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
588 |
|
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
589 |
########################################################################################## |
12892 | 590 |
|
14231 | 591 |
JCE_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/jce.jar |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
592 |
JCE_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/jce.jar |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
593 |
|
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
594 |
$(eval $(call SetupArchive,BUILD_JCE_JAR,,\ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
595 |
SRCS:=$(JDK_OUTPUTDIR)/classes, \ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
596 |
SUFFIXES:=.class,\ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
597 |
INCLUDES:= javax/crypto sun/security/internal,\ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
598 |
JAR:=$(JCE_JAR_UNSIGNED), \ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
599 |
MANIFEST:=$(JCE_MANIFEST), \ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
600 |
SKIP_METAINF := true)) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
601 |
|
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
602 |
$(JCE_JAR_UNSIGNED): $(JCE_MANIFEST) |
12892 | 603 |
|
604 |
ifndef OPENJDK |
|
14527
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
605 |
JCE_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/jce.jar |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
606 |
$(JCE_JAR_DST) : $(JCE_JAR_SRC) |
14231 | 607 |
@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt jce.jar..." |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
608 |
$(install-file) |
12892 | 609 |
else |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
610 |
$(JCE_JAR_DST) : $(JCE_JAR_UNSIGNED) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
611 |
$(install-file) |
12892 | 612 |
endif |
613 |
||
15681 | 614 |
JARS += $(JCE_JAR_UNSIGNED) |
12892 | 615 |
|
616 |
########################################################################################## |
|
617 |
||
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
618 |
US_EXPORT_POLICY_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/security/US_export_policy.jar |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
619 |
US_EXPORT_POLICY_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/US_export_policy.jar |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
620 |
|
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
621 |
# |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
622 |
# TODO fix so that SetupArchive does not write files into SRCS |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
623 |
# then we don't need this extra copying |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
624 |
# |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
625 |
# NOTE: We currently do not place restrictions on our limited export |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
626 |
# policy. This was not a typo. |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
627 |
# |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
628 |
US_EXPORT_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/unlimited |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
629 |
US_EXPORT_POLICY_JAR_TMP := $(IMAGES_OUTPUTDIR)/US_export_policy_jar.tmp |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
630 |
|
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
631 |
$(US_EXPORT_POLICY_JAR_TMP)/% : $(US_EXPORT_POLICY_JAR_SRC_DIR)/% |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
632 |
$(install-file) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
633 |
|
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
634 |
US_EXPORT_POLICY_JAR_DEPS := $(US_EXPORT_POLICY_JAR_TMP)/default_US_export.policy |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
635 |
|
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
636 |
$(eval $(call SetupArchive,BUILD_US_EXPORT_POLICY_JAR,$(US_EXPORT_POLICY_JAR_DEPS),\ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
637 |
SRCS:=$(US_EXPORT_POLICY_JAR_TMP), \ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
638 |
SUFFIXES:= .policy,\ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
639 |
JAR:=$(US_EXPORT_POLICY_JAR_UNSIGNED), \ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
640 |
EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
641 |
SKIP_METAINF := true)) |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
642 |
|
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
643 |
ifndef OPENJDK |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
644 |
$(US_EXPORT_POLICY_JAR_DST): $(JDK_TOPDIR)/make/closed/tools/crypto/jce/US_export_policy.jar |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
645 |
$(ECHO) $(LOG_INFO) Copying $(@F) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
646 |
$(install-file) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
647 |
else |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
648 |
$(US_EXPORT_POLICY_JAR_DST): $(US_EXPORT_POLICY_JAR_UNSIGNED) |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
649 |
$(install-file) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
650 |
endif |
12892 | 651 |
|
15681 | 652 |
JARS += $(US_EXPORT_POLICY_JAR_UNSIGNED) |
12892 | 653 |
|
654 |
########################################################################################## |
|
655 |
||
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
656 |
LOCAL_POLICY_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/security/local_policy.jar |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
657 |
LOCAL_POLICY_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/local_policy.jar |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
658 |
|
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
659 |
# |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
660 |
# TODO fix so that SetupArchive does not write files into SRCS |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
661 |
# then we don't need this extra copying |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
662 |
# |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
663 |
LOCAL_POLICY_JAR_TMP := $(IMAGES_OUTPUTDIR)/local_policy_jar.tmp |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
664 |
|
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
665 |
ifeq ($(UNLIMITED_CRYPTO), true) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
666 |
LOCAL_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/unlimited |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
667 |
LOCAL_POLICY_JAR_DEPS := $(LOCAL_POLICY_JAR_TMP)/default_local.policy |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
668 |
LOCAL_POLICY_JAR_ATTR := Crypto-Strength: unlimited |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
669 |
else |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
670 |
LOCAL_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/limited |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
671 |
LOCAL_POLICY_JAR_DEPS := $(LOCAL_POLICY_JAR_TMP)/exempt_local.policy \ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
672 |
$(LOCAL_POLICY_JAR_TMP)/default_local.policy |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
673 |
LOCAL_POLICY_JAR_ATTR := Crypto-Strength: limited |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
674 |
endif |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
675 |
|
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
676 |
$(LOCAL_POLICY_JAR_TMP)/% : $(LOCAL_POLICY_JAR_SRC_DIR)/% |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
677 |
$(install-file) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
678 |
|
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
679 |
$(eval $(call SetupArchive,BUILD_LOCAL_POLICY_JAR,$(LOCAL_POLICY_JAR_DEPS),\ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
680 |
SRCS:=$(LOCAL_POLICY_JAR_TMP),\ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
681 |
SUFFIXES:= .policy,\ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
682 |
JAR:=$(LOCAL_POLICY_JAR_UNSIGNED), \ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
683 |
EXTRA_MANIFEST_ATTR := $(LOCAL_POLICY_JAR_ATTR), \ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
684 |
SKIP_METAINF := true)) |
12892 | 685 |
|
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
686 |
ifndef OPENJDK |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
687 |
$(LOCAL_POLICY_JAR_DST): $(JDK_TOPDIR)/make/closed/tools/crypto/jce/local_policy.jar |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
688 |
$(ECHO) $(LOG_INFO) Copying $(@F) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
689 |
$(install-file) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
690 |
else |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
691 |
$(LOCAL_POLICY_JAR_DST): $(LOCAL_POLICY_JAR_UNSIGNED) |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
692 |
$(install-file) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
693 |
endif |
12892 | 694 |
|
15681 | 695 |
JARS += $(LOCAL_POLICY_JAR_UNSIGNED) |
12892 | 696 |
|
697 |
########################################################################################## |
|
698 |
||
13164 | 699 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
12892 | 700 |
|
14231 | 701 |
SUNMSCAPI_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunmscapi.jar |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
702 |
SUNMSCAPI_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/sunmscapi.jar |
12892 | 703 |
|
14231 | 704 |
$(eval $(call SetupArchive,BUILD_SUNMSCAPI_JAR,,\ |
12892 | 705 |
SRCS:=$(JDK_OUTPUTDIR)/classes, \ |
706 |
SUFFIXES:=.class,\ |
|
707 |
INCLUDES:= sun/security/mscapi,\ |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
708 |
JAR:=$(SUNMSCAPI_JAR_UNSIGNED), \ |
15137
1ad653469ebc
8006296: build-infra: Unsigned sunmscapi.jar is missing manifest.
erikj
parents:
15133
diff
changeset
|
709 |
MANIFEST:=$(JCE_MANIFEST), \ |
13702 | 710 |
SKIP_METAINF:=true)) |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
711 |
|
15137
1ad653469ebc
8006296: build-infra: Unsigned sunmscapi.jar is missing manifest.
erikj
parents:
15133
diff
changeset
|
712 |
$(SUNMSCAPI_JAR_UNSIGNED): $(JCE_MANIFEST) |
1ad653469ebc
8006296: build-infra: Unsigned sunmscapi.jar is missing manifest.
erikj
parents:
15133
diff
changeset
|
713 |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
714 |
ifndef OPENJDK |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
715 |
SUNMSCAPI_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/mscapi/sunmscapi.jar |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
716 |
$(SUNMSCAPI_JAR_DST) : $(SUNMSCAPI_JAR_SRC) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
717 |
@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunMSCAPI provider..." |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
718 |
$(install-file) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
719 |
else |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
720 |
$(SUNMSCAPI_JAR_DST) : $(SUNMSCAPI_JAR_UNSIGNED) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
721 |
$(install-file) |
12892 | 722 |
endif |
723 |
||
15681 | 724 |
JARS += $(SUNMSCAPI_JAR_UNSIGNED) |
12892 | 725 |
|
726 |
endif |
|
727 |
||
728 |
########################################################################################## |
|
729 |
||
13164 | 730 |
ifeq ($(OPENJDK_TARGET_OS),solaris) |
12892 | 731 |
ifndef OPENJDK |
732 |
||
14231 | 733 |
UCRYPTO_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/ucrypto.jar |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
734 |
UCRYPTO_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/ucrypto.jar |
12892 | 735 |
UCRYPTO_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ucrypto/ucrypto.jar |
736 |
||
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
737 |
$(eval $(call SetupArchive,BUILD_UCRYPTO_JAR,,\ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
738 |
SRCS:=$(JDK_OUTPUTDIR)/classes, \ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
739 |
SUFFIXES:=.class,\ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
740 |
INCLUDES:=com/oracle/security/ucrypto,\ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
741 |
JAR:=$(UCRYPTO_JAR_UNSIGNED), \ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
742 |
MANIFEST:=$(JCE_MANIFEST), \ |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
743 |
SKIP_METAINF:=true)) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
744 |
|
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
745 |
$(UCRYPTO_JAR_UNSIGNED): $(JCE_MANIFEST) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
746 |
|
12892 | 747 |
$(UCRYPTO_JAR_DST) : $(UCRYPTO_JAR_SRC) |
14231 | 748 |
@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt OracleUcrypto provider..." |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
749 |
$(install-file) |
12892 | 750 |
|
15681 | 751 |
JARS += $(UCRYPTO_JAR_UNSIGNED) |
12892 | 752 |
|
753 |
endif |
|
754 |
endif |
|
755 |
||
756 |
########################################################################################## |
|
757 |
||
13583 | 758 |
# Get the CLDRVERSION |
759 |
include GensrcCLDR.gmk |
|
760 |
||
14231 | 761 |
CLDRDATA_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/cldrdata.jar |
13583 | 762 |
|
14231 | 763 |
$(eval $(call SetupArchive,BUILD_CLDRDATA_JAR,,\ |
13583 | 764 |
SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
765 |
SUFFIXES:=.class,\ |
|
766 |
INCLUDES:=sun/text/resources/cldr \ |
|
767 |
sun/util/cldr \ |
|
768 |
sun/util/resources/cldr,\ |
|
769 |
EXCLUDES:=sun/util/cldr/CLDRLocaleProviderAdapter,\ |
|
770 |
JAR:=$(CLDRDATA_JAR_DST),\ |
|
771 |
EXTRA_MANIFEST_ATTR:=CLDR-Version: $(CLDRVERSION),\ |
|
772 |
SKIP_METAINF:=true)) |
|
773 |
||
774 |
########################################################################################## |
|
775 |
||
12892 | 776 |
TOOLS_JAR_INCLUDES := \ |
15130
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
777 |
com/sun/codemodel \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
778 |
com/sun/istack/internal/tools \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
779 |
com/sun/jarsigner \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
780 |
com/sun/javadoc \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
781 |
com/sun/jdi \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
782 |
com/sun/source \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
783 |
com/sun/tools/attach \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
784 |
com/sun/tools/classfile \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
785 |
com/sun/tools/corba \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
786 |
com/sun/tools/doclets \ |
14902 | 787 |
com/sun/tools/doclint \ |
15130
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
788 |
com/sun/tools/example/debug/expr \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
789 |
com/sun/tools/example/debug/tty \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
790 |
com/sun/tools/extcheck \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
791 |
com/sun/tools/hat \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
792 |
com/sun/tools/internal/jxc \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
793 |
com/sun/tools/internal/jxc/ap \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
794 |
com/sun/tools/internal/ws \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
795 |
com/sun/tools/internal/ws/wscompile/plugin/at_generated \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
796 |
com/sun/tools/internal/xjc \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
797 |
com/sun/tools/javac \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
798 |
com/sun/tools/javadoc \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
799 |
com/sun/tools/javah \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
800 |
com/sun/tools/javap \ |
14994
a544909d1d1c
8003562: Provide a CLI tool to analyze class dependencies
mchung
parents:
14902
diff
changeset
|
801 |
com/sun/tools/jdeps \ |
15130
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
802 |
com/sun/tools/jdi \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
803 |
com/sun/tools/script/shell \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
804 |
com/sun/xml/internal/dtdparser \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
805 |
com/sun/xml/internal/rngom \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
806 |
com/sun/xml/internal/xsom \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
807 |
org/relaxng/datatype \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
808 |
sun/applet \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
809 |
sun/jvmstat \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
810 |
sun/rmi/rmic \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
811 |
sun/security/tools/jarsigner \ |
12892 | 812 |
sun/tools/asm \ |
15130
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
813 |
sun/tools/attach \ |
12892 | 814 |
sun/tools/jar \ |
815 |
sun/tools/java \ |
|
816 |
sun/tools/javac \ |
|
817 |
sun/tools/jcmd \ |
|
15130
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
818 |
sun/tools/jinfo \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
819 |
sun/tools/jmap \ |
12892 | 820 |
sun/tools/jps \ |
15130
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
821 |
sun/tools/jstack \ |
12892 | 822 |
sun/tools/jstat \ |
823 |
sun/tools/jstatd \ |
|
824 |
sun/tools/native2ascii \ |
|
825 |
sun/tools/serialver \ |
|
826 |
sun/tools/tree \ |
|
15130
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
827 |
sun/tools/util |
12892 | 828 |
|
14231 | 829 |
# The sjavac tools is not ready for public consumption. |
830 |
TOOLS_JAR_EXCLUDES=com/sun/tools/sjavac |
|
831 |
||
832 |
$(eval $(call SetupArchive,BUILD_TOOLS_JAR,,\ |
|
12892 | 833 |
SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
834 |
SUFFIXES:=.class .prp .gif .properties .xml .css .xsd .js .html .txt .java \ |
|
835 |
Tool aliasmap options,\ |
|
836 |
INCLUDES:=$(TOOLS_JAR_INCLUDES),\ |
|
14231 | 837 |
EXCLUDES:=$(TOOLS_JAR_EXCLUDES),\ |
12892 | 838 |
EXTRA_FILES:=META-INF/services/com.sun.jdi.connect.Connector \ |
839 |
META-INF/services/com.sun.jdi.connect.spi.TransportService \ |
|
840 |
META-INF/services/com.sun.tools.attach.spi.AttachProvider \ |
|
841 |
META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin \ |
|
842 |
META-INF/services/com.sun.tools.internal.xjc.Plugin,\ |
|
14231 | 843 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/tools.jar,\ |
13164 | 844 |
SKIP_METAINF:=true, \ |
845 |
CHECK_COMPRESS_JAR:=true)) |
|
12892 | 846 |
|
847 |
||
848 |
########################################################################################## |
|
849 |
||
13702 | 850 |
include javadoc/CORE_PKGS.gmk |
851 |
include javadoc/NON_CORE_PKGS.gmk |
|
12892 | 852 |
|
853 |
# The compiler should not issue a "Proprietary" warning when compiling |
|
854 |
# classes in the com.sun.java.swing.plaf packages, since we've always |
|
855 |
# allowed, and even advocated, extending them (see bug 6476749). |
|
856 |
# |
|
857 |
# This approach is NOT to be used as a general purpose way to avoid such |
|
858 |
# compiler warnings for non-core packages. The correct way is to document |
|
859 |
# the packages in NON_CORE_PKGS.gmk, and include them in the NON_CORE_PKGS |
|
860 |
# definition. |
|
861 |
# |
|
862 |
# Swing has taken this approach only as a temporary measure to avoid |
|
863 |
# the compiler warnings until we can properly document these packages. |
|
864 |
# This is covered under 6491853. |
|
865 |
EXCLUDE_PROPWARN_PKGS = com.sun.java.swing.plaf.windows \ |
|
866 |
com.sun.java.swing.plaf.motif \ |
|
867 |
com.sun.java.swing.plaf.gtk |
|
868 |
||
869 |
# |
|
870 |
# Include the exported private packages in ct.sym. |
|
871 |
# This is an interim solution until the ct.sym is replaced |
|
872 |
# with a new module system (being discussed for JDK 8). |
|
873 |
# |
|
874 |
EXPORTED_PRIVATE_PKGS = com.sun.servicetag \ |
|
875 |
com.oracle.net \ |
|
876 |
com.oracle.nio |
|
877 |
||
14231 | 878 |
$(IMAGES_OUTPUTDIR)/symbols/_the.symbols: $(IMAGES_OUTPUTDIR)/lib/rt.jar |
13702 | 879 |
$(RM) -r $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym |
12892 | 880 |
$(MKDIR) -p $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym |
15402
ce612878e7aa
8006872: Stop creating four jars with identical content in the new build system.
ohrstrom
parents:
15335
diff
changeset
|
881 |
$(JAVA) $(NEW_JAVAC) \ |
14790
9d42784b1823
8004803: build-infra: Cannot use icedtea as boot for closed build.
erikj
parents:
14596
diff
changeset
|
882 |
-bootclasspath $(JDK_OUTPUTDIR)/classes \ |
12892 | 883 |
-XDprocess.packages -proc:only \ |
884 |
-processor com.sun.tools.javac.sym.CreateSymbols \ |
|
14231 | 885 |
-Acom.sun.tools.javac.sym.Jar=$(IMAGES_OUTPUTDIR)/lib/rt.jar \ |
12892 | 886 |
-Acom.sun.tools.javac.sym.Dest=$(IMAGES_OUTPUTDIR)/symbols/META-INF/sym/rt.jar \ |
15681 | 887 |
-Acom.sun.tools.javac.sym.Profiles=profile-rtjar-includes.txt \ |
12892 | 888 |
$(CORE_PKGS) $(NON_CORE_PKGS) $(EXCLUDE_PROPWARN_PKGS) $(EXPORTED_PRIVATE_PKGS) |
889 |
$(TOUCH) $@ |
|
890 |
||
15126
bceb690ccf35
8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents:
14790
diff
changeset
|
891 |
$(eval $(call MakeDir,$(IMAGES_OUTPUTDIR)/symbols)) |
12892 | 892 |
$(eval $(call SetupArchive,BUILD_CT_SYM,$(IMAGES_OUTPUTDIR)/symbols/_the.symbols,\ |
893 |
SRCS:=$(IMAGES_OUTPUTDIR)/symbols,\ |
|
894 |
INCLUDES:=META-INF/sym,\ |
|
14231 | 895 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/ct.sym, \ |
13164 | 896 |
CHECK_COMPRESS_JAR:=true)) |
12892 | 897 |
|
898 |
||
899 |
########################################################################################## |
|
900 |
||
901 |
SRC_ZIP_INCLUDES = \ |
|
15130
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
902 |
com/sun/corba \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
903 |
com/sun/image/codec/jpeg \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
904 |
com/sun/imageio \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
905 |
com/sun/java_cup \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
906 |
com/sun/javadoc \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
907 |
com/sun/java/swing \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
908 |
com/sun/jlex \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
909 |
com/sun/jmx \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
910 |
com/sun/naming \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
911 |
com/sun/org/apache \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
912 |
com/sun/security/auth \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
913 |
com/sun/security/jgss \ |
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
914 |
com/sun/source \ |
12892 | 915 |
java/applet \ |
916 |
java/awt \ |
|
917 |
java/beans \ |
|
918 |
java/io \ |
|
919 |
java/lang \ |
|
920 |
java/math \ |
|
921 |
java/net \ |
|
922 |
java/nio \ |
|
923 |
java/rmi \ |
|
924 |
java/security \ |
|
925 |
java/sql \ |
|
926 |
java/text \ |
|
927 |
java/util \ |
|
928 |
javax/accessibility \ |
|
929 |
javax/annotation \ |
|
930 |
javax/imageio \ |
|
931 |
javax/lang \ |
|
932 |
javax/management \ |
|
933 |
javax/naming \ |
|
934 |
javax/print \ |
|
935 |
javax/rmi \ |
|
15130
14a47a69bc62
8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents:
15128
diff
changeset
|
936 |
javax/script \ |
12892 | 937 |
javax/security \ |
938 |
javax/sound \ |
|
939 |
javax/sql \ |
|
940 |
javax/swing \ |
|
941 |
javax/tools \ |
|
942 |
javax/xml \ |
|
943 |
org/ietf \ |
|
944 |
org/omg \ |
|
945 |
org/w3c/dom \ |
|
13702 | 946 |
org/xml/sax \ |
947 |
sunw |
|
12892 | 948 |
|
13702 | 949 |
SRC_ZIP_SRCS = $(JDK_TOPDIR)/src/share/classes $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes |
12892 | 950 |
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/gensrc |
951 |
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/impsrc |
|
952 |
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/gendocsrc_rmic |
|
953 |
ifndef OPENJDK |
|
954 |
SRC_ZIP_SRCS += $(JDK_TOPDIR)/src/closed/share/classes |
|
955 |
endif |
|
956 |
||
957 |
# Need to copy launcher src files into desired directory structure |
|
958 |
# before zipping the sources. |
|
959 |
LAUNCHER_SRC_FILES := $(wildcard $(JDK_TOPDIR)/src/share/bin/*) \ |
|
13702 | 960 |
$(wildcard $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/java_md*) |
12892 | 961 |
LAUNCHER_ZIP_SRC := $(patsubst $(JDK_TOPDIR)/src/share/bin/%,$(IMAGES_OUTPUTDIR)/src/launcher/%,\ |
13702 | 962 |
$(patsubst $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/%,$(IMAGES_OUTPUTDIR)/src/launcher/%,\ |
12892 | 963 |
$(LAUNCHER_SRC_FILES))) |
964 |
||
965 |
$(IMAGES_OUTPUTDIR)/src/launcher/%: $(JDK_TOPDIR)/src/share/bin/% |
|
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
966 |
$(install-file) |
12892 | 967 |
|
13702 | 968 |
$(IMAGES_OUTPUTDIR)/src/launcher/%: $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/% |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
969 |
$(install-file) |
12892 | 970 |
|
971 |
$(IMAGES_OUTPUTDIR)/src.zip: $(LAUNCHER_ZIP_SRC) |
|
972 |
||
14231 | 973 |
# This dir needs to exist before macro is evaluated to avoid warning from find. |
974 |
$(eval $(call MakeDir,$(IMAGES_OUTPUTDIR)/src)) |
|
12892 | 975 |
$(eval $(call SetupZipArchive,BUILD_SRC_ZIP,\ |
976 |
SRC:=$(SRC_ZIP_SRCS) $(IMAGES_OUTPUTDIR)/src,\ |
|
977 |
INCLUDES:=$(SRC_ZIP_INCLUDES) launcher,\ |
|
14231 | 978 |
EXCLUDES:=javax/swing/beaninfo,\ |
12892 | 979 |
SUFFIXES:=.java .c .h,\ |
980 |
ZIP:=$(IMAGES_OUTPUTDIR)/src.zip,\ |
|
981 |
EXTRA_DEPS:=$(LAUNCHER_ZIP_SRC))) |
|
982 |
||
983 |
########################################################################################## |
|
984 |
||
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
985 |
ifndef OPENJDK |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
986 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
987 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
988 |
$(eval $(call SetupArchive,BUILD_JACCESS_JAR,,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
989 |
SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
990 |
INCLUDES:=com/sun/java/accessibility/util,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
991 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/jaccess.jar,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
992 |
SKIP_METAINF:=true)) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
993 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
994 |
JARS += $(IMAGES_OUTPUTDIR)/lib/ext/jaccess.jar |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
995 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
996 |
ifeq ($(OPENJDK_TARGET_CPU_BITS), 32) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
997 |
$(eval $(call SetupArchive,BUILD_ACCESSBRIDGE_32_JAR,,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
998 |
SRCS:=$(JDK_OUTPUTDIR)/classes_ab/32bit $(JDK_OUTPUTDIR)/classes,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
999 |
INCLUDES:=com/sun/java/accessibility,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1000 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-32.jar,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1001 |
SKIP_METAINF:=true)) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1002 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1003 |
$(eval $(call SetupArchive,BUILD_ACCESSBRIDGE_LEGACY_JAR,,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1004 |
SRCS:=$(JDK_OUTPUTDIR)/classes_ab/legacy $(JDK_OUTPUTDIR)/classes,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1005 |
INCLUDES:=com/sun/java/accessibility,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1006 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/access-bridge.jar,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1007 |
SKIP_METAINF:=true)) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1008 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1009 |
JARS += $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-32.jar \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1010 |
$(IMAGES_OUTPUTDIR)/lib/ext/access-bridge.jar |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1011 |
else |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1012 |
$(eval $(call SetupArchive,BUILD_ACCESSBRIDGE_64_JAR,,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1013 |
SRCS:=$(JDK_OUTPUTDIR)/classes_ab/64bit $(JDK_OUTPUTDIR)/classes,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1014 |
INCLUDES:=com/sun/java/accessibility,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1015 |
EXCLUDES:=com/sun/java/accessibility/util/java,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1016 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-64.jar,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1017 |
SKIP_METAINF:=true)) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1018 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1019 |
JARS += $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-64.jar |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1020 |
endif |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1021 |
endif |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1022 |
endif |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1023 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1024 |
########################################################################################## |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
1025 |
|
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1026 |
# |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1027 |
# This is an empty jar (only contains manifest) and fits poorly into framework... |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1028 |
# create simple rule instead |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1029 |
# |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1030 |
$(IMAGES_OUTPUTDIR)/lib/management-agent.jar : $(JDK_TOPDIR)/src/share/classes/sun/management/manifest |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1031 |
$(JAR) cfm $@ $< |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1032 |
|
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1033 |
########################################################################################## |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1034 |
|
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1035 |
$(IMAGES_OUTPUTDIR)/lib/ext/zipfs.jar : $(JDK_OUTPUTDIR)/demo/nio/zipfs/zipfs.jar |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1036 |
$(install-file) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1037 |
|
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1038 |
########################################################################################## |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1039 |
|
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1040 |
ifeq ($(OPENJDK_TARGET_OS),macosx) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1041 |
$(eval $(call SetupArchive,BUILD_JOBJC_JAR,,\ |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1042 |
SRCS:=$(JDK_OUTPUTDIR)/jobjc_classes,\ |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1043 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/JObjC.jar, \ |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1044 |
JARINDEX:=true)) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1045 |
endif |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1046 |
|
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1047 |
########################################################################################## |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1048 |
|
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1049 |
ifndef OPENJDK |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1050 |
$(eval $(call SetupArchive,BUILD_ALT_RT_JAR,,\ |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1051 |
SRCS:=$(JDK_OUTPUTDIR)/altclasses_classes,\ |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1052 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/alt-rt.jar)) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1053 |
|
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1054 |
endif |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1055 |
|
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1056 |
########################################################################################## |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1057 |
|
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1058 |
# This file is imported from hotspot in Import.gmk. Copying it into images/lib so that |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1059 |
# all jars can be found in one place when creating images in Images.gmk. It needs to be |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1060 |
# done here so that clean targets can be simple and accurate. |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1061 |
$(IMAGES_OUTPUTDIR)/lib/sa-jdi.jar: $(JDK_OUTPUTDIR)/lib/sa-jdi.jar |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1062 |
$(install-file) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1063 |
|
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1064 |
########################################################################################## |
15131 | 1065 |
# |
15132
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1066 |
# sec-bin.zip is used by builds where the corresponding sources are not available |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1067 |
# |
15131 | 1068 |
$(eval $(call SetupZipArchive,BUILD_SEC_BIN_ZIP,\ |
1069 |
SRC:=$(JDK_OUTPUTDIR),\ |
|
1070 |
INCLUDES:=classes/javax/net \ |
|
1071 |
classes/javax/security/cert \ |
|
1072 |
classes/com/sun/net/ssl \ |
|
1073 |
classes/com/sun/security/cert \ |
|
1074 |
classes/sun/net/www/protocol/https \ |
|
1075 |
classes/sun/security/pkcs12 \ |
|
1076 |
classes/sun/security/ssl \ |
|
1077 |
classes/sun/security/krb5 \ |
|
1078 |
classes/sun/security/krb5/internal \ |
|
1079 |
classes/sun/security/krb5/internal/ccache \ |
|
1080 |
classes/sun/security/krb5/internal/crypto \ |
|
1081 |
classes/sun/security/krb5/internal/ktab \ |
|
1082 |
classes/sun/security/krb5/internal/rcache \ |
|
1083 |
classes/sun/security/krb5/internal/util,\ |
|
1084 |
INCLUDE_FILES:=classes/sun/security/jgss/spi/GSSContextSpi.class,\ |
|
15132
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1085 |
EXCLUDES:=classes/sun/security/krb5/internal/tools,\ |
15131 | 1086 |
ZIP:=$(IMAGES_OUTPUTDIR)/sec-bin.zip)) |
1087 |
||
1088 |
JARS += $(IMAGES_OUTPUTDIR)/sec-bin.zip |
|
1089 |
||
1090 |
########################################################################################## |
|
15132
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1091 |
# |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1092 |
# Windows specific binary security packages. |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1093 |
# |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1094 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1095 |
# sec-windows-bin.zip is used by builds where the corresponding sources are not available |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1096 |
$(eval $(call SetupZipArchive,BUILD_SEC_WINDOWS_BIN_ZIP,\ |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1097 |
SRC:=$(JDK_OUTPUTDIR),\ |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1098 |
INCLUDES:=classes/sun/security/krb5/internal/tools,\ |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1099 |
ZIP:=$(IMAGES_OUTPUTDIR)/sec-windows-bin.zip)) |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1100 |
|
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1101 |
JARS += $(IMAGES_OUTPUTDIR)/sec-windows-bin.zip |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1102 |
|
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1103 |
# JGSS files contain the native Kerberos library |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1104 |
ifeq ($(OPENJDK_TARGET_CPU),x86_64) |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1105 |
JGSS_ZIP_NAME=jgss-windows-x64-bin.zip |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1106 |
else |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1107 |
JGSS_ZIP_NAME=jgss-windows-i586-bin.zip |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1108 |
endif |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1109 |
|
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1110 |
$(eval $(call SetupZipArchive,BUILD_JGSS_BIN_ZIP,\ |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1111 |
SRC:=$(JDK_OUTPUTDIR),\ |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1112 |
INCLUDE_FILES:=bin/w2k_lsa_auth.dll \ |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1113 |
bin/w2k_lsa_auth.map \ |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1114 |
bin/w2k_lsa_auth.pdb,\ |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1115 |
ZIP:=$(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME))) |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1116 |
|
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1117 |
JARS += $(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME) |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1118 |
endif |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1119 |
|
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
1120 |
########################################################################################## |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
1121 |
|
16029 | 1122 |
# Import nashorn.jar from nashorn dist dir. |
1123 |
$(IMAGES_OUTPUTDIR)/lib/ext/nashorn.jar: $(NASHORN_DIST)/nashorn.jar |
|
1124 |
$(install-file) |
|
1125 |
||
1126 |
JARS += $(IMAGES_OUTPUTDIR)/lib/ext/nashorn.jar |
|
1127 |
||
1128 |
########################################################################################## |
|
1129 |
||
13702 | 1130 |
-include $(CUSTOM_MAKE_DIR)/CreateJars.gmk |
1131 |
||
1132 |
########################################################################################## |
|
1133 |
||
12892 | 1134 |
all: $(JARS) |
1135 |
||
1136 |
.PHONY: default all |