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