author | katleman |
Thu, 01 Nov 2012 14:11:44 -0700 | |
changeset 14352 | 13b36a0b5705 |
parent 14235 | 540a11e15fbb |
child 14344 | a5537423264b |
child 14343 | 8e4626a27efe |
permissions | -rw-r--r-- |
12892 | 1 |
# |
2 |
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
|
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 |
||
33 |
include Tools.gmk |
|
34 |
||
13164 | 35 |
# |
36 |
# This makefile...so that altering will trigger rebuilding include/exclude-lists => jars |
|
37 |
# |
|
38 |
MAKEFILE=$(JDK_TOPDIR)/makefiles/CreateJars.gmk |
|
12892 | 39 |
|
40 |
MAINMANIFEST := $(JDK_TOPDIR)/make/tools/manifest.mf |
|
41 |
BEANMANIFEST := $(JDK_TOPDIR)/make/javax/swing/beaninfo/manifest |
|
42 |
||
43 |
JARS:= |
|
44 |
||
14231 | 45 |
$(eval $(call MakeDir,$(IMAGES_OUTPUTDIR)/lib)) |
46 |
||
12892 | 47 |
########################################################################################## |
48 |
||
14231 | 49 |
$(eval $(call SetupArchive,BUILD_JCONSOLE_JAR,,\ |
12892 | 50 |
SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
13164 | 51 |
SUFFIXES:=.class .gif .png .properties,\ |
12892 | 52 |
INCLUDES:=sun/tools/jconsole com/sun/tools/jconsole,\ |
53 |
JARMAIN:=sun.tools.jconsole.JConsole,\ |
|
14231 | 54 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/jconsole.jar,\ |
12892 | 55 |
SKIP_METAINF:=true)) |
56 |
||
14231 | 57 |
JARS+=$(IMAGES_OUTPUTDIR)/lib/jconsole.jar |
12892 | 58 |
|
59 |
########################################################################################## |
|
60 |
||
14231 | 61 |
$(eval $(call SetupArchive,BUILD_DNS_JAR,,\ |
12892 | 62 |
SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
63 |
INCLUDES:=sun/net/spi/nameservice/dns,\ |
|
64 |
EXTRA_FILES:=META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor,\ |
|
14231 | 65 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/dnsns.jar,\ |
12892 | 66 |
SKIP_METAINF:=true)) |
67 |
||
14231 | 68 |
JARS+=$(IMAGES_OUTPUTDIR)/lib/ext/dnsns.jar |
12892 | 69 |
|
70 |
########################################################################################## |
|
71 |
||
13583 | 72 |
LOCALEDATA_INCLUDE_LOCALES := ar hi iw ja ko th vi zh |
73 |
LOCALEDATA_INCLUDES := $(addprefix sun/text/resources/,$(LOCALEDATA_INCLUDE_LOCALES)) \ |
|
74 |
$(addprefix sun/util/resources/,$(LOCALEDATA_INCLUDE_LOCALES)) |
|
12892 | 75 |
|
76 |
$(eval $(call SetupArchive,BUILD_LOCALEDATA_JAR,,\ |
|
77 |
SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
|
78 |
SUFFIXES:=.class _dict _th,\ |
|
79 |
INCLUDES:=$(LOCALEDATA_INCLUDES),\ |
|
13583 | 80 |
EXCLUDES:=sun/text/resources/th/BreakIteratorRules_th.class,\ |
14231 | 81 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/localedata.jar,\ |
12892 | 82 |
SKIP_METAINF:=true)) |
83 |
||
14231 | 84 |
JARS+=$(IMAGES_OUTPUTDIR)/lib/ext/localedata.jar |
12892 | 85 |
|
86 |
########################################################################################## |
|
87 |
# rt.jar and resources.jar are being built in the same way as in the old build. They require |
|
88 |
# the files to be in a certain order and converting that is not easy and will not be needed |
|
89 |
# in jigsaw anyway. |
|
90 |
||
91 |
# Exclude list for rt.jar and resources.jar |
|
92 |
RT_JAR_EXCLUDES := \ |
|
93 |
com/sun/javadoc \ |
|
94 |
com/sun/jdi \ |
|
95 |
com/sun/jarsigner \ |
|
96 |
com/sun/source \ |
|
97 |
com/sun/istack/internal/tools \ |
|
98 |
META-INF/services/com.sun.jdi.connect.Connector \ |
|
99 |
META-INF/services/com.sun.jdi.connect.spi.TransportService \ |
|
100 |
META-INF/services/com.sun.tools.xjc.Plugin \ |
|
101 |
com/sun/tools \ |
|
102 |
sun/jvmstat \ |
|
103 |
sun/nio/cs/ext \ |
|
104 |
sun/awt/HKSCS.class \ |
|
105 |
sun/awt/motif/X11GB2312\$$$$Decoder.class \ |
|
106 |
sun/awt/motif/X11GB2312\$$$$Encoder.class \ |
|
107 |
sun/awt/motif/X11GB2312.class \ |
|
108 |
sun/awt/motif/X11GBK\$$$$Encoder.class \ |
|
109 |
sun/awt/motif/X11GBK.class \ |
|
110 |
sun/awt/motif/X11KSC5601\$$$$Decoder.class \ |
|
111 |
sun/awt/motif/X11KSC5601\$$$$Encoder.class \ |
|
112 |
sun/awt/motif/X11KSC5601.class \ |
|
113 |
META-INF/services/java.nio.charset.spi.CharsetProvider \ |
|
114 |
sun/rmi/rmic \ |
|
115 |
sun/tools/asm \ |
|
116 |
sun/tools/java \ |
|
117 |
sun/tools/javac \ |
|
118 |
com/sun/tools/classfile \ |
|
119 |
com/sun/tools/javap \ |
|
120 |
sun/tools/jcmd \ |
|
121 |
sun/tools/jconsole \ |
|
122 |
sun/tools/jps \ |
|
123 |
sun/tools/jstat \ |
|
124 |
sun/tools/jstatd \ |
|
125 |
sun/tools/native2ascii \ |
|
126 |
sun/tools/serialver \ |
|
127 |
sun/tools/tree \ |
|
128 |
sun/tools/util \ |
|
14182
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13702
diff
changeset
|
129 |
sun/security/tools/jarsigner/JarBASE64Encoder.class \ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13702
diff
changeset
|
130 |
sun/security/tools/jarsigner/Main.class \ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13702
diff
changeset
|
131 |
sun/security/tools/jarsigner/JarSignerParameters.class \ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13702
diff
changeset
|
132 |
sun/security/tools/jarsigner/Resources.class \ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13702
diff
changeset
|
133 |
sun/security/tools/jarsigner/Resources_ja.class \ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13702
diff
changeset
|
134 |
sun/security/tools/jarsigner/Resources_zh_CN.class \ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13702
diff
changeset
|
135 |
sun/security/tools/jarsigner/SignatureFile\$$$$Block.class \ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13702
diff
changeset
|
136 |
sun/security/tools/jarsigner/SignatureFile.class \ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13702
diff
changeset
|
137 |
sun/security/tools/jarsigner/TimestampedSigner.class \ |
12892 | 138 |
sun/security/provider/Sun.class \ |
139 |
sun/security/rsa/SunRsaSign.class \ |
|
140 |
sun/security/ssl \ |
|
141 |
sun/security/ec/ECDHKeyAgreement.class \ |
|
142 |
sun/security/ec/ECDSASignature\$$$$Raw.class \ |
|
143 |
sun/security/ec/ECDSASignature\$$$$SHA1.class \ |
|
144 |
sun/security/ec/ECDSASignature\$$$$SHA224.class \ |
|
145 |
sun/security/ec/ECDSASignature\$$$$SHA256.class \ |
|
146 |
sun/security/ec/ECDSASignature\$$$$SHA384.class \ |
|
147 |
sun/security/ec/ECDSASignature\$$$$SHA512.class \ |
|
148 |
sun/security/ec/ECDSASignature.class \ |
|
13702 | 149 |
sun/security/ec/ECKeyFactory.class \ |
12892 | 150 |
sun/security/ec/ECKeyPairGenerator.class \ |
151 |
sun/security/ec/SunEC\$$$$1.class \ |
|
152 |
sun/security/ec/SunEC.class \ |
|
153 |
sun/security/ec/SunECEntries.class \ |
|
13702 | 154 |
sun/security/mscapi \ |
12892 | 155 |
sun/security/pkcs11 \ |
156 |
com/sun/net/ssl/internal/ssl \ |
|
157 |
javax/crypto \ |
|
158 |
sun/security/internal \ |
|
159 |
com/sun/crypto/provider \ |
|
160 |
META-INF/services/com.sun.tools.attach.spi.AttachProvider \ |
|
161 |
com/sun/tools/attach \ |
|
162 |
org/relaxng/datatype \ |
|
163 |
com/sun/codemodel \ |
|
164 |
com/sun/xml/internal/dtdparser \ |
|
165 |
com/sun/xml/internal/rngom \ |
|
166 |
com/sun/xml/internal/xsom \ |
|
167 |
com/sun/tools/script/shell \ |
|
168 |
sun/tools/attach \ |
|
169 |
sun/tools/jstack \ |
|
170 |
sun/tools/jinfo \ |
|
171 |
sun/tools/jmap \ |
|
172 |
sun/net/spi/nameservice/dns \ |
|
173 |
META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor \ |
|
174 |
javax/swing/beaninfo \ |
|
175 |
javax/swing/AbstractButtonBeanInfo.class \ |
|
176 |
javax/swing/BoxBeanInfo.class \ |
|
177 |
javax/swing/JAppletBeanInfo.class \ |
|
178 |
javax/swing/JButtonBeanInfo.class \ |
|
179 |
javax/swing/JCheckBoxBeanInfo.class \ |
|
180 |
javax/swing/JCheckBoxMenuItemBeanInfo.class \ |
|
181 |
javax/swing/JColorChooserBeanInfo.class \ |
|
182 |
javax/swing/JComboBoxBeanInfo.class \ |
|
183 |
javax/swing/JComponentBeanInfo.class \ |
|
184 |
javax/swing/JDesktopPaneBeanInfo.class \ |
|
185 |
javax/swing/JDialogBeanInfo.class \ |
|
186 |
javax/swing/JEditorPaneBeanInfo.class \ |
|
187 |
javax/swing/JFileChooserBeanInfo.class \ |
|
188 |
javax/swing/JFormattedTextFieldBeanInfo.class \ |
|
189 |
javax/swing/JFrameBeanInfo.class \ |
|
190 |
javax/swing/JInternalFrameBeanInfo.class \ |
|
191 |
javax/swing/JLabelBeanInfo.class \ |
|
192 |
javax/swing/JLayeredPaneBeanInfo.class \ |
|
193 |
javax/swing/JListBeanInfo.class \ |
|
194 |
javax/swing/JMenuBarBeanInfo.class \ |
|
195 |
javax/swing/JMenuBeanInfo.class \ |
|
196 |
javax/swing/JMenuItemBeanInfo.class \ |
|
197 |
javax/swing/JOptionPaneBeanInfo.class \ |
|
198 |
javax/swing/JPanelBeanInfo.class \ |
|
199 |
javax/swing/JPasswordFieldBeanInfo.class \ |
|
200 |
javax/swing/JPopupMenuBeanInfo.class \ |
|
201 |
javax/swing/JProgressBarBeanInfo.class \ |
|
202 |
javax/swing/JRadioButtonBeanInfo.class \ |
|
203 |
javax/swing/JRadioButtonMenuItemBeanInfo.class \ |
|
204 |
javax/swing/JScrollBarBeanInfo.class \ |
|
205 |
javax/swing/JScrollPaneBeanInfo.class \ |
|
206 |
javax/swing/JSeparatorBeanInfo.class \ |
|
207 |
javax/swing/JSliderBeanInfo.class \ |
|
208 |
javax/swing/JSpinnerBeanInfo.class \ |
|
209 |
javax/swing/JSplitPaneBeanInfo.class \ |
|
210 |
javax/swing/JTabbedPaneBeanInfo.class \ |
|
211 |
javax/swing/JTableBeanInfo.class \ |
|
212 |
javax/swing/JTextAreaBeanInfo.class \ |
|
213 |
javax/swing/JTextFieldBeanInfo.class \ |
|
214 |
javax/swing/JTextPaneBeanInfo.class \ |
|
215 |
javax/swing/JToggleButtonBeanInfo.class \ |
|
216 |
javax/swing/JToolBarBeanInfo.class \ |
|
217 |
javax/swing/JTreeBeanInfo.class \ |
|
218 |
javax/swing/JWindowBeanInfo.class \ |
|
219 |
javax/swing/SwingBeanInfoBase.class \ |
|
220 |
javax/swing/text/JTextComponentBeanInfo.class \ |
|
221 |
sun/swing/BeanInfoUtils.class \ |
|
13583 | 222 |
$(LOCALEDATA_INCLUDES) \ |
223 |
sun/text/resources/cldr \ |
|
224 |
sun/util/resources/cldr \ |
|
225 |
sun/util/cldr/CLDRLocaleDataMetaInfo.class |
|
12892 | 226 |
|
13164 | 227 |
# These files should never be put into rt.jar |
228 |
# but due to a misstake...some are put there if embedded |
|
229 |
# |
|
230 |
ifneq ($(JAVASE_EMBEDDED), true) |
|
231 |
# normal (correct) case |
|
12892 | 232 |
RT_JAR_EXCLUDES += \ |
233 |
com/oracle/jrockit/jfr \ |
|
234 |
oracle/jrockit/jfr |
|
13164 | 235 |
else |
236 |
# embedded (broken) case |
|
237 |
RT_JAR_EXCLUDES += \ |
|
238 |
oracle/jrockit/jfr/parser \ |
|
239 |
oracle/jrockit/jfr/tools \ |
|
240 |
oracle/jrockit/jfr/NativeOptions.class \ |
|
241 |
oracle/jrockit/jfr/RepositoryChunkHandler.class |
|
12892 | 242 |
endif |
13164 | 243 |
|
244 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
245 |
RT_JAR_EXCLUDES += com/sun/nio/sctp \ |
|
246 |
sun/nio/ch/sctp \ |
|
14234
85a37ece2d5e
8001898: build-infra: correct exclusion lists for mac jar builds
erikj
parents:
14231
diff
changeset
|
247 |
sun/jdbc |
12892 | 248 |
endif |
249 |
||
250 |
# Find all files in the classes dir to use as dependencies. This could be more fine granular. |
|
251 |
ALL_FILES_IN_CLASSES := $(shell $(FIND) $(JDK_OUTPUTDIR)/classes -type f \ |
|
13702 | 252 |
| $(GREP) -v -e '/_the\.*' -e '^_the\.*' -e 'javac_state') |
12892 | 253 |
|
14231 | 254 |
RT_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib/_the.rt.jar_manifest |
255 |
RESOURCE_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib/_the.resources.jar_manifest |
|
12892 | 256 |
|
257 |
$(RT_JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST) |
|
258 |
$(MKDIR) -p $(@D) |
|
13702 | 259 |
$(RM) $@ $@.tmp |
12892 | 260 |
$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \ |
261 |
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \ |
|
13702 | 262 |
$(MAINMANIFEST) >> $@.tmp |
263 |
$(ECHO) >> $@.tmp |
|
264 |
$(CAT) $(BEANMANIFEST) >> $@.tmp |
|
265 |
$(MV) $@.tmp $@ |
|
12892 | 266 |
|
267 |
$(RESOURCE_JAR_MANIFEST_FILE): $(MAINMANIFEST) |
|
268 |
$(MKDIR) -p $(@D) |
|
13702 | 269 |
$(RM) $@ $@.tmp |
12892 | 270 |
$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \ |
271 |
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \ |
|
13702 | 272 |
$(MAINMANIFEST) >> $@.tmp |
273 |
$(MV) $@.tmp $@ |
|
12892 | 274 |
|
14231 | 275 |
$(IMAGES_OUTPUTDIR)/lib/_the.jars.exclude: $(MAKEFILE) |
12892 | 276 |
$(MKDIR) -p $(@D) |
13702 | 277 |
$(RM) $@ $@.tmp |
278 |
$(call ListPathsSafely,RT_JAR_EXCLUDES,\n, >> $@.tmp) |
|
279 |
$(MV) $@.tmp $@ |
|
12892 | 280 |
|
14231 | 281 |
$(IMAGES_OUTPUTDIR)/lib/classlist : $(JDK_TOPDIR)/make/tools/sharing/classlist.$(OPENJDK_TARGET_OS) \ |
13164 | 282 |
$(MAKEFILE) |
283 |
$(MKDIR) -p $(@D) |
|
13702 | 284 |
$(RM) $@ $@.tmp |
285 |
$(TOOL_ADDJSUM) $< $@.tmp |
|
286 |
$(MV) $@.tmp $@ |
|
13164 | 287 |
|
14231 | 288 |
$(IMAGES_OUTPUTDIR)/lib/_the.jars.contents: $(BUILD_TOOLS) $(IMAGES_OUTPUTDIR)/lib/_the.jars.exclude \ |
289 |
$(ALL_FILES_IN_CLASSES) $(IMAGES_OUTPUTDIR)/lib/classlist |
|
12892 | 290 |
$(MKDIR) -p $(@D) |
13702 | 291 |
$(RM) $@ $@.tmp |
12892 | 292 |
($(CD) $(JDK_OUTPUTDIR)/classes && \ |
293 |
$(TOOL_JARREORDER) \ |
|
14231 | 294 |
-o $@.tmp $(IMAGES_OUTPUTDIR)/lib/classlist $(IMAGES_OUTPUTDIR)/lib/_the.jars.exclude . ) |
13702 | 295 |
$(MV) $@.tmp $@ |
12892 | 296 |
|
14231 | 297 |
$(IMAGES_OUTPUTDIR)/lib/_the.rt.jar.contents: $(IMAGES_OUTPUTDIR)/lib/_the.jars.contents |
13702 | 298 |
$(MKDIR) -p $(@D) |
299 |
$(RM) $@ $@.tmp |
|
14231 | 300 |
$(GREP) -e '\.class$$' $(IMAGES_OUTPUTDIR)/lib/_the.jars.contents > $@.tmp |
13702 | 301 |
$(MV) $@.tmp $@ |
12892 | 302 |
|
14231 | 303 |
$(IMAGES_OUTPUTDIR)/lib/_the.resources.jar.contents: $(IMAGES_OUTPUTDIR)/lib/_the.jars.contents |
13702 | 304 |
$(MKDIR) -p $(@D) |
305 |
$(RM) $@ $@.tmp |
|
306 |
$(GREP) -v -e '\.class$$' \ |
|
307 |
-e '/_the\.*' -e '^_the\.*' -e '\\_the\.*' -e 'javac_state' \ |
|
14231 | 308 |
$(IMAGES_OUTPUTDIR)/lib/_the.jars.contents > $@.tmp |
13702 | 309 |
$(MV) $@.tmp $@ |
12892 | 310 |
|
13164 | 311 |
RT_JAR_CREATE_OPTIONS := c0fm |
312 |
ifeq ($(COMPRESS_JARS), true) |
|
313 |
RT_JAR_CREATE_OPTIONS := cfm |
|
314 |
endif |
|
315 |
||
14231 | 316 |
$(IMAGES_OUTPUTDIR)/lib/rt.jar: $(IMAGES_OUTPUTDIR)/lib/_the.rt.jar.contents $(RT_JAR_MANIFEST_FILE) |
12892 | 317 |
$(ECHO) Creating rt.jar |
13702 | 318 |
$(MKDIR) -p $(@D) |
319 |
$(RM) $@ $@.tmp |
|
12892 | 320 |
$(CD) $(JDK_OUTPUTDIR)/classes && \ |
13702 | 321 |
$(JAR) $(RT_JAR_CREATE_OPTIONS) $@.tmp $(RT_JAR_MANIFEST_FILE) \ |
14231 | 322 |
@$(IMAGES_OUTPUTDIR)/lib/_the.rt.jar.contents |
13702 | 323 |
$(MV) $@.tmp $@ |
12892 | 324 |
|
14231 | 325 |
$(IMAGES_OUTPUTDIR)/lib/resources.jar: $(IMAGES_OUTPUTDIR)/lib/_the.resources.jar.contents \ |
12892 | 326 |
$(RESOURCE_JAR_MANIFEST_FILE) |
327 |
$(ECHO) Creating resources.jar |
|
13702 | 328 |
$(MKDIR) -p $(@D) |
329 |
$(RM) $@ $@.tmp |
|
12892 | 330 |
$(CD) $(JDK_OUTPUTDIR)/classes && \ |
13702 | 331 |
$(JAR) $(RT_JAR_CREATE_OPTIONS) $@.tmp $(RESOURCE_JAR_MANIFEST_FILE) \ |
14231 | 332 |
@$(IMAGES_OUTPUTDIR)/lib/_the.resources.jar.contents |
13702 | 333 |
$(MV) $@.tmp $@ |
12892 | 334 |
|
14231 | 335 |
JARS+=$(IMAGES_OUTPUTDIR)/lib/rt.jar $(IMAGES_OUTPUTDIR)/lib/resources.jar |
12892 | 336 |
|
337 |
########################################################################################## |
|
338 |
||
13164 | 339 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
12892 | 340 |
CHARSETS_EXTRA_FILES:=sun/awt/motif/X11GBK.class \ |
341 |
sun/awt/motif/X11GB2312\$$$$Decoder.class \ |
|
342 |
sun/awt/motif/X11GB2312.class \ |
|
343 |
sun/awt/motif/X11KSC5601\$$$$Decoder.class \ |
|
344 |
sun/awt/motif/X11KSC5601\$$$$Encoder.class \ |
|
345 |
sun/awt/motif/X11GB2312\$$$$Encoder.class \ |
|
346 |
sun/awt/motif/X11GBK\$$$$Encoder.class \ |
|
347 |
sun/awt/motif/X11KSC5601.class |
|
348 |
endif |
|
349 |
||
14231 | 350 |
$(eval $(call SetupArchive,BUILD_CHARSETS_JAR,,\ |
12892 | 351 |
SRCS:=$(JDK_OUTPUTDIR)/classes, \ |
352 |
SUFFIXES:=.class .dat,\ |
|
353 |
INCLUDES:=sun/nio/cs/ext,\ |
|
354 |
EXTRA_FILES := sun/awt/HKSCS.class \ |
|
355 |
$(CHARSETS_EXTRA_FILES) \ |
|
356 |
META-INF/services/java.nio.charset.spi.CharsetProvider, \ |
|
14231 | 357 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/charsets.jar, \ |
13164 | 358 |
SKIP_METAINF := true, \ |
359 |
CHECK_COMPRESS_JAR:=true)) |
|
12892 | 360 |
|
14231 | 361 |
JARS+=$(IMAGES_OUTPUTDIR)/lib/charsets.jar |
12892 | 362 |
|
363 |
########################################################################################## |
|
364 |
||
14231 | 365 |
ifndef OPENJDK |
13164 | 366 |
ifeq ($(ENABLE_JFR), true) |
12892 | 367 |
$(eval $(call SetupArchive,BUILD_JFR_JAR,,\ |
368 |
SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
|
369 |
INCLUDES:=com/oracle/jrockit/jfr \ |
|
370 |
oracle/jrockit/jfr,\ |
|
14231 | 371 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/jfr.jar,\ |
12892 | 372 |
SKIP_METAINF:=true,\ |
13164 | 373 |
MANIFEST:=$(MAINMANIFEST), \ |
374 |
CHECK_COMPRESS_JAR:=true)) |
|
12892 | 375 |
|
14231 | 376 |
JARS+=$(IMAGES_OUTPUTDIR)/lib/jfr.jar |
377 |
endif |
|
12892 | 378 |
endif |
379 |
||
380 |
########################################################################################## |
|
381 |
||
382 |
$(eval $(call SetupArchive,BUILD_JSSE_JAR,,\ |
|
383 |
SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
|
384 |
INCLUDES:=sun/security/provider/Sun.class \ |
|
385 |
sun/security/rsa/SunRsaSign.class \ |
|
386 |
sun/security/ssl \ |
|
387 |
com/sun/net/ssl/internal/ssl,\ |
|
14231 | 388 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/jsse.jar,\ |
12892 | 389 |
SKIP_METAINF:=true,\ |
13164 | 390 |
MANIFEST:=$(MAINMANIFEST), \ |
391 |
CHECK_COMPRESS_JAR:=true)) |
|
12892 | 392 |
|
14231 | 393 |
JARS+=$(IMAGES_OUTPUTDIR)/lib/jsse.jar |
12892 | 394 |
|
395 |
########################################################################################## |
|
396 |
||
14231 | 397 |
SUNPKCS11_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunpkcs11.jar |
12892 | 398 |
|
13702 | 399 |
ifndef OPENJDK |
400 |
||
401 |
SUNPKCS11_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/pkcs11/sunpkcs11.jar |
|
12892 | 402 |
|
13702 | 403 |
$(SUNPKCS11_JAR_DST) : $(SUNPKCS11_JAR_SRC) |
14231 | 404 |
@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunPKCS11 provider..." |
13702 | 405 |
$(MKDIR) -p $(@D) |
406 |
$(RM) $@ |
|
407 |
$(CP) $< $@ |
|
12892 | 408 |
|
13702 | 409 |
else |
12892 | 410 |
|
14231 | 411 |
$(eval $(call SetupArchive,BUILD_SUNPKCS11_JAR,,\ |
13702 | 412 |
SRCS:=$(JDK_OUTPUTDIR)/classes, \ |
413 |
SUFFIXES:=.class,\ |
|
414 |
INCLUDES:=sun/security/pkcs11,\ |
|
415 |
JAR:=$(SUNPKCS11_JAR_DST), \ |
|
416 |
SKIP_METAINF := true)) |
|
12892 | 417 |
|
13702 | 418 |
endif |
12892 | 419 |
|
13702 | 420 |
JARS += $(SUNPKCS11_JAR_DST) |
12892 | 421 |
|
422 |
########################################################################################## |
|
423 |
||
14231 | 424 |
SUNEC_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunec.jar |
12892 | 425 |
|
426 |
ifndef OPENJDK |
|
427 |
||
428 |
SUNEC_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ec/sunec.jar |
|
429 |
||
430 |
$(SUNEC_JAR_DST) : $(SUNEC_JAR_SRC) |
|
14231 | 431 |
@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunEC provider..." |
13702 | 432 |
$(MKDIR) -p $(@D) |
12892 | 433 |
$(RM) $@ |
434 |
$(CP) $< $@ |
|
435 |
||
436 |
else |
|
437 |
||
438 |
$(eval $(call SetupArchive,BUILD_SUNEC_JAR,,\ |
|
439 |
SRCS:=$(JDK_OUTPUTDIR)/classes, \ |
|
440 |
SUFFIXES:=.class,\ |
|
441 |
INCLUDES:=sun/security/ec,\ |
|
442 |
JAR:=$(SUNEC_JAR_DST), \ |
|
443 |
SKIP_METAINF := true)) |
|
444 |
||
445 |
endif |
|
446 |
||
447 |
JARS += $(SUNEC_JAR_DST) |
|
448 |
||
449 |
########################################################################################## |
|
450 |
||
451 |
$(eval $(call SetupArchive,BUILD_SWINGBEANS_JAR,,\ |
|
452 |
SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
|
453 |
SUFFIXES:=BeanInfo.class .gif,\ |
|
454 |
INCLUDES:=javax/swing sun/swing,\ |
|
455 |
EXCLUDES:=javax/swing/plaf,\ |
|
456 |
EXTRA_FILES:=javax/swing/SwingBeanInfoBase.class sun/swing/BeanInfoUtils.class,\ |
|
14231 | 457 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/dt.jar,\ |
12892 | 458 |
SKIP_METAINF:=true)) |
459 |
||
14231 | 460 |
JARS+=$(IMAGES_OUTPUTDIR)/lib/dt.jar |
12892 | 461 |
|
462 |
########################################################################################## |
|
463 |
||
14231 | 464 |
SUNJCE_PROVIDER_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunjce_provider.jar |
12892 | 465 |
|
466 |
ifndef OPENJDK |
|
467 |
SUNJCE_PROVIDER_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/sunjce_provider.jar |
|
468 |
||
469 |
$(SUNJCE_PROVIDER_JAR_DST) : $(SUNJCE_PROVIDER_JAR_SRC) |
|
14231 | 470 |
@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunJCE provider..." |
13702 | 471 |
$(MKDIR) -p $(@D) |
12892 | 472 |
$(RM) $@ |
473 |
$(CP) $< $@ |
|
474 |
else |
|
475 |
||
14231 | 476 |
$(eval $(call SetupArchive,BUILD_SUNJCE_PROVIDER_JAR,,\ |
12892 | 477 |
SRCS:=$(JDK_OUTPUTDIR)/classes, \ |
478 |
SUFFIXES:=.class,\ |
|
479 |
INCLUDES:= com/sun/crypto/provider,\ |
|
480 |
JAR:=$(SUNJCE_PROVIDER_JAR_DST), \ |
|
481 |
MANIFEST := $(JDK_TOPDIR)/make/tools/manifest.mf, \ |
|
482 |
EXTRA_MANIFEST_ATTR := Extension-Name: javax.crypto\nImplementation-Vendor-Id: com.sun, \ |
|
483 |
SKIP_METAINF := true)) |
|
484 |
endif |
|
485 |
||
486 |
JARS += $(SUNJCE_PROVIDER_JAR_DST) |
|
487 |
||
14231 | 488 |
JCE_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/jce.jar |
12892 | 489 |
|
490 |
ifndef OPENJDK |
|
491 |
||
492 |
JCE_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/jce.jar |
|
493 |
||
494 |
$(JCE_JAR_DST) : $(JCE_JAR_SRC) |
|
14231 | 495 |
@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt jce.jar..." |
13702 | 496 |
$(MKDIR) -p $(@D) |
12892 | 497 |
$(RM) $@ |
498 |
$(CP) $< $@ |
|
499 |
||
500 |
else |
|
501 |
||
14231 | 502 |
$(eval $(call SetupArchive,BUILD_JCE_JAR,,\ |
12892 | 503 |
SRCS:=$(JDK_OUTPUTDIR)/classes, \ |
504 |
SUFFIXES:=.class,\ |
|
505 |
INCLUDES:= javax/crypto sun/security/internal,\ |
|
506 |
JAR:=$(JCE_JAR_DST), \ |
|
507 |
MANIFEST := $(JDK_TOPDIR)/make/tools/manifest.mf, \ |
|
508 |
EXTRA_MANIFEST_ATTR := Extension-Name: javax.crypto\nImplementation-Vendor-Id: com.sun, \ |
|
509 |
SKIP_METAINF := true)) |
|
510 |
endif |
|
511 |
||
512 |
JARS += $(JCE_JAR_DST) |
|
513 |
||
514 |
########################################################################################## |
|
515 |
||
516 |
ifdef OPENJDK |
|
517 |
||
518 |
# |
|
519 |
# TODO fix so that SetupArchive does not write files into SRCS |
|
520 |
# then we don't need this extra copying |
|
521 |
# |
|
14234
85a37ece2d5e
8001898: build-infra: correct exclusion lists for mac jar builds
erikj
parents:
14231
diff
changeset
|
522 |
# NOTE: We currently do not place restrictions on our limited export |
85a37ece2d5e
8001898: build-infra: correct exclusion lists for mac jar builds
erikj
parents:
14231
diff
changeset
|
523 |
# policy. This was not a typo. |
85a37ece2d5e
8001898: build-infra: correct exclusion lists for mac jar builds
erikj
parents:
14231
diff
changeset
|
524 |
# |
14231 | 525 |
US_EXPORT_POLICY_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/security/US_export_policy.jar |
12892 | 526 |
US_EXPORT_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/unlimited |
14231 | 527 |
US_EXPORT_POLICY_JAR_TMP := $(IMAGES_OUTPUTDIR)/US_export_policy_jar.tmp |
12892 | 528 |
|
529 |
$(US_EXPORT_POLICY_JAR_TMP)/% : $(US_EXPORT_POLICY_JAR_SRC_DIR)/% |
|
530 |
$(MKDIR) -p $(@D) |
|
13702 | 531 |
$(RM) $@ |
12892 | 532 |
$(CP) $< $@ |
533 |
||
534 |
US_EXPORT_POLICY_JAR_DEPS := $(US_EXPORT_POLICY_JAR_TMP)/default_US_export.policy |
|
535 |
||
536 |
$(eval $(call SetupArchive,BUILD_US_EXPORT_POLICY_JAR,$(US_EXPORT_POLICY_JAR_DEPS),\ |
|
537 |
SRCS:=$(US_EXPORT_POLICY_JAR_TMP), \ |
|
538 |
SUFFIXES:= .policy,\ |
|
539 |
JAR:=$(US_EXPORT_POLICY_JAR_DST), \ |
|
540 |
EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \ |
|
541 |
SKIP_METAINF := true)) |
|
542 |
||
543 |
JARS += $(US_EXPORT_POLICY_JAR_DST) |
|
544 |
||
545 |
endif |
|
546 |
||
547 |
########################################################################################## |
|
548 |
||
549 |
||
550 |
ifdef OPENJDK |
|
551 |
||
552 |
# |
|
553 |
# TODO fix so that SetupArchive does not write files into SRCS |
|
554 |
# then we don't need this extra copying |
|
555 |
# |
|
14231 | 556 |
LOCAL_POLICY_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/security/local_policy.jar |
557 |
LOCAL_POLICY_JAR_TMP := $(IMAGES_OUTPUTDIR)/local_policy_jar.tmp |
|
12892 | 558 |
|
14234
85a37ece2d5e
8001898: build-infra: correct exclusion lists for mac jar builds
erikj
parents:
14231
diff
changeset
|
559 |
ifeq ($(UNLIMITED_CRYPTO), true) |
85a37ece2d5e
8001898: build-infra: correct exclusion lists for mac jar builds
erikj
parents:
14231
diff
changeset
|
560 |
LOCAL_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/unlimited |
85a37ece2d5e
8001898: build-infra: correct exclusion lists for mac jar builds
erikj
parents:
14231
diff
changeset
|
561 |
LOCAL_POLICY_JAR_DEPS := $(LOCAL_POLICY_JAR_TMP)/default_local.policy |
85a37ece2d5e
8001898: build-infra: correct exclusion lists for mac jar builds
erikj
parents:
14231
diff
changeset
|
562 |
LOCAL_POLICY_JAR_ATTR := Crypto-Strength: unlimited |
85a37ece2d5e
8001898: build-infra: correct exclusion lists for mac jar builds
erikj
parents:
14231
diff
changeset
|
563 |
else |
85a37ece2d5e
8001898: build-infra: correct exclusion lists for mac jar builds
erikj
parents:
14231
diff
changeset
|
564 |
LOCAL_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/limited |
85a37ece2d5e
8001898: build-infra: correct exclusion lists for mac jar builds
erikj
parents:
14231
diff
changeset
|
565 |
LOCAL_POLICY_JAR_DEPS := $(LOCAL_POLICY_JAR_TMP)/exempt_local.policy \ |
14231 | 566 |
$(LOCAL_POLICY_JAR_TMP)/default_local.policy |
14234
85a37ece2d5e
8001898: build-infra: correct exclusion lists for mac jar builds
erikj
parents:
14231
diff
changeset
|
567 |
LOCAL_POLICY_JAR_ATTR := Crypto-Strength: limited |
85a37ece2d5e
8001898: build-infra: correct exclusion lists for mac jar builds
erikj
parents:
14231
diff
changeset
|
568 |
endif |
12892 | 569 |
|
570 |
$(LOCAL_POLICY_JAR_TMP)/% : $(LOCAL_POLICY_JAR_SRC_DIR)/% |
|
571 |
$(MKDIR) -p $(@D) |
|
13702 | 572 |
$(RM) $@ |
12892 | 573 |
$(CP) $< $@ |
574 |
||
575 |
$(eval $(call SetupArchive,BUILD_LOCAL_POLICY_JAR,$(LOCAL_POLICY_JAR_DEPS),\ |
|
576 |
SRCS:=$(LOCAL_POLICY_JAR_TMP),\ |
|
577 |
SUFFIXES:= .policy,\ |
|
578 |
JAR:=$(LOCAL_POLICY_JAR_DST), \ |
|
14234
85a37ece2d5e
8001898: build-infra: correct exclusion lists for mac jar builds
erikj
parents:
14231
diff
changeset
|
579 |
EXTRA_MANIFEST_ATTR := $(LOCAL_POLICY_JAR_ATTR), \ |
12892 | 580 |
SKIP_METAINF := true)) |
581 |
||
582 |
JARS += $(LOCAL_POLICY_JAR_DST) |
|
583 |
||
584 |
endif |
|
585 |
||
586 |
########################################################################################## |
|
587 |
||
13164 | 588 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
12892 | 589 |
|
14231 | 590 |
SUNMSCAPI_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunmscapi.jar |
12892 | 591 |
|
592 |
ifndef OPENJDK |
|
593 |
SUNMSCAPI_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/mscapi/sunmscapi.jar |
|
594 |
||
595 |
$(SUNMSCAPI_JAR_DST) : $(SUNMSCAPI_JAR_SRC) |
|
14231 | 596 |
@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunMSCAPI provider..." |
13702 | 597 |
$(MKDIR) -p $(@D) |
12892 | 598 |
$(RM) $@ |
599 |
$(CP) $< $@ |
|
600 |
||
601 |
else |
|
602 |
||
14231 | 603 |
$(eval $(call SetupArchive,BUILD_SUNMSCAPI_JAR,,\ |
12892 | 604 |
SRCS:=$(JDK_OUTPUTDIR)/classes, \ |
605 |
SUFFIXES:=.class,\ |
|
606 |
INCLUDES:= sun/security/mscapi,\ |
|
607 |
JAR:=$(SUNMSCAPI_JAR_DST), \ |
|
13702 | 608 |
SKIP_METAINF:=true)) |
12892 | 609 |
endif |
610 |
||
611 |
JARS += $(SUNMSCAPI_JAR_DST) |
|
612 |
||
613 |
endif |
|
614 |
||
615 |
########################################################################################## |
|
616 |
||
13164 | 617 |
ifeq ($(OPENJDK_TARGET_OS),solaris) |
12892 | 618 |
ifndef OPENJDK |
619 |
||
14231 | 620 |
UCRYPTO_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/ucrypto.jar |
12892 | 621 |
UCRYPTO_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ucrypto/ucrypto.jar |
622 |
||
623 |
$(UCRYPTO_JAR_DST) : $(UCRYPTO_JAR_SRC) |
|
14231 | 624 |
@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt OracleUcrypto provider..." |
13702 | 625 |
$(MKDIR) -p $(@D) |
12892 | 626 |
$(RM) $@ |
627 |
$(CP) $< $@ |
|
628 |
||
629 |
JARS += $(UCRYPTO_JAR_DST) |
|
630 |
||
631 |
endif |
|
632 |
endif |
|
633 |
||
634 |
########################################################################################## |
|
635 |
||
13583 | 636 |
# Get the CLDRVERSION |
637 |
include GensrcCLDR.gmk |
|
638 |
||
14231 | 639 |
CLDRDATA_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/cldrdata.jar |
13583 | 640 |
|
14231 | 641 |
$(eval $(call SetupArchive,BUILD_CLDRDATA_JAR,,\ |
13583 | 642 |
SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
643 |
SUFFIXES:=.class,\ |
|
644 |
INCLUDES:=sun/text/resources/cldr \ |
|
645 |
sun/util/cldr \ |
|
646 |
sun/util/resources/cldr,\ |
|
647 |
EXCLUDES:=sun/util/cldr/CLDRLocaleProviderAdapter,\ |
|
648 |
JAR:=$(CLDRDATA_JAR_DST),\ |
|
649 |
EXTRA_MANIFEST_ATTR:=CLDR-Version: $(CLDRVERSION),\ |
|
650 |
SKIP_METAINF:=true)) |
|
651 |
||
652 |
JARS += $(CLDRDATA_JAR_DST) |
|
653 |
||
654 |
########################################################################################## |
|
655 |
||
12892 | 656 |
TOOLS_JAR_INCLUDES := \ |
657 |
sun/tools/asm \ |
|
658 |
sun/tools/jar \ |
|
659 |
sun/tools/java \ |
|
660 |
sun/tools/javac \ |
|
661 |
sun/tools/jcmd \ |
|
662 |
sun/tools/jps \ |
|
663 |
sun/tools/jstat \ |
|
664 |
sun/tools/jstatd \ |
|
665 |
sun/tools/native2ascii \ |
|
666 |
sun/tools/serialver \ |
|
667 |
sun/tools/tree \ |
|
668 |
sun/tools/util \ |
|
669 |
sun/security/tools/JarBASE64Encoder.class \ |
|
670 |
sun/security/tools/JarSigner.class \ |
|
671 |
sun/security/tools/JarSignerParameters.class \ |
|
672 |
sun/security/tools/JarSignerResources.class \ |
|
673 |
sun/security/tools/JarSignerResources_ja.class \ |
|
674 |
sun/security/tools/JarSignerResources_zh_CN.class \ |
|
675 |
sun/security/tools/SignatureFile* \ |
|
676 |
sun/security/tools/TimestampedSigner.class \ |
|
677 |
sun/rmi/rmic \ |
|
678 |
sun/applet \ |
|
679 |
sun/jvmstat \ |
|
680 |
com/sun/javadoc \ |
|
681 |
com/sun/jdi \ |
|
682 |
com/sun/jarsigner \ |
|
683 |
com/sun/source \ |
|
684 |
com/sun/tools/classfile \ |
|
685 |
com/sun/tools/doclets \ |
|
686 |
com/sun/tools/example/debug/expr \ |
|
687 |
com/sun/tools/example/debug/tty \ |
|
688 |
com/sun/tools/extcheck \ |
|
689 |
com/sun/tools/hat \ |
|
690 |
com/sun/tools/javac \ |
|
691 |
com/sun/tools/javadoc \ |
|
692 |
com/sun/tools/javah \ |
|
693 |
com/sun/tools/javap \ |
|
694 |
com/sun/tools/corba \ |
|
695 |
com/sun/tools/internal/xjc \ |
|
696 |
com/sun/tools/internal/ws \ |
|
697 |
com/sun/istack/internal/tools \ |
|
698 |
com/sun/tools/internal/jxc/ap \ |
|
699 |
com/sun/tools/internal/ws/wscompile/plugin/at_generated \ |
|
700 |
com/sun/codemodel \ |
|
701 |
com/sun/tools/internal/jxc \ |
|
702 |
com/sun/xml/internal/rngom \ |
|
703 |
com/sun/xml/internal/xsom \ |
|
704 |
org/relaxng/datatype \ |
|
705 |
com/sun/xml/internal/dtdparser \ |
|
706 |
com/sun/tools/jdi \ |
|
707 |
com/sun/tools/script/shell \ |
|
708 |
com/sun/tools/attach \ |
|
709 |
sun/tools/attach \ |
|
710 |
sun/tools/jstack \ |
|
711 |
sun/tools/jinfo \ |
|
712 |
sun/tools/jmap |
|
713 |
||
14231 | 714 |
# The sjavac tools is not ready for public consumption. |
715 |
TOOLS_JAR_EXCLUDES=com/sun/tools/sjavac |
|
716 |
||
717 |
$(eval $(call SetupArchive,BUILD_TOOLS_JAR,,\ |
|
12892 | 718 |
SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
719 |
SUFFIXES:=.class .prp .gif .properties .xml .css .xsd .js .html .txt .java \ |
|
720 |
Tool aliasmap options,\ |
|
721 |
INCLUDES:=$(TOOLS_JAR_INCLUDES),\ |
|
14231 | 722 |
EXCLUDES:=$(TOOLS_JAR_EXCLUDES),\ |
12892 | 723 |
EXTRA_FILES:=META-INF/services/com.sun.jdi.connect.Connector \ |
724 |
META-INF/services/com.sun.jdi.connect.spi.TransportService \ |
|
725 |
META-INF/services/com.sun.tools.attach.spi.AttachProvider \ |
|
726 |
META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin \ |
|
727 |
META-INF/services/com.sun.tools.internal.xjc.Plugin,\ |
|
14231 | 728 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/tools.jar,\ |
13164 | 729 |
SKIP_METAINF:=true, \ |
730 |
CHECK_COMPRESS_JAR:=true)) |
|
12892 | 731 |
|
14231 | 732 |
JARS+=$(IMAGES_OUTPUTDIR)/lib/tools.jar |
12892 | 733 |
|
734 |
########################################################################################## |
|
735 |
||
13702 | 736 |
include javadoc/CORE_PKGS.gmk |
737 |
include javadoc/NON_CORE_PKGS.gmk |
|
12892 | 738 |
|
739 |
# The compiler should not issue a "Proprietary" warning when compiling |
|
740 |
# classes in the com.sun.java.swing.plaf packages, since we've always |
|
741 |
# allowed, and even advocated, extending them (see bug 6476749). |
|
742 |
# |
|
743 |
# This approach is NOT to be used as a general purpose way to avoid such |
|
744 |
# compiler warnings for non-core packages. The correct way is to document |
|
745 |
# the packages in NON_CORE_PKGS.gmk, and include them in the NON_CORE_PKGS |
|
746 |
# definition. |
|
747 |
# |
|
748 |
# Swing has taken this approach only as a temporary measure to avoid |
|
749 |
# the compiler warnings until we can properly document these packages. |
|
750 |
# This is covered under 6491853. |
|
751 |
EXCLUDE_PROPWARN_PKGS = com.sun.java.swing.plaf.windows \ |
|
752 |
com.sun.java.swing.plaf.motif \ |
|
753 |
com.sun.java.swing.plaf.gtk |
|
754 |
||
755 |
# |
|
756 |
# Include the exported private packages in ct.sym. |
|
757 |
# This is an interim solution until the ct.sym is replaced |
|
758 |
# with a new module system (being discussed for JDK 8). |
|
759 |
# |
|
760 |
EXPORTED_PRIVATE_PKGS = com.sun.servicetag \ |
|
761 |
com.oracle.net \ |
|
762 |
com.oracle.nio |
|
763 |
||
14231 | 764 |
$(IMAGES_OUTPUTDIR)/symbols/_the.symbols: $(IMAGES_OUTPUTDIR)/lib/rt.jar |
13702 | 765 |
$(RM) -r $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym |
12892 | 766 |
$(MKDIR) -p $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym |
767 |
$(JAVA) \ |
|
768 |
-Xbootclasspath/a:$(JDK_OUTPUTDIR)/classes \ |
|
769 |
$(JAVAC_JARS) \ |
|
770 |
-XDprocess.packages -proc:only \ |
|
771 |
-processor com.sun.tools.javac.sym.CreateSymbols \ |
|
14231 | 772 |
-Acom.sun.tools.javac.sym.Jar=$(IMAGES_OUTPUTDIR)/lib/rt.jar \ |
12892 | 773 |
-Acom.sun.tools.javac.sym.Dest=$(IMAGES_OUTPUTDIR)/symbols/META-INF/sym/rt.jar \ |
774 |
$(CORE_PKGS) $(NON_CORE_PKGS) $(EXCLUDE_PROPWARN_PKGS) $(EXPORTED_PRIVATE_PKGS) |
|
775 |
$(TOUCH) $@ |
|
776 |
||
14231 | 777 |
$(shell $(MKDIR) -p $(IMAGES_OUTPUTDIR)/symbols) |
12892 | 778 |
$(eval $(call SetupArchive,BUILD_CT_SYM,$(IMAGES_OUTPUTDIR)/symbols/_the.symbols,\ |
779 |
SRCS:=$(IMAGES_OUTPUTDIR)/symbols,\ |
|
780 |
INCLUDES:=META-INF/sym,\ |
|
14231 | 781 |
JAR:=$(IMAGES_OUTPUTDIR)/lib/ct.sym, \ |
13164 | 782 |
CHECK_COMPRESS_JAR:=true)) |
12892 | 783 |
|
14231 | 784 |
JARS+=$(IMAGES_OUTPUTDIR)/lib/ct.sym |
12892 | 785 |
|
786 |
########################################################################################## |
|
787 |
||
788 |
SRC_ZIP_INCLUDES = \ |
|
789 |
java/applet \ |
|
790 |
java/awt \ |
|
791 |
java/beans \ |
|
792 |
java/io \ |
|
793 |
java/lang \ |
|
794 |
java/math \ |
|
795 |
java/net \ |
|
796 |
java/nio \ |
|
797 |
java/rmi \ |
|
798 |
java/security \ |
|
799 |
java/sql \ |
|
800 |
java/text \ |
|
801 |
java/util \ |
|
802 |
com/sun/corba \ |
|
803 |
com/sun/image/codec/jpeg \ |
|
804 |
com/sun/imageio \ |
|
805 |
com/sun/java/swing \ |
|
806 |
com/sun/javadoc \ |
|
807 |
com/sun/jmx \ |
|
808 |
com/sun/source \ |
|
809 |
com/sun/naming \ |
|
810 |
com/sun/security/auth \ |
|
811 |
com/sun/security/jgss \ |
|
812 |
javax/accessibility \ |
|
813 |
javax/annotation \ |
|
814 |
javax/script \ |
|
815 |
javax/imageio \ |
|
816 |
javax/lang \ |
|
817 |
javax/management \ |
|
818 |
javax/naming \ |
|
819 |
javax/print \ |
|
820 |
javax/rmi \ |
|
821 |
javax/security \ |
|
822 |
javax/sound \ |
|
823 |
javax/sql \ |
|
824 |
javax/swing \ |
|
825 |
javax/tools \ |
|
826 |
javax/xml \ |
|
827 |
com/sun/org/apache \ |
|
828 |
com/sun/java_cup \ |
|
829 |
com/sun/jlex \ |
|
830 |
org/ietf \ |
|
831 |
org/omg \ |
|
832 |
org/w3c/dom \ |
|
13702 | 833 |
org/xml/sax \ |
834 |
sunw |
|
12892 | 835 |
|
13702 | 836 |
SRC_ZIP_SRCS = $(JDK_TOPDIR)/src/share/classes $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes |
12892 | 837 |
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/gensrc |
838 |
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/impsrc |
|
839 |
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/gendocsrc_rmic |
|
840 |
ifndef OPENJDK |
|
841 |
SRC_ZIP_SRCS += $(JDK_TOPDIR)/src/closed/share/classes |
|
842 |
endif |
|
843 |
||
844 |
# Need to copy launcher src files into desired directory structure |
|
845 |
# before zipping the sources. |
|
846 |
LAUNCHER_SRC_FILES := $(wildcard $(JDK_TOPDIR)/src/share/bin/*) \ |
|
13702 | 847 |
$(wildcard $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/java_md*) |
12892 | 848 |
LAUNCHER_ZIP_SRC := $(patsubst $(JDK_TOPDIR)/src/share/bin/%,$(IMAGES_OUTPUTDIR)/src/launcher/%,\ |
13702 | 849 |
$(patsubst $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/%,$(IMAGES_OUTPUTDIR)/src/launcher/%,\ |
12892 | 850 |
$(LAUNCHER_SRC_FILES))) |
851 |
||
852 |
$(IMAGES_OUTPUTDIR)/src/launcher/%: $(JDK_TOPDIR)/src/share/bin/% |
|
853 |
$(MKDIR) -p $(@D) |
|
13702 | 854 |
$(RM) $@ |
12892 | 855 |
$(CP) $< $@ |
856 |
||
13702 | 857 |
$(IMAGES_OUTPUTDIR)/src/launcher/%: $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/% |
12892 | 858 |
$(MKDIR) -p $(@D) |
13702 | 859 |
$(RM) $@ |
12892 | 860 |
$(CP) $< $@ |
861 |
||
862 |
$(IMAGES_OUTPUTDIR)/src.zip: $(LAUNCHER_ZIP_SRC) |
|
863 |
||
14231 | 864 |
# This dir needs to exist before macro is evaluated to avoid warning from find. |
865 |
$(eval $(call MakeDir,$(IMAGES_OUTPUTDIR)/src)) |
|
12892 | 866 |
$(eval $(call SetupZipArchive,BUILD_SRC_ZIP,\ |
867 |
SRC:=$(SRC_ZIP_SRCS) $(IMAGES_OUTPUTDIR)/src,\ |
|
868 |
INCLUDES:=$(SRC_ZIP_INCLUDES) launcher,\ |
|
14231 | 869 |
EXCLUDES:=javax/swing/beaninfo,\ |
12892 | 870 |
SUFFIXES:=.java .c .h,\ |
871 |
ZIP:=$(IMAGES_OUTPUTDIR)/src.zip,\ |
|
872 |
EXTRA_DEPS:=$(LAUNCHER_ZIP_SRC))) |
|
873 |
||
874 |
JARS+=$(IMAGES_OUTPUTDIR)/src.zip |
|
875 |
||
876 |
########################################################################################## |
|
877 |
||
13702 | 878 |
-include $(CUSTOM_MAKE_DIR)/CreateJars.gmk |
879 |
||
880 |
########################################################################################## |
|
881 |
||
12892 | 882 |
all: $(JARS) |
883 |
||
884 |
.PHONY: default all |