author | lana |
Thu, 24 Jul 2008 21:12:50 -0700 | |
changeset 889 | 6549643c008c |
parent 715 | f16baef3a20e |
parent 888 | c7009cf0001f |
child 890 | 7336798a900d |
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 1997-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 |
# |
|
27 |
# Makefile for building all of font tools |
|
28 |
# |
|
29 |
||
30 |
BUILDDIR = ../.. |
|
31 |
PACKAGE = sun.font |
|
32 |
LIBRARY = fontmanager |
|
33 |
PRODUCT = sun |
|
34 |
||
35 |
# Indicate we want the C++ compiler to do the linking. |
|
36 |
CPLUSPLUSLIBRARY=true |
|
37 |
||
38 |
include $(BUILDDIR)/common/Defs.gmk |
|
39 |
||
40 |
# |
|
41 |
# Created without -z defs on linux |
|
42 |
# |
|
43 |
ifeq ($(PLATFORM), linux) |
|
44 |
LDFLAGS_DEFS_OPTION = |
|
45 |
endif |
|
46 |
||
47 |
# |
|
48 |
# Files |
|
49 |
# |
|
50 |
||
51 |
# |
|
52 |
# Use higher optimization level |
|
53 |
# |
|
54 |
_OPT = $(CC_HIGHER_OPT) |
|
55 |
||
56 |
include FILES_c.gmk |
|
57 |
||
58 |
AUTO_FILES_JAVA_DIRS = sun/font |
|
59 |
FILES_java += java/awt/Font.java java/text/Bidi.java |
|
60 |
||
61 |
FILES_export = \ |
|
62 |
sun/font/SunLayoutEngine.java \ |
|
63 |
java/awt/Font.java \ |
|
64 |
java/text/Bidi.java \ |
|
65 |
sun/font/FileFont.java \ |
|
550
e85f91b9bb95
6656651: Windows Look and Feel LCD glyph images have some differences from native applications.
prr
parents:
2
diff
changeset
|
66 |
sun/font/FileFontStrike.java \ |
2 | 67 |
sun/font/FontManager.java \ |
68 |
sun/font/GlyphList.java \ |
|
69 |
sun/font/NativeFont.java \ |
|
70 |
sun/font/StrikeCache.java \ |
|
71 |
sun/font/NullFontScaler.java \ |
|
72 |
sun/font/FreetypeFontScaler.java \ |
|
73 |
sun/java2d/loops/DrawGlyphList.java \ |
|
74 |
sun/java2d/loops/DrawGlyphListAA.java \ |
|
75 |
sun/java2d/loops/DrawGlyphListLCD.java \ |
|
76 |
sun/java2d/loops/GraphicsPrimitive.java |
|
77 |
||
78 |
ifeq ($(PLATFORM), windows) |
|
79 |
||
80 |
# Files built here do not compile with warning level 3 if warnings are fatal |
|
81 |
COMPILER_WARNINGS_FATAL=false |
|
82 |
||
83 |
LDLIBS += user32.lib gdi32.lib $(OBJDIR)/../../../sun.awt/awt/$(OBJDIRNAME)/awt.lib |
|
84 |
||
85 |
OTHER_CFLAGS += -DCC_NOEX |
|
86 |
OTHER_CXXFLAGS += -DCC_NOEX |
|
87 |
||
88 |
else # PLATFORM unix |
|
89 |
||
90 |
FILES_export += \ |
|
91 |
sun/font/NativeStrike.java \ |
|
92 |
sun/font/NativeStrikeDisposer.java \ |
|
93 |
sun/font/X11TextRenderer.java \ |
|
94 |
sun/awt/X11GraphicsEnvironment.java |
|
95 |
||
96 |
endif # PLATFORM |
|
97 |
||
98 |
#In the non-OpenJDK mode we need to build T2K |
|
99 |
ifndef OPENJDK |
|
100 |
t2k: |
|
101 |
$(ECHO) "lib=" $(ACTUAL_LIBRARY) |
|
102 |
$(MAKE) -C t2k |
|
103 |
||
104 |
all build: t2k |
|
105 |
t2k: library |
|
106 |
clean clobber:: |
|
107 |
$(MAKE) -C t2k clean |
|
108 |
else |
|
109 |
||
110 |
FILES_m=mapfile-vers.openjdk |
|
111 |
||
112 |
#make sure freetype dll will be available at runtime as well as link time |
|
113 |
# |
|
114 |
#NB: Default freetype build system uses -h linker option and |
|
115 |
# result .so contains hardcoded library name that is later |
|
116 |
# used for adding dependencies to other objects |
|
117 |
# (e.g. libfontmanager.so). |
|
118 |
# |
|
119 |
# It is not obvious how to extract that hardcoded name (libfreetype.so.6) |
|
120 |
# without overcomplicating logic here. |
|
121 |
# To workaround this we hardcode .6 suffix for now. |
|
122 |
# |
|
123 |
# Note that .so.6 library will not be found by System.loadLibrary() |
|
124 |
# but fortunately we need to load FreeType library explicitly |
|
125 |
# on windows only |
|
126 |
# |
|
127 |
#TODO: rework this to avoid hardcoding library name in the makefile |
|
128 |
# |
|
129 |
library:: $(LIB_LOCATION)/$(LIB_PREFIX)freetype.$(LIBRARY_SUFFIX) |
|
130 |
||
131 |
$(LIB_LOCATION)/$(LIB_PREFIX)freetype.$(LIBRARY_SUFFIX): |
|
132 |
ifeq ($(PLATFORM), windows) |
|
133 |
$(CP) $(FREETYPE_LIB_PATH)/$(LIB_PREFIX)freetype.$(LIBRARY_SUFFIX) $@ |
|
134 |
else |
|
135 |
ifeq ($(USING_SYSTEM_FT_LIB), false) |
|
136 |
$(CP) $(FREETYPE_LIB_PATH)/$(LIB_PREFIX)freetype.$(LIBRARY_SUFFIX) $@.6 |
|
137 |
endif |
|
138 |
endif |
|
139 |
endif |
|
140 |
||
141 |
#ifeq ($(PLATFORM), solaris) |
|
142 |
# FILES_reorder += reorder-$(ARCH) |
|
143 |
#endif |
|
144 |
include $(BUILDDIR)/common/Mapfile-vers.gmk |
|
145 |
include $(BUILDDIR)/common/Library.gmk |
|
146 |
||
147 |
.PHONY: t2k build all clean clobber |
|
148 |
||
149 |
# |
|
150 |
# Add to the ambient vpath to pick up files in subdirectories |
|
151 |
# |
|
152 |
vpath %.c $(PLATFORM_SRC)/native/$(PKGDIR) |
|
153 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/bidi |
|
154 |
vpath %.cpp $(SHARE_SRC)/native/$(PKGDIR)/layout |
|
155 |
vpath %.cpp $(SHARE_SRC)/native/$(PKGDIR) |
|
156 |
||
157 |
# |
|
158 |
# Fontmanager is headless (independent of X/Motif) |
|
159 |
# |
|
160 |
CFLAGS += -DHEADLESS |
|
161 |
CXXFLAGS += -DHEADLESS |
|
162 |
||
163 |
ifndef OPENJDK |
|
164 |
CPPFLAGS += -I$(CLOSED_SRC)/share/native/$(PKGDIR)/t2k |
|
165 |
else |
|
166 |
CPPFLAGS += -I$(FREETYPE_HEADERS_PATH) -I$(FREETYPE_HEADERS_PATH)/freetype2 |
|
167 |
OTHER_LDLIBS += $(FREETYPE_LIB) |
|
168 |
endif |
|
169 |
||
170 |
ifeq ($(PLATFORM), windows) |
|
171 |
vpath %.cpp $(PLATFORM_SRC)/native/sun/windows |
|
172 |
else # PLATFORM |
|
173 |
||
174 |
# |
|
175 |
# Libraries to link, and other C flags. |
|
176 |
# |
|
177 |
||
178 |
ifeq ($(PLATFORM), solaris) |
|
179 |
# Note that on Solaris, fontmanager is built against the headless library. |
|
180 |
LDFLAGS += -L$(LIBDIR)/$(LIBARCH)/headless |
|
181 |
OTHER_LDLIBS += -lawt -L$(LIBDIR)/$(LIBARCH)/xawt -lmawt -lc $(LIBM) $(LIBCXX) |
|
182 |
else # PLATFORM is linux |
|
183 |
OTHER_LDLIBS += -lawt $(LIBM) $(LIBCXX) |
|
184 |
ifeq ("$(CC_VER_MAJOR)", "3") |
|
185 |
OTHER_LDLIBS += -Wl,-Bstatic -lgcc_eh -Wl,-Bdynamic |
|
186 |
endif |
|
187 |
endif |
|
188 |
||
189 |
endif # PLATFORM |
|
190 |
||
191 |
# set up compile flags.. |
|
192 |
||
193 |
CPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR) \ |
|
194 |
-I$(SHARE_SRC)/native/$(PKGDIR)/layout \ |
|
195 |
-I$(SHARE_SRC)/native/$(PKGDIR)/bidi \ |
|
196 |
-I$(SHARE_SRC)/native/sun/awt/image/cvutils \ |
|
197 |
-I$(PLATFORM_SRC)/native/sun/awt \ |
|
198 |
-I$(SHARE_SRC)/native/sun/awt/debug \ |
|
199 |
-I$(SHARE_SRC)/native/sun/java2d/loops \ |
|
200 |
-I$(SHARE_SRC)/native/sun/java2d/pipe \ |
|
201 |
-I$(PLATFORM_SRC)/native/sun/java2d \ |
|
202 |
-I$(SHARE_SRC)/native/sun/java2d \ |
|
203 |
-I$(TEMPDIR)/../../sun.awt/awt/CClassHeaders |
|
204 |
||
205 |
ifeq ($(PLATFORM), windows) |
|
887 | 206 |
CPPFLAGS += -I$(PLATFORM_SRC)/native/sun/windows |
2 | 207 |
endif |
208 |