author | xdono |
Tue, 12 Aug 2008 15:17:12 -0700 | |
changeset 922 | 8725ccb1a22d |
parent 917 | 75261da60fff |
parent 888 | c7009cf0001f |
child 1971 | 553b81ac1756 |
child 2370 | bdaf8cd4253f |
permissions | -rw-r--r-- |
2 | 1 |
# |
888
c7009cf0001f
6728492: typo in copyrights in some files touched by the d3d pipeline port
tdv
parents:
887
diff
changeset
|
2 |
# Copyright 1995-2008 Sun Microsystems, Inc. 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 |
|
7 |
# published by the Free Software Foundation. Sun designates this |
|
8 |
# particular file as subject to the "Classpath" exception as provided |
|
9 |
# by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
22 |
# CA 95054 USA or visit www.sun.com if you need additional information or |
|
23 |
# have any questions. |
|
24 |
# |
|
25 |
||
26 |
BUILDDIR = ../.. |
|
27 |
PACKAGE = sun.awt |
|
28 |
LIBRARY = awt |
|
29 |
PRODUCT = sun |
|
30 |
||
31 |
# Tell Defs.gmk that VIS is needed |
|
32 |
VIS_NEEDED=true |
|
33 |
||
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
2
diff
changeset
|
34 |
# Use highest optimization level |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
2
diff
changeset
|
35 |
OPTMIZATION_LEVEL = HIGHEST |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
2
diff
changeset
|
36 |
|
2 | 37 |
include $(BUILDDIR)/common/Defs.gmk |
38 |
||
39 |
OTHER_CFLAGS += -D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES |
|
40 |
||
41 |
# |
|
42 |
# Files |
|
43 |
# |
|
44 |
||
45 |
# |
|
46 |
# Include all Java source files in sun/awt and sun/java2d, except for: |
|
47 |
# sun/awt/resources handled by java/awt/Makefile |
|
48 |
# sun/java2d/pisces handled by sun/pisces/Makefile |
|
49 |
# |
|
50 |
AUTO_FILES_JAVA_DIRS = sun/awt sun/java2d |
|
51 |
AUTO_JAVA_PRUNE = resources pisces |
|
52 |
||
53 |
ifeq ($(PLATFORM), windows) |
|
54 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS |
|
55 |
||
56 |
# |
|
57 |
# Files |
|
58 |
# |
|
59 |
include FILES_c_windows.gmk |
|
60 |
include FILES_export_windows.gmk |
|
61 |
||
62 |
# |
|
63 |
# Prune files that are currently unused on Windows (but still used on |
|
64 |
# Solaris/Linux). |
|
65 |
# |
|
66 |
AUTO_JAVA_PRUNE += RemoteOffScreenImage.java |
|
67 |
||
68 |
OTHER_CFLAGS += $(GX_OPTION) -DMLIB_NO_LIBSUNMATH -DUNICODE -D_UNICODE |
|
69 |
OTHER_CXXFLAGS += $(GX_OPTION) -DUNICODE -D_UNICODE |
|
70 |
||
71 |
ifeq ($(ARCH_DATA_MODEL), 64) |
|
72 |
OTHER_CFLAGS += -DMLIB_OS64BIT |
|
73 |
endif |
|
74 |
||
75 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS |
|
76 |
endif # PLATFORM |
|
77 |
||
78 |
ifneq ($(PLATFORM), windows) |
|
79 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS/LINUX |
|
80 |
||
81 |
# |
|
82 |
# Files |
|
83 |
# |
|
84 |
include FILES_c_unix.gmk |
|
85 |
include FILES_export_unix.gmk |
|
86 |
# |
|
87 |
# Prune the sun/awt/X11 subdirectory, which is handled by sun/xawt/Makefile. |
|
88 |
# Also prune files that are currently unused on Solaris/Linux (but still |
|
89 |
# used on Windows). |
|
90 |
# |
|
91 |
AUTO_JAVA_PRUNE += X11 AWTCharset.java |
|
92 |
||
93 |
ifeq ($(PLATFORM), solaris) |
|
94 |
FILES_c = $(FILES_2D_c) |
|
95 |
FILES_c += awt_LoadLibrary.c |
|
96 |
OTHER_LDLIBS = $(JVMLIB) $(LIBM) -ldl |
|
97 |
ifeq ($(CC_VER), 5.8) |
|
98 |
ifndef REMOVE_ALL_WORKAROUNDS |
|
99 |
ifeq ($(ARCH_FAMILY), i586) |
|
100 |
# If on Solaris 11 (or dlfcn.h has unknown_control_flow pragmas in it) |
|
101 |
# we trigger a SS11 bug that causes the compiler to crash (bug 6343678) |
|
102 |
# Here we check to see if we need this workaround and change the opt |
|
103 |
# settings for this one file. |
|
104 |
USE_WORKAROUND:=$(shell $(GREP) unknown_control_flow /usr/include/dlfcn.h) |
|
105 |
ifneq ($(USE_WORKAROUND),) |
|
106 |
ifeq ($(FASTDEBUG), true) |
|
107 |
CFLAGS_DBG/awt_Mlib.o = -xO0 \ |
|
108 |
$(warning "WARNING: Using workaround for SS11 bug 6343678, on $@") |
|
109 |
endif |
|
110 |
# Compiler bug 6343678 need to prevent a SEGV in the compiler |
|
111 |
CFLAGS_OPT/awt_Mlib.o = -g \ |
|
112 |
$(warning "WARNING: Using workaround for SS11 bug 6343678, on $@") |
|
113 |
endif |
|
114 |
endif |
|
115 |
endif |
|
116 |
endif |
|
117 |
endif |
|
118 |
||
119 |
ifeq ($(PLATFORM), linux) |
|
120 |
FILES_c = $(FILES_2D_c) |
|
121 |
FILES_c += awt_LoadLibrary.c |
|
122 |
OTHER_CFLAGS += -DMLIB_NO_LIBSUNMATH |
|
123 |
OTHER_LDLIBS = $(JVMLIB) $(LIBM) -ldl |
|
124 |
endif |
|
125 |
||
126 |
FILES_c += initIDs.c |
|
127 |
||
128 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS/LINUX |
|
129 |
endif # PLATFORM |
|
130 |
||
131 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS-SPARC |
|
132 |
# solaris-sparc and solaris-sparcv9 both build 'vis' |
|
133 |
ifeq ("$(PLATFORM)-$(ARCH_FAMILY)", "solaris-sparc") |
|
134 |
FILES_c += $(FILES_2D_vis) |
|
135 |
ASFLAGS += -P |
|
136 |
FILES_s += mlib_v_ImageCopy_blk.s |
|
137 |
INLINE_VIS = $(PLATFORM_SRC)/native/sun/awt/medialib/vis_$(ARCH_DATA_MODEL).il |
|
138 |
CFLAGS_sparcv9 = -DMLIB_OS64BIT |
|
139 |
||
140 |
CFLAGS += $(CFLAGS_$(ARCH)) -DMLIB_ADD_SUFF $(INLINE_VIS) \ |
|
141 |
-I$(SHARE_SRC)/native/sun/awt/medialib \ |
|
142 |
-I$(PLATFORM_SRC)/native/sun/awt/medialib \ |
|
143 |
-I$(PLATFORM_SRC)/native/sun/java2d/loops |
|
144 |
||
145 |
vpath %.c $(PLATFORM_SRC)/native/sun/java2d/loops |
|
146 |
vpath %.c $(SHARE_SRC)/native/sun/awt/medialib |
|
147 |
vpath %.c $(PLATFORM_SRC)/native/sun/awt/medialib |
|
148 |
vpath %.s $(PLATFORM_SRC)/native/sun/awt/medialib |
|
149 |
||
150 |
else |
|
151 |
FILES_c += MapAccelFunc.c |
|
152 |
endif |
|
153 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS-SPARC |
|
154 |
||
155 |
# |
|
156 |
# Resources |
|
157 |
# |
|
158 |
LOCALE_SET_DEFINITION = jre |
|
159 |
ifeq ($(PLATFORM), windows) |
|
160 |
RESOURCE_BUNDLES_COMPILED_PROPERTIES += \ |
|
161 |
sun/awt/windows/awtLocalization.properties |
|
162 |
endif |
|
163 |
||
164 |
# |
|
165 |
# Rules |
|
166 |
# |
|
167 |
ifeq ($(PLATFORM), linux) |
|
168 |
FILES_m = mapfile-vers-linux |
|
169 |
# libawt.so on Linux is statically linked with Motif and contains all the |
|
170 |
# Xm symbols. Mapfile is disabled so the symbols will remain public. |
|
171 |
LDNOMAP=true |
|
172 |
endif |
|
173 |
||
174 |
include $(BUILDDIR)/common/Mapfile-vers.gmk |
|
175 |
include $(BUILDDIR)/common/Library.gmk |
|
176 |
||
177 |
build: fontconfigs |
|
178 |
||
179 |
||
180 |
ifeq ($(PLATFORM), windows) |
|
181 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS |
|
182 |
# |
|
183 |
# Additional dependencies. |
|
184 |
# |
|
185 |
# If make.depend is not working correctly, then it can be omitted |
|
186 |
# if you always build from a clean workspace. |
|
187 |
||
188 |
include make.depend |
|
189 |
||
190 |
# required additional rules: |
|
191 |
||
192 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS |
|
193 |
endif # PLATFORM |
|
194 |
||
195 |
ifneq ($(PLATFORM), windows) |
|
196 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS/LINUX |
|
197 |
||
198 |
ifndef OPENJDK |
|
199 |
build: dgalibs |
|
200 |
endif |
|
201 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS/LINUX |
|
202 |
endif # PLATFORM |
|
203 |
||
204 |
clobber clean:: java2d.clean fontconfigs.clean |
|
205 |
||
206 |
ifndef OPENJDK |
|
207 |
clobber clean:: dgalib.clean |
|
208 |
endif |
|
209 |
||
210 |
java2d.clean: |
|
211 |
$(RM) -r $(CLASSBINDIR)/sun/java2d .classes.* |
|
212 |
||
213 |
# |
|
214 |
# Add to the ambient vpath to pick up files in subdirectories |
|
215 |
# |
|
216 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/image |
|
217 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/image/gif |
|
218 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/image/cvutils |
|
219 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/shell |
|
220 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/medialib |
|
221 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/debug |
|
222 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../java2d |
|
223 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../java2d/loops |
|
224 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../java2d/pipe |
|
225 |
vpath %.cpp $(SHARE_SRC)/native/$(PKGDIR)/image |
|
226 |
ifeq ($(PLATFORM), windows) |
|
227 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS |
|
228 |
vpath %.cpp $(PLATFORM_SRC)/native/sun/windows |
|
229 |
vpath %.cpp $(PLATFORM_SRC)/native/$(PKGDIR) |
|
230 |
vpath %.cpp $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/windows |
|
231 |
vpath %.cpp $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/d3d |
|
232 |
vpath %.c $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/opengl |
|
233 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../java2d/opengl |
|
234 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../font |
|
235 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS |
|
236 |
endif # PLATFORM |
|
237 |
||
238 |
ifeq ($(PLATFORM), linux) |
|
239 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv LINUX |
|
240 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../java2d/opengl |
|
241 |
vpath %.c $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/opengl |
|
242 |
vpath %.c $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/x11 |
|
243 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../font |
|
244 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ LINUX |
|
245 |
endif # PLATFORM |
|
246 |
||
247 |
ifeq ($(PLATFORM), windows) |
|
248 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS |
|
249 |
OTHER_LDLIBS = kernel32.lib user32.lib gdi32.lib winspool.lib \ |
|
250 |
imm32.lib ole32.lib uuid.lib $(JVMLIB) \ |
|
251 |
shell32.lib |
|
252 |
||
253 |
clean:: awt.clean |
|
254 |
||
255 |
awt.clean: |
|
256 |
$(RM) $(TEMPDIR)/awt.ico |
|
257 |
$(RM) $(TEMPDIR)/awt.res |
|
258 |
$(RM) $(TEMPDIR)/hand.cur |
|
259 |
$(RM) $(TEMPDIR)/check.bmp |
|
260 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS |
|
261 |
endif # PLATFORM |
|
262 |
||
263 |
ifneq ($(PLATFORM), windows) |
|
264 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS/LINUX |
|
265 |
||
266 |
LIBXTST = -lXtst |
|
267 |
||
268 |
# Use -lXmu for EditRes support |
|
269 |
LIBXMU_DBG = -lXmu |
|
270 |
LIBXMU_OPT = |
|
271 |
LIBXMU = $(LIBXMU_$(VARIANT)) |
|
272 |
||
273 |
# |
|
274 |
# Extra C flags. |
|
275 |
# |
|
276 |
||
277 |
||
278 |
ifndef OPENJDK |
|
279 |
||
280 |
# |
|
281 |
# Solaris X11 Direct Graphics Access library |
|
282 |
# |
|
283 |
||
284 |
_DGALIBS_sparc = \ |
|
285 |
libxinerama.so \ |
|
286 |
libjdgaSUNWcg6.so \ |
|
287 |
libjdgaSUNWffb.so \ |
|
288 |
libjdgaSUNWm64.so \ |
|
289 |
libjdgaSUNWafb.so |
|
290 |
||
291 |
_DGALIBS_sparcv9 = \ |
|
292 |
libxinerama.so \ |
|
293 |
libjdgaSUNWcg6.so \ |
|
294 |
libjdgaSUNWffb.so \ |
|
295 |
libjdgaSUNWm64.so \ |
|
296 |
libjdgaSUNWafb.so |
|
297 |
||
298 |
_DGALIBS_i586 = # no i586 library yet |
|
299 |
||
300 |
_DGALIBS_amd64 = # no amd64 library yet |
|
301 |
||
302 |
DGALIBS = $(_DGALIBS_$(ARCH):%=$(LIBDIR)/$(LIBARCH)/%) |
|
303 |
||
304 |
dgalibs: $(DGALIBS) |
|
305 |
||
306 |
$(LIBDIR)/$(LIBARCH)/libxinerama.so: $(CLOSED_SRC)/solaris/lib/$(ARCH)/libxinerama.so |
|
307 |
$(install-file) |
|
308 |
$(CHMOD) a+x $@ |
|
309 |
||
310 |
$(LIBDIR)/$(LIBARCH)/libjdgaSUNW%.so: $(CLOSED_SRC)/solaris/lib/$(ARCH)/libjdgaSUNW%.so |
|
311 |
$(install-file) |
|
312 |
$(CHMOD) a+x $@ |
|
313 |
||
314 |
$(LIBDIR)/$(LIBARCH)/libjdgaSUNWafb.so: $(LIBDIR)/$(LIBARCH)/libjdgaSUNWffb.so |
|
315 |
$(prep-target) |
|
316 |
$(LN) -s libjdgaSUNWffb.so $(LIBDIR)/$(LIBARCH)/libjdgaSUNWafb.so |
|
317 |
||
318 |
clean:: dgalib.clean |
|
319 |
||
320 |
dgalib.clean: |
|
321 |
$(RM) $(LIBDIR)/$(LIBARCH)/libjdgaSUNW* $(LIBDIR)/$(LIBARCH)/libxinerama.so |
|
322 |
endif |
|
323 |
||
324 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS/LINUX |
|
325 |
endif # PLATFORM |
|
326 |
||
327 |
# |
|
328 |
# Font configs |
|
329 |
# |
|
330 |
||
331 |
ifeq ($(PLATFORM), windows) |
|
332 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS |
|
333 |
||
334 |
FONTCONFIGS_SRC = $(PLATFORM_SRC)/classes/sun/awt/windows |
|
335 |
_FONTCONFIGS = \ |
|
336 |
fontconfig.properties \ |
|
337 |
fontconfig.98.properties |
|
338 |
||
339 |
FONTCONFIGS_SRC_PREFIX = |
|
340 |
||
341 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS |
|
342 |
endif # PLATFORM |
|
343 |
||
344 |
ifeq ($(PLATFORM), linux) |
|
345 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv LINUX |
|
346 |
ifdef OPENJDK |
|
347 |
||
348 |
FONTCONFIGS_SRC = $(PLATFORM_SRC)/classes/sun/awt/fontconfigs |
|
349 |
_FONTCONFIGS = \ |
|
350 |
fontconfig.properties \ |
|
351 |
fontconfig.SuSE.properties \ |
|
352 |
fontconfig.Ubuntu.properties \ |
|
353 |
fontconfig.Fedora.properties |
|
354 |
else |
|
355 |
||
356 |
FONTCONFIGS_SRC = $(CLOSED_SRC)/solaris/classes/sun/awt/fontconfigs |
|
357 |
_FONTCONFIGS = \ |
|
358 |
fontconfig.properties \ |
|
359 |
fontconfig.RedHat.properties \ |
|
360 |
fontconfig.RedHat.2.1.properties \ |
|
361 |
fontconfig.RedHat.3.properties \ |
|
362 |
fontconfig.RedHat.4.properties \ |
|
363 |
fontconfig.Sun.properties \ |
|
364 |
fontconfig.Turbo.properties \ |
|
365 |
fontconfig.SuSE.properties |
|
366 |
endif |
|
367 |
||
368 |
FONTCONFIGS_SRC_PREFIX = $(PLATFORM). |
|
369 |
||
370 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ LINUX |
|
371 |
endif # PLATFORM |
|
372 |
||
373 |
ifeq ($(PLATFORM), solaris) |
|
374 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS |
|
375 |
||
376 |
FONTCONFIGS_SRC = $(PLATFORM_SRC)/classes/sun/awt/fontconfigs |
|
377 |
_FONTCONFIGS = \ |
|
378 |
fontconfig.properties \ |
|
379 |
fontconfig.5.9.properties \ |
|
380 |
fontconfig.5.8.properties |
|
381 |
||
382 |
FONTCONFIGS_SRC_PREFIX = $(PLATFORM). |
|
383 |
||
384 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS |
|
385 |
endif # PLATFORM |
|
386 |
||
387 |
FONTCONFIGS = $(_FONTCONFIGS:%=$(LIBDIR)/%.src) |
|
388 |
BINARYFONTCONFIGS = $(_FONTCONFIGS:%.properties=$(LIBDIR)/%.bfc) |
|
389 |
||
390 |
fontconfigs: $(FONTCONFIGS) $(BINARYFONTCONFIGS) |
|
391 |
||
392 |
$(LIBDIR)/%.src: $(FONTCONFIGS_SRC)/$(FONTCONFIGS_SRC_PREFIX)% |
|
393 |
$(install-file) |
|
394 |
||
395 |
COMPILEFONTCONFIG_JARFILE = $(BUILDTOOLJARDIR)/compilefontconfig.jar |
|
396 |
||
397 |
$(LIBDIR)/%.bfc: $(FONTCONFIGS_SRC)/$(FONTCONFIGS_SRC_PREFIX)%.properties \ |
|
398 |
$(COMPILEFONTCONFIG_JARFILE) |
|
399 |
$(prep-target) |
|
400 |
$(BOOT_JAVA_CMD) -jar $(COMPILEFONTCONFIG_JARFILE) $< $@ |
|
401 |
$(CHMOD) 444 $(@) |
|
402 |
@$(java-vm-cleanup) |
|
403 |
||
404 |
fontconfigs.clean : |
|
405 |
$(RM) $(FONTCONFIGS) |
|
406 |
$(RM) $(BINARYFONTCONFIGS) |
|
407 |
||
408 |
ifeq ($(PLATFORM), windows) |
|
409 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS |
|
410 |
OTHER_CFLAGS += $(GX_OPTION) -DUNICODE -D_UNICODE |
|
411 |
||
412 |
ifeq ($(MILESTONE), internal) |
|
413 |
CPPFLAGS += -DINTERNAL_BUILD |
|
414 |
endif |
|
415 |
||
416 |
# |
|
417 |
# Useful variables that name parts of the src tree. |
|
418 |
# |
|
419 |
WINAWT_native = $(PLATFORM_SRC)/native/sun/windows |
|
420 |
WINAWT_COMMON_native = $(PLATFORM_SRC)/native/sun/awt_common |
|
421 |
||
422 |
# FIXME: awt shouldn't have to see the VM's private headers. |
|
423 |
# FIXME: if you re-order this list, the build breaks, possibly because |
|
424 |
# of filename collision. Such a collision, if present, is pure |
|
425 |
# evil. Need to investigate this. |
|
426 |
||
427 |
OTHER_INCLUDES += -I$(CLASSHDRDIR)/../../java/jvm \ |
|
428 |
-I$(OBJDIR) \ |
|
429 |
-I$(SHARE_SRC)/native/common \ |
|
430 |
-I$(WINAWT_native) \ |
|
431 |
-I$(DXSDK_INCLUDE_PATH) \ |
|
432 |
-I$(SHARE_SRC)/native/sun/awt/image/cvutils \ |
|
433 |
-I$(SHARE_SRC)/native/sun/awt/image \ |
|
434 |
-I$(SHARE_SRC)/native/sun/java2d/loops \ |
|
435 |
-I$(SHARE_SRC)/native/sun/java2d \ |
|
436 |
-I$(PLATFORM_SRC)/native/sun/java2d \ |
|
437 |
-I$(SHARE_SRC)/native/sun/java2d/opengl \ |
|
438 |
-I$(PLATFORM_SRC)/native/sun/java2d/d3d \ |
|
439 |
-I$(PLATFORM_SRC)/native/sun/java2d/opengl \ |
|
440 |
-I$(PLATFORM_SRC)/native/sun/java2d/windows \ |
|
441 |
-I$(SHARE_SRC)/native/sun/font \ |
|
442 |
-I$(SHARE_SRC)/native/sun/java2d/pipe \ |
|
443 |
-I$(SHARE_SRC)/native/sun/dc/path \ |
|
444 |
-I$(SHARE_SRC)/native/sun/dc/doe \ |
|
445 |
-I$(SHARE_SRC)/native/sun/awt/debug \ |
|
887 | 446 |
-I$(PLATFORM_SRC)/native/sun/awt |
2 | 447 |
# -I$(WINAWT_COMMON_native) |
448 |
||
449 |
# this is only required for compiling )/native/sun/awt/medialib/*.c files |
|
450 |
# |
|
451 |
OTHER_INCLUDES += -I$(SHARE_SRC)/native/sun/awt/medialib |
|
452 |
||
453 |
# |
|
454 |
# .res file construction. |
|
455 |
# |
|
456 |
||
457 |
ifdef OPENJDK |
|
458 |
RC_FLAGS += -i "$(PLATFORM_SRC)/resource/icons" |
|
459 |
else |
|
460 |
RC_FLAGS += -i "$(CLOSED_SRC)/windows/native/sun/windows" |
|
461 |
endif |
|
462 |
VERSIONINFO_RESOURCE = $(WINAWT_native)/awt.rc |
|
463 |
||
464 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS |
|
465 |
endif # PLATFORM |
|
466 |
||
467 |
ifneq ($(PLATFORM), windows) |
|
468 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS/LINUX |
|
469 |
||
470 |
# |
|
471 |
# Other extra flags needed for compiling. |
|
472 |
# |
|
473 |
||
474 |
ifeq ($(PLATFORM), linux) |
|
475 |
CPPFLAGS += -I$(OPENWIN_HOME)/include \ |
|
476 |
-I$(OPENWIN_HOME)/include/X11/extensions \ |
|
477 |
-I$(PLATFORM_SRC)/native/$(PKGDIR)/font |
|
478 |
endif |
|
479 |
CPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR)/debug \ |
|
480 |
-I$(SHARE_SRC)/native/$(PKGDIR)/../font \ |
|
481 |
-I$(PLATFORM_SRC)/native/$(PKGDIR)/../font \ |
|
482 |
-I$(SHARE_SRC)/native/$(PKGDIR)/image \ |
|
483 |
-I$(SHARE_SRC)/native/$(PKGDIR)/image/cvutils \ |
|
484 |
-I$(SHARE_SRC)/native/$(PKGDIR)/shell \ |
|
485 |
-I$(SHARE_SRC)/native/$(PKGDIR)/medialib \ |
|
486 |
-I$(PLATFORM_SRC)/native/$(PKGDIR)/medialib \ |
|
487 |
-I$(SHARE_SRC)/native/$(PKGDIR)/../java2d \ |
|
488 |
-I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d \ |
|
489 |
-I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/loops \ |
|
490 |
-I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/pipe \ |
|
491 |
-I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/opengl \ |
|
492 |
-I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/opengl \ |
|
493 |
-I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/x11 \ |
|
494 |
-I$(SHARE_SRC)/native/$(PKGDIR)/../dc/doe \ |
|
495 |
-I$(SHARE_SRC)/native/$(PKGDIR)/../dc/path \ |
|
496 |
-I$(PLATFORM_SRC)/native/$(PKGDIR)/../jdga \ |
|
497 |
-I$(PLATFORM_SRC)/native/$(PKGDIR) \ |
|
498 |
$(EVENT_MODEL) |
|
499 |
||
500 |
ifeq ($(PLATFORM), linux) |
|
501 |
LDFLAGS += -L$(OPENWIN_LIB) |
|
502 |
endif |
|
503 |
||
504 |
LDFLAGS += -L$(LIBDIR)/$(LIBARCH)/$(TSOBJDIR) \ |
|
505 |
$(AWT_RUNPATH) |
|
506 |
||
507 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS/LINUX |
|
508 |
endif # PLATFORM |
|
509 |
||
510 |
CLASSES.export += java.io.InputStream \ |
|
511 |
java.lang.Integer \ |
|
512 |
java.lang.ThreadGroup |
|
513 |
||
514 |
.PHONY: dgalibs dgalib.clean fontconfigs fontconfigs.clean |
|
515 |