author | ihse |
Thu, 13 Feb 2014 00:01:07 +0100 | |
changeset 22963 | a28e6f0b511b |
parent 22342 | c83795c442b7 |
child 23347 | acb1d044a217 |
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 |
||
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 |
# |
|
21805 | 43 |
MAKEFILE = $(JDK_TOPDIR)/make/CreateJars.gmk |
15681 | 44 |
# |
45 |
# And similarly for the Profiles |
|
21805 | 46 |
PROFILE_MAKEFILES = $(JDK_TOPDIR)/make/Profiles.gmk $(JDK_TOPDIR)/make/profile-rtjar-includes.txt |
12892 | 47 |
|
21805 | 48 |
MAINMANIFEST := $(JDK_TOPDIR)/make/data/mainmanifest/manifest.mf |
49 |
BEANMANIFEST := $(JDK_TOPDIR)/make/data/swingbeaninfo/manifest.mf |
|
12892 | 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 |
|
21805 | 249 |
$(IMAGES_OUTPUTDIR)/lib/classlist: $(JDK_TOPDIR)/make/data/classlist/classlist.$(OPENJDK_TARGET_OS) \ |
20547 | 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 |
||
13164 | 301 |
RT_JAR_CREATE_OPTIONS := c0fm |
15681 | 302 |
RT_JAR_UPDATE_OPTIONS := u0f |
13164 | 303 |
ifeq ($(COMPRESS_JARS), true) |
20547 | 304 |
RT_JAR_CREATE_OPTIONS := cfm |
305 |
RT_JAR_UPDATE_OPTIONS := uf |
|
13164 | 306 |
endif |
307 |
||
15681 | 308 |
# This defines a target-specific variables to make the shell logic easier to see. |
309 |
# We need to find the Version.class file for the profile currently being built |
|
310 |
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/rt.jar: \ |
|
20547 | 311 |
CLASS_FILE = $(if $(PROFILE), $(strip $(foreach class, $(PROFILE_VERSION_CLASS_TARGETS), $(if $(findstring $(PROFILE), $(class)), $(class)))), NO_SUCH_FILE) |
15681 | 312 |
# This is the real target |
22046
b7163958d6d9
8029805: Remove LogManager addPropertyChangeListener and removePropertyChangeListener methods
alanb
parents:
21805
diff
changeset
|
313 |
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/rt.jar: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar.contents $(RT_JAR_MANIFEST_FILE) $(PROFILE_VERSION_CLASS_TARGETS) |
15681 | 314 |
$(ECHO) Creating rt.jar $(PROFILE) Compressed=$(COMPRESS_JARS) |
13702 | 315 |
$(MKDIR) -p $(@D) |
316 |
$(RM) $@ $@.tmp |
|
12892 | 317 |
$(CD) $(JDK_OUTPUTDIR)/classes && \ |
20547 | 318 |
$(JAR) $(RT_JAR_CREATE_OPTIONS) $@.tmp $(RT_JAR_MANIFEST_FILE) \ |
319 |
@$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar.contents && \ |
|
320 |
if [ -f $(CLASS_FILE) ]; then \ |
|
321 |
$(ECHO) Updating rt.jar $(PROFILE) && \ |
|
322 |
$(CD) $(patsubst %$(VERSION_CLASS_PATH), %, $(CLASS_FILE)) && \ |
|
323 |
$(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(VERSION_CLASS_PATH); \ |
|
324 |
fi |
|
13702 | 325 |
$(MV) $@.tmp $@ |
12892 | 326 |
|
15681 | 327 |
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/resources.jar: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents \ |
20547 | 328 |
$(RESOURCE_JAR_MANIFEST_FILE) |
12892 | 329 |
$(ECHO) Creating resources.jar |
13702 | 330 |
$(MKDIR) -p $(@D) |
331 |
$(RM) $@ $@.tmp |
|
12892 | 332 |
$(CD) $(JDK_OUTPUTDIR)/classes && \ |
20547 | 333 |
$(JAR) $(RT_JAR_CREATE_OPTIONS) $@.tmp $(RESOURCE_JAR_MANIFEST_FILE) \ |
334 |
@$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents |
|
13702 | 335 |
$(MV) $@.tmp $@ |
12892 | 336 |
|
337 |
########################################################################################## |
|
338 |
||
13164 | 339 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
20547 | 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 |
|
12892 | 348 |
endif |
349 |
||
20547 | 350 |
$(eval $(call SetupArchive,BUILD_CHARSETS_JAR, , \ |
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 |
JAR := $(IMAGES_OUTPUTDIR)/lib/charsets.jar, \ |
|
357 |
SKIP_METAINF := true, \ |
|
358 |
CHECK_COMPRESS_JAR := true)) |
|
12892 | 359 |
|
360 |
########################################################################################## |
|
361 |
||
14231 | 362 |
ifndef OPENJDK |
20547 | 363 |
ifeq ($(ENABLE_JFR), true) |
364 |
$(eval $(call SetupArchive,BUILD_JFR_JAR, , \ |
|
365 |
SRCS := $(JDK_OUTPUTDIR)/classes, \ |
|
366 |
SUFFIXES := .class .jfc .xsd, \ |
|
367 |
INCLUDES := com/oracle/jrockit/jfr \ |
|
368 |
oracle/jrockit/jfr \ |
|
369 |
jdk/jfr, \ |
|
370 |
JAR := $(IMAGES_OUTPUTDIR)/lib/jfr.jar, \ |
|
371 |
SKIP_METAINF := true, \ |
|
372 |
MANIFEST := $(MAINMANIFEST), \ |
|
373 |
CHECK_COMPRESS_JAR := true)) |
|
12892 | 374 |
|
20547 | 375 |
endif |
12892 | 376 |
endif |
377 |
||
378 |
########################################################################################## |
|
379 |
||
20547 | 380 |
$(eval $(call SetupArchive,BUILD_JSSE_JAR, , \ |
381 |
SRCS := $(JDK_OUTPUTDIR)/classes, \ |
|
382 |
INCLUDES := sun/security/provider/Sun.class \ |
|
383 |
sun/security/rsa/SunRsaSign.class \ |
|
384 |
sun/security/ssl \ |
|
385 |
com/sun/net/ssl/internal/ssl, \ |
|
386 |
JAR := $(IMAGES_OUTPUTDIR)/lib/jsse.jar, \ |
|
387 |
SKIP_METAINF := true, \ |
|
388 |
MANIFEST := $(MAINMANIFEST), \ |
|
389 |
CHECK_COMPRESS_JAR := true)) |
|
12892 | 390 |
|
391 |
########################################################################################## |
|
392 |
||
20547 | 393 |
$(eval $(call SetupArchive,BUILD_SWINGBEANS_JAR, , \ |
394 |
SRCS := $(JDK_OUTPUTDIR)/classes, \ |
|
395 |
SUFFIXES := BeanInfo.class .gif, \ |
|
396 |
INCLUDES := javax/swing sun/swing, \ |
|
397 |
EXCLUDES := javax/swing/plaf, \ |
|
398 |
EXTRA_FILES := javax/swing/SwingBeanInfoBase.class sun/swing/BeanInfoUtils.class, \ |
|
399 |
JAR := $(IMAGES_OUTPUTDIR)/lib/dt.jar, \ |
|
400 |
SKIP_METAINF := true)) |
|
12892 | 401 |
|
402 |
########################################################################################## |
|
403 |
||
13583 | 404 |
# Get the CLDRVERSION |
20549
815df0732142
8001933: Move Gensrc*.gmk and Gendata*.gmk into separate directories.
ihse
parents:
20547
diff
changeset
|
405 |
include gensrc/GensrcCLDR.gmk |
13583 | 406 |
|
14231 | 407 |
CLDRDATA_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/cldrdata.jar |
13583 | 408 |
|
20547 | 409 |
$(eval $(call SetupArchive,BUILD_CLDRDATA_JAR, , \ |
410 |
SRCS := $(JDK_OUTPUTDIR)/classes, \ |
|
411 |
SUFFIXES := .class, \ |
|
412 |
INCLUDES := sun/text/resources/cldr \ |
|
413 |
sun/util/cldr \ |
|
414 |
sun/util/resources/cldr, \ |
|
415 |
EXCLUDES := sun/util/cldr/CLDRLocaleProviderAdapter, \ |
|
416 |
JAR := $(CLDRDATA_JAR_DST), \ |
|
417 |
EXTRA_MANIFEST_ATTR := CLDR-Version: $(CLDRVERSION), \ |
|
418 |
SKIP_METAINF := true)) |
|
13583 | 419 |
|
420 |
########################################################################################## |
|
421 |
||
12892 | 422 |
TOOLS_JAR_INCLUDES := \ |
20547 | 423 |
com/sun/codemodel \ |
424 |
com/sun/istack/internal/tools \ |
|
425 |
com/sun/jarsigner \ |
|
426 |
com/sun/javadoc \ |
|
427 |
com/sun/jdi \ |
|
428 |
com/sun/source \ |
|
429 |
com/sun/tools/attach \ |
|
430 |
com/sun/tools/classfile \ |
|
431 |
com/sun/tools/corba \ |
|
432 |
com/sun/tools/doclets \ |
|
433 |
com/sun/tools/doclint \ |
|
434 |
com/sun/tools/example/debug/expr \ |
|
435 |
com/sun/tools/example/debug/tty \ |
|
436 |
com/sun/tools/extcheck \ |
|
437 |
com/sun/tools/hat \ |
|
438 |
com/sun/tools/internal/jxc \ |
|
439 |
com/sun/tools/internal/jxc/ap \ |
|
440 |
com/sun/tools/internal/ws \ |
|
441 |
com/sun/tools/internal/ws/wscompile/plugin/at_generated \ |
|
442 |
com/sun/tools/internal/xjc \ |
|
443 |
com/sun/tools/javac \ |
|
444 |
com/sun/tools/javadoc \ |
|
445 |
com/sun/tools/javah \ |
|
446 |
com/sun/tools/javap \ |
|
447 |
com/sun/tools/jdeps \ |
|
448 |
com/sun/tools/jdi \ |
|
449 |
com/sun/tools/script/shell \ |
|
450 |
com/sun/xml/internal/dtdparser \ |
|
451 |
com/sun/xml/internal/rngom \ |
|
452 |
com/sun/xml/internal/xsom \ |
|
453 |
org/relaxng/datatype \ |
|
454 |
sun/applet \ |
|
455 |
sun/jvmstat \ |
|
456 |
sun/rmi/rmic \ |
|
457 |
sun/security/tools/jarsigner \ |
|
458 |
sun/tools/asm \ |
|
459 |
sun/tools/attach \ |
|
460 |
sun/tools/jar \ |
|
461 |
sun/tools/java \ |
|
462 |
sun/tools/javac \ |
|
463 |
sun/tools/jcmd \ |
|
464 |
sun/tools/jinfo \ |
|
465 |
sun/tools/jmap \ |
|
466 |
sun/tools/jps \ |
|
467 |
sun/tools/jstack \ |
|
468 |
sun/tools/jstat \ |
|
469 |
sun/tools/jstatd \ |
|
470 |
sun/tools/native2ascii \ |
|
471 |
sun/tools/serialver \ |
|
472 |
sun/tools/tree \ |
|
473 |
sun/tools/util |
|
12892 | 474 |
|
14231 | 475 |
# The sjavac tools is not ready for public consumption. |
20547 | 476 |
TOOLS_JAR_EXCLUDES = com/sun/tools/sjavac |
14231 | 477 |
|
20547 | 478 |
$(eval $(call SetupArchive,BUILD_TOOLS_JAR, , \ |
479 |
SRCS := $(JDK_OUTPUTDIR)/classes, \ |
|
480 |
SUFFIXES := .class .prp .gif .properties .xml .css .xsd .js .html .txt .java \ |
|
481 |
Tool aliasmap options, \ |
|
482 |
INCLUDES := $(TOOLS_JAR_INCLUDES), \ |
|
483 |
EXCLUDES := $(TOOLS_JAR_EXCLUDES), \ |
|
484 |
EXTRA_FILES := META-INF/services/com.sun.jdi.connect.Connector \ |
|
485 |
META-INF/services/com.sun.jdi.connect.spi.TransportService \ |
|
486 |
META-INF/services/com.sun.tools.attach.spi.AttachProvider \ |
|
487 |
META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin \ |
|
488 |
META-INF/services/com.sun.tools.internal.xjc.Plugin, \ |
|
489 |
JAR := $(IMAGES_OUTPUTDIR)/lib/tools.jar, \ |
|
490 |
SKIP_METAINF := true, \ |
|
491 |
CHECK_COMPRESS_JAR := true)) |
|
12892 | 492 |
|
493 |
||
494 |
########################################################################################## |
|
495 |
||
21805 | 496 |
include CORE_PKGS.gmk |
497 |
include NON_CORE_PKGS.gmk |
|
12892 | 498 |
|
499 |
# The compiler should not issue a "Proprietary" warning when compiling |
|
500 |
# classes in the com.sun.java.swing.plaf packages, since we've always |
|
501 |
# allowed, and even advocated, extending them (see bug 6476749). |
|
502 |
# |
|
503 |
# This approach is NOT to be used as a general purpose way to avoid such |
|
504 |
# compiler warnings for non-core packages. The correct way is to document |
|
505 |
# the packages in NON_CORE_PKGS.gmk, and include them in the NON_CORE_PKGS |
|
506 |
# definition. |
|
507 |
# |
|
508 |
# Swing has taken this approach only as a temporary measure to avoid |
|
509 |
# the compiler warnings until we can properly document these packages. |
|
510 |
# This is covered under 6491853. |
|
20547 | 511 |
EXCLUDE_PROPWARN_PKGS = com.sun.java.swing.plaf.windows \ |
512 |
com.sun.java.swing.plaf.motif \ |
|
513 |
com.sun.java.swing.plaf.gtk |
|
12892 | 514 |
|
515 |
# |
|
516 |
# Include the exported private packages in ct.sym. |
|
517 |
# This is an interim solution until the ct.sym is replaced |
|
518 |
# with a new module system (being discussed for JDK 8). |
|
519 |
# |
|
16507 | 520 |
EXPORTED_PRIVATE_PKGS = com.oracle.net \ |
20547 | 521 |
com.oracle.nio |
12892 | 522 |
|
14231 | 523 |
$(IMAGES_OUTPUTDIR)/symbols/_the.symbols: $(IMAGES_OUTPUTDIR)/lib/rt.jar |
13702 | 524 |
$(RM) -r $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym |
12892 | 525 |
$(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
|
526 |
$(JAVA) $(NEW_JAVAC) \ |
14790
9d42784b1823
8004803: build-infra: Cannot use icedtea as boot for closed build.
erikj
parents:
14596
diff
changeset
|
527 |
-bootclasspath $(JDK_OUTPUTDIR)/classes \ |
12892 | 528 |
-XDprocess.packages -proc:only \ |
529 |
-processor com.sun.tools.javac.sym.CreateSymbols \ |
|
14231 | 530 |
-Acom.sun.tools.javac.sym.Jar=$(IMAGES_OUTPUTDIR)/lib/rt.jar \ |
12892 | 531 |
-Acom.sun.tools.javac.sym.Dest=$(IMAGES_OUTPUTDIR)/symbols/META-INF/sym/rt.jar \ |
15681 | 532 |
-Acom.sun.tools.javac.sym.Profiles=profile-rtjar-includes.txt \ |
12892 | 533 |
$(CORE_PKGS) $(NON_CORE_PKGS) $(EXCLUDE_PROPWARN_PKGS) $(EXPORTED_PRIVATE_PKGS) |
534 |
$(TOUCH) $@ |
|
535 |
||
20547 | 536 |
$(eval $(call MakeDir, $(IMAGES_OUTPUTDIR)/symbols)) |
537 |
$(eval $(call SetupArchive,BUILD_CT_SYM, $(IMAGES_OUTPUTDIR)/symbols/_the.symbols, \ |
|
538 |
SRCS := $(IMAGES_OUTPUTDIR)/symbols, \ |
|
539 |
INCLUDES := META-INF/sym, \ |
|
540 |
JAR := $(IMAGES_OUTPUTDIR)/lib/ct.sym, \ |
|
541 |
CHECK_COMPRESS_JAR := true)) |
|
12892 | 542 |
|
543 |
||
544 |
########################################################################################## |
|
545 |
||
546 |
SRC_ZIP_INCLUDES = \ |
|
20547 | 547 |
com/sun/corba \ |
548 |
com/sun/image/codec/jpeg \ |
|
549 |
com/sun/imageio \ |
|
550 |
com/sun/java_cup \ |
|
551 |
com/sun/javadoc \ |
|
552 |
com/sun/java/swing \ |
|
553 |
com/sun/jmx \ |
|
554 |
com/sun/naming \ |
|
555 |
com/sun/org/apache \ |
|
556 |
com/sun/security/auth \ |
|
557 |
com/sun/security/jgss \ |
|
558 |
com/sun/source \ |
|
559 |
java \ |
|
560 |
javax/accessibility \ |
|
561 |
javax/annotation \ |
|
562 |
javax/imageio \ |
|
563 |
javax/lang \ |
|
564 |
javax/management \ |
|
565 |
javax/naming \ |
|
566 |
javax/print \ |
|
567 |
javax/rmi \ |
|
568 |
javax/script \ |
|
569 |
javax/security \ |
|
570 |
javax/sound \ |
|
571 |
javax/sql \ |
|
572 |
javax/swing \ |
|
573 |
javax/tools \ |
|
574 |
javax/xml \ |
|
575 |
org/ietf \ |
|
576 |
org/omg \ |
|
577 |
org/w3c/dom \ |
|
578 |
org/xml/sax \ |
|
579 |
# |
|
12892 | 580 |
|
13702 | 581 |
SRC_ZIP_SRCS = $(JDK_TOPDIR)/src/share/classes $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes |
12892 | 582 |
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/gensrc |
583 |
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/impsrc |
|
584 |
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/gendocsrc_rmic |
|
585 |
ifndef OPENJDK |
|
586 |
SRC_ZIP_SRCS += $(JDK_TOPDIR)/src/closed/share/classes |
|
587 |
endif |
|
588 |
||
589 |
# Need to copy launcher src files into desired directory structure |
|
590 |
# before zipping the sources. |
|
591 |
LAUNCHER_SRC_FILES := $(wildcard $(JDK_TOPDIR)/src/share/bin/*) \ |
|
20547 | 592 |
$(wildcard $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/java_md*) |
593 |
LAUNCHER_ZIP_SRC := $(patsubst $(JDK_TOPDIR)/src/share/bin/%, $(IMAGES_OUTPUTDIR)/src/launcher/%, \ |
|
594 |
$(patsubst $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/%, $(IMAGES_OUTPUTDIR)/src/launcher/%, \ |
|
595 |
$(LAUNCHER_SRC_FILES))) |
|
12892 | 596 |
|
597 |
$(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
|
598 |
$(install-file) |
12892 | 599 |
|
13702 | 600 |
$(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
|
601 |
$(install-file) |
12892 | 602 |
|
603 |
$(IMAGES_OUTPUTDIR)/src.zip: $(LAUNCHER_ZIP_SRC) |
|
604 |
||
14231 | 605 |
# This dir needs to exist before macro is evaluated to avoid warning from find. |
20547 | 606 |
$(eval $(call MakeDir, $(IMAGES_OUTPUTDIR)/src)) |
607 |
$(eval $(call SetupZipArchive,BUILD_SRC_ZIP, \ |
|
608 |
SRC := $(SRC_ZIP_SRCS) $(IMAGES_OUTPUTDIR)/src, \ |
|
609 |
INCLUDES := $(SRC_ZIP_INCLUDES) launcher, \ |
|
610 |
EXCLUDES := javax/swing/beaninfo, \ |
|
611 |
SUFFIXES := .java .c .h, \ |
|
612 |
ZIP := $(IMAGES_OUTPUTDIR)/src.zip, \ |
|
613 |
EXTRA_DEPS := $(LAUNCHER_ZIP_SRC))) |
|
12892 | 614 |
|
615 |
########################################################################################## |
|
616 |
||
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
617 |
ifndef OPENJDK |
20547 | 618 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
619 |
|
20547 | 620 |
$(eval $(call SetupArchive,BUILD_JACCESS_JAR, , \ |
621 |
SRCS := $(JDK_OUTPUTDIR)/classes, \ |
|
622 |
INCLUDES := com/sun/java/accessibility/util, \ |
|
623 |
JAR := $(IMAGES_OUTPUTDIR)/lib/ext/jaccess.jar, \ |
|
624 |
SKIP_METAINF := true)) |
|
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
625 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
626 |
JARS += $(IMAGES_OUTPUTDIR)/lib/ext/jaccess.jar |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
627 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
628 |
ifeq ($(OPENJDK_TARGET_CPU_BITS), 32) |
20547 | 629 |
$(eval $(call SetupArchive,BUILD_ACCESSBRIDGE_32_JAR, , \ |
630 |
SRCS := $(JDK_OUTPUTDIR)/classes_ab/32bit, \ |
|
631 |
INCLUDES := com/sun/java/accessibility, \ |
|
632 |
JAR := $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-32.jar, \ |
|
633 |
SKIP_METAINF := true)) |
|
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
634 |
|
20547 | 635 |
$(eval $(call SetupArchive,BUILD_ACCESSBRIDGE_LEGACY_JAR, , \ |
636 |
SRCS := $(JDK_OUTPUTDIR)/classes_ab/legacy, \ |
|
637 |
INCLUDES := com/sun/java/accessibility, \ |
|
638 |
JAR := $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge.jar, \ |
|
639 |
SKIP_METAINF := true)) |
|
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
640 |
|
20547 | 641 |
JARS += $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-32.jar \ |
642 |
$(IMAGES_OUTPUTDIR)/lib/ext/access-bridge.jar |
|
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
643 |
else |
20547 | 644 |
$(eval $(call SetupArchive,BUILD_ACCESSBRIDGE_64_JAR, , \ |
645 |
SRCS := $(JDK_OUTPUTDIR)/classes_ab/64bit, \ |
|
646 |
INCLUDES := com/sun/java/accessibility, \ |
|
647 |
JAR := $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-64.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-64.jar |
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
651 |
endif |
20547 | 652 |
endif |
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
653 |
endif |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
654 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
655 |
########################################################################################## |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14996
diff
changeset
|
656 |
|
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
657 |
# |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
658 |
# This is an empty jar (only contains manifest) and fits poorly into framework... |
20547 | 659 |
# 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
|
660 |
# |
20547 | 661 |
$(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
|
662 |
$(JAR) cfm $@ $< |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
663 |
|
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
664 |
########################################################################################## |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
665 |
|
20547 | 666 |
$(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
|
667 |
$(install-file) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
668 |
|
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
669 |
########################################################################################## |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
670 |
|
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
671 |
# 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
|
672 |
# 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
|
673 |
# 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
|
674 |
$(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
|
675 |
$(install-file) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
676 |
|
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
677 |
########################################################################################## |
15131 | 678 |
# |
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
|
679 |
# 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
|
680 |
# |
20547 | 681 |
$(eval $(call SetupZipArchive,BUILD_SEC_BIN_ZIP, \ |
682 |
SRC := $(JDK_OUTPUTDIR), \ |
|
683 |
INCLUDES := classes/javax/net \ |
|
684 |
classes/javax/security/cert \ |
|
685 |
classes/com/sun/net/ssl \ |
|
686 |
classes/com/sun/security/cert \ |
|
687 |
classes/sun/net/www/protocol/https \ |
|
688 |
classes/sun/security/pkcs12 \ |
|
689 |
classes/sun/security/ssl \ |
|
690 |
classes/sun/security/krb5 \ |
|
691 |
classes/sun/security/krb5/internal \ |
|
692 |
classes/sun/security/krb5/internal/ccache \ |
|
693 |
classes/sun/security/krb5/internal/crypto \ |
|
694 |
classes/sun/security/krb5/internal/ktab \ |
|
695 |
classes/sun/security/krb5/internal/rcache \ |
|
696 |
classes/sun/security/krb5/internal/util, \ |
|
697 |
INCLUDE_FILES := classes/sun/security/jgss/spi/GSSContextSpi.class, \ |
|
698 |
EXCLUDES := classes/sun/security/krb5/internal/tools, \ |
|
699 |
ZIP := $(IMAGES_OUTPUTDIR)/sec-bin.zip)) |
|
15131 | 700 |
|
701 |
JARS += $(IMAGES_OUTPUTDIR)/sec-bin.zip |
|
702 |
||
703 |
########################################################################################## |
|
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
|
704 |
# |
81c49c63a316
8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents:
15131
diff
changeset
|
705 |
# 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
|
706 |
# |
20547 | 707 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
708 |
# sec-windows-bin.zip is used by builds where the corresponding sources are not available |
|
709 |
$(eval $(call SetupZipArchive,BUILD_SEC_WINDOWS_BIN_ZIP, \ |
|
710 |
SRC := $(JDK_OUTPUTDIR), \ |
|
711 |
INCLUDES := classes/sun/security/krb5/internal/tools, \ |
|
712 |
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
|
713 |
|
20547 | 714 |
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
|
715 |
|
20547 | 716 |
# JGSS files contain the native Kerberos library |
717 |
ifeq ($(OPENJDK_TARGET_CPU), x86_64) |
|
718 |
JGSS_ZIP_NAME = jgss-windows-x64-bin.zip |
|
719 |
else |
|
720 |
JGSS_ZIP_NAME = jgss-windows-i586-bin.zip |
|
721 |
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
|
722 |
|
20547 | 723 |
$(eval $(call SetupZipArchive,BUILD_JGSS_BIN_ZIP, \ |
724 |
SRC := $(JDK_OUTPUTDIR), \ |
|
725 |
INCLUDE_FILES := bin/w2k_lsa_auth.dll \ |
|
726 |
bin/w2k_lsa_auth.map \ |
|
727 |
bin/w2k_lsa_auth.pdb, \ |
|
728 |
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
|
729 |
|
20547 | 730 |
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
|
731 |
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
|
732 |
|
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 |
########################################################################################## |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
734 |
|
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
735 |
# 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
|
736 |
# which jars are where |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
737 |
$(IMAGES_OUTPUTDIR)/lib/%: $(JDK_OUTPUTDIR)/lib/% |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
738 |
$(install-file) |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
739 |
|
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
740 |
########################################################################################## |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
741 |
|
16029 | 742 |
# Import nashorn.jar from nashorn dist dir. |
743 |
$(IMAGES_OUTPUTDIR)/lib/ext/nashorn.jar: $(NASHORN_DIST)/nashorn.jar |
|
744 |
$(install-file) |
|
745 |
||
746 |
########################################################################################## |
|
747 |
||
22963
a28e6f0b511b
8034191: Move relevant parts of build system to new closed repo
ihse
parents:
22342
diff
changeset
|
748 |
# 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
|
749 |
$(eval $(call IncludeCustomExtension, jdk, CreateJars.gmk)) |
13702 | 750 |
|
751 |
########################################################################################## |
|
752 |
||
12892 | 753 |
all: $(JARS) |
754 |
||
755 |
.PHONY: default all |