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