author | ohair |
Wed, 06 Aug 2008 16:43:53 -0700 | |
changeset 919 | 909db04edd73 |
parent 849 | be386e469547 |
parent 917 | 75261da60fff |
child 1247 | b4c26443dee5 |
permissions | -rw-r--r-- |
2 | 1 |
# |
2 |
# Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. |
|
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 |
# WARNING: Make sure the OPENJDK plugs are up-to-date, see make/common/internal/BinaryPlugs.gmk |
|
27 |
||
28 |
# |
|
29 |
# Makefile for building t2k rasteriser. |
|
30 |
# |
|
31 |
||
32 |
BUILDDIR = ../../.. |
|
33 |
PACKAGE = sun.font |
|
34 |
LIBRARY = t2k |
|
35 |
PRODUCT = sun |
|
36 |
||
37 |
# Indicate we want the C++ compiler to do the linking. |
|
38 |
CPLUSPLUSLIBRARY=true |
|
39 |
||
40 |
# Part of the sun.font package, but doesn't rebuild classes (except |
|
41 |
# for a few ones with native methods) so shouldn't clobber them. |
|
42 |
DONT_CLOBBER_CLASSES=true |
|
43 |
||
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
2
diff
changeset
|
44 |
# Use higher optimization level |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
2
diff
changeset
|
45 |
OPTIMIZATION_LEVEL = HIGHER |
2 | 46 |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
2
diff
changeset
|
47 |
include $(BUILDDIR)/common/Defs.gmk |
2 | 48 |
|
49 |
# |
|
50 |
# Files |
|
51 |
# |
|
52 |
include FILES_c.gmk |
|
53 |
||
54 |
FILES_export = \ |
|
55 |
java/awt/Font.java \ |
|
56 |
sun/font/FileFont.java \ |
|
57 |
sun/font/FontManager.java \ |
|
58 |
sun/font/GlyphList.java \ |
|
59 |
sun/font/NativeFont.java \ |
|
60 |
sun/font/StrikeCache.java \ |
|
61 |
sun/font/T2KFontScaler.java |
|
62 |
||
63 |
ifeq ($(PLATFORM), windows) |
|
64 |
||
65 |
# t2k imports several shared methods from fontmanager.dll |
|
66 |
LDLIBS += user32.lib $(OBJDIR)/../../../sun.font/fontmanager/$(OBJDIRNAME)/fontmanager.lib |
|
67 |
||
68 |
OTHER_CFLAGS += -DCC_NOEX |
|
69 |
OTHER_CXXFLAGS += -DCC_NOEX |
|
70 |
||
71 |
endif # PLATFORM |
|
72 |
||
73 |
# |
|
74 |
# In the OpenJDK mode we are not building anything |
|
75 |
# |
|
76 |
ifndef OPENJDK |
|
77 |
include $(BUILDDIR)/common/Mapfile-vers.gmk |
|
78 |
include $(BUILDDIR)/common/Library.gmk |
|
79 |
endif |
|
80 |
||
81 |
# |
|
82 |
# Add to the ambient vpath to pick up files in subdirectories |
|
83 |
# |
|
84 |
vpath %.c $(SHARE_SRC)/share/native/$(PKGDIR) |
|
85 |
vpath %.c $(PLATFORM_SRC)/native/$(PKGDIR) |
|
86 |
vpath %.c $(CLOSED_SRC)/share/native/$(PKGDIR) |
|
87 |
vpath %.c $(CLOSED_SRC)/share/native/$(PKGDIR)/t2k |
|
88 |
vpath %.c $(CLOSED_SRC)/share/native/$(PKGDIR)/t2k/ttHints |
|
89 |
||
90 |
vpath %.cpp $(SHARE_SRC)/native/$(PKGDIR) |
|
91 |
vpath %.cpp $(CLOSED_SRC)/share/native/$(PKGDIR) |
|
92 |
||
93 |
# Libraries to link, and other C flags. |
|
94 |
# |
|
95 |
# setup the list of libraries to link in... |
|
96 |
ifneq ($(PLATFORM), windows) |
|
97 |
OTHER_LDLIBS += $(LIBM) $(LIBCXX) -lfontmanager |
|
98 |
ifeq ($(PLATFORM), linux) |
|
99 |
ifeq ("$(CC_VER_MAJOR)", "3") |
|
100 |
OTHER_LDLIBS += -Wl,-Bstatic -lgcc_eh -Wl,-Bdynamic |
|
101 |
endif |
|
102 |
else |
|
103 |
ifeq ($(PLATFORM), solaris) |
|
104 |
OTHER_LDLIBS += -lawt -L$(LIBDIR)/$(LIBARCH)/xawt -lmawt |
|
105 |
endif |
|
106 |
endif |
|
107 |
endif |
|
108 |
||
109 |
||
110 |
# set up compile flags.. |
|
111 |
||
112 |
CPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR) \ |
|
113 |
-I$(CLOSED_SRC)/share/native/$(PKGDIR)/t2k \ |
|
114 |
-I$(CLOSED_SRC)/share/native/$(PKGDIR) \ |
|
115 |
-I$(SHARE_SRC)/share/native/$(PKGDIR) \ |
|
116 |
-I$(PLATFORM_SRC)/native/$(PKGDIR) \ |
|
117 |
-I$(SHARE_SRC)/native/sun/java2d/loops \ |
|
118 |
-I$(SHARE_SRC)/native/sun/java2d/pipe \ |
|
119 |
-I$(PLATFORM_SRC)/native/sun/java2d \ |
|
120 |
-I$(SHARE_SRC)/native/sun/java2d \ |
|
121 |
-I$(TEMPDIR)/../fontmanager/CClassHeaders |