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