author | lana |
Wed, 30 Oct 2013 13:51:07 -0700 | |
changeset 21416 | 7d9198dd107c |
parent 21399 | 3ed2559e161d |
parent 21128 | 2a7460bba7a5 |
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. |
20547 | 34 |
$(eval $(call FillCacheFind, $(JDK_OUTPUTDIR)/classes)) |
15126
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 |
# |
|
20547 | 43 |
MAKEFILE = $(JDK_TOPDIR)/makefiles/CreateJars.gmk |
15681 | 44 |
# |
45 |
# And similarly for the Profiles |
|
20547 | 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 |
||
20547 | 51 |
$(eval $(call MakeDir, $(IMAGES_OUTPUTDIR)/lib)) |
14231 | 52 |
|
12892 | 53 |
########################################################################################## |
54 |
||
20547 | 55 |
$(eval $(call SetupArchive,BUILD_JCONSOLE_JAR, , \ |
56 |
SRCS := $(JDK_OUTPUTDIR)/classes, \ |
|
57 |
SUFFIXES := .class .gif .png .properties, \ |
|
58 |
INCLUDES := sun/tools/jconsole com/sun/tools/jconsole, \ |
|
59 |
JARMAIN := sun.tools.jconsole.JConsole, \ |
|
60 |
JAR := $(IMAGES_OUTPUTDIR)/lib/jconsole.jar, \ |
|
61 |
SKIP_METAINF := true)) |
|
12892 | 62 |
|
63 |
||
64 |
########################################################################################## |
|
65 |
||
20547 | 66 |
$(eval $(call SetupArchive,BUILD_DNS_JAR, , \ |
67 |
SRCS := $(JDK_OUTPUTDIR)/classes, \ |
|
68 |
INCLUDES := sun/net/spi/nameservice/dns, \ |
|
69 |
EXTRA_FILES := META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor, \ |
|
70 |
JAR := $(IMAGES_OUTPUTDIR)/lib/ext/dnsns.jar, \ |
|
71 |
SKIP_METAINF := true)) |
|
12892 | 72 |
|
73 |
||
74 |
########################################################################################## |
|
75 |
||
14334
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
76 |
LOCALEDATA_INCLUDE_LOCALES := ar be bg ca cs da de el es et fi fr ga hi hr hu in is it \ |
20547 | 77 |
iw ja ko lt lv mk ms mt nl no pl pt ro ru sk sl sq sr sv \ |
78 |
th tr uk vi zh |
|
14334
43556afc3c04
8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents:
14326
diff
changeset
|
79 |
|
20547 | 80 |
LOCALEDATA_INCLUDES := $(addprefix sun/text/resources/, $(LOCALEDATA_INCLUDE_LOCALES)) \ |
81 |
$(addprefix sun/util/resources/, $(LOCALEDATA_INCLUDE_LOCALES)) |
|
12892 | 82 |
|
20547 | 83 |
$(eval $(call SetupArchive,BUILD_LOCALEDATA_JAR, , \ |
84 |
SRCS := $(JDK_OUTPUTDIR)/classes, \ |
|
85 |
SUFFIXES := .class _dict _th, \ |
|
86 |
INCLUDES := $(LOCALEDATA_INCLUDES), \ |
|
87 |
EXCLUDES := sun/text/resources/th/BreakIteratorRules_th.class, \ |
|
88 |
JAR := $(IMAGES_OUTPUTDIR)/lib/ext/localedata.jar, \ |
|
89 |
SKIP_METAINF := true)) |
|
12892 | 90 |
|
91 |
########################################################################################## |
|
15681 | 92 |
# |
93 |
# Different variants of rt.jar are built based on the current profile. The output |
|
94 |
# directory is augmented with the profile name so that the final jar file and all the |
|
95 |
# intermediary list files will be in directory. This has the form lib$PROFILE rather than |
|
96 |
# lib/$PROFILE so that it won't get copied as part of the image generation process. |
|
97 |
# Each profile customizes the RT_JAR_EXCLUDES variable. |
|
98 |
# |
|
99 |
########################################################################################## |
|
12892 | 100 |
|
15681 | 101 |
# Full JRE exclude list for rt.jar and resources.jar |
18573 | 102 |
# This value should exclude types destined for jars other than rt.jar and resources.jar. |
15681 | 103 |
# When building a Profile this value augments the profile specific exclusions |
104 |
RT_JAR_EXCLUDES += \ |
|
20547 | 105 |
com/sun/codemodel \ |
106 |
com/sun/crypto/provider \ |
|
107 |
com/sun/istack/internal/tools \ |
|
108 |
com/sun/jarsigner \ |
|
109 |
com/sun/java/accessibility \ |
|
110 |
com/sun/javadoc \ |
|
111 |
com/sun/jdi \ |
|
112 |
com/sun/net/ssl/internal/ssl \ |
|
113 |
com/sun/source \ |
|
114 |
com/sun/tools \ |
|
115 |
com/sun/xml/internal/dtdparser \ |
|
116 |
com/sun/xml/internal/rngom \ |
|
117 |
com/sun/xml/internal/xsom \ |
|
118 |
javax/crypto \ |
|
119 |
javax/swing/AbstractButtonBeanInfo.class \ |
|
120 |
javax/swing/beaninfo \ |
|
121 |
javax/swing/BoxBeanInfo.class \ |
|
122 |
javax/swing/JAppletBeanInfo.class \ |
|
123 |
javax/swing/JButtonBeanInfo.class \ |
|
124 |
javax/swing/JCheckBoxBeanInfo.class \ |
|
125 |
javax/swing/JCheckBoxMenuItemBeanInfo.class \ |
|
126 |
javax/swing/JColorChooserBeanInfo.class \ |
|
127 |
javax/swing/JComboBoxBeanInfo.class \ |
|
128 |
javax/swing/JComponentBeanInfo.class \ |
|
129 |
javax/swing/JDesktopPaneBeanInfo.class \ |
|
130 |
javax/swing/JDialogBeanInfo.class \ |
|
131 |
javax/swing/JEditorPaneBeanInfo.class \ |
|
132 |
javax/swing/JFileChooserBeanInfo.class \ |
|
133 |
javax/swing/JFormattedTextFieldBeanInfo.class \ |
|
134 |
javax/swing/JFrameBeanInfo.class \ |
|
135 |
javax/swing/JInternalFrameBeanInfo.class \ |
|
136 |
javax/swing/JLabelBeanInfo.class \ |
|
137 |
javax/swing/JLayeredPaneBeanInfo.class \ |
|
138 |
javax/swing/JListBeanInfo.class \ |
|
139 |
javax/swing/JMenuBarBeanInfo.class \ |
|
140 |
javax/swing/JMenuBeanInfo.class \ |
|
141 |
javax/swing/JMenuItemBeanInfo.class \ |
|
142 |
javax/swing/JOptionPaneBeanInfo.class \ |
|
143 |
javax/swing/JPanelBeanInfo.class \ |
|
144 |
javax/swing/JPasswordFieldBeanInfo.class \ |
|
145 |
javax/swing/JPopupMenuBeanInfo.class \ |
|
146 |
javax/swing/JProgressBarBeanInfo.class \ |
|
147 |
javax/swing/JRadioButtonBeanInfo.class \ |
|
148 |
javax/swing/JRadioButtonMenuItemBeanInfo.class \ |
|
149 |
javax/swing/JScrollBarBeanInfo.class \ |
|
150 |
javax/swing/JScrollPaneBeanInfo.class \ |
|
151 |
javax/swing/JSeparatorBeanInfo.class \ |
|
152 |
javax/swing/JSliderBeanInfo.class \ |
|
153 |
javax/swing/JSpinnerBeanInfo.class \ |
|
154 |
javax/swing/JSplitPaneBeanInfo.class \ |
|
155 |
javax/swing/JTabbedPaneBeanInfo.class \ |
|
156 |
javax/swing/JTableBeanInfo.class \ |
|
157 |
javax/swing/JTextAreaBeanInfo.class \ |
|
158 |
javax/swing/JTextFieldBeanInfo.class \ |
|
159 |
javax/swing/JTextPaneBeanInfo.class \ |
|
160 |
javax/swing/JToggleButtonBeanInfo.class \ |
|
161 |
javax/swing/JToolBarBeanInfo.class \ |
|
162 |
javax/swing/JTreeBeanInfo.class \ |
|
163 |
javax/swing/JWindowBeanInfo.class \ |
|
164 |
javax/swing/SwingBeanInfoBase.class \ |
|
165 |
javax/swing/text/JTextComponentBeanInfo.class \ |
|
166 |
META-INF/services/com.sun.jdi.connect.Connector \ |
|
167 |
META-INF/services/com.sun.jdi.connect.spi.TransportService \ |
|
168 |
META-INF/services/com.sun.tools.attach.spi.AttachProvider \ |
|
169 |
META-INF/services/com.sun.tools.xjc.Plugin \ |
|
170 |
META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor \ |
|
171 |
org/relaxng/datatype \ |
|
172 |
sun/awt/HKSCS.class \ |
|
173 |
sun/awt/motif/X11GB2312.class \ |
|
174 |
sun/awt/motif/X11GB2312\$$$$Decoder.class \ |
|
175 |
sun/awt/motif/X11GB2312\$$$$Encoder.class \ |
|
176 |
sun/awt/motif/X11GBK.class \ |
|
177 |
sun/awt/motif/X11GBK\$$$$Encoder.class \ |
|
178 |
sun/awt/motif/X11KSC5601.class \ |
|
179 |
sun/awt/motif/X11KSC5601\$$$$Decoder.class \ |
|
180 |
sun/awt/motif/X11KSC5601\$$$$Encoder.class \ |
|
181 |
sun/jvmstat \ |
|
182 |
sun/net/spi/nameservice/dns \ |
|
183 |
sun/nio/cs/ext \ |
|
184 |
sun/rmi/rmic \ |
|
185 |
sun/security/ec \ |
|
186 |
sun/security/internal \ |
|
187 |
sun/security/mscapi \ |
|
188 |
sun/security/pkcs11 \ |
|
189 |
sun/security/provider/Sun.class \ |
|
190 |
sun/security/rsa/SunRsaSign.class \ |
|
191 |
sun/security/ssl \ |
|
192 |
sun/security/tools/jarsigner \ |
|
193 |
sun/swing/BeanInfoUtils.class \ |
|
194 |
sun/text/resources/cldr \ |
|
195 |
sun/tools/asm \ |
|
196 |
sun/tools/attach \ |
|
197 |
sun/tools/java \ |
|
198 |
sun/tools/javac \ |
|
199 |
sun/tools/jcmd \ |
|
200 |
sun/tools/jconsole \ |
|
201 |
sun/tools/jinfo \ |
|
202 |
sun/tools/jmap \ |
|
203 |
sun/tools/jps \ |
|
204 |
sun/tools/jstack \ |
|
205 |
sun/tools/jstat \ |
|
206 |
sun/tools/jstatd \ |
|
207 |
sun/tools/native2ascii \ |
|
208 |
sun/tools/serialver \ |
|
209 |
sun/tools/tree \ |
|
210 |
sun/tools/util \ |
|
211 |
sun/util/cldr/CLDRLocaleDataMetaInfo.class \ |
|
212 |
sun/util/resources/cldr \ |
|
213 |
$(LOCALEDATA_INCLUDES) \ |
|
214 |
com/oracle/jrockit/jfr \ |
|
215 |
oracle/jrockit/jfr \ |
|
216 |
jdk/jfr |
|
13164 | 217 |
|
12892 | 218 |
# Find all files in the classes dir to use as dependencies. This could be more fine granular. |
20547 | 219 |
ALL_FILES_IN_CLASSES := $(call not-containing, _the., $(filter-out %javac_state, \ |
220 |
$(call CacheFind, $(JDK_OUTPUTDIR)/classes))) |
|
12892 | 221 |
|
15681 | 222 |
RT_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar_manifest |
223 |
RESOURCE_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar_manifest |
|
12892 | 224 |
|
225 |
$(RT_JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST) |
|
226 |
$(MKDIR) -p $(@D) |
|
13702 | 227 |
$(RM) $@ $@.tmp |
20547 | 228 |
$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \ |
229 |
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \ |
|
230 |
$(MAINMANIFEST) >> $@.tmp |
|
13702 | 231 |
$(ECHO) >> $@.tmp |
232 |
$(CAT) $(BEANMANIFEST) >> $@.tmp |
|
233 |
$(MV) $@.tmp $@ |
|
12892 | 234 |
|
235 |
$(RESOURCE_JAR_MANIFEST_FILE): $(MAINMANIFEST) |
|
236 |
$(MKDIR) -p $(@D) |
|
13702 | 237 |
$(RM) $@ $@.tmp |
20547 | 238 |
$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \ |
239 |
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \ |
|
240 |
$(MAINMANIFEST) >> $@.tmp |
|
13702 | 241 |
$(MV) $@.tmp $@ |
12892 | 242 |
|
15681 | 243 |
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.exclude: $(MAKEFILE) $(PROFILE_MAKEFILES) |
12892 | 244 |
$(MKDIR) -p $(@D) |
13702 | 245 |
$(RM) $@ $@.tmp |
246 |
$(call ListPathsSafely,RT_JAR_EXCLUDES,\n, >> $@.tmp) |
|
247 |
$(MV) $@.tmp $@ |
|
12892 | 248 |
|
20547 | 249 |
$(IMAGES_OUTPUTDIR)/lib/classlist: $(JDK_TOPDIR)/make/tools/sharing/classlist.$(OPENJDK_TARGET_OS) \ |
250 |
$(MAKEFILE) |
|
13164 | 251 |
$(MKDIR) -p $(@D) |
13702 | 252 |
$(RM) $@ $@.tmp |
253 |
$(TOOL_ADDJSUM) $< $@.tmp |
|
254 |
$(MV) $@.tmp $@ |
|
13164 | 255 |
|
15681 | 256 |
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents: $(BUILD_TOOLS) $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.exclude \ |
20547 | 257 |
$(ALL_FILES_IN_CLASSES) $(IMAGES_OUTPUTDIR)/lib/classlist |
12892 | 258 |
$(MKDIR) -p $(@D) |
13702 | 259 |
$(RM) $@ $@.tmp |
12892 | 260 |
($(CD) $(JDK_OUTPUTDIR)/classes && \ |
20547 | 261 |
$(TOOL_JARREORDER) \ |
262 |
-o $@.tmp $(IMAGES_OUTPUTDIR)/lib/classlist $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.exclude . ) |
|
13702 | 263 |
$(MV) $@.tmp $@ |
12892 | 264 |
|
15681 | 265 |
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar.contents: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents |
13702 | 266 |
$(MKDIR) -p $(@D) |
267 |
$(RM) $@ $@.tmp |
|
15681 | 268 |
$(GREP) -e '\.class$$' $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents > $@.tmp |
20547 | 269 |
ifneq ($(PROFILE), ) |
270 |
# # Add back classes from excluded packages (fixing the $ substitution in the process) |
|
271 |
for type in $(subst \$$,\, $(RT_JAR_INCLUDE_TYPES)) ; do \ |
|
272 |
$(ECHO) $$type >> $@.tmp ; \ |
|
273 |
done |
|
274 |
endif |
|
13702 | 275 |
$(MV) $@.tmp $@ |
12892 | 276 |
|
15681 | 277 |
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents |
13702 | 278 |
$(MKDIR) -p $(@D) |
279 |
$(RM) $@ $@.tmp |
|
280 |
$(GREP) -v -e '\.class$$' \ |
|
281 |
-e '/_the\.*' -e '^_the\.*' -e '\\_the\.*' -e 'javac_state' \ |
|
15681 | 282 |
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents > $@.tmp |
20547 | 283 |
ifneq ($(PROFILE), ) |
284 |
# # Strip out all META-INF/services/ entries |
|
285 |
$(GREP) -v -e 'META-INF/services/' $@.tmp > $@.tmp2 |
|
286 |
# # Add back the required services |
|
287 |
# # FIXME: On Solaris if PROFILE_INCLUDE_METAINF_SERVICES is not defined |
|
288 |
# # we get a syntax error from sh. That doesn't happen on linux |
|
289 |
for service in $(PROFILE_INCLUDE_METAINF_SERVICES) ; do \ |
|
290 |
$(ECHO) $$service >> $@.tmp2; \ |
|
291 |
done |
|
292 |
$(MV) $@.tmp2 $@.tmp |
|
293 |
endif |
|
13702 | 294 |
$(MV) $@.tmp $@ |
12892 | 295 |
|
15681 | 296 |
# This is a hack but I don't know how to make this fit into the existing scheme |
20547 | 297 |
$(PROFILE_VERSION_CLASS_TARGETS): $(PROFILE_VERSION_JAVA_TARGETS) |
15681 | 298 |
@$(JAVAC) -d $(@D)/../../ $(@D)/$(VERSION_JAVA_FILE) |
299 |
||
300 |
||
301 |
# Support for removing the addPropertyChangeListener and removePropertyChangeListener |
|
18573 | 302 |
# methods from classes that only go into the profile builds. |
15681 | 303 |
BEANLESS_CLASSES = $(IMAGES_OUTPUTDIR)/beanless |
304 |
||
16478 | 305 |
# When there are $ characters in filenames we have some very subtle interactions between |
306 |
# make expansion and shell expansion. In this particular case $< will contain a single $ while |
|
307 |
# $@ will contain \$. So we have to pass $< in single-quotes to avoid shell expansion |
|
15681 | 308 |
$(BEANLESS_CLASSES)/%: $(JDK_OUTPUTDIR)/classes/% |
309 |
$(MKDIR) -p $(@D) |
|
16478 | 310 |
$(TOOL_REMOVEMETHODS) '$<' $@ addPropertyChangeListener removePropertyChangeListener |
15681 | 311 |
|
312 |
CLASSES_TO_DEBEAN = \ |
|
313 |
java/util/logging/LogManager.class \ |
|
16478 | 314 |
java/util/jar/Pack200\$$Packer.class \ |
315 |
java/util/jar/Pack200\$$Unpacker.class \ |
|
15681 | 316 |
com/sun/java/util/jar/pack/PackerImpl.class \ |
18573 | 317 |
com/sun/java/util/jar/pack/UnpackerImpl.class |
15681 | 318 |
|
20547 | 319 |
ifneq ($(PROFILE), ) |
320 |
BEANLESS_CLASSES_TARGETS := $(addprefix $(BEANLESS_CLASSES)/, $(CLASSES_TO_DEBEAN)) |
|
15681 | 321 |
endif |
322 |
||
323 |
||
13164 | 324 |
RT_JAR_CREATE_OPTIONS := c0fm |
15681 | 325 |
RT_JAR_UPDATE_OPTIONS := u0f |
13164 | 326 |
ifeq ($(COMPRESS_JARS), true) |
20547 | 327 |
RT_JAR_CREATE_OPTIONS := cfm |
328 |
RT_JAR_UPDATE_OPTIONS := uf |
|
13164 | 329 |
endif |
330 |
||
15681 | 331 |
# This defines a target-specific variables to make the shell logic easier to see. |
332 |
# We need to find the Version.class file for the profile currently being built |
|
333 |
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/rt.jar: \ |
|
20547 | 334 |
CLASS_FILE = $(if $(PROFILE), $(strip $(foreach class, $(PROFILE_VERSION_CLASS_TARGETS), $(if $(findstring $(PROFILE), $(class)), $(class)))), NO_SUCH_FILE) |
15681 | 335 |
# This is the real target |
336 |
$(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) |
|
337 |
$(ECHO) Creating rt.jar $(PROFILE) Compressed=$(COMPRESS_JARS) |
|
13702 | 338 |
$(MKDIR) -p $(@D) |
339 |
$(RM) $@ $@.tmp |
|
12892 | 340 |
$(CD) $(JDK_OUTPUTDIR)/classes && \ |
20547 | 341 |
$(JAR) $(RT_JAR_CREATE_OPTIONS) $@.tmp $(RT_JAR_MANIFEST_FILE) \ |
342 |
@$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar.contents && \ |
|
343 |
if [ -f $(CLASS_FILE) ]; then \ |
|
344 |
$(ECHO) Updating rt.jar $(PROFILE) && \ |
|
345 |
$(CD) $(patsubst %$(VERSION_CLASS_PATH), %, $(CLASS_FILE)) && \ |
|
346 |
$(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(VERSION_CLASS_PATH); \ |
|
347 |
$(CD) $(BEANLESS_CLASSES) && \ |
|
348 |
$(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(CLASSES_TO_DEBEAN); \ |
|
349 |
fi |
|
13702 | 350 |
$(MV) $@.tmp $@ |
12892 | 351 |
|
15681 | 352 |
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/resources.jar: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents \ |
20547 | 353 |
$(RESOURCE_JAR_MANIFEST_FILE) |
12892 | 354 |
$(ECHO) Creating resources.jar |
13702 | 355 |
$(MKDIR) -p $(@D) |
356 |
$(RM) $@ $@.tmp |
|
12892 | 357 |
$(CD) $(JDK_OUTPUTDIR)/classes && \ |
20547 | 358 |
$(JAR) $(RT_JAR_CREATE_OPTIONS) $@.tmp $(RESOURCE_JAR_MANIFEST_FILE) \ |
359 |
@$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents |
|
13702 | 360 |
$(MV) $@.tmp $@ |
12892 | 361 |
|
362 |
########################################################################################## |
|
363 |
||
13164 | 364 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
20547 | 365 |
CHARSETS_EXTRA_FILES := sun/awt/motif/X11GBK.class \ |
366 |
sun/awt/motif/X11GB2312\$$$$Decoder.class \ |
|
367 |
sun/awt/motif/X11GB2312.class \ |
|
368 |
sun/awt/motif/X11KSC5601\$$$$Decoder.class \ |
|
369 |
sun/awt/motif/X11KSC5601\$$$$Encoder.class \ |
|
370 |
sun/awt/motif/X11GB2312\$$$$Encoder.class \ |
|
371 |
sun/awt/motif/X11GBK\$$$$Encoder.class \ |
|
372 |
sun/awt/motif/X11KSC5601.class |
|
12892 | 373 |
endif |
374 |
||
20547 | 375 |
$(eval $(call SetupArchive,BUILD_CHARSETS_JAR, , \ |
376 |
SRCS := $(JDK_OUTPUTDIR)/classes, \ |
|
377 |
SUFFIXES := .class .dat, \ |
|
378 |
INCLUDES := sun/nio/cs/ext, \ |
|
379 |
EXTRA_FILES := sun/awt/HKSCS.class \ |
|
380 |
$(CHARSETS_EXTRA_FILES), \ |
|
381 |
JAR := $(IMAGES_OUTPUTDIR)/lib/charsets.jar, \ |
|
382 |
SKIP_METAINF := true, \ |
|
383 |
CHECK_COMPRESS_JAR := true)) |
|
12892 | 384 |
|
385 |
########################################################################################## |
|
386 |
||
14231 | 387 |
ifndef OPENJDK |
20547 | 388 |
ifeq ($(ENABLE_JFR), true) |
389 |
$(eval $(call SetupArchive,BUILD_JFR_JAR, , \ |
|
390 |
SRCS := $(JDK_OUTPUTDIR)/classes, \ |
|
391 |
SUFFIXES := .class .jfc .xsd, \ |
|
392 |
INCLUDES := com/oracle/jrockit/jfr \ |
|
393 |
oracle/jrockit/jfr \ |
|
394 |
jdk/jfr, \ |
|
395 |
JAR := $(IMAGES_OUTPUTDIR)/lib/jfr.jar, \ |
|
396 |
SKIP_METAINF := true, \ |
|
397 |
MANIFEST := $(MAINMANIFEST), \ |
|
398 |
CHECK_COMPRESS_JAR := true)) |
|
12892 | 399 |
|
20547 | 400 |
endif |
12892 | 401 |
endif |
402 |
||
403 |
########################################################################################## |
|
404 |
||
20547 | 405 |
$(eval $(call SetupArchive,BUILD_JSSE_JAR, , \ |
406 |
SRCS := $(JDK_OUTPUTDIR)/classes, \ |
|
407 |
INCLUDES := sun/security/provider/Sun.class \ |
|
408 |
sun/security/rsa/SunRsaSign.class \ |
|
409 |
sun/security/ssl \ |
|
410 |
com/sun/net/ssl/internal/ssl, \ |
|
411 |
JAR := $(IMAGES_OUTPUTDIR)/lib/jsse.jar, \ |
|
412 |
SKIP_METAINF := true, \ |
|
413 |
MANIFEST := $(MAINMANIFEST), \ |
|
414 |
CHECK_COMPRESS_JAR := true)) |
|
12892 | 415 |
|
416 |
########################################################################################## |
|
417 |
||
20547 | 418 |
$(eval $(call SetupArchive,BUILD_SWINGBEANS_JAR, , \ |
419 |
SRCS := $(JDK_OUTPUTDIR)/classes, \ |
|
420 |
SUFFIXES := BeanInfo.class .gif, \ |
|
421 |
INCLUDES := javax/swing sun/swing, \ |
|
422 |
EXCLUDES := javax/swing/plaf, \ |
|
423 |
EXTRA_FILES := javax/swing/SwingBeanInfoBase.class sun/swing/BeanInfoUtils.class, \ |
|
424 |
JAR := $(IMAGES_OUTPUTDIR)/lib/dt.jar, \ |
|
425 |
SKIP_METAINF := true)) |
|
12892 | 426 |
|
427 |
########################################################################################## |
|
428 |
||
13583 | 429 |
# Get the CLDRVERSION |
20549
815df0732142
8001933: Move Gensrc*.gmk and Gendata*.gmk into separate directories.
ihse
parents:
20547
diff
changeset
|
430 |
include gensrc/GensrcCLDR.gmk |
13583 | 431 |
|
14231 | 432 |
CLDRDATA_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/cldrdata.jar |
13583 | 433 |
|
20547 | 434 |
$(eval $(call SetupArchive,BUILD_CLDRDATA_JAR, , \ |
435 |
SRCS := $(JDK_OUTPUTDIR)/classes, \ |
|
436 |
SUFFIXES := .class, \ |
|
437 |
INCLUDES := sun/text/resources/cldr \ |
|
438 |
sun/util/cldr \ |
|
439 |
sun/util/resources/cldr, \ |
|
440 |
EXCLUDES := sun/util/cldr/CLDRLocaleProviderAdapter, \ |
|
441 |
JAR := $(CLDRDATA_JAR_DST), \ |
|
442 |
EXTRA_MANIFEST_ATTR := CLDR-Version: $(CLDRVERSION), \ |
|
443 |
SKIP_METAINF := true)) |
|
13583 | 444 |
|
445 |
########################################################################################## |
|
446 |
||
12892 | 447 |
TOOLS_JAR_INCLUDES := \ |
20547 | 448 |
com/sun/codemodel \ |
449 |
com/sun/istack/internal/tools \ |
|
450 |
com/sun/jarsigner \ |
|
451 |
com/sun/javadoc \ |
|
452 |
com/sun/jdi \ |
|
453 |
com/sun/source \ |
|
454 |
com/sun/tools/attach \ |
|
455 |
com/sun/tools/classfile \ |
|
456 |
com/sun/tools/corba \ |
|
457 |
com/sun/tools/doclets \ |
|
458 |
com/sun/tools/doclint \ |
|
459 |
com/sun/tools/example/debug/expr \ |
|
460 |
com/sun/tools/example/debug/tty \ |
|
461 |
com/sun/tools/extcheck \ |
|
462 |
com/sun/tools/hat \ |
|
463 |
com/sun/tools/internal/jxc \ |
|
464 |
com/sun/tools/internal/jxc/ap \ |
|
465 |
com/sun/tools/internal/ws \ |
|
466 |
com/sun/tools/internal/ws/wscompile/plugin/at_generated \ |
|
467 |
com/sun/tools/internal/xjc \ |
|
468 |
com/sun/tools/javac \ |
|
469 |
com/sun/tools/javadoc \ |
|
470 |
com/sun/tools/javah \ |
|
471 |
com/sun/tools/javap \ |
|
472 |
com/sun/tools/jdeps \ |
|
473 |
com/sun/tools/jdi \ |
|
474 |
com/sun/tools/script/shell \ |
|
475 |
com/sun/xml/internal/dtdparser \ |
|
476 |
com/sun/xml/internal/rngom \ |
|
477 |
com/sun/xml/internal/xsom \ |
|
478 |
org/relaxng/datatype \ |
|
479 |
sun/applet \ |
|
480 |
sun/jvmstat \ |
|
481 |
sun/rmi/rmic \ |
|
482 |
sun/security/tools/jarsigner \ |
|
483 |
sun/tools/asm \ |
|
484 |
sun/tools/attach \ |
|
485 |
sun/tools/jar \ |
|
486 |
sun/tools/java \ |
|
487 |
sun/tools/javac \ |
|
488 |
sun/tools/jcmd \ |
|
489 |
sun/tools/jinfo \ |
|
490 |
sun/tools/jmap \ |
|
491 |
sun/tools/jps \ |
|
492 |
sun/tools/jstack \ |
|
493 |
sun/tools/jstat \ |
|
494 |
sun/tools/jstatd \ |
|
495 |
sun/tools/native2ascii \ |
|
496 |
sun/tools/serialver \ |
|
497 |
sun/tools/tree \ |
|
498 |
sun/tools/util |
|
12892 | 499 |
|
14231 | 500 |
# The sjavac tools is not ready for public consumption. |
20547 | 501 |
TOOLS_JAR_EXCLUDES = com/sun/tools/sjavac |
14231 | 502 |
|
20547 | 503 |
$(eval $(call SetupArchive,BUILD_TOOLS_JAR, , \ |
504 |
SRCS := $(JDK_OUTPUTDIR)/classes, \ |
|
505 |
SUFFIXES := .class .prp .gif .properties .xml .css .xsd .js .html .txt .java \ |
|
506 |
Tool aliasmap options, \ |
|
507 |
INCLUDES := $(TOOLS_JAR_INCLUDES), \ |
|
508 |
EXCLUDES := $(TOOLS_JAR_EXCLUDES), \ |
|
509 |
EXTRA_FILES := META-INF/services/com.sun.jdi.connect.Connector \ |
|
510 |
META-INF/services/com.sun.jdi.connect.spi.TransportService \ |
|
511 |
META-INF/services/com.sun.tools.attach.spi.AttachProvider \ |
|
512 |
META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin \ |
|
513 |
META-INF/services/com.sun.tools.internal.xjc.Plugin, \ |
|
514 |
JAR := $(IMAGES_OUTPUTDIR)/lib/tools.jar, \ |
|
515 |
SKIP_METAINF := true, \ |
|
516 |
CHECK_COMPRESS_JAR := true)) |
|
12892 | 517 |
|
518 |
||
519 |
########################################################################################## |
|
520 |
||
13702 | 521 |
include javadoc/CORE_PKGS.gmk |
522 |
include javadoc/NON_CORE_PKGS.gmk |
|
12892 | 523 |
|
524 |
# The compiler should not issue a "Proprietary" warning when compiling |
|
525 |
# classes in the com.sun.java.swing.plaf packages, since we've always |
|
526 |
# allowed, and even advocated, extending them (see bug 6476749). |
|
527 |
# |
|
528 |
# This approach is NOT to be used as a general purpose way to avoid such |
|
529 |
# compiler warnings for non-core packages. The correct way is to document |
|
530 |
# the packages in NON_CORE_PKGS.gmk, and include them in the NON_CORE_PKGS |
|
531 |
# definition. |
|
532 |
# |
|
533 |
# Swing has taken this approach only as a temporary measure to avoid |
|
534 |
# the compiler warnings until we can properly document these packages. |
|
535 |
# This is covered under 6491853. |
|
20547 | 536 |
EXCLUDE_PROPWARN_PKGS = com.sun.java.swing.plaf.windows \ |
537 |
com.sun.java.swing.plaf.motif \ |
|
538 |
com.sun.java.swing.plaf.gtk |
|
12892 | 539 |
|
540 |
# |
|
541 |
# Include the exported private packages in ct.sym. |
|
542 |
# This is an interim solution until the ct.sym is replaced |
|
543 |
# with a new module system (being discussed for JDK 8). |
|
544 |
# |
|
16507 | 545 |
EXPORTED_PRIVATE_PKGS = com.oracle.net \ |
20547 | 546 |
com.oracle.nio |
12892 | 547 |
|
14231 | 548 |
$(IMAGES_OUTPUTDIR)/symbols/_the.symbols: $(IMAGES_OUTPUTDIR)/lib/rt.jar |
13702 | 549 |
$(RM) -r $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym |
12892 | 550 |
$(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
|
551 |
$(JAVA) $(NEW_JAVAC) \ |
14790
9d42784b1823
8004803: build-infra: Cannot use icedtea as boot for closed build.
erikj
parents:
14596
diff
changeset
|
552 |
-bootclasspath $(JDK_OUTPUTDIR)/classes \ |
12892 | 553 |
-XDprocess.packages -proc:only \ |
554 |
-processor com.sun.tools.javac.sym.CreateSymbols \ |
|
14231 | 555 |
-Acom.sun.tools.javac.sym.Jar=$(IMAGES_OUTPUTDIR)/lib/rt.jar \ |
12892 | 556 |
-Acom.sun.tools.javac.sym.Dest=$(IMAGES_OUTPUTDIR)/symbols/META-INF/sym/rt.jar \ |
15681 | 557 |
-Acom.sun.tools.javac.sym.Profiles=profile-rtjar-includes.txt \ |
12892 | 558 |
$(CORE_PKGS) $(NON_CORE_PKGS) $(EXCLUDE_PROPWARN_PKGS) $(EXPORTED_PRIVATE_PKGS) |
559 |
$(TOUCH) $@ |
|
560 |
||
20547 | 561 |
$(eval $(call MakeDir, $(IMAGES_OUTPUTDIR)/symbols)) |
562 |
$(eval $(call SetupArchive,BUILD_CT_SYM, $(IMAGES_OUTPUTDIR)/symbols/_the.symbols, \ |
|
563 |
SRCS := $(IMAGES_OUTPUTDIR)/symbols, \ |
|
564 |
INCLUDES := META-INF/sym, \ |
|
565 |
JAR := $(IMAGES_OUTPUTDIR)/lib/ct.sym, \ |
|
566 |
CHECK_COMPRESS_JAR := true)) |
|
12892 | 567 |
|
568 |
||
569 |
########################################################################################## |
|
570 |
||
571 |
SRC_ZIP_INCLUDES = \ |
|
20547 | 572 |
com/sun/corba \ |
573 |
com/sun/image/codec/jpeg \ |
|
574 |
com/sun/imageio \ |
|
575 |
com/sun/java_cup \ |
|
576 |
com/sun/javadoc \ |
|
577 |
com/sun/java/swing \ |
|
578 |
com/sun/jmx \ |
|
579 |
com/sun/naming \ |
|
580 |
com/sun/org/apache \ |
|
581 |
com/sun/security/auth \ |
|
582 |
com/sun/security/jgss \ |
|
583 |
com/sun/source \ |
|
584 |
java \ |
|
585 |
javax/accessibility \ |
|
586 |
javax/annotation \ |
|
587 |
javax/imageio \ |
|
588 |
javax/lang \ |
|
589 |
javax/management \ |
|
590 |
javax/naming \ |
|
591 |
javax/print \ |
|
592 |
javax/rmi \ |
|
593 |
javax/script \ |
|
594 |
javax/security \ |
|
595 |
javax/sound \ |
|
596 |
javax/sql \ |
|
597 |
javax/swing \ |
|
598 |
javax/tools \ |
|
599 |
javax/xml \ |
|
600 |
org/ietf \ |
|
601 |
org/omg \ |
|
602 |
org/w3c/dom \ |
|
603 |
org/xml/sax \ |
|
604 |
# |
|
12892 | 605 |
|
13702 | 606 |
SRC_ZIP_SRCS = $(JDK_TOPDIR)/src/share/classes $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes |
12892 | 607 |
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/gensrc |
608 |
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/impsrc |
|
609 |
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/gendocsrc_rmic |
|
610 |
ifndef OPENJDK |
|
611 |
SRC_ZIP_SRCS += $(JDK_TOPDIR)/src/closed/share/classes |
|
612 |
endif |
|
613 |
||
614 |
# Need to copy launcher src files into desired directory structure |
|
615 |
# before zipping the sources. |
|
616 |
LAUNCHER_SRC_FILES := $(wildcard $(JDK_TOPDIR)/src/share/bin/*) \ |
|
20547 | 617 |
$(wildcard $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/java_md*) |
618 |
LAUNCHER_ZIP_SRC := $(patsubst $(JDK_TOPDIR)/src/share/bin/%, $(IMAGES_OUTPUTDIR)/src/launcher/%, \ |
|
619 |
$(patsubst $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/%, $(IMAGES_OUTPUTDIR)/src/launcher/%, \ |
|
620 |
$(LAUNCHER_SRC_FILES))) |
|
12892 | 621 |
|
622 |
$(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
|
623 |
$(install-file) |
12892 | 624 |
|
13702 | 625 |
$(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
|
626 |
$(install-file) |
12892 | 627 |
|
628 |
$(IMAGES_OUTPUTDIR)/src.zip: $(LAUNCHER_ZIP_SRC) |
|
629 |
||
14231 | 630 |
# This dir needs to exist before macro is evaluated to avoid warning from find. |
20547 | 631 |
$(eval $(call MakeDir, $(IMAGES_OUTPUTDIR)/src)) |
632 |
$(eval $(call SetupZipArchive,BUILD_SRC_ZIP, \ |
|
633 |
SRC := $(SRC_ZIP_SRCS) $(IMAGES_OUTPUTDIR)/src, \ |
|
634 |
INCLUDES := $(SRC_ZIP_INCLUDES) launcher, \ |
|
635 |
EXCLUDES := javax/swing/beaninfo, \ |
|
636 |
SUFFIXES := .java .c .h, \ |
|
637 |
ZIP := $(IMAGES_OUTPUTDIR)/src.zip, \ |
|
638 |
EXTRA_DEPS := $(LAUNCHER_ZIP_SRC))) |
|
12892 | 639 |
|
640 |
########################################################################################## |
|
641 |
||
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
642 |
ifndef OPENJDK |
20547 | 643 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
644 |
|
20547 | 645 |
$(eval $(call SetupArchive,BUILD_JACCESS_JAR, , \ |
646 |
SRCS := $(JDK_OUTPUTDIR)/classes, \ |
|
647 |
INCLUDES := com/sun/java/accessibility/util, \ |
|
648 |
JAR := $(IMAGES_OUTPUTDIR)/lib/ext/jaccess.jar, \ |
|
649 |
SKIP_METAINF := true)) |
|
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
650 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
651 |
JARS += $(IMAGES_OUTPUTDIR)/lib/ext/jaccess.jar |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
652 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
653 |
ifeq ($(OPENJDK_TARGET_CPU_BITS), 32) |
20547 | 654 |
$(eval $(call SetupArchive,BUILD_ACCESSBRIDGE_32_JAR, , \ |
655 |
SRCS := $(JDK_OUTPUTDIR)/classes_ab/32bit, \ |
|
656 |
INCLUDES := com/sun/java/accessibility, \ |
|
657 |
JAR := $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-32.jar, \ |
|
658 |
SKIP_METAINF := true)) |
|
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
659 |
|
20547 | 660 |
$(eval $(call SetupArchive,BUILD_ACCESSBRIDGE_LEGACY_JAR, , \ |
661 |
SRCS := $(JDK_OUTPUTDIR)/classes_ab/legacy, \ |
|
662 |
INCLUDES := com/sun/java/accessibility, \ |
|
663 |
JAR := $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge.jar, \ |
|
664 |
SKIP_METAINF := true)) |
|
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
665 |
|
20547 | 666 |
JARS += $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-32.jar \ |
667 |
$(IMAGES_OUTPUTDIR)/lib/ext/access-bridge.jar |
|
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
668 |
else |
20547 | 669 |
$(eval $(call SetupArchive,BUILD_ACCESSBRIDGE_64_JAR, , \ |
670 |
SRCS := $(JDK_OUTPUTDIR)/classes_ab/64bit, \ |
|
671 |
INCLUDES := com/sun/java/accessibility, \ |
|
672 |
JAR := $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-64.jar, \ |
|
673 |
SKIP_METAINF := true)) |
|
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
674 |
|
20547 | 675 |
JARS += $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-64.jar |
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
676 |
endif |
20547 | 677 |
endif |
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
678 |
endif |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
679 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
680 |
########################################################################################## |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
681 |
|
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
682 |
# |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
683 |
# This is an empty jar (only contains manifest) and fits poorly into framework... |
20547 | 684 |
# create simple rule instead |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
685 |
# |
20547 | 686 |
$(IMAGES_OUTPUTDIR)/lib/management-agent.jar: $(JDK_TOPDIR)/src/share/classes/sun/management/manifest |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
687 |
$(JAR) cfm $@ $< |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
688 |
|
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
689 |
########################################################################################## |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
690 |
|
20547 | 691 |
$(IMAGES_OUTPUTDIR)/lib/ext/zipfs.jar: $(JDK_OUTPUTDIR)/demo/nio/zipfs/zipfs.jar |
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 |
|
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
694 |
########################################################################################## |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
695 |
|
20547 | 696 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
697 |
$(eval $(call SetupArchive,BUILD_JOBJC_JAR, , \ |
|
698 |
SRCS := $(JDK_OUTPUTDIR)/jobjc_classes, \ |
|
699 |
JAR := $(IMAGES_OUTPUTDIR)/lib/JObjC.jar, \ |
|
700 |
JARINDEX := true)) |
|
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
701 |
endif |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
702 |
|
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
703 |
# 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
|
704 |
# 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
|
705 |
# 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
|
706 |
$(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
|
707 |
$(install-file) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
708 |
|
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
709 |
########################################################################################## |
15131 | 710 |
# |
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
|
711 |
# 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
|
712 |
# |
20547 | 713 |
$(eval $(call SetupZipArchive,BUILD_SEC_BIN_ZIP, \ |
714 |
SRC := $(JDK_OUTPUTDIR), \ |
|
715 |
INCLUDES := classes/javax/net \ |
|
716 |
classes/javax/security/cert \ |
|
717 |
classes/com/sun/net/ssl \ |
|
718 |
classes/com/sun/security/cert \ |
|
719 |
classes/sun/net/www/protocol/https \ |
|
720 |
classes/sun/security/pkcs12 \ |
|
721 |
classes/sun/security/ssl \ |
|
722 |
classes/sun/security/krb5 \ |
|
723 |
classes/sun/security/krb5/internal \ |
|
724 |
classes/sun/security/krb5/internal/ccache \ |
|
725 |
classes/sun/security/krb5/internal/crypto \ |
|
726 |
classes/sun/security/krb5/internal/ktab \ |
|
727 |
classes/sun/security/krb5/internal/rcache \ |
|
728 |
classes/sun/security/krb5/internal/util, \ |
|
729 |
INCLUDE_FILES := classes/sun/security/jgss/spi/GSSContextSpi.class, \ |
|
730 |
EXCLUDES := classes/sun/security/krb5/internal/tools, \ |
|
731 |
ZIP := $(IMAGES_OUTPUTDIR)/sec-bin.zip)) |
|
15131 | 732 |
|
733 |
JARS += $(IMAGES_OUTPUTDIR)/sec-bin.zip |
|
734 |
||
735 |
########################################################################################## |
|
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
|
736 |
# |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
737 |
# 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
|
738 |
# |
20547 | 739 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
740 |
# sec-windows-bin.zip is used by builds where the corresponding sources are not available |
|
741 |
$(eval $(call SetupZipArchive,BUILD_SEC_WINDOWS_BIN_ZIP, \ |
|
742 |
SRC := $(JDK_OUTPUTDIR), \ |
|
743 |
INCLUDES := classes/sun/security/krb5/internal/tools, \ |
|
744 |
ZIP := $(IMAGES_OUTPUTDIR)/sec-windows-bin.zip)) |
|
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
|
745 |
|
20547 | 746 |
JARS += $(IMAGES_OUTPUTDIR)/sec-windows-bin.zip |
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
|
747 |
|
20547 | 748 |
# JGSS files contain the native Kerberos library |
749 |
ifeq ($(OPENJDK_TARGET_CPU), x86_64) |
|
750 |
JGSS_ZIP_NAME = jgss-windows-x64-bin.zip |
|
751 |
else |
|
752 |
JGSS_ZIP_NAME = jgss-windows-i586-bin.zip |
|
753 |
endif |
|
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
|
754 |
|
20547 | 755 |
$(eval $(call SetupZipArchive,BUILD_JGSS_BIN_ZIP, \ |
756 |
SRC := $(JDK_OUTPUTDIR), \ |
|
757 |
INCLUDE_FILES := bin/w2k_lsa_auth.dll \ |
|
758 |
bin/w2k_lsa_auth.map \ |
|
759 |
bin/w2k_lsa_auth.pdb, \ |
|
760 |
ZIP := $(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME))) |
|
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
|
761 |
|
20547 | 762 |
JARS += $(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME) |
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
|
763 |
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
|
764 |
|
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
765 |
########################################################################################## |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
766 |
|
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
767 |
# This rule copies all jars from jdk/lib/... to images/lib/... to avoid having to track |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
768 |
# which jars are where |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
769 |
$(IMAGES_OUTPUTDIR)/lib/%: $(JDK_OUTPUTDIR)/lib/% |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
770 |
$(install-file) |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
771 |
|
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
772 |
########################################################################################## |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
773 |
|
16029 | 774 |
# Import nashorn.jar from nashorn dist dir. |
775 |
$(IMAGES_OUTPUTDIR)/lib/ext/nashorn.jar: $(NASHORN_DIST)/nashorn.jar |
|
776 |
$(install-file) |
|
777 |
||
778 |
########################################################################################## |
|
779 |
||
13702 | 780 |
-include $(CUSTOM_MAKE_DIR)/CreateJars.gmk |
781 |
||
782 |
########################################################################################## |
|
783 |
||
12892 | 784 |
all: $(JARS) |
785 |
||
786 |
.PHONY: default all |