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