author | prr |
Thu, 13 Jan 2011 10:36:51 -0800 | |
changeset 7933 | afae9398b405 |
parent 7668 | d4a77089c587 |
child 8583 | 15dea0fdc2ea |
permissions | -rw-r--r-- |
2 | 1 |
# |
7668 | 2 |
# Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. |
2 | 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 |
|
5506 | 7 |
# published by the Free Software Foundation. Oracle designates this |
2 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
2 | 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 |
# |
|
5506 | 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. |
|
2 | 24 |
# |
25 |
||
26 |
BUILDDIR = ../.. |
|
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2472
diff
changeset
|
27 |
MODULE = awt |
2 | 28 |
PACKAGE = sun.awt.X11 |
29 |
LIBRARY = mawt |
|
30 |
LIBRARY_OUTPUT = xawt |
|
31 |
LIB_LOCATION = $(LIBDIR)/$(LIBARCH)/xawt |
|
32 |
PRODUCT = sun |
|
33 |
||
34 |
include $(BUILDDIR)/common/Defs.gmk |
|
35 |
||
36 |
GEN_DIR=$(GENSRCDIR)/sun/awt/X11 |
|
37 |
||
38 |
CLASSES_INIT += $(TEMPDIR)/.gen.wrappers $(TEMPDIR)/.gen_icons touch.wrappers |
|
39 |
||
40 |
.PHONY: generated.clean |
|
41 |
||
42 |
# |
|
43 |
# Files |
|
44 |
# |
|
45 |
include FILES_c_unix.gmk |
|
46 |
include FILES_export_unix.gmk |
|
47 |
AUTO_FILES_JAVA_DIRS = sun/awt/X11 |
|
48 |
AUTO_JAVA_PRUNE = WrapperGenerator.java |
|
49 |
||
50 |
LDFLAGS += -L$(OPENWIN_LIB) |
|
51 |
||
5579
1a5e995a710b
6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents:
4665
diff
changeset
|
52 |
# For Xrender extension. |
1a5e995a710b
6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents:
4665
diff
changeset
|
53 |
ifeq ($(PLATFORM), solaris) |
1a5e995a710b
6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents:
4665
diff
changeset
|
54 |
LDFLAGS += -L/usr/openwin/sfw/lib$(ISA_DIR) -R/usr/openwin/sfw/lib$(ISA_DIR) |
1a5e995a710b
6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents:
4665
diff
changeset
|
55 |
endif |
1a5e995a710b
6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents:
4665
diff
changeset
|
56 |
|
2 | 57 |
ifeq ($(PLATFORM), linux) |
58 |
LDFLAGS += -lpthread |
|
59 |
dummy := $(shell $(MKDIR) -p $(LIB_LOCATION)) |
|
60 |
endif |
|
61 |
||
62 |
# Since this library will be living in a subdirectory below the other libraries |
|
63 |
# we need to add an extra runpath so that libraries in the upper directory |
|
64 |
# are found at runtime. |
|
65 |
LD_RUNPATH_EXTRAS = .. |
|
66 |
||
67 |
# |
|
68 |
# Rules. |
|
69 |
# |
|
70 |
include $(BUILDDIR)/common/Mapfile-vers.gmk |
|
71 |
include $(BUILDDIR)/common/Library.gmk |
|
72 |
||
73 |
# |
|
74 |
# Add to the ambient vpath to pick up files in subdirectories |
|
75 |
# |
|
76 |
vpath %.c $(SHARE_SRC)/native/sunawt/alphacomposite |
|
77 |
vpath %.c $(PLATFORM_SRC)/native/sun/xawt |
|
78 |
vpath %.c $(PLATFORM_SRC)/native/sun/awt |
|
79 |
vpath %.c $(SHARE_SRC)/native/sun/awt/debug |
|
80 |
vpath %.c $(SHARE_SRC)/native/sun/awt/image |
|
81 |
vpath %.c $(SHARE_SRC)/native/sun/awt/image/gif |
|
82 |
vpath %.c $(SHARE_SRC)/native/sun/awt/image/cvutils |
|
83 |
vpath %.c $(SHARE_SRC)/native/sun/awt/shell |
|
84 |
vpath %.c $(SHARE_SRC)/native/sun/java2d |
|
85 |
vpath %.c $(SHARE_SRC)/native/sun/java2d/loops |
|
86 |
vpath %.c $(SHARE_SRC)/native/sun/java2d/pipe |
|
87 |
vpath %.c $(SHARE_SRC)/native/sun/awt/medialib |
|
2472
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
133
diff
changeset
|
88 |
vpath %.c $(SHARE_SRC)/native/sun/awt/utility |
2 | 89 |
vpath %.cpp $(SHARE_SRC)/native/sun/image |
90 |
vpath %.c $(SHARE_SRC)/native/sun/font |
|
91 |
vpath %.c $(PLATFORM_SRC)/native/sun/awt/robot_child |
|
92 |
vpath %.c $(SHARE_SRC)/native/sun/java2d/opengl |
|
93 |
vpath %.c $(PLATFORM_SRC)/native/sun/java2d/opengl |
|
94 |
vpath %.c $(PLATFORM_SRC)/native/sun/java2d/x11 |
|
95 |
||
5579
1a5e995a710b
6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents:
4665
diff
changeset
|
96 |
OTHER_LDLIBS = $(LIBM) -lawt -lXext -lX11 -lXrender -ldl \ |
2 | 97 |
$(LDFLAGS_COMMON) $(AWT_RUNPATH) $(OTHER_LDFLAGS) -lXtst -lXi |
98 |
||
99 |
ifeq ($(PLATFORM), solaris) |
|
100 |
CPPFLAGS += -DFUNCPROTO=15 |
|
101 |
dummy := $(shell $(MKDIR) -p $(LIB_LOCATION)) |
|
102 |
endif |
|
103 |
||
104 |
CPPFLAGS += -I$(CUPS_HEADERS_PATH) |
|
105 |
||
106 |
CPPFLAGS += -DXAWT -DXAWT_HACK \ |
|
107 |
-I$(TEMPDIR)/../../sun.awt/awt/CClassHeaders \ |
|
108 |
-I$(PLATFORM_SRC)/native/sun/awt \ |
|
109 |
-I$(PLATFORM_SRC)/native/sun/xawt \ |
|
110 |
-I$(PLATFORM_SRC)/native/sun/jdga \ |
|
111 |
-I$(SHARE_SRC)/native/sun/awt/debug \ |
|
112 |
-I$(SHARE_SRC)/native/sun/awt/image/cvutils \ |
|
113 |
-I$(SHARE_SRC)/native/sun/java2d \ |
|
114 |
-I$(SHARE_SRC)/native/sun/java2d/loops \ |
|
115 |
-I$(SHARE_SRC)/native/sun/awt/image/cvutils \ |
|
116 |
-I$(SHARE_SRC)/native/sun/awt/image \ |
|
117 |
-I$(SHARE_SRC)/native/sun/font \ |
|
118 |
-I$(PLATFORM_SRC)/native/sun/java2d \ |
|
119 |
-I$(SHARE_SRC)/native/sun/java2d/pipe \ |
|
120 |
-I$(SHARE_SRC)/native/sun/java2d/opengl \ |
|
121 |
-I$(PLATFORM_SRC)/native/sun/java2d/opengl \ |
|
122 |
-I$(PLATFORM_SRC)/native/sun/java2d/x11 \ |
|
123 |
-I$(SHARE_SRC)/native/sun/dc/path \ |
|
124 |
-I$(SHARE_SRC)/native/sun/dc/doe \ |
|
125 |
-I$(SHARE_SRC)/native/sun/awt/alphacomposite \ |
|
126 |
-I$(SHARE_SRC)/native/sun/awt/medialib \ |
|
127 |
-I$(PLATFORM_SRC)/native/sun/awt/medialib \ |
|
128 |
-I$(PLATFORM_SRC)/native/sun/font \ |
|
129 |
-I$(SHARE_SRC)/native/sun/awt \ |
|
5579
1a5e995a710b
6307603: [X11] Use RENDER extension for complex operations done in software
ceisserer
parents:
4665
diff
changeset
|
130 |
-I$(PLATFORM_SRC)/native/sun/awt |
2 | 131 |
|
132 |
ifeq ($(PLATFORM), linux) |
|
133 |
# Allows for builds on Debian GNU Linux, X11 is in a different place |
|
134 |
CPPFLAGS += -I/usr/X11R6/include/X11/extensions \ |
|
135 |
-I/usr/include/X11/extensions \ |
|
136 |
-I$(OPENWIN_HOME)/include |
|
137 |
endif |
|
138 |
||
7933
afae9398b405
7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents:
7668
diff
changeset
|
139 |
# We have some odd logic here because some Solaris 10 updates |
afae9398b405
7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents:
7668
diff
changeset
|
140 |
# have a render.h file that suggests gradients are supported, but |
afae9398b405
7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents:
7668
diff
changeset
|
141 |
# the Xrender.h doesn't have the corresponding type definitions. |
afae9398b405
7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents:
7668
diff
changeset
|
142 |
# Earlier updates have neither. We'd like to know if there's a mismatch. |
afae9398b405
7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents:
7668
diff
changeset
|
143 |
# Whilst in the C preprocessor we can tell if the render.h define's are set |
afae9398b405
7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents:
7668
diff
changeset
|
144 |
# we can't tell anything about C declarations. |
afae9398b405
7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents:
7668
diff
changeset
|
145 |
# A grep of Xrender.h is the only way to know this. If they are absent |
afae9398b405
7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents:
7668
diff
changeset
|
146 |
# we will set a flag indicating this mismatch and the JDK source file |
afae9398b405
7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents:
7668
diff
changeset
|
147 |
# will interpret it to resolve the problem. |
2 | 148 |
ifeq ($(PLATFORM), solaris) |
149 |
CPPFLAGS += -I$(OPENWIN_HOME)/include/X11/extensions |
|
7933
afae9398b405
7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents:
7668
diff
changeset
|
150 |
OS_VERSION := $(shell uname -r) |
afae9398b405
7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents:
7668
diff
changeset
|
151 |
XRENDER_H := $(OPENWIN_HOME)/share/include/X11/extensions/Xrender.h |
afae9398b405
7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents:
7668
diff
changeset
|
152 |
ifeq ($(OS_VERSION),5.10) |
afae9398b405
7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents:
7668
diff
changeset
|
153 |
LINEARGRADIENT_CNT := $(shell $(EGREP) -c XLinearGradient $(XRENDER_H)) |
afae9398b405
7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents:
7668
diff
changeset
|
154 |
ifeq ($(LINEARGRADIENT_CNT),0) |
afae9398b405
7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents:
7668
diff
changeset
|
155 |
CFLAGS+= -DSOLARIS10_NO_XRENDER_STRUCTS |
afae9398b405
7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents:
7668
diff
changeset
|
156 |
endif |
afae9398b405
7001056: JDK 7 fails on to build on Solaris 10 update 9 - updated Xrender header files
prr
parents:
7668
diff
changeset
|
157 |
endif |
2 | 158 |
endif |
159 |
||
160 |
ifeq ($(MILESTONE), internal) |
|
161 |
CPPFLAGS += -DINTERNAL_BUILD |
|
162 |
endif |
|
163 |
||
164 |
# |
|
165 |
# Generation of wrappers |
|
166 |
# |
|
167 |
SIZER_DIR=$(GEN_DIR)/generator |
|
168 |
SIZER = $(SIZER_DIR)/sizer |
|
169 |
SIZER_32_C = $(SIZER).32.c |
|
170 |
SIZER_64_C = $(SIZER).64.c |
|
171 |
CFLAGS_32=$(CFLAGS) |
|
172 |
CFLAGS_64=$(CFLAGS) |
|
173 |
||
174 |
ifeq ($(PLATFORM), solaris) |
|
175 |
||
176 |
isalist:=$(shell $(ISAINFO)) |
|
177 |
||
178 |
ifneq (,$(findstring sparcv9, $(isalist))) |
|
179 |
# On sparcv9 we generate both 32 and 64-bit sizers in spite of ARCH_DATA_MODEL. |
|
180 |
# On sparcv9 CFLAGS already contain $(XARCH_OPTION/64), so to generate 32-bit sizer we need to change this option. |
|
181 |
CFLAGS_32=$(subst $(XARCH_OPTION/64),$(XARCH_OPTION/32),$(CFLAGS)) |
|
182 |
SIZERS = $(SIZER).32 $(SIZER).64 |
|
183 |
SIZERS_C = $(SIZER_32_C) $(SIZER_64_C) |
|
184 |
SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32 $(WRAPPER_GENERATOR_DIR)/sizes.64 |
|
185 |
CFLAGS_64=$(CFLAGS) $(XARCH_OPTION/64) |
|
186 |
else |
|
187 |
ifneq (,$(findstring amd64, $(isalist))) |
|
188 |
# On amd64 we generate both 32 and 64-bit sizers in spite of ARCH_DATA_MODEL. |
|
189 |
# On amd64 CFLAGS already contain $(XARCH_OPTION/64), so to generate 32-bit sizer we need to change this option. |
|
190 |
CFLAGS_32=$(subst $(XARCH_OPTION/64),$(XARCH_OPTION/32),$(CFLAGS)) |
|
191 |
SIZERS = $(SIZER).32 $(SIZER).64 |
|
192 |
SIZERS_C = $(SIZER_32_C) $(SIZER_64_C) |
|
193 |
SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32 $(WRAPPER_GENERATOR_DIR)/sizes.64 |
|
194 |
CFLAGS_64=$(CFLAGS) $(XARCH_OPTION/64) |
|
195 |
else # !sparcv9 : includes (32-bit) sparc, i586 |
|
196 |
SIZERS = $(SIZER).32 |
|
197 |
SIZERS_C = $(SIZER_32_C) |
|
198 |
SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32 |
|
199 |
endif # amd64 |
|
200 |
endif # sparcv9 |
|
201 |
||
202 |
else # !solaris |
|
203 |
||
204 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
205 |
SIZERS = $(SIZER).32 |
|
206 |
SIZERS_C = $(SIZER_32_C) |
|
207 |
SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32 |
|
208 |
else # !32 |
|
209 |
SIZERS = $(SIZER).64 |
|
210 |
SIZERS_C = $(SIZER_64_C) |
|
211 |
SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.64 |
|
212 |
endif # 32 |
|
213 |
||
214 |
endif # solaris |
|
215 |
||
216 |
# XXX Hack for 6185483 - use hard-coded sizes. |
|
217 |
# Add the 64-bit platforms that need to be included into 32-bit build |
|
218 |
# and have sizes.64-$(PLATFORM)-$(LIBARCH) hardcoded in the workspace |
|
219 |
ifeq ($(PLATFORM)-$(LIBARCH), solaris-i386) |
|
220 |
# If you define DOHACK=true for some combination of $(PLATFORM)-$(LIBARCH), |
|
221 |
# make sure you have sizes.64-$(PLATFORM)-$(LIBARCH) pre-generated in |
|
222 |
# $(PLATFORM_SRC)/classes/sun/awt/X11/generator/ |
|
223 |
DOHACK=true |
|
224 |
endif # Hack |
|
225 |
||
226 |
ifeq ($(DOHACK), true) |
|
227 |
PREDEFINED_SIZES_TMPL=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/sizes.64-$(PLATFORM)-$(LIBARCH) |
|
228 |
PREDEFINED_SIZES=$(WRAPPER_GENERATOR_DIR)/sizes.64 |
|
229 |
SIZES += $(WRAPPER_GENERATOR_DIR)/sizes.64 |
|
230 |
endif |
|
231 |
||
232 |
ifeq ($(PLATFORM)-$(LIBARCH), solaris-amd64) |
|
233 |
DOCOMPARE=true |
|
234 |
endif |
|
235 |
# 64 bit sizers are generated on platform-libarch (left) for use |
|
236 |
# on platform-libarch (right) and stored under the latter name. |
|
237 |
# Do compare manually stored and automatically generated pair(s) |
|
238 |
# if DOCOMPARE=true, just after the generation. |
|
239 |
STORED_SIZES_TMPL_solaris_amd64=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/sizes.64-solaris-i386 |
|
240 |
||
241 |
WRAPPER_GENERATOR_JAVA=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/WrapperGenerator.java |
|
242 |
WRAPPER_GENERATOR_DIR=$(GENSRCDIR)/sun/awt/X11/generator |
|
243 |
WRAPPER_GENERATOR_TEMPDIR=$(TEMPDIR)/sun/awt/X11/generator |
|
244 |
WRAPPER_GENERATOR_CLASS=$(WRAPPER_GENERATOR_TEMPDIR)/WrapperGenerator.class |
|
245 |
XLIBTYPES=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/xlibtypes.txt |
|
246 |
||
247 |
$(SIZERS): $(SIZERS_C) |
|
248 |
$(prep-target) |
|
249 |
$(CC) $(CFLAGS_$(subst .,,$(suffix $@))) $(CPPFLAGS) -o $@ $(SIZER)$(suffix $@).c |
|
250 |
||
251 |
$(WRAPPER_GENERATOR_CLASS): $(WRAPPER_GENERATOR_JAVA) |
|
252 |
$(prep-target) |
|
253 |
$(BOOT_JAVAC_CMD) -d $(WRAPPER_GENERATOR_TEMPDIR) $(WRAPPER_GENERATOR_JAVA) |
|
254 |
||
255 |
$(SIZERS_C): $(WRAPPER_GENERATOR_CLASS) $(XLIBTYPES) |
|
256 |
$(prep-target) |
|
257 |
$(MKDIR) -p $(WRAPPER_GENERATOR_TEMPDIR) |
|
258 |
$(BOOT_JAVA_CMD) -cp $(WRAPPER_GENERATOR_TEMPDIR) WrapperGenerator \ |
|
259 |
$(SIZER_DIR) $(XLIBTYPES) "sizer" $(subst .,,$(suffix $(basename $@))) |
|
260 |
||
261 |
$(SIZES): $(SIZERS) |
|
262 |
@if [ "$(DOHACK)$@" = "true$(PREDEFINED_SIZES)" ]; then \ |
|
263 |
$(ECHO) COPYING $(PREDEFINED_SIZES_TMPL) into $@; \ |
|
264 |
$(CP) $(PREDEFINED_SIZES_TMPL) $@; \ |
|
265 |
$(CHMOD) +w $@;\ |
|
266 |
else \ |
|
267 |
$(ECHO) GENERATING $@; \ |
|
268 |
$(WRAPPER_GENERATOR_DIR)/sizer$(suffix $@) > $@; \ |
|
269 |
fi |
|
270 |
@if [ "$(DOCOMPARE)$(suffix $@)" = "true.64" ]; then \ |
|
271 |
$(ECHO) COMPARING $@ and $(STORED_SIZES_TMPL_$(PLATFORM)_$(LIBARCH)); \ |
|
272 |
$(DIFF) $@ $(STORED_SIZES_TMPL_$(PLATFORM)_$(LIBARCH)); \ |
|
133 | 273 |
fi |
2 | 274 |
|
275 |
$(TEMPDIR)/.gen.wrappers: $(SIZES) $(WRAPPER_GENERATOR_CLASS) $(XLIBTYPES) |
|
276 |
$(BOOT_JAVA_CMD) -cp $(WRAPPER_GENERATOR_TEMPDIR) WrapperGenerator \ |
|
277 |
$(GEN_DIR) $(XLIBTYPES) "gen" $(WRAPPER_GENERATOR_DIR)/sizes |
|
278 |
||
279 |
touch.wrappers: $(TEMPDIR)/.gen.wrappers |
|
280 |
$(MKDIR) -p $(TEMPDIR) |
|
281 |
$(TOUCH) $(TEMPDIR)/.gen.wrappers |
|
282 |
||
133 | 283 |
generated.clean: |
2 | 284 |
$(RM) -r $(WRAPPER_GENERATOR_TEMPDIR) |
285 |
$(RM) -r $(WRAPPER_GENERATOR_DIR) |
|
286 |
$(RM) -r $(GEN_DIR)/*.java |
|
133 | 287 |
$(RM) -r $(TEMPDIR)/.gen_icons |
2 | 288 |
|
289 |
ifdef OPENJDK |
|
290 |
ICONS_PATH_PREFIX=$(PLATFORM_SRC) |
|
291 |
else |
|
292 |
ICONS_PATH_PREFIX=$(CLOSED_SRC)/solaris |
|
293 |
endif |
|
294 |
||
295 |
ICONS = \ |
|
296 |
$(ICONS_PATH_PREFIX)/classes/sun/awt/X11/java-icon16.png \ |
|
297 |
$(ICONS_PATH_PREFIX)/classes/sun/awt/X11/java-icon24.png \ |
|
298 |
$(ICONS_PATH_PREFIX)/classes/sun/awt/X11/java-icon32.png \ |
|
299 |
$(ICONS_PATH_PREFIX)/classes/sun/awt/X11/java-icon48.png |
|
300 |
||
2472
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
133
diff
changeset
|
301 |
|
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
133
diff
changeset
|
302 |
ICONPATH=$(PLATFORM_SRC)/classes/sun/awt/X11 |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
133
diff
changeset
|
303 |
|
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
133
diff
changeset
|
304 |
ICONS += \ |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
133
diff
changeset
|
305 |
$(ICONPATH)/security-icon-bw16.png \ |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
133
diff
changeset
|
306 |
$(ICONPATH)/security-icon-interim16.png \ |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
133
diff
changeset
|
307 |
$(ICONPATH)/security-icon-yellow16.png \ |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
133
diff
changeset
|
308 |
$(ICONPATH)/security-icon-bw24.png \ |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
133
diff
changeset
|
309 |
$(ICONPATH)/security-icon-interim24.png \ |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
133
diff
changeset
|
310 |
$(ICONPATH)/security-icon-yellow24.png \ |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
133
diff
changeset
|
311 |
$(ICONPATH)/security-icon-bw32.png \ |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
133
diff
changeset
|
312 |
$(ICONPATH)/security-icon-interim32.png \ |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
133
diff
changeset
|
313 |
$(ICONPATH)/security-icon-yellow32.png \ |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
133
diff
changeset
|
314 |
$(ICONPATH)/security-icon-bw48.png \ |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
133
diff
changeset
|
315 |
$(ICONPATH)/security-icon-interim48.png \ |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
133
diff
changeset
|
316 |
$(ICONPATH)/security-icon-yellow48.png |
b7aba00cabb6
6693253: Security Warning appearance requires enhancements
anthony
parents:
133
diff
changeset
|
317 |
|
2 | 318 |
TEMPDIR_CLASSES = $(TEMPDIR)/classes |
319 |
||
320 |
$(TEMPDIR_CLASSES)/sun/awt/X11/ToBin.class: ToBin.java |
|
321 |
@$(prep-target) |
|
322 |
$(BOOT_JAVAC_CMD) -d $(TEMPDIR_CLASSES) $< |
|
323 |
||
324 |
$(TEMPDIR)/.gen_icons: $(TEMPDIR_CLASSES)/sun/awt/X11/ToBin.class $(ICONS) |
|
325 |
$(prep-target) |
|
326 |
for i in $(ICONS); do \ |
|
327 |
filename=`basename $$i`; \ |
|
328 |
name=`$(ECHO) $$filename | $(TR) '\-.' '__'`; \ |
|
329 |
classname=$(GEN_DIR)/XAWTIcon32_$$name.java; \ |
|
330 |
$(RM) $$classname; \ |
|
331 |
$(ECHO) "package sun.awt.X11;" >> $$classname ; \ |
|
332 |
$(ECHO) "public class XAWTIcon32_$$name {" >> $$classname; \ |
|
333 |
$(ECHO) "public static int[] $$name = { " >> $$classname; \ |
|
334 |
$(CAT) $$i | \ |
|
335 |
$(BOOT_JAVA_CMD) -cp $(TEMPDIR_CLASSES) \ |
|
336 |
-Djava.awt.headless=true \ |
|
337 |
sun.awt.X11.ToBin >> $$classname; \ |
|
338 |
$(ECHO) "}; }" >> $$classname; \ |
|
339 |
classname=$(GEN_DIR)/XAWTIcon64_$$name.java; \ |
|
340 |
$(RM) $$classname; \ |
|
341 |
$(ECHO) "package sun.awt.X11;" >> $$classname ; \ |
|
342 |
$(ECHO) "public class XAWTIcon64_$$name {" >> $$classname; \ |
|
343 |
$(ECHO) "public static long[] $$name = { " >> $$classname; \ |
|
344 |
$(CAT) $$i | \ |
|
345 |
$(BOOT_JAVA_CMD) -cp $(TEMPDIR_CLASSES) \ |
|
346 |
-Djava.awt.headless=true \ |
|
347 |
sun.awt.X11.ToBin >> $$classname; \ |
|
348 |
$(ECHO) "}; }" >> $$classname; \ |
|
349 |
done |
|
350 |
$(TOUCH) $@ |
|
351 |
||
352 |
clean clobber:: generated.clean |
|
353 |
||
354 |
.PHONY: generated.clean robot_child |
|
355 |