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