author | michaelm |
Tue, 06 Mar 2012 20:34:38 +0000 | |
changeset 12047 | 320a714614e9 |
parent 11496 | c01632b809ae |
child 17887 | 30b9116a7ae1 |
child 18241 | 3e009b5be123 |
permissions | -rw-r--r-- |
2 | 1 |
# |
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
2 |
# Copyright (c) 1995, 2012, 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 = ../.. |
|
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 |
# |
|
1978
8b981ce05cd0
6797195: Forward-port enhancements for hw/lw mixing from 6u12 to 7
anthony
parents:
1971
diff
changeset
|
50 |
AUTO_FILES_JAVA_DIRS = sun/awt sun/java2d com/sun/awt |
2 | 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 |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
96 |
OTHER_LDLIBS = $(JVMLIB) $(LIBM) $(LIBDL) |
2 | 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 |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
123 |
OTHER_LDLIBS = $(JVMLIB) $(LIBM) $(LIBDL) |
2 | 124 |
endif |
125 |
||
126 |
FILES_c += initIDs.c |
|
127 |
||
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
128 |
ifeq ($(PLATFORM), macosx) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
129 |
FILES_c = $(FILES_2D_c) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
130 |
FILES_c += awt_LoadLibrary.c |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
131 |
OTHER_CFLAGS += -DMLIB_NO_LIBSUNMATH |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
132 |
OTHER_LDLIBS = $(JVMLIB) $(LIBM) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
133 |
endif |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
134 |
|
2 | 135 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS/LINUX |
136 |
endif # PLATFORM |
|
137 |
||
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
138 |
ifeq ($(PLATFORM), macosx) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
139 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv MAC OS X |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
140 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
141 |
# |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
142 |
# Files |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
143 |
# |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
144 |
include FILES_c_macosx.gmk |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
145 |
include FILES_export_macosx.gmk |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
146 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
147 |
FILES_objc = $(FILES_AWT_objc) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
148 |
OTHER_LDLIBS = -lmlib_image $(JVMLIB) $(LIBM) \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
149 |
-framework Cocoa \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
150 |
-framework OpenGL \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
151 |
-framework JavaNativeFoundation \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
152 |
-framework JavaRuntimeSupport \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
153 |
-framework ApplicationServices \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
154 |
-framework AudioToolbox |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
155 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
156 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ MAC OS X |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
157 |
endif # PLATFORM |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
158 |
|
2 | 159 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS-SPARC |
160 |
# solaris-sparc and solaris-sparcv9 both build 'vis' |
|
161 |
ifeq ("$(PLATFORM)-$(ARCH_FAMILY)", "solaris-sparc") |
|
162 |
FILES_c += $(FILES_2D_vis) |
|
163 |
ASFLAGS += -P |
|
164 |
FILES_s += mlib_v_ImageCopy_blk.s |
|
165 |
INLINE_VIS = $(PLATFORM_SRC)/native/sun/awt/medialib/vis_$(ARCH_DATA_MODEL).il |
|
166 |
CFLAGS_sparcv9 = -DMLIB_OS64BIT |
|
167 |
||
168 |
CFLAGS += $(CFLAGS_$(ARCH)) -DMLIB_ADD_SUFF $(INLINE_VIS) \ |
|
169 |
-I$(SHARE_SRC)/native/sun/awt/medialib \ |
|
170 |
-I$(PLATFORM_SRC)/native/sun/awt/medialib \ |
|
171 |
-I$(PLATFORM_SRC)/native/sun/java2d/loops |
|
172 |
||
173 |
vpath %.c $(PLATFORM_SRC)/native/sun/java2d/loops |
|
174 |
vpath %.c $(SHARE_SRC)/native/sun/awt/medialib |
|
175 |
vpath %.c $(PLATFORM_SRC)/native/sun/awt/medialib |
|
176 |
vpath %.s $(PLATFORM_SRC)/native/sun/awt/medialib |
|
177 |
||
178 |
else |
|
179 |
FILES_c += MapAccelFunc.c |
|
180 |
endif |
|
181 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS-SPARC |
|
182 |
||
183 |
# |
|
184 |
# Resources |
|
185 |
# |
|
186 |
LOCALE_SET_DEFINITION = jre |
|
187 |
ifeq ($(PLATFORM), windows) |
|
188 |
RESOURCE_BUNDLES_COMPILED_PROPERTIES += \ |
|
189 |
sun/awt/windows/awtLocalization.properties |
|
190 |
endif |
|
191 |
||
192 |
# |
|
193 |
# Rules |
|
194 |
# |
|
195 |
ifeq ($(PLATFORM), linux) |
|
196 |
FILES_m = mapfile-vers-linux |
|
197 |
# libawt.so on Linux is statically linked with Motif and contains all the |
|
198 |
# Xm symbols. Mapfile is disabled so the symbols will remain public. |
|
199 |
LDNOMAP=true |
|
200 |
endif |
|
201 |
||
202 |
include $(BUILDDIR)/common/Mapfile-vers.gmk |
|
203 |
include $(BUILDDIR)/common/Library.gmk |
|
204 |
||
7777 | 205 |
COMPILEFONTCONFIG_FLAGS = |
206 |
ifdef ALT_COMPILEFONTCONFIG_FLAGS |
|
207 |
COMPILEFONTCONFIG_FLAGS += $(ALT_COMPILEFONTCONFIG_FLAGS) |
|
208 |
endif |
|
2 | 209 |
build: fontconfigs |
210 |
||
211 |
||
212 |
ifeq ($(PLATFORM), windows) |
|
213 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS |
|
214 |
# |
|
215 |
# Additional dependencies. |
|
216 |
# |
|
217 |
# If make.depend is not working correctly, then it can be omitted |
|
218 |
# if you always build from a clean workspace. |
|
219 |
||
220 |
include make.depend |
|
221 |
||
222 |
# required additional rules: |
|
223 |
||
224 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS |
|
225 |
endif # PLATFORM |
|
226 |
||
227 |
ifneq ($(PLATFORM), windows) |
|
228 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS/LINUX |
|
229 |
||
230 |
ifndef OPENJDK |
|
231 |
build: dgalibs |
|
232 |
endif |
|
233 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS/LINUX |
|
234 |
endif # PLATFORM |
|
235 |
||
236 |
clobber clean:: java2d.clean fontconfigs.clean |
|
237 |
||
238 |
ifndef OPENJDK |
|
239 |
clobber clean:: dgalib.clean |
|
240 |
endif |
|
241 |
||
242 |
java2d.clean: |
|
243 |
$(RM) -r $(CLASSBINDIR)/sun/java2d .classes.* |
|
244 |
||
245 |
# |
|
246 |
# Add to the ambient vpath to pick up files in subdirectories |
|
247 |
# |
|
248 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/image |
|
249 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/image/gif |
|
250 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/image/cvutils |
|
251 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/shell |
|
252 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/medialib |
|
253 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/debug |
|
2451 | 254 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/utility |
2 | 255 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../java2d |
256 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../java2d/loops |
|
257 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../java2d/pipe |
|
258 |
vpath %.cpp $(SHARE_SRC)/native/$(PKGDIR)/image |
|
259 |
ifeq ($(PLATFORM), windows) |
|
260 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS |
|
261 |
vpath %.cpp $(PLATFORM_SRC)/native/sun/windows |
|
262 |
vpath %.cpp $(PLATFORM_SRC)/native/$(PKGDIR) |
|
263 |
vpath %.cpp $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/windows |
|
264 |
vpath %.cpp $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/d3d |
|
265 |
vpath %.c $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/opengl |
|
266 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../java2d/opengl |
|
267 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../font |
|
268 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS |
|
269 |
endif # PLATFORM |
|
270 |
||
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
271 |
ifneq (,$(findstring $(PLATFORM), linux bsd)) |
2 | 272 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv LINUX |
273 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../java2d/opengl |
|
274 |
vpath %.c $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/opengl |
|
275 |
vpath %.c $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/x11 |
|
276 |
vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../font |
|
277 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ LINUX |
|
278 |
endif # PLATFORM |
|
279 |
||
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
280 |
ifeq ($(PLATFORM), macosx) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
281 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv MAC OS X |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
282 |
vpath %.m $(call NativeSrcDirList,,native/com/apple/resources) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
283 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ MAC OS X |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
284 |
endif # PLATFORM |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
285 |
|
2 | 286 |
ifeq ($(PLATFORM), windows) |
287 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS |
|
288 |
OTHER_LDLIBS = kernel32.lib user32.lib gdi32.lib winspool.lib \ |
|
1954 | 289 |
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
|
290 |
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
|
291 |
shlwapi.lib delayimp.lib \ |
1954 | 292 |
$(JVMLIB) \ |
293 |
/DELAYLOAD:user32.dll /DELAYLOAD:gdi32.dll \ |
|
294 |
/DELAYLOAD:shell32.dll /DELAYLOAD:winmm.dll \ |
|
295 |
/DELAYLOAD:winspool.drv /DELAYLOAD:imm32.dll \ |
|
296 |
/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
|
297 |
/DELAYLOAD:comctl32.dll /DELAYLOAD:shlwapi.dll |
2 | 298 |
|
299 |
clean:: awt.clean |
|
300 |
||
301 |
awt.clean: |
|
302 |
$(RM) $(TEMPDIR)/awt.ico |
|
303 |
$(RM) $(TEMPDIR)/awt.res |
|
304 |
$(RM) $(TEMPDIR)/hand.cur |
|
305 |
$(RM) $(TEMPDIR)/check.bmp |
|
306 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS |
|
307 |
endif # PLATFORM |
|
308 |
||
309 |
ifneq ($(PLATFORM), windows) |
|
310 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS/LINUX |
|
311 |
||
312 |
LIBXTST = -lXtst |
|
313 |
||
314 |
# Use -lXmu for EditRes support |
|
315 |
LIBXMU_DBG = -lXmu |
|
316 |
LIBXMU_OPT = |
|
317 |
LIBXMU = $(LIBXMU_$(VARIANT)) |
|
318 |
||
319 |
# |
|
320 |
# Extra C flags. |
|
321 |
# |
|
322 |
||
323 |
||
324 |
ifndef OPENJDK |
|
325 |
||
326 |
# |
|
327 |
# Solaris X11 Direct Graphics Access library |
|
328 |
# |
|
329 |
||
330 |
_DGALIBS_sparc = \ |
|
331 |
libxinerama.so \ |
|
332 |
libjdgaSUNWcg6.so \ |
|
333 |
libjdgaSUNWffb.so \ |
|
334 |
libjdgaSUNWm64.so \ |
|
335 |
libjdgaSUNWafb.so |
|
336 |
||
337 |
_DGALIBS_sparcv9 = \ |
|
338 |
libxinerama.so \ |
|
339 |
libjdgaSUNWcg6.so \ |
|
340 |
libjdgaSUNWffb.so \ |
|
341 |
libjdgaSUNWm64.so \ |
|
342 |
libjdgaSUNWafb.so |
|
343 |
||
344 |
_DGALIBS_i586 = # no i586 library yet |
|
345 |
||
346 |
_DGALIBS_amd64 = # no amd64 library yet |
|
347 |
||
348 |
DGALIBS = $(_DGALIBS_$(ARCH):%=$(LIBDIR)/$(LIBARCH)/%) |
|
349 |
||
350 |
dgalibs: $(DGALIBS) |
|
351 |
||
352 |
$(LIBDIR)/$(LIBARCH)/libxinerama.so: $(CLOSED_SRC)/solaris/lib/$(ARCH)/libxinerama.so |
|
353 |
$(install-file) |
|
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2477
diff
changeset
|
354 |
$(call chmod-file, a+x) |
2 | 355 |
|
356 |
$(LIBDIR)/$(LIBARCH)/libjdgaSUNW%.so: $(CLOSED_SRC)/solaris/lib/$(ARCH)/libjdgaSUNW%.so |
|
357 |
$(install-file) |
|
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2477
diff
changeset
|
358 |
$(call chmod-file, a+x) |
2 | 359 |
|
360 |
$(LIBDIR)/$(LIBARCH)/libjdgaSUNWafb.so: $(LIBDIR)/$(LIBARCH)/libjdgaSUNWffb.so |
|
361 |
$(prep-target) |
|
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2477
diff
changeset
|
362 |
$(call install-sym-link, libjdgaSUNWffb.so) |
2 | 363 |
|
364 |
clean:: dgalib.clean |
|
365 |
||
366 |
dgalib.clean: |
|
367 |
$(RM) $(LIBDIR)/$(LIBARCH)/libjdgaSUNW* $(LIBDIR)/$(LIBARCH)/libxinerama.so |
|
368 |
endif |
|
369 |
||
370 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS/LINUX |
|
371 |
endif # PLATFORM |
|
372 |
||
373 |
# |
|
374 |
# Font configs |
|
375 |
# |
|
376 |
||
377 |
ifeq ($(PLATFORM), windows) |
|
378 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS |
|
379 |
||
380 |
FONTCONFIGS_SRC = $(PLATFORM_SRC)/classes/sun/awt/windows |
|
381 |
_FONTCONFIGS = \ |
|
2370
bdaf8cd4253f
6708137: Remove obsolete fontconfig.98.properties from JDK 7
prr
parents:
922
diff
changeset
|
382 |
fontconfig.properties |
2 | 383 |
|
384 |
FONTCONFIGS_SRC_PREFIX = |
|
385 |
||
386 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS |
|
387 |
endif # PLATFORM |
|
388 |
||
389 |
ifeq ($(PLATFORM), linux) |
|
390 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv LINUX |
|
391 |
ifdef OPENJDK |
|
392 |
||
393 |
FONTCONFIGS_SRC = $(PLATFORM_SRC)/classes/sun/awt/fontconfigs |
|
394 |
_FONTCONFIGS = \ |
|
395 |
fontconfig.properties \ |
|
396 |
fontconfig.SuSE.properties \ |
|
397 |
fontconfig.Ubuntu.properties \ |
|
398 |
fontconfig.Fedora.properties |
|
399 |
else |
|
400 |
||
401 |
FONTCONFIGS_SRC = $(CLOSED_SRC)/solaris/classes/sun/awt/fontconfigs |
|
402 |
_FONTCONFIGS = \ |
|
403 |
fontconfig.properties \ |
|
11496
c01632b809ae
7083621: Add fontconfig file for OEL6 and rename RH/O EL 5 file so that it is picked up for all 5.x updates
dbuck
parents:
9035
diff
changeset
|
404 |
fontconfig.RedHat.5.properties \ |
c01632b809ae
7083621: Add fontconfig file for OEL6 and rename RH/O EL 5 file so that it is picked up for all 5.x updates
dbuck
parents:
9035
diff
changeset
|
405 |
fontconfig.RedHat.6.properties \ |
2 | 406 |
fontconfig.Turbo.properties \ |
7507 | 407 |
fontconfig.SuSE.10.properties \ |
408 |
fontconfig.SuSE.11.properties |
|
2 | 409 |
endif |
410 |
||
411 |
FONTCONFIGS_SRC_PREFIX = $(PLATFORM). |
|
412 |
||
413 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ LINUX |
|
414 |
endif # PLATFORM |
|
415 |
||
416 |
ifeq ($(PLATFORM), solaris) |
|
417 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS |
|
418 |
||
419 |
FONTCONFIGS_SRC = $(PLATFORM_SRC)/classes/sun/awt/fontconfigs |
|
420 |
_FONTCONFIGS = \ |
|
7948
6711180a6212
7013646: remove obsolete fontconfig files for linux and solaris
prr
parents:
7793
diff
changeset
|
421 |
fontconfig.properties |
2 | 422 |
|
423 |
FONTCONFIGS_SRC_PREFIX = $(PLATFORM). |
|
424 |
||
425 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS |
|
426 |
endif # PLATFORM |
|
427 |
||
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
428 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
429 |
ifeq ($(PLATFORM), macosx) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
430 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv MAC OS X |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
431 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
432 |
FONTCONFIGS_SRC = $(JDK_TOPDIR)/src/macosx/classes/sun/awt/fontconfigs |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
433 |
_FONTCONFIGS = \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
434 |
fontconfig.properties |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
435 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
436 |
FONTCONFIGS_SRC_PREFIX = $(PLATFORM). |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
437 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
438 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ MAC OS X |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
439 |
endif # PLATFORM |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11496
diff
changeset
|
440 |
|
2 | 441 |
FONTCONFIGS = $(_FONTCONFIGS:%=$(LIBDIR)/%.src) |
442 |
BINARYFONTCONFIGS = $(_FONTCONFIGS:%.properties=$(LIBDIR)/%.bfc) |
|
443 |
||
444 |
fontconfigs: $(FONTCONFIGS) $(BINARYFONTCONFIGS) |
|
445 |
||
446 |
$(LIBDIR)/%.src: $(FONTCONFIGS_SRC)/$(FONTCONFIGS_SRC_PREFIX)% |
|
447 |
$(install-file) |
|
448 |
||
449 |
COMPILEFONTCONFIG_JARFILE = $(BUILDTOOLJARDIR)/compilefontconfig.jar |
|
450 |
||
451 |
$(LIBDIR)/%.bfc: $(FONTCONFIGS_SRC)/$(FONTCONFIGS_SRC_PREFIX)%.properties \ |
|
452 |
$(COMPILEFONTCONFIG_JARFILE) |
|
453 |
$(prep-target) |
|
7777 | 454 |
$(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
|
455 |
$(call chmod-file, 444) |
2 | 456 |
@$(java-vm-cleanup) |
457 |
||
458 |
fontconfigs.clean : |
|
459 |
$(RM) $(FONTCONFIGS) |
|
460 |
$(RM) $(BINARYFONTCONFIGS) |
|
461 |
||
462 |
ifeq ($(PLATFORM), windows) |
|
463 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS |
|
464 |
OTHER_CFLAGS += $(GX_OPTION) -DUNICODE -D_UNICODE |
|
465 |
||
466 |
ifeq ($(MILESTONE), internal) |
|
467 |
CPPFLAGS += -DINTERNAL_BUILD |
|
468 |
endif |
|
469 |
||
470 |
# |
|
471 |
# Useful variables that name parts of the src tree. |
|
472 |
# |
|
473 |
WINAWT_native = $(PLATFORM_SRC)/native/sun/windows |
|
474 |
WINAWT_COMMON_native = $(PLATFORM_SRC)/native/sun/awt_common |
|
475 |
||
476 |
# FIXME: awt shouldn't have to see the VM's private headers. |
|
477 |
# FIXME: if you re-order this list, the build breaks, possibly because |
|
478 |
# of filename collision. Such a collision, if present, is pure |
|
479 |
# evil. Need to investigate this. |
|
480 |
||
481 |
OTHER_INCLUDES += -I$(CLASSHDRDIR)/../../java/jvm \ |
|
482 |
-I$(OBJDIR) \ |
|
483 |
-I$(SHARE_SRC)/native/common \ |
|
484 |
-I$(WINAWT_native) \ |
|
485 |
-I$(DXSDK_INCLUDE_PATH) \ |
|
486 |
-I$(SHARE_SRC)/native/sun/awt/image/cvutils \ |
|
487 |
-I$(SHARE_SRC)/native/sun/awt/image \ |
|
488 |
-I$(SHARE_SRC)/native/sun/java2d/loops \ |
|
489 |
-I$(SHARE_SRC)/native/sun/java2d \ |
|
490 |
-I$(PLATFORM_SRC)/native/sun/java2d \ |
|
491 |
-I$(SHARE_SRC)/native/sun/java2d/opengl \ |
|
492 |
-I$(PLATFORM_SRC)/native/sun/java2d/d3d \ |
|
493 |
-I$(PLATFORM_SRC)/native/sun/java2d/opengl \ |
|
494 |
-I$(PLATFORM_SRC)/native/sun/java2d/windows \ |
|
495 |
-I$(SHARE_SRC)/native/sun/font \ |
|
496 |
-I$(SHARE_SRC)/native/sun/java2d/pipe \ |
|
497 |
-I$(SHARE_SRC)/native/sun/dc/path \ |
|
498 |
-I$(SHARE_SRC)/native/sun/dc/doe \ |
|
499 |
-I$(SHARE_SRC)/native/sun/awt/debug \ |
|
887 | 500 |
-I$(PLATFORM_SRC)/native/sun/awt |
2 | 501 |
# -I$(WINAWT_COMMON_native) |
502 |
||
503 |
# this is only required for compiling )/native/sun/awt/medialib/*.c files |
|
504 |
# |
|
505 |
OTHER_INCLUDES += -I$(SHARE_SRC)/native/sun/awt/medialib |
|
506 |
||
507 |
# |
|
508 |
# .res file construction. |
|
509 |
# |
|
510 |
||
511 |
ifdef OPENJDK |
|
512 |
RC_FLAGS += -i "$(PLATFORM_SRC)/resource/icons" |
|
513 |
else |
|
514 |
RC_FLAGS += -i "$(CLOSED_SRC)/windows/native/sun/windows" |
|
515 |
endif |
|
516 |
VERSIONINFO_RESOURCE = $(WINAWT_native)/awt.rc |
|
517 |
||
518 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS |
|
519 |
endif # PLATFORM |
|
520 |
||
521 |
ifneq ($(PLATFORM), windows) |
|
522 |
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS/LINUX |
|
523 |
||
524 |
# |
|
525 |
# Other extra flags needed for compiling. |
|
526 |
# |
|
527 |
||
528 |
ifeq ($(PLATFORM), linux) |
|
529 |
CPPFLAGS += -I$(OPENWIN_HOME)/include \ |
|
530 |
-I$(OPENWIN_HOME)/include/X11/extensions \ |
|
531 |
-I$(PLATFORM_SRC)/native/$(PKGDIR)/font |
|
532 |
endif |
|
533 |
CPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR)/debug \ |
|
534 |
-I$(SHARE_SRC)/native/$(PKGDIR)/../font \ |
|
535 |
-I$(PLATFORM_SRC)/native/$(PKGDIR)/../font \ |
|
536 |
-I$(SHARE_SRC)/native/$(PKGDIR)/image \ |
|
537 |
-I$(SHARE_SRC)/native/$(PKGDIR)/image/cvutils \ |
|
538 |
-I$(SHARE_SRC)/native/$(PKGDIR)/shell \ |
|
539 |
-I$(SHARE_SRC)/native/$(PKGDIR)/medialib \ |
|
540 |
-I$(PLATFORM_SRC)/native/$(PKGDIR)/medialib \ |
|
541 |
-I$(SHARE_SRC)/native/$(PKGDIR)/../java2d \ |
|
542 |
-I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d \ |
|
543 |
-I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/loops \ |
|
544 |
-I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/pipe \ |
|
545 |
-I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/opengl \ |
|
546 |
-I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/opengl \ |
|
547 |
-I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/x11 \ |
|
548 |
-I$(SHARE_SRC)/native/$(PKGDIR)/../dc/doe \ |
|
549 |
-I$(SHARE_SRC)/native/$(PKGDIR)/../dc/path \ |
|
550 |
-I$(PLATFORM_SRC)/native/$(PKGDIR)/../jdga \ |
|
551 |
-I$(PLATFORM_SRC)/native/$(PKGDIR) \ |
|
552 |
$(EVENT_MODEL) |
|
553 |
||
554 |
ifeq ($(PLATFORM), linux) |
|
555 |
LDFLAGS += -L$(OPENWIN_LIB) |
|
556 |
endif |
|
557 |
||
558 |
LDFLAGS += -L$(LIBDIR)/$(LIBARCH)/$(TSOBJDIR) \ |
|
559 |
$(AWT_RUNPATH) |
|
560 |
||
561 |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS/LINUX |
|
562 |
endif # PLATFORM |
|
563 |
||
564 |
CLASSES.export += java.io.InputStream \ |
|
565 |
java.lang.Integer \ |
|
566 |
java.lang.ThreadGroup |
|
567 |
||
568 |
.PHONY: dgalibs dgalib.clean fontconfigs fontconfigs.clean |
|
569 |