author | prr |
Thu, 20 Feb 2014 16:27:08 -0800 | |
changeset 23310 | dfbe9ff289c6 |
parent 23305 | e7d0093bfc6c |
parent 22963 | a28e6f0b511b |
child 23592 | 35b16ae6b4f4 |
permissions | -rw-r--r-- |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
1 |
# |
22649
f70b08c1593c
8033532: Freetype include statement must come before X11 include
ihse
parents:
22607
diff
changeset
|
2 |
# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
4 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
5 |
# This code is free software; you can redistribute it and/or modify it |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
7 |
# published by the Free Software Foundation. Oracle designates this |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
8 |
# particular file as subject to the "Classpath" exception as provided |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
10 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
15 |
# accompanied this code). |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
16 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
17 |
# You should have received a copy of the GNU General Public License version |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
20 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
22 |
# or visit www.oracle.com if you need additional information or have any |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
23 |
# questions. |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
24 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
25 |
|
22963
a28e6f0b511b
8034191: Move relevant parts of build system to new closed repo
ihse
parents:
22649
diff
changeset
|
26 |
# Hook to include the corresponding custom file, if present. |
a28e6f0b511b
8034191: Move relevant parts of build system to new closed repo
ihse
parents:
22649
diff
changeset
|
27 |
$(eval $(call IncludeCustomExtension, jdk, lib/Awt2dLibraries.gmk)) |
a28e6f0b511b
8034191: Move relevant parts of build system to new closed repo
ihse
parents:
22649
diff
changeset
|
28 |
|
20901
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
29 |
# Openwin is defined on Solaris. |
20547 | 30 |
OPENWIN_LIB := $(OPENWIN_HOME)/lib |
13702 | 31 |
|
20890 | 32 |
WIN_AWT_LIB := $(JDK_OUTPUTDIR)/objs/libawt/awt.lib |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
33 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
34 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
35 |
|
20547 | 36 |
BUILD_LIBMLIB_SRC := $(JDK_TOPDIR)/src/share/native/sun/awt/medialib |
37 |
BUILD_LIBMLIB_CFLAGS := -D__USE_J2D_NAMES -D__MEDIALIB_OLD_NAMES \ |
|
38 |
-I$(BUILD_LIBMLIB_SRC) \ |
|
39 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/medialib |
|
40 |
||
41 |
BUILD_LIBMLIB_LDLIBS := |
|
21805 | 42 |
BUILD_LIBMLIB_IMAGE_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libmlib_image/mapfile-vers |
13164 | 43 |
|
13702 | 44 |
BUILD_LIBMLIB_CFLAGS += -DMLIB_NO_LIBSUNMATH |
45 |
||
46 |
ifeq ($(OPENJDK_TARGET_CPU_BITS), 64) |
|
20547 | 47 |
BUILD_LIBMLIB_CFLAGS += -DMLIB_OS64BIT |
12892 | 48 |
endif |
49 |
||
13164 | 50 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
20547 | 51 |
BUILD_LIBMLIB_LDLIBS += $(LIBM) $(LIBDL) |
12892 | 52 |
endif |
53 |
||
20547 | 54 |
$(eval $(call SetupNativeCompilation,BUILD_LIBMLIB_IMAGE, \ |
55 |
LIBRARY := mlib_image, \ |
|
56 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
57 |
SRC := $(BUILD_LIBMLIB_SRC), \ |
|
58 |
EXCLUDE_FILES := awt_ImagingLib.c mlib_c_ImageBlendTable.c, \ |
|
59 |
LANG := C, \ |
|
60 |
OPTIMIZATION := HIGHEST, \ |
|
61 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
62 |
$(BUILD_LIBMLIB_CFLAGS), \ |
|
63 |
MAPFILE := $(BUILD_LIBMLIB_IMAGE_MAPFILE), \ |
|
64 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
|
65 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
66 |
LDFLAGS_SUFFIX := $(BUILD_LIBMLIB_LDLIBS) \ |
|
67 |
$(LDFLAGS_JDKLIB_SUFFIX), \ |
|
68 |
LDFLAGS_SUFFIX_solaris := -lc, \ |
|
69 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ |
|
70 |
RC_FLAGS := $(RC_FLAGS) \ |
|
71 |
-D "JDK_FNAME=mlib_image.dll" \ |
|
72 |
-D "JDK_INTERNAL_NAME=mlib_image" \ |
|
73 |
-D "JDK_FTYPE=0x2L", \ |
|
74 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libmlib_image, \ |
|
75 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
76 |
||
77 |
$(BUILD_LIBMLIB_IMAGE): $(BUILD_LIBJAVA) |
|
13164 | 78 |
|
79 |
BUILD_LIBRARIES += $(BUILD_LIBMLIB_IMAGE) |
|
12892 | 80 |
|
81 |
########################################################################################## |
|
82 |
||
20547 | 83 |
ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH), solaris-sparc) |
84 |
||
85 |
BUILD_LIBMLIB_IMAGE_V_FILES := \ |
|
86 |
mlib_v_ImageLookUp.c \ |
|
87 |
mlib_ImageCreate.c \ |
|
88 |
mlib_ImageAffine.c \ |
|
89 |
mlib_ImageConvMxN.c \ |
|
90 |
mlib_ImageConvKernelConvert.c \ |
|
91 |
mlib_sys.c \ |
|
92 |
mlib_ImageLookUp_64.c \ |
|
93 |
mlib_ImageLookUp_Bit.c \ |
|
94 |
mlib_ImageColorTrue2Index.c \ |
|
95 |
mlib_c_ImageThresh1_U8.c \ |
|
96 |
mlib_v_ImageLookUpS16S16Func.c \ |
|
97 |
mlib_v_ImageLookUpS16S32Func.c \ |
|
98 |
mlib_v_ImageLookUpS16U16Func.c \ |
|
99 |
mlib_v_ImageLookUpS16U8Func.c \ |
|
100 |
mlib_v_ImageLookUpS32S16Func.c \ |
|
101 |
mlib_v_ImageLookUpS32S32Func.c \ |
|
102 |
mlib_v_ImageLookUpS32U16Func.c \ |
|
103 |
mlib_v_ImageLookUpS32U8Func.c \ |
|
104 |
mlib_v_ImageLookUpSIS16S16Func.c \ |
|
105 |
mlib_v_ImageLookUpSIS16S32Func.c \ |
|
106 |
mlib_v_ImageLookUpSIS16U16Func.c \ |
|
107 |
mlib_v_ImageLookUpSIS16U8Func.c \ |
|
108 |
mlib_v_ImageLookUpSIS32S16Func.c \ |
|
109 |
mlib_v_ImageLookUpSIS32S32Func.c \ |
|
110 |
mlib_v_ImageLookUpSIS32U16Func.c \ |
|
111 |
mlib_v_ImageLookUpSIS32U8Func.c \ |
|
112 |
mlib_v_ImageLookUpSIU16S16Func.c \ |
|
113 |
mlib_v_ImageLookUpSIU16S32Func.c \ |
|
114 |
mlib_v_ImageLookUpSIU16U16Func.c \ |
|
115 |
mlib_v_ImageLookUpSIU16U8Func.c \ |
|
116 |
mlib_v_ImageLookUpSIU8S16Func.c \ |
|
117 |
mlib_v_ImageLookUpSIU8S32Func.c \ |
|
118 |
mlib_v_ImageLookUpSIU8U16Func.c \ |
|
119 |
mlib_v_ImageLookUpSIU8U8Func.c \ |
|
120 |
mlib_v_ImageLookUpU16S16Func.c \ |
|
121 |
mlib_v_ImageLookUpU16S32Func.c \ |
|
122 |
mlib_v_ImageLookUpU16U16Func.c \ |
|
123 |
mlib_v_ImageLookUpU16U8Func.c \ |
|
124 |
mlib_v_ImageLookUpU8S16Func.c \ |
|
125 |
mlib_v_ImageLookUpU8S32Func.c \ |
|
126 |
mlib_v_ImageLookUpU8U16Func.c \ |
|
127 |
mlib_v_ImageLookUpU8U8Func.c \ |
|
128 |
mlib_v_ImageAffineIndex_BC.c \ |
|
129 |
mlib_v_ImageAffine_BC.c \ |
|
130 |
mlib_v_ImageAffine_BC_S16.c \ |
|
131 |
mlib_v_ImageAffine_BC_U16.c \ |
|
132 |
mlib_v_ImageAffine_BL.c \ |
|
133 |
mlib_v_ImageAffine_BL_S16.c \ |
|
134 |
mlib_v_ImageAffine_BL_U16.c \ |
|
135 |
mlib_v_ImageAffine_NN.c \ |
|
136 |
mlib_v_ImageFilters.c \ |
|
137 |
mlib_ImageAffineEdge.c \ |
|
138 |
mlib_ImageAffine_BC_D64.c \ |
|
139 |
mlib_ImageAffine_BC_F32.c \ |
|
140 |
mlib_ImageAffine_BC_S32.c \ |
|
141 |
mlib_ImageAffine_BL_D64.c \ |
|
142 |
mlib_ImageAffine_BL_F32.c \ |
|
143 |
mlib_ImageAffine_BL_S32.c \ |
|
144 |
mlib_ImageAffine_NN.c \ |
|
145 |
mlib_ImageAffine_NN_Bit.c \ |
|
146 |
mlib_ImageFilters.c \ |
|
147 |
mlib_ImageScanPoly.c \ |
|
148 |
mlib_ImageConv_8nw.c \ |
|
149 |
mlib_ImageConv_8ext.c \ |
|
150 |
mlib_ImageConv_16nw.c \ |
|
151 |
mlib_ImageConv_16ext.c \ |
|
152 |
mlib_ImageConv_u16nw.c \ |
|
153 |
mlib_ImageConv_u16ext.c \ |
|
154 |
mlib_ImageConv_32nw.c \ |
|
155 |
mlib_ImageConv_F32nw.c \ |
|
156 |
mlib_ImageConvMxN_Fp.c \ |
|
157 |
mlib_ImageConvMxN_ext.c \ |
|
158 |
mlib_ImageConv_D64nw.c \ |
|
159 |
mlib_ImageClipping.c \ |
|
160 |
mlib_ImageConvCopyEdge_Bit.c \ |
|
161 |
mlib_ImageConvClearEdge_Bit.c \ |
|
162 |
mlib_ImageConv2x2_f.c \ |
|
163 |
mlib_ImageConvClearEdge_Fp.c \ |
|
164 |
mlib_v_ImageConvMxN_8.c \ |
|
165 |
mlib_v_ImageConvClearEdge.c \ |
|
166 |
mlib_v_ImageConvCopyEdge.c \ |
|
167 |
mlib_v_ImageConvMxN_8ext.c \ |
|
168 |
mlib_v_ImageConvVersion.c \ |
|
169 |
mlib_v_ImageConv_8nw.c \ |
|
170 |
mlib_ImageConvCopyEdge_Fp.c \ |
|
171 |
mlib_v_ImageChannelInsert_1.c \ |
|
172 |
mlib_v_ImageChannelExtract_43.c \ |
|
173 |
mlib_v_ImageChannelExtract_1.c \ |
|
174 |
mlib_ImageCopy_Bit.c \ |
|
175 |
mlib_v_ImageCopy_f.c \ |
|
176 |
mlib_ImageUtils.c \ |
|
177 |
mlib_ImageDivTables.c |
|
178 |
||
179 |
BUILD_LIBMLIB_V_CFLAGS := $(filter-out -DMLIB_NO_LIBSUNMATH, $(BUILD_LIBMLIB_CFLAGS)) |
|
180 |
||
181 |
$(eval $(call SetupNativeCompilation,BUILD_LIBMLIB_IMAGE_V, \ |
|
182 |
LIBRARY := mlib_image_v, \ |
|
183 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
184 |
SRC := $(JDK_TOPDIR)/src/share/native/sun/awt/medialib \ |
|
185 |
$(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib, \ |
|
186 |
LANG := C, \ |
|
187 |
INCLUDE_FILES := $(BUILD_LIBMLIB_IMAGE_V_FILES), \ |
|
188 |
OPTIMIZATION := HIGHEST, \ |
|
189 |
CFLAGS := -xarch=sparcvis \ |
|
190 |
$(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib/vis_$(OPENJDK_TARGET_CPU_BITS).il \ |
|
191 |
$(BUILD_LIBMLIB_V_CFLAGS) \ |
|
192 |
$(CFLAGS_JDKLIB), \ |
|
193 |
MAPFILE := $(BUILD_LIBMLIB_IMAGE_MAPFILE), \ |
|
194 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
|
195 |
$(BUILD_LIBMLIB_LDLIBS) -ljava -ljvm \ |
|
196 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
197 |
LDFLAGS_SUFFIX_solaris := -lc, \ |
|
198 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libmlib_image_v, \ |
|
199 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
200 |
||
201 |
$(BUILD_LIBMLIB_IMAGE_V): $(BUILD_LIBJAVA) |
|
202 |
||
203 |
BUILD_LIBRARIES += $(BUILD_LIBMLIB_IMAGE_V) |
|
12892 | 204 |
|
205 |
endif |
|
206 |
||
207 |
########################################################################################## |
|
208 |
||
20547 | 209 |
LIBAWT_DIRS := \ |
210 |
$(JDK_TOPDIR)/src/share/native/sun/awt \ |
|
211 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt \ |
|
212 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image \ |
|
213 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image/gif \ |
|
214 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
215 |
$(JDK_TOPDIR)/src/share/native/sun/awt/medialib \ |
|
216 |
$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
|
217 |
$(JDK_TOPDIR)/src/share/native/sun/awt/utility \ |
|
218 |
$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
219 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \ |
|
220 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
|
221 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
222 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image \ |
|
223 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \ |
|
224 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/opengl \ |
|
225 |
$(JDK_TOPDIR)/src/share/native/sun/font |
|
226 |
||
227 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
228 |
LIBAWT_DIRS += \ |
|
229 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/windows \ |
|
230 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/windows \ |
|
231 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/d3d |
|
21130 | 232 |
else ifneq ($(OPENJDK_TARGET_OS), macosx) |
20547 | 233 |
LIBAWT_DIRS += \ |
234 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/x11 |
|
14231 | 235 |
endif |
13164 | 236 |
|
22597
7515a991bb37
8024854: PPC64: Basic changes and files to build the class library on AIX
simonis
parents:
22595
diff
changeset
|
237 |
ifeq ($(OPENJDK_TARGET_OS), aix) |
7515a991bb37
8024854: PPC64: Basic changes and files to build the class library on AIX
simonis
parents:
22595
diff
changeset
|
238 |
LIBAWT_DIRS += $(JDK_TOPDIR)/src/aix/porting |
7515a991bb37
8024854: PPC64: Basic changes and files to build the class library on AIX
simonis
parents:
22595
diff
changeset
|
239 |
endif |
7515a991bb37
8024854: PPC64: Basic changes and files to build the class library on AIX
simonis
parents:
22595
diff
changeset
|
240 |
|
20547 | 241 |
LIBAWT_CFLAGS += -D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES \ |
242 |
$(X_CFLAGS) \ |
|
243 |
$(foreach dir, $(LIBAWT_DIRS), -I$(dir)) |
|
244 |
||
245 |
LIBAWT_FILES := \ |
|
246 |
gifdecoder.c \ |
|
247 |
imageInitIDs.c \ |
|
248 |
img_globals.c \ |
|
249 |
SurfaceData.c \ |
|
250 |
Region.c \ |
|
251 |
BufImgSurfaceData.c \ |
|
252 |
Disposer.c \ |
|
253 |
Trace.c \ |
|
254 |
GraphicsPrimitiveMgr.c \ |
|
255 |
Blit.c \ |
|
256 |
BlitBg.c \ |
|
257 |
ScaledBlit.c \ |
|
258 |
FillRect.c \ |
|
259 |
FillSpans.c \ |
|
260 |
FillParallelogram.c \ |
|
261 |
DrawParallelogram.c \ |
|
262 |
DrawLine.c \ |
|
263 |
DrawRect.c \ |
|
264 |
DrawPolygons.c \ |
|
265 |
DrawPath.c \ |
|
266 |
FillPath.c \ |
|
267 |
ProcessPath.c \ |
|
268 |
MaskBlit.c \ |
|
269 |
MaskFill.c \ |
|
270 |
TransformHelper.c \ |
|
271 |
AlphaMath.c \ |
|
272 |
AlphaMacros.c \ |
|
273 |
AnyByte.c \ |
|
274 |
ByteBinary1Bit.c \ |
|
275 |
ByteBinary2Bit.c \ |
|
276 |
ByteBinary4Bit.c \ |
|
277 |
ByteIndexed.c \ |
|
278 |
ByteGray.c \ |
|
279 |
Index8Gray.c \ |
|
280 |
Index12Gray.c \ |
|
281 |
AnyShort.c \ |
|
282 |
Ushort555Rgb.c \ |
|
283 |
Ushort565Rgb.c \ |
|
284 |
Ushort4444Argb.c \ |
|
285 |
Ushort555Rgbx.c \ |
|
286 |
UshortGray.c \ |
|
287 |
UshortIndexed.c \ |
|
288 |
Any3Byte.c \ |
|
289 |
ThreeByteBgr.c \ |
|
290 |
AnyInt.c \ |
|
291 |
IntArgb.c \ |
|
292 |
IntArgbPre.c \ |
|
293 |
IntArgbBm.c \ |
|
294 |
IntRgb.c \ |
|
295 |
IntBgr.c \ |
|
296 |
IntRgbx.c \ |
|
297 |
Any4Byte.c \ |
|
298 |
FourByteAbgr.c \ |
|
299 |
FourByteAbgrPre.c \ |
|
300 |
BufferedMaskBlit.c \ |
|
301 |
BufferedRenderPipe.c \ |
|
302 |
ShapeSpanIterator.c \ |
|
303 |
SpanClipRenderer.c \ |
|
304 |
awt_ImageRep.c \ |
|
305 |
awt_ImagingLib.c \ |
|
306 |
awt_Mlib.c \ |
|
307 |
awt_parseImage.c \ |
|
308 |
DataBufferNative.c \ |
|
309 |
dither.c \ |
|
310 |
debug_assert.c \ |
|
311 |
debug_mem.c \ |
|
312 |
debug_trace.c \ |
|
313 |
debug_util.c |
|
314 |
||
22595
aaa6b141196c
8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents:
22594
diff
changeset
|
315 |
ifneq (, $(filter $(OPENJDK_TARGET_OS), solaris linux aix)) |
20547 | 316 |
LIBAWT_FILES += awt_LoadLibrary.c initIDs.c img_colors.c |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
317 |
endif |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
318 |
|
22597
7515a991bb37
8024854: PPC64: Basic changes and files to build the class library on AIX
simonis
parents:
22595
diff
changeset
|
319 |
ifeq ($(OPENJDK_TARGET_OS), aix) |
7515a991bb37
8024854: PPC64: Basic changes and files to build the class library on AIX
simonis
parents:
22595
diff
changeset
|
320 |
LIBAWT_FILES += porting_aix.c |
7515a991bb37
8024854: PPC64: Basic changes and files to build the class library on AIX
simonis
parents:
22595
diff
changeset
|
321 |
endif |
7515a991bb37
8024854: PPC64: Basic changes and files to build the class library on AIX
simonis
parents:
22595
diff
changeset
|
322 |
|
20547 | 323 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
324 |
LIBAWT_FILES += awt_LoadLibrary.c img_colors.c |
|
325 |
LIBAWT_CFLAGS += -F/System/Library/Frameworks/JavaVM.framework/Frameworks |
|
12892 | 326 |
endif |
327 |
||
13164 | 328 |
ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH), solaris-sparc) |
20547 | 329 |
LIBAWT_CFLAGS += -DMLIB_ADD_SUFF |
330 |
LIBAWT_CFLAGS += -xarch=sparcvis |
|
331 |
LIBAWT_CFLAGS += $(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib/vis_$(OPENJDK_TARGET_CPU_BITS).il |
|
332 |
LIBAWT_CFLAGS += \ |
|
333 |
-I$(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib \ |
|
334 |
-I$(JDK_TOPDIR)/src/solaris/native/sun/java2d/medialib \ |
|
335 |
-I$(JDK_TOPDIR)/src/solaris/native/sun/java2d/loops |
|
336 |
||
337 |
LIBAWT_DIRS += $(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib \ |
|
338 |
$(JDK_TOPDIR)/src/solaris/native/sun/java2d/loops |
|
339 |
||
340 |
LIBAWT_FILES += \ |
|
341 |
vis_FuncArray.c \ |
|
342 |
java2d_Mlib.c \ |
|
343 |
mlib_ImageCreate.c \ |
|
344 |
mlib_ImageZoom_NN.c \ |
|
345 |
mlib_ImageCopy_Bit.c \ |
|
346 |
mlib_sys.c \ |
|
347 |
mlib_v_ImageClear.c \ |
|
348 |
mlib_v_ImageClear_f.c \ |
|
349 |
mlib_v_ImageConstXor.c \ |
|
350 |
mlib_v_ImageCopy.c \ |
|
351 |
mlib_v_ImageCopy_f.c \ |
|
352 |
mlib_v_ImageXor.c \ |
|
353 |
mlib_v_ImageZoom_NN_f.c \ |
|
354 |
vis_Interp.c \ |
|
355 |
vis_AlphaMacros.c \ |
|
356 |
vis_AlphaMaskBlit.c \ |
|
357 |
vis_AlphaMaskFill.c \ |
|
358 |
vis_ByteGray.c \ |
|
359 |
vis_ByteGray_FromRgb.c \ |
|
360 |
vis_ByteGray_Mask.c \ |
|
361 |
vis_ByteIndexed.c \ |
|
362 |
vis_DrawLine.c \ |
|
363 |
vis_FourByteAbgr.c \ |
|
364 |
vis_IntArgb.c \ |
|
365 |
vis_IntArgbPre.c \ |
|
366 |
vis_IntArgbPre_Mask.c \ |
|
367 |
vis_IntBgr.c \ |
|
368 |
vis_IntRgb.c \ |
|
369 |
vis_IntRgbx.c \ |
|
370 |
vis_SrcMaskFill.c \ |
|
371 |
vis_SrcOverMaskBlit.c \ |
|
372 |
vis_SrcOverMaskFill.c \ |
|
373 |
vis_FourByteAbgrPre.c \ |
|
374 |
vis_GlyphList.c \ |
|
375 |
vis_GlyphListXor.c \ |
|
376 |
vis_IntArgbBm.c \ |
|
377 |
vis_ThreeByteBgr.c \ |
|
378 |
vis_UshortGray.c \ |
|
379 |
vis_UshortGray_FromRgb.c \ |
|
380 |
vis_XorBlit.c \ |
|
381 |
mlib_v_ImageCopy_blk.s |
|
382 |
||
383 |
ifeq ($(OPENJDK_TARGET_CPU), sparcv9) |
|
384 |
LIBAWT_ASFLAGS = -P -xarch=v9a |
|
385 |
else |
|
386 |
LIBAWT_ASFLAGS = -P -xarch=v8plusa |
|
387 |
endif |
|
12892 | 388 |
else |
20547 | 389 |
LIBAWT_FILES += MapAccelFunc.c |
12892 | 390 |
endif |
391 |
||
20547 | 392 |
ifneq ($(OPENJDK_TARGET_OS), solaris) |
393 |
LIBAWT_CFLAGS += -DMLIB_NO_LIBSUNMATH |
|
12892 | 394 |
endif |
395 |
||
20547 | 396 |
LIBAWT_LANG := C |
397 |
||
398 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
399 |
LIBAWT_FILES += AccelGlyphCache.c \ |
|
400 |
ShaderList.c \ |
|
401 |
CmdIDList.cpp \ |
|
402 |
Hashtable.cpp \ |
|
403 |
GDIHashtable.cpp \ |
|
404 |
Devices.cpp \ |
|
405 |
ObjectList.cpp \ |
|
406 |
GDIBlitLoops.cpp \ |
|
407 |
GDIRenderer.cpp \ |
|
408 |
GDIWindowSurfaceData.cpp \ |
|
409 |
WindowsFlags.cpp \ |
|
410 |
WPrinterJob.cpp \ |
|
411 |
awt_%.cpp \ |
|
412 |
D3DBlitLoops.cpp \ |
|
413 |
D3DBufImgOps.cpp \ |
|
414 |
D3DContext.cpp \ |
|
415 |
D3DGlyphCache.cpp \ |
|
416 |
D3DGraphicsDevice.cpp \ |
|
417 |
D3DMaskBlit.cpp \ |
|
418 |
D3DMaskCache.cpp \ |
|
419 |
D3DMaskFill.cpp \ |
|
420 |
D3DPipelineManager.cpp \ |
|
421 |
D3DPaints.cpp \ |
|
422 |
D3DRenderer.cpp \ |
|
423 |
D3DRenderQueue.cpp \ |
|
424 |
D3DResourceManager.cpp \ |
|
425 |
D3DSurfaceData.cpp \ |
|
426 |
D3DTextRenderer.cpp \ |
|
427 |
D3DVertexCacher.cpp \ |
|
428 |
ShellFolder2.cpp \ |
|
429 |
ThemeReader.cpp \ |
|
430 |
ComCtl32Util.cpp \ |
|
431 |
DllUtil.cpp \ |
|
432 |
initIDs.cpp \ |
|
433 |
MouseInfo.cpp \ |
|
434 |
rect.c \ |
|
435 |
OGLBlitLoops.c \ |
|
436 |
OGLBufImgOps.c \ |
|
437 |
OGLContext.c \ |
|
438 |
OGLFuncs.c \ |
|
439 |
OGLMaskBlit.c \ |
|
440 |
OGLMaskFill.c \ |
|
441 |
OGLPaints.c \ |
|
442 |
OGLRenderQueue.c \ |
|
443 |
OGLRenderer.c \ |
|
444 |
OGLSurfaceData.c \ |
|
445 |
OGLTextRenderer.c \ |
|
446 |
OGLVertexCache.c \ |
|
447 |
WGLGraphicsConfig.c \ |
|
448 |
WGLSurfaceData.c |
|
449 |
||
450 |
LIBAWT_LANG := C++ |
|
451 |
LIBAWT_CFLAGS += -EHsc -DUNICODE -D_UNICODE |
|
452 |
ifeq ($(OPENJDK_TARGET_CPU_BITS), 64) |
|
453 |
LIBAWT_CFLAGS += -DMLIB_OS64BIT |
|
454 |
endif |
|
455 |
||
456 |
ifdef OPENJDK |
|
457 |
LIBAWT_RC_FLAGS := -i "$(JDK_TOPDIR)/src/windows/resource/icons" |
|
458 |
else |
|
459 |
LIBAWT_RC_FLAGS := -i "$(JDK_TOPDIR)/src/closed/windows/native/sun/windows" |
|
460 |
endif |
|
461 |
LIBAWT_VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/native/sun/windows/awt.rc |
|
12892 | 462 |
endif |
463 |
||
13164 | 464 |
ifeq ($(MILESTONE), internal) |
20547 | 465 |
LIBAWT_CFLAGS += -DINTERNAL_BUILD |
12892 | 466 |
endif |
467 |
||
21805 | 468 |
LIBAWT_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libawt/mapfile-vers |
20547 | 469 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
470 |
LIBAWT_MAPFILE := |
|
12892 | 471 |
endif |
472 |
||
20547 | 473 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT, \ |
474 |
LIBRARY := awt, \ |
|
475 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
476 |
SRC := $(LIBAWT_DIRS), \ |
|
477 |
INCLUDE_FILES := $(LIBAWT_FILES), \ |
|
478 |
LANG := $(LIBAWT_LANG), \ |
|
479 |
OPTIMIZATION := LOW, \ |
|
480 |
CFLAGS := $(CFLAGS_JDKLIB) $(LIBAWT_CFLAGS), \ |
|
481 |
ASFLAGS := $(LIBAWT_ASFLAGS), \ |
|
482 |
MAPFILE := $(LIBAWT_MAPFILE), \ |
|
483 |
LDFLAGS := $(LDFLAGS_JDKLIB) $(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
484 |
LDFLAGS_solaris := -R/usr/dt/lib$(OPENJDK_TARGET_CPU_ISADIR) -R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR), \ |
|
485 |
LDFLAGS_SUFFIX_linux := -ljvm $(LIBM) $(LIBDL) -ljava, \ |
|
486 |
LDFLAGS_SUFFIX_solaris := -ljvm $(LIBM) $(LIBDL) -ljava -lc, \ |
|
22595
aaa6b141196c
8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents:
22594
diff
changeset
|
487 |
LDFLAGS_SUFFIX_aix :=-ljvm $(LIBM) $(LIBDL) -ljava -lm,\ |
20547 | 488 |
LDFLAGS_SUFFIX_macosx := -lmlib_image -ljvm $(LIBM) \ |
489 |
-framework Cocoa \ |
|
490 |
-framework OpenGL \ |
|
491 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
492 |
-framework JavaNativeFoundation \ |
|
493 |
-framework JavaRuntimeSupport \ |
|
494 |
-framework ApplicationServices \ |
|
495 |
-framework AudioToolbox \ |
|
496 |
-ljava, \ |
|
497 |
LDFLAGS_SUFFIX_windows := kernel32.lib user32.lib gdi32.lib winspool.lib \ |
|
498 |
imm32.lib ole32.lib uuid.lib shell32.lib \ |
|
499 |
comdlg32.lib winmm.lib comctl32.lib shlwapi.lib \ |
|
500 |
delayimp.lib jvm.lib $(WIN_JAVA_LIB) advapi32.lib \ |
|
501 |
-DELAYLOAD:user32.dll -DELAYLOAD:gdi32.dll \ |
|
502 |
-DELAYLOAD:shell32.dll -DELAYLOAD:winmm.dll \ |
|
503 |
-DELAYLOAD:winspool.drv -DELAYLOAD:imm32.dll \ |
|
504 |
-DELAYLOAD:ole32.dll -DELAYLOAD:comdlg32.dll \ |
|
505 |
-DELAYLOAD:comctl32.dll -DELAYLOAD:shlwapi.dll, \ |
|
506 |
VERSIONINFO_RESOURCE := $(LIBAWT_VERSIONINFO_RESOURCE), \ |
|
507 |
RC_FLAGS := $(RC_FLAGS) $(LIBAWT_RC_FLAGS) \ |
|
508 |
-D "JDK_FNAME=awt.dll" \ |
|
509 |
-D "JDK_INTERNAL_NAME=awt" \ |
|
510 |
-D "JDK_FTYPE=0x2L", \ |
|
511 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libawt, \ |
|
512 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
513 |
||
514 |
$(BUILD_LIBAWT): $(BUILD_LIBJAVA) |
|
13164 | 515 |
|
516 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
20547 | 517 |
$(BUILD_LIBAWT): $(BUILD_LIBMLIB_IMAGE) |
13164 | 518 |
endif |
519 |
||
520 |
BUILD_LIBRARIES += $(BUILD_LIBAWT) |
|
12892 | 521 |
|
522 |
########################################################################################## |
|
523 |
||
21130 | 524 |
ifeq ($(findstring $(OPENJDK_TARGET_OS),windows macosx),) |
20547 | 525 |
ifndef BUILD_HEADLESS_ONLY |
526 |
||
527 |
LIBAWT_XAWT_DIRS := \ |
|
528 |
$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
|
529 |
$(JDK_TOPDIR)/src/share/native/sun/awt/utility \ |
|
530 |
$(JDK_TOPDIR)/src/share/native/sun/font \ |
|
531 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/font \ |
|
532 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \ |
|
533 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt \ |
|
534 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/opengl \ |
|
535 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/x11 \ |
|
536 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/xawt \ |
|
537 |
||
538 |
LIBAWT_XAWT_CFLAGS := -DXAWT -DXAWT_HACK \ |
|
21130 | 539 |
-DPACKAGE_PATH=\"$(PACKAGE_PATH)\" \ |
20547 | 540 |
$(CUPS_CFLAGS) \ |
541 |
$(foreach dir, $(LIBAWT_XAWT_DIRS), -I$(dir)) \ |
|
542 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
543 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \ |
|
544 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
|
545 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
546 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image \ |
|
547 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
548 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
|
549 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/jdga |
|
550 |
||
551 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
552 |
LIBAWT_XAWT_CFLAGS += -DFUNCPROTO=15 |
|
553 |
endif |
|
554 |
||
555 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
556 |
ifeq ($(DISABLE_XRENDER), true) |
|
557 |
LIBAWT_XAWT_CFLAGS += -DDISABLE_XRENDER_BY_DEFAULT=true |
|
558 |
endif |
|
559 |
endif |
|
560 |
||
561 |
ifeq ($(MILESTONE), internal) |
|
562 |
LIBAWT_XAWT_CFLAGS += -DINTERNAL_BUILD |
|
563 |
endif |
|
564 |
||
565 |
LIBAWT_XAWT_FILES := \ |
|
566 |
XlibWrapper.c \ |
|
567 |
XWindow.c \ |
|
568 |
XToolkit.c \ |
|
569 |
X11Color.c \ |
|
570 |
X11SurfaceData.c \ |
|
571 |
awt_GraphicsEnv.c \ |
|
572 |
awt_InputMethod.c \ |
|
573 |
robot_common.c \ |
|
574 |
awt_Robot.c \ |
|
12892 | 575 |
list.c \ |
576 |
multiVis.c \ |
|
20547 | 577 |
initIDs.c \ |
578 |
awt_util.c \ |
|
579 |
awt_Desktop.c \ |
|
580 |
awt_UNIXToolkit.c \ |
|
581 |
X11FontScaler_md.c \ |
|
582 |
X11TextRenderer_md.c \ |
|
583 |
fontpath.c \ |
|
584 |
awt_Insets.c \ |
|
585 |
awt_Event.c \ |
|
586 |
X11Renderer.c \ |
|
587 |
X11PMBlitLoops.c \ |
|
13164 | 588 |
OGLBlitLoops.c \ |
589 |
OGLBufImgOps.c \ |
|
590 |
OGLContext.c \ |
|
591 |
OGLFuncs.c \ |
|
592 |
OGLMaskBlit.c \ |
|
593 |
OGLMaskFill.c \ |
|
594 |
OGLPaints.c \ |
|
595 |
OGLRenderQueue.c \ |
|
596 |
OGLRenderer.c \ |
|
597 |
OGLSurfaceData.c \ |
|
598 |
OGLTextRenderer.c \ |
|
599 |
OGLVertexCache.c \ |
|
600 |
GLXGraphicsConfig.c \ |
|
601 |
GLXSurfaceData.c \ |
|
602 |
AccelGlyphCache.c \ |
|
20547 | 603 |
awt_Font.c \ |
604 |
multi_font.c \ |
|
605 |
awt_AWTEvent.c \ |
|
606 |
awt_DrawingSurface.c \ |
|
607 |
jawt.c \ |
|
608 |
CUPSfuncs.c \ |
|
609 |
debug_assert.c \ |
|
610 |
debug_mem.c \ |
|
611 |
debug_trace.c \ |
|
612 |
debug_util.c \ |
|
613 |
awt_Plugin.c \ |
|
614 |
gnome_interface.c \ |
|
615 |
gtk2_interface.c \ |
|
616 |
swing_GTKEngine.c \ |
|
617 |
swing_GTKStyle.c \ |
|
618 |
rect.c \ |
|
619 |
sun_awt_X11_GtkFileDialogPeer.c \ |
|
620 |
XRSurfaceData.c \ |
|
621 |
XRBackendNative.c |
|
622 |
||
623 |
LIBAWT_XAWT_LDFLAGS_SUFFIX := $(LIBM) -lawt -lXext -lX11 -lXrender $(LIBDL) -lXtst -lXi -ljava -ljvm -lc |
|
624 |
||
625 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
626 |
# To match old build, add this to LDFLAGS instead of suffix. |
|
627 |
LIBAWT_XAWT_LDFLAGS += -lpthread |
|
628 |
endif |
|
629 |
||
630 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_XAWT, \ |
|
631 |
LIBRARY := awt_xawt, \ |
|
632 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
633 |
SRC := $(LIBAWT_XAWT_DIRS), \ |
|
634 |
INCLUDE_FILES := $(LIBAWT_XAWT_FILES), \ |
|
635 |
LANG := C, \ |
|
636 |
OPTIMIZATION := LOW, \ |
|
637 |
CFLAGS := $(CFLAGS_JDKLIB) $(LIBAWT_XAWT_CFLAGS) \ |
|
638 |
$(X_CFLAGS), \ |
|
21805 | 639 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libawt_xawt/mapfile-vers, \ |
20547 | 640 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
641 |
$(X_LIBS) $(LIBAWT_XAWT_LDFLAGS), \ |
|
642 |
LDFLAGS_linux := $(call SET_SHARED_LIBRARY_ORIGIN) \ |
|
643 |
$(call SET_SHARED_LIBRARY_ORIGIN,/..), \ |
|
644 |
LDFLAGS_solaris := -L$(OPENWIN_HOME)/sfw/lib$(OPENJDK_TARGET_CPU_ISADIR) \ |
|
645 |
-L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) \ |
|
646 |
-R$(OPENWIN_HOME)/sfw/lib$(OPENJDK_TARGET_CPU_ISADIR) \ |
|
647 |
-R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) \ |
|
648 |
-R/usr/dt/lib$(OPENJDK_TARGET_CPU_ISADIR) \ |
|
649 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
|
650 |
$(call SET_SHARED_LIBRARY_ORIGIN,/..), \ |
|
651 |
LDFLAGS_SUFFIX := $(LIBAWT_XAWT_LDFLAGS_SUFFIX), \ |
|
652 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ |
|
653 |
RC_FLAGS := $(RC_FLAGS) \ |
|
654 |
-D "JDK_FNAME=xawt.dll" \ |
|
655 |
-D "JDK_INTERNAL_NAME=xawt" \ |
|
656 |
-D "JDK_FTYPE=0x2L", \ |
|
657 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libawt_xawt, \ |
|
658 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
659 |
||
660 |
$(BUILD_LIBAWT_XAWT): $(BUILD_LIBJAVA) |
|
661 |
||
662 |
$(BUILD_LIBAWT_XAWT): $(BUILD_LIBAWT) |
|
663 |
||
664 |
BUILD_LIBRARIES += $(BUILD_LIBAWT_XAWT) |
|
665 |
||
666 |
endif |
|
667 |
endif |
|
668 |
||
669 |
########################################################################################## |
|
670 |
||
671 |
# TODO: Update awt lib path when awt is converted |
|
672 |
$(eval $(call SetupNativeCompilation,BUILD_LIBLCMS, \ |
|
673 |
LIBRARY := lcms, \ |
|
674 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
675 |
SRC := $(JDK_TOPDIR)/src/share/native/sun/java2d/cmm/lcms, \ |
|
676 |
LANG := C, \ |
|
677 |
OPTIMIZATION := HIGHEST, \ |
|
678 |
CFLAGS := $(filter-out -xc99=%none, $(CFLAGS_JDKLIB)) \ |
|
679 |
$(SHARED_LIBRARY_FLAGS) \ |
|
680 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
681 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug, \ |
|
682 |
CFLAGS_solaris := -xc99=no_lib, \ |
|
683 |
CFLAGS_windows := -DCMS_IS_WINDOWS_, \ |
|
21805 | 684 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/liblcms/mapfile-vers, \ |
20547 | 685 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
686 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
687 |
LDFLAGS_solaris := /usr/lib$(OPENJDK_TARGET_CPU_ISADIR)/libm.so.2, \ |
|
688 |
LDFLAGS_windows := $(WIN_AWT_LIB) $(WIN_JAVA_LIB), \ |
|
689 |
LDFLAGS_SUFFIX_solaris := -lawt -ljava -ljvm -lc, \ |
|
690 |
LDFLAGS_SUFFIX_macosx := $(LIBM) -lawt -ljava -ljvm, \ |
|
691 |
LDFLAGS_SUFFIX_linux := -lm -lawt -ljava -ljvm, \ |
|
22595
aaa6b141196c
8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents:
22594
diff
changeset
|
692 |
LDFLAGS_SUFFIX_aix := -lm -lawt -ljava -ljvm,\ |
20547 | 693 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ |
694 |
RC_FLAGS := $(RC_FLAGS) \ |
|
695 |
-D "JDK_FNAME=lcms.dll" \ |
|
696 |
-D "JDK_INTERNAL_NAME=lcms" \ |
|
697 |
-D "JDK_FTYPE=0x2L", \ |
|
698 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/liblcms, \ |
|
699 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
700 |
||
701 |
BUILD_LIBRARIES += $(BUILD_LIBLCMS) |
|
702 |
||
703 |
$(BUILD_LIBLCMS): $(BUILD_LIBAWT) |
|
704 |
||
705 |
########################################################################################## |
|
706 |
||
707 |
ifdef OPENJDK |
|
21805 | 708 |
BUILD_LIBJPEG_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjpeg/mapfile-vers |
20547 | 709 |
else |
21805 | 710 |
BUILD_LIBJPEG_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjpeg/mapfile-vers-closed |
20547 | 711 |
BUILD_LIBJPEG_CLOSED_SRC := $(JDK_TOPDIR)/src/closed/share/native/sun/awt/image/jpeg |
712 |
BUILD_LIBJPEG_CLOSED_INCLUDES := -I$(BUILD_LIBJPEG_CLOSED_SRC) |
|
713 |
endif |
|
714 |
||
715 |
BUILD_LIBJPEG_REORDER := |
|
13164 | 716 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
20547 | 717 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
21805 | 718 |
BUILD_LIBJPEG_REORDER := $(JDK_TOPDIR)/make/mapfiles/libjpeg/reorder-$(OPENJDK_TARGET_CPU) |
20547 | 719 |
endif |
720 |
endif |
|
721 |
||
722 |
# Suppress gcc warnings like "variable might be clobbered by 'longjmp' |
|
723 |
# or 'vfork'": this warning indicates that some variable is placed to |
|
724 |
# a register by optimized compiler and it's value might be lost on longjmp(). |
|
725 |
# Recommended way to avoid such warning is to declare the variable as |
|
726 |
# volatile to prevent the optimization. However, this approach does not |
|
727 |
# work because we have to declare all variables as volatile in result. |
|
728 |
#ifndef CROSS_COMPILE_ARCH |
|
729 |
# CC_43_OR_NEWER := \ |
|
730 |
# $(shell $(EXPR) $(CC_MAJORVER) \> 4 \| \ |
|
731 |
# \( $(CC_MAJORVER) = 4 \& $(CC_MINORVER) \>= 3 \) ) |
|
732 |
# ifeq ($(CC_43_OR_NEWER), 1) |
|
733 |
# BUILD_LIBJPEG_CFLAGS_linux += -Wno-clobbered |
|
734 |
# endif |
|
735 |
#endif |
|
736 |
||
737 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJPEG, \ |
|
738 |
LIBRARY := jpeg, \ |
|
739 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
740 |
SRC := $(BUILD_LIBJPEG_CLOSED_SRC) \ |
|
741 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg, \ |
|
742 |
LANG := C, \ |
|
743 |
OPTIMIZATION := HIGHEST, \ |
|
744 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
745 |
$(BUILD_LIBJPEG_CLOSED_INCLUDES) \ |
|
746 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg, \ |
|
747 |
MAPFILE := $(BUILD_LIBJPEG_MAPFILE), \ |
|
748 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
|
749 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
750 |
LDFLAGS_windows := $(WIN_JAVA_LIB) jvm.lib, \ |
|
751 |
LDFLAGS_SUFFIX := $(LDFLAGS_JDKLIB_SUFFIX), \ |
|
752 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ |
|
753 |
RC_FLAGS := $(RC_FLAGS) \ |
|
754 |
-D "JDK_FNAME=jpeg.dll" \ |
|
755 |
-D "JDK_INTERNAL_NAME=jpeg" \ |
|
756 |
-D "JDK_FTYPE=0x2L", \ |
|
757 |
REORDER := $(BUILD_LIBJPEG_REORDER), \ |
|
758 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjpeg, \ |
|
759 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
760 |
||
761 |
$(BUILD_LIBJPEG): $(BUILD_LIBJAVA) |
|
762 |
||
763 |
BUILD_LIBRARIES += $(BUILD_LIBJPEG) |
|
764 |
||
765 |
########################################################################################## |
|
766 |
||
767 |
ifndef OPENJDK |
|
768 |
FONT_HEADERS := -I$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k |
|
21805 | 769 |
BUILD_LIBFONTMANAGER_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libfontmanager/mapfile-vers |
20547 | 770 |
LIBFONTMANAGER_EXCLUDE_FILES += freetypeScaler.c |
771 |
else |
|
20899 | 772 |
FONT_HEADERS := $(FREETYPE_CFLAGS) |
21805 | 773 |
BUILD_LIBFONTMANAGER_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libfontmanager/mapfile-vers.openjdk |
20899 | 774 |
BUILD_LIBFONTMANAGER_FONTLIB := $(FREETYPE_LIBS) |
20547 | 775 |
endif |
776 |
||
777 |
LIBFONTMANAGER_OPTIMIZATION := HIGH |
|
778 |
||
779 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
780 |
LIBFONTMANAGER_EXCLUDE_FILES += X11FontScaler.c \ |
|
781 |
X11TextRenderer.c |
|
782 |
LIBFONTMANAGER_OPTIMIZATION := HIGHEST |
|
21130 | 783 |
else ifeq ($(OPENJDK_TARGET_OS), macosx) |
784 |
LIBFONTMANAGER_EXCLUDE_FILES += X11FontScaler.c \ |
|
785 |
X11TextRenderer.c \ |
|
786 |
fontpath.c \ |
|
787 |
lcdglyph.c |
|
20547 | 788 |
else |
789 |
LIBFONTMANAGER_EXCLUDE_FILES += fontpath.c \ |
|
790 |
lcdglyph.c |
|
791 |
endif |
|
792 |
||
793 |
BUILD_LIBFONTMANAGER_CFLAGS_COMMON := \ |
|
22649
f70b08c1593c
8033532: Freetype include statement must come before X11 include
ihse
parents:
22607
diff
changeset
|
794 |
$(FONT_HEADERS) \ |
20547 | 795 |
$(X_CFLAGS) \ |
796 |
-DLE_STANDALONE -DHEADLESS \ |
|
797 |
-I$(JDK_TOPDIR)/src/share/native/sun/font \ |
|
798 |
-I$(JDK_TOPDIR)/src/share/native/sun/font/layout \ |
|
799 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
800 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt \ |
|
801 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
|
802 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
|
803 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
804 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \ |
|
805 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d |
|
806 |
||
807 |
# Turn off aliasing with GCC for ExtensionSubtables.cpp |
|
808 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
809 |
BUILD_LIBFONTMANAGER_ExtensionSubtables.cpp_CXXFLAGS := -fno-strict-aliasing |
|
810 |
endif |
|
811 |
||
812 |
$(eval $(call SetupNativeCompilation,BUILD_LIBFONTMANAGER, \ |
|
813 |
LIBRARY := fontmanager, \ |
|
814 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
815 |
SRC := $(JDK_TOPDIR)/src/share/native/sun/font \ |
|
816 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/font, \ |
|
817 |
EXCLUDE_FILES := $(LIBFONTMANAGER_EXCLUDE_FILES) \ |
|
818 |
AccelGlyphCache.c, \ |
|
819 |
LANG := C++, \ |
|
820 |
CFLAGS := $(CFLAGS_JDKLIB) $(BUILD_LIBFONTMANAGER_CFLAGS_COMMON), \ |
|
821 |
CXXFLAGS := $(CXXFLAGS_JDKLIB) $(BUILD_LIBFONTMANAGER_CFLAGS_COMMON), \ |
|
822 |
OPTIMIZATION := $(LIBFONTMANAGER_OPTIMIZATION), \ |
|
823 |
CFLAGS_windows = -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/windows \ |
|
824 |
-DCC_NOEX, \ |
|
825 |
MAPFILE := $(BUILD_LIBFONTMANAGER_MAPFILE), \ |
|
826 |
LDFLAGS := $(subst -Xlinker -z -Xlinker defs,,$(LDFLAGS_JDKLIB)) $(LDFLAGS_CXX_JDK) \ |
|
827 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
828 |
LDFLAGS_SUFFIX := $(BUILD_LIBFONTMANAGER_FONTLIB), \ |
|
829 |
LDFLAGS_SUFFIX_linux := -lawt $(LIBM) $(LIBCXX) -ljava -ljvm -lc, \ |
|
830 |
LDFLAGS_SUFFIX_solaris := -lawt -lawt_xawt -lc $(LIBM) $(LIBCXX) -ljava -ljvm, \ |
|
22595
aaa6b141196c
8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents:
22594
diff
changeset
|
831 |
LDFLAGS_SUFFIX_aix := -lawt -lawt_xawt $(LIBM) $(LIBCXX) -ljava -ljvm,\ |
20547 | 832 |
LDFLAGS_SUFFIX_macosx := -lawt $(LIBM) $(LIBCXX) -undefined dynamic_lookup \ |
833 |
-ljava -ljvm, \ |
|
834 |
LDFLAGS_SUFFIX_windows := $(WIN_JAVA_LIB) advapi32.lib user32.lib gdi32.lib \ |
|
835 |
$(WIN_AWT_LIB), \ |
|
836 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ |
|
837 |
RC_FLAGS := $(RC_FLAGS) \ |
|
838 |
-D "JDK_FNAME=fontmanager.dll" \ |
|
839 |
-D "JDK_INTERNAL_NAME=fontmanager" \ |
|
840 |
-D "JDK_FTYPE=0x2L", \ |
|
841 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libfontmanager, \ |
|
842 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
843 |
||
844 |
$(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT) |
|
845 |
||
22595
aaa6b141196c
8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents:
22594
diff
changeset
|
846 |
ifneq (, $(findstring $(OPENJDK_TARGET_OS), solaris aix)) |
20547 | 847 |
$(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT_XAWT) |
848 |
endif |
|
849 |
||
850 |
BUILD_LIBRARIES += $(BUILD_LIBFONTMANAGER) |
|
851 |
||
852 |
########################################################################################## |
|
853 |
||
854 |
ifndef OPENJDK |
|
855 |
||
856 |
#ifeq ($(OPENJDK_TARGET_OS), linux) |
|
857 |
# ifeq ("$(CC_VER_MAJOR)", "3") |
|
858 |
# OTHER_LDLIBS += -Wl,-Bstatic -lgcc_eh -Wl,-Bdynamic |
|
859 |
# endif |
|
860 |
#endif |
|
861 |
# |
|
862 |
# The resulting size of the t2k lib file is (at least on linux) dependant on the order of |
|
863 |
# the input .o files. Because of this the new build will differ in size to the old build. |
|
864 |
BUILD_LIBT2K_CFLAGS_COMMON := -I$(JDK_TOPDIR)/src/share/native/sun/font \ |
|
865 |
-I$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k \ |
|
866 |
-I$(JDK_TOPDIR)/src/closed/share/native/sun/font \ |
|
867 |
-I$(JDK_TOPDIR)/src/share/share/native/sun/font \ |
|
868 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/font \ |
|
869 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
|
870 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
871 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \ |
|
872 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d |
|
873 |
||
874 |
$(eval $(call SetupNativeCompilation,BUILD_LIBT2K, \ |
|
875 |
LIBRARY := t2k, \ |
|
876 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
877 |
SRC := $(JDK_TOPDIR)/src/closed/share/native/sun/font \ |
|
878 |
$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k \ |
|
879 |
$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k/ttHints, \ |
|
880 |
EXCLUDE_FILES := orion.c, \ |
|
881 |
LANG := C++, \ |
|
882 |
OPTIMIZATION := HIGH, \ |
|
883 |
CFLAGS := $(CFLAGS_JDKLIB) $(BUILD_LIBT2K_CFLAGS_COMMON), \ |
|
884 |
CXXFLAGS := $(CXXFLAGS_JDKLIB) $(BUILD_LIBT2K_CFLAGS_COMMON), \ |
|
885 |
CFLAGS_windows = -DCC_NOEX, \ |
|
886 |
CXXFLAGS_windows = -DCC_NOEX, \ |
|
21805 | 887 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libt2k/mapfile-vers, \ |
20547 | 888 |
LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \ |
889 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
890 |
LDFLAGS_windows := user32.lib $(JDK_OUTPUTDIR)/objs/libfontmanager/fontmanager.lib, \ |
|
891 |
LDFLAGS_SUFFIX_posix := $(LIBM) $(LIBCXX) -lfontmanager -ljava -ljvm -lc, \ |
|
892 |
LDFLAGS_SUFFIX_solaris := -lawt -lawt_xawt, \ |
|
893 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ |
|
894 |
RC_FLAGS := $(RC_FLAGS) \ |
|
895 |
-D "JDK_FNAME=t2k.dll" \ |
|
896 |
-D "JDK_INTERNAL_NAME=t2k" \ |
|
897 |
-D "JDK_FTYPE=0x2L", \ |
|
898 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libt2k, \ |
|
899 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
900 |
||
901 |
# t2k is linked against fontmanager |
|
902 |
$(BUILD_LIBT2K): $(BUILD_LIBFONTMANAGER) |
|
903 |
||
904 |
BUILD_LIBRARIES += $(BUILD_LIBT2K) |
|
13164 | 905 |
endif |
906 |
||
20547 | 907 |
########################################################################################## |
908 |
||
909 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
910 |
ifeq ($(OPENJDK_TARGET_CPU), x86) |
|
911 |
KERNEL32_LIB := kernel32.lib |
|
912 |
endif |
|
913 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAWT, \ |
|
914 |
LIBRARY := jawt, \ |
|
915 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
916 |
SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/windows, \ |
|
917 |
INCLUDE_FILES := jawt.cpp, \ |
|
918 |
LANG := C++, \ |
|
919 |
OPTIMIZATION := LOW, \ |
|
920 |
CFLAGS := $(CXXFLAGS_JDKLIB) \ |
|
921 |
-EHsc -DUNICODE -D_UNICODE \ |
|
922 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/windows \ |
|
923 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
|
924 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
925 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
926 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/windows, \ |
|
927 |
LDFLAGS := $(LDFLAGS_JDKLIB) $(KERNEL32_LIB) $(LDFLAGS_CXX_JDK) \ |
|
928 |
advapi32.lib $(WIN_AWT_LIB), \ |
|
929 |
LDFLAGS_SUFFIX := $(LDFLAGS_JDKLIB_SUFFIX), \ |
|
930 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ |
|
931 |
RC_FLAGS := $(RC_FLAGS) \ |
|
932 |
-D "JDK_FNAME=jawt.dll" \ |
|
933 |
-D "JDK_INTERNAL_NAME=jawt" \ |
|
934 |
-D "JDK_FTYPE=0x2L", \ |
|
935 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjawt, \ |
|
936 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
937 |
||
938 |
$(BUILD_LIBJAWT): $(BUILD_LIBAWT) |
|
939 |
||
940 |
$(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX): $(BUILD_LIBJAWT) |
|
941 |
$(ECHO) Copying $(@F) |
|
942 |
$(CP) $(JDK_OUTPUTDIR)/objs/libjawt/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX) $@ |
|
943 |
||
944 |
BUILD_LIBRARIES += $(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX) |
|
945 |
||
946 |
else # OPENJDK_TARGET_OS not windows |
|
947 |
||
948 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
949 |
JAWT_FILES := jawt.m |
|
950 |
JAWT_LIBS := -lawt_lwawt |
|
21130 | 951 |
else |
952 |
JAWT_FILES := jawt.c |
|
953 |
JAWT_LIBS := |
|
954 |
ifneq ($(OPENJDK_TARGET_OS), solaris) |
|
955 |
JAWT_LIBS += -lawt |
|
956 |
endif |
|
957 |
ifndef BUILD_HEADLESS_ONLY |
|
958 |
JAWT_LIBS += -lawt_xawt |
|
959 |
else |
|
960 |
JAWT_LIBS += -lawt_headless |
|
961 |
HEADLESS_CFLAG += -DHEADLESS |
|
962 |
endif |
|
20547 | 963 |
endif |
964 |
||
965 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAWT, \ |
|
966 |
LIBRARY := jawt, \ |
|
967 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
968 |
SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt \ |
|
969 |
$(JDK_TOPDIR)/src/macosx/native/sun/awt, \ |
|
970 |
INCLUDE_FILES := $(JAWT_FILES), \ |
|
971 |
LANG := C, \ |
|
972 |
OPTIMIZATION := LOW, \ |
|
973 |
CFLAGS := $(CFLAGS_JDKLIB), \ |
|
974 |
CFLAGS_linux := $(HEADLESS_CFLAG), \ |
|
975 |
CFLAGS_macosx := -I$(JDK_TOPDIR)/src/solaris/native/sun/awt, \ |
|
21805 | 976 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjawt/mapfile-vers, \ |
20547 | 977 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
978 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
979 |
LDFLAGS_solaris := -L$(OPENWIN_HOME)/sfw/lib$(OPENJDK_TARGET_CPU_ISADIR) -L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR), \ |
|
980 |
LDFLAGS_SUFFIX_linux := $(JAWT_LIBS) $(LDFLAGS_JDKLIB_SUFFIX), \ |
|
22595
aaa6b141196c
8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents:
22594
diff
changeset
|
981 |
LDFLAGS_SUFFIX_aix := $(JAWT_LIBS) $(LDFLAGS_JDKLIB_SUFFIX),\ |
20547 | 982 |
LDFLAGS_SUFFIX_solaris := $(JAWT_LIBS) $(LDFLAGS_JDKLIB_SUFFIX) -lXrender, \ |
983 |
LDFLAGS_SUFFIX_macosx := -Xlinker -rpath -Xlinker @loader_path $(JAWT_LIBS) \ |
|
984 |
-framework Cocoa $(LDFLAGS_JDKLIB_SUFFIX), \ |
|
985 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjawt, \ |
|
986 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
987 |
||
988 |
ifndef BUILD_HEADLESS_ONLY |
|
989 |
$(BUILD_LIBJAWT): $(BUILD_LIBAWT_XAWT) |
|
990 |
else |
|
991 |
$(BUILD_LIBJAWT): $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)awt_headless$(SHARED_LIBRARY_SUFFIX) |
|
992 |
endif |
|
993 |
||
994 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
995 |
$(BUILD_LIBJAWT): $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)awt_lwawt$(SHARED_LIBRARY_SUFFIX) |
|
996 |
endif |
|
997 |
||
998 |
endif # OPENJDK_TARGET_OS |
|
999 |
||
1000 |
BUILD_LIBRARIES += $(BUILD_LIBJAWT) |
|
1001 |
||
1002 |
########################################################################################## |
|
1003 |
||
1004 |
ifndef OPENJDK |
|
1005 |
||
1006 |
BUILD_LIBKCMS_EXCLUDE_FILES := |
|
1007 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
1008 |
BUILD_LIBKCMS_EXCLUDE_FILES += ukcpmgr.c unixmem.c |
|
1009 |
else |
|
1010 |
BUILD_LIBKCMS_EXCLUDE_FILES += cmmdll.c registry.c spxffile.c sysinfo.c winmem.c wkcpmgr.c |
|
1011 |
endif |
|
1012 |
||
1013 |
BUILD_LIBKCMS_FLAGS := $(CFLAGS_JDKLIB) |
|
1014 |
||
1015 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
1016 |
# This particular library uses a feature called PIC_CODE_SMALL (on solaris) |
|
1017 |
# implement it like this...since it's only used here |
|
1018 |
BUILD_LIBKCMS_FLAGS := $(patsubst -KPIC, -Kpic, $(BUILD_LIBKCMS_FLAGS)) |
|
1019 |
else ifeq ($(OPENJDK_TARGET_CPU_ARCH), ppc) |
|
1020 |
BUILD_LIBKCMS_FLAGS := $(patsubst -fPIC, -fpic, $(BUILD_LIBKCMS_FLAGS)) |
|
1021 |
endif |
|
1022 |
||
1023 |
$(eval $(call SetupNativeCompilation,BUILD_LIBKCMS, \ |
|
1024 |
LIBRARY := kcms, \ |
|
1025 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
1026 |
SRC := $(JDK_TOPDIR)/src/closed/share/native/sun/java2d/cmm/kcms, \ |
|
1027 |
LANG := C, \ |
|
1028 |
EXCLUDE_FILES := $(BUILD_LIBKCMS_EXCLUDE_FILES), \ |
|
1029 |
OPTIMIZATION := LOW, \ |
|
1030 |
CFLAGS := $(BUILD_LIBKCMS_FLAGS) \ |
|
1031 |
-DJAVACMM -DFUT_CALC_EX -DNO_FUT_GCONST, \ |
|
1032 |
CFLAGS_linux := -Wno-missing-field-initializers, \ |
|
21805 | 1033 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libkcms/mapfile-vers, \ |
20547 | 1034 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
1035 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
1036 |
LDFLAGS_SUFFIX_linux := -lc -lpthread, \ |
|
1037 |
LDFLAGS_SUFFIX_solaris := -lc, \ |
|
1038 |
LDFLAGS_SUFFIX_windows := $(WIN_JAVA_LIB) advapi32.lib user32.lib version.lib, \ |
|
1039 |
LDFLAGS_SUFFIX_posix := -lm -ljava -ljvm, \ |
|
1040 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/closed/share/native/sun/java2d/cmm/kcms/cmm.rc, \ |
|
1041 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/closed/share/native/sun/java2d/cmm/kcms/cmm.rc, \ |
|
1042 |
RC_FLAGS := $(RC_FLAGS) \ |
|
1043 |
-D "JDK_FNAME=kcms.dll" \ |
|
1044 |
-D "JDK_INTERNAL_NAME=kcms" \ |
|
1045 |
-D "JDK_FTYPE=0x2L", \ |
|
1046 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libkcms, \ |
|
1047 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
1048 |
||
1049 |
$(BUILD_LIBKCMS): $(BUILD_LIBJAVA) |
|
1050 |
||
1051 |
BUILD_LIBRARIES += $(BUILD_LIBKCMS) |
|
12892 | 1052 |
|
1053 |
endif |
|
1054 |
||
1055 |
########################################################################################## |
|
1056 |
||
1057 |
ifndef OPENJDK |
|
20547 | 1058 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
1059 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
|
1060 |
||
1061 |
ifeq ($(shell if test "$(OS_VERSION_MAJOR)" -eq 5 -a "$(OS_VERSION_MINOR)" -le 10; then $(ECHO) ok; fi), ok) |
|
1062 |
||
1063 |
SUNWJDGA_MAPFILE := |
|
1064 |
ifeq ($(OPENJDK_TARGET_CPU_ARCH), sparc) |
|
21805 | 1065 |
SUNWJDGA_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjdga/mapfile-vers |
20547 | 1066 |
endif |
1067 |
||
1068 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSUNWJDGA, \ |
|
1069 |
LIBRARY := sunwjdga, \ |
|
1070 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
1071 |
SRC := $(JDK_TOPDIR)/src/solaris/native/sun/jdga, \ |
|
1072 |
LANG := C, \ |
|
1073 |
OPTIMIZATION := LOW, \ |
|
1074 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
1075 |
-I$(JDK_TOPDIR)/src/share/javavm/export \ |
|
1076 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/javavm/export \ |
|
1077 |
-I$(OPENWIN_HOME)/include, \ |
|
1078 |
MAPFILE := $(SUNWJDGA_MAPFILE), \ |
|
1079 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
|
1080 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
1081 |
LDFLAGS_SUFFIX := -L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -ldga -lX11 $(LIBDL) -lc, \ |
|
1082 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libsunwjdga, \ |
|
1083 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
1084 |
||
1085 |
BUILD_LIBRARIES += $(BUILD_LIBSUNWJDGA) |
|
1086 |
||
1087 |
endif |
|
1088 |
endif |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17735
diff
changeset
|
1089 |
endif |
12892 | 1090 |
endif |
1091 |
||
1092 |
########################################################################################## |
|
1093 |
||
20547 | 1094 |
ifeq ($(BUILD_HEADLESS), true) |
21130 | 1095 |
# Mac and Windows only use the native AWT lib, do not build libawt_headless |
1096 |
ifeq ($(findstring $(OPENJDK_TARGET_OS), windows macosx),) |
|
20547 | 1097 |
|
1098 |
LIBAWT_HEADLESS_DIRS := $(JDK_TOPDIR)/src/share/native/sun/font \ |
|
1099 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \ |
|
1100 |
$(JDK_TOPDIR)/src/solaris/native/sun/font \ |
|
1101 |
$(JDK_TOPDIR)/src/solaris/native/sun/awt \ |
|
1102 |
$(JDK_TOPDIR)/src/solaris/native/sun/java2d/opengl \ |
|
1103 |
$(JDK_TOPDIR)/src/solaris/native/sun/java2d/x11 |
|
1104 |
||
1105 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
1106 |
LIBAWT_HEADLESS_DIRS += $(JDK_TOPDIR)/src/macosx/native/sun/font |
|
1107 |
endif |
|
1108 |
||
1109 |
LIBAWT_HEADLESS_CFLAGS := -DHEADLESS=true \ |
|
21130 | 1110 |
-DPACKAGE_PATH=\"$(PACKAGE_PATH)\" \ |
20547 | 1111 |
$(CUPS_CFLAGS) \ |
1112 |
$(X_CFLAGS) \ |
|
1113 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
1114 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \ |
|
1115 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
|
1116 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
1117 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image \ |
|
1118 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
1119 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
|
1120 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/jdga \ |
|
1121 |
$(foreach dir, $(LIBAWT_HEADLESS_DIRS), -I$(dir)) |
|
1122 |
||
1123 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
1124 |
LIBAWT_HEADLESS_CFLAGS += \ |
|
1125 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
1126 |
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks |
|
1127 |
endif |
|
1128 |
||
1129 |
LIBAWT_HEADLESS_FILES := \ |
|
1130 |
awt_Font.c \ |
|
1131 |
HeadlessToolkit.c \ |
|
1132 |
fontpath.c \ |
|
1133 |
VDrawingArea.c \ |
|
1134 |
X11Color.c \ |
|
1135 |
X11Renderer.c \ |
|
1136 |
X11PMBlitLoops.c \ |
|
1137 |
X11SurfaceData.c \ |
|
1138 |
X11FontScaler_md.c \ |
|
1139 |
X11TextRenderer_md.c \ |
|
12892 | 1140 |
OGLBlitLoops.c \ |
1141 |
OGLBufImgOps.c \ |
|
1142 |
OGLContext.c \ |
|
1143 |
OGLFuncs.c \ |
|
1144 |
OGLMaskBlit.c \ |
|
1145 |
OGLMaskFill.c \ |
|
1146 |
OGLPaints.c \ |
|
1147 |
OGLRenderQueue.c \ |
|
1148 |
OGLRenderer.c \ |
|
1149 |
OGLSurfaceData.c \ |
|
1150 |
OGLTextRenderer.c \ |
|
1151 |
OGLVertexCache.c \ |
|
20547 | 1152 |
GLXGraphicsConfig.c \ |
1153 |
GLXSurfaceData.c \ |
|
12892 | 1154 |
AccelGlyphCache.c \ |
1155 |
CUPSfuncs.c |
|
1156 |
||
20547 | 1157 |
LIBAWT_HEADLESS_REORDER := |
1158 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
1159 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
|
21805 | 1160 |
LIBAWT_HEADLESS_REORDER := $(JDK_TOPDIR)/make/mapfiles/libawt_headless/reorder-$(OPENJDK_TARGET_CPU) |
20547 | 1161 |
endif |
1162 |
endif |
|
1163 |
||
1164 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_HEADLESS, \ |
|
1165 |
LIBRARY := awt_headless, \ |
|
1166 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
1167 |
SRC := $(LIBAWT_HEADLESS_DIRS), \ |
|
1168 |
INCLUDE_FILES := $(LIBAWT_HEADLESS_FILES), \ |
|
1169 |
LANG := C, \ |
|
1170 |
OPTIMIZATION := LOW, \ |
|
1171 |
CFLAGS := $(CFLAGS_JDKLIB) $(LIBAWT_HEADLESS_CFLAGS), \ |
|
21805 | 1172 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libawt_headless/mapfile-vers, \ |
20547 | 1173 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
1174 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
1175 |
LDFLAGS_linux := $(call SET_SHARED_LIBRARY_ORIGIN,/..), \ |
|
1176 |
LDFLAGS_solaris := $(call SET_SHARED_LIBRARY_ORIGIN,/..) \ |
|
1177 |
-R/usr/dt/lib$(OPENJDK_TARGET_CPU_ISADIR) \ |
|
1178 |
-R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR), \ |
|
1179 |
LDFLAGS_macosx := $(call SET_SHARED_LIBRARY_ORIGIN)., \ |
|
1180 |
REORDER := $(LIBAWT_HEADLESS_REORDER), \ |
|
1181 |
LDFLAGS_SUFFIX_linux := -ljvm -lawt -lm $(LIBDL) -ljava, \ |
|
22595
aaa6b141196c
8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents:
22594
diff
changeset
|
1182 |
LDFLAGS_SUFFIX_aix := -ljvm -lawt -ljava,\ |
20547 | 1183 |
LDFLAGS_SUFFIX_solaris := $(LIBDL) -ljvm -lawt -lm -ljava $(LIBCXX) -lc, \ |
1184 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libawt_headless, \ |
|
1185 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
1186 |
||
1187 |
$(BUILD_LIBAWT_HEADLESS): $(BUILD_LIBAWT) |
|
1188 |
||
1189 |
BUILD_LIBRARIES += $(BUILD_LIBAWT_HEADLESS) |
|
1190 |
||
1191 |
endif |
|
1192 |
endif |
|
1193 |
||
1194 |
########################################################################################## |
|
1195 |
||
1196 |
ifndef BUILD_HEADLESS_ONLY |
|
1197 |
LIBSPLASHSCREEN_DIRS := \ |
|
1198 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg \ |
|
1199 |
$(JDK_TOPDIR)/src/share/native/sun/awt/splashscreen |
|
1200 |
||
1201 |
ifeq ($(USE_EXTERNAL_LIBGIF), true) |
|
1202 |
GIFLIB_LDFLAGS := -lgif |
|
1203 |
else |
|
1204 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/share/native/sun/awt/giflib |
|
1205 |
GIFLIB_CFLAGS := -I$(JDK_TOPDIR)/src/share/native/sun/awt/giflib |
|
1206 |
endif |
|
1207 |
||
23305 | 1208 |
ifeq ($(USE_EXTERNAL_LIBPNG), false) |
1209 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/share/native/sun/awt/libpng |
|
1210 |
LIBPNG_CFLAGS := -I$(JDK_TOPDIR)/src/share/native/sun/awt/libpng |
|
1211 |
endif |
|
1212 |
||
20547 | 1213 |
ifneq ($(OPENJDK_TARGET_OS), macosx) |
1214 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/splashscreen |
|
1215 |
else |
|
1216 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/macosx/native/sun/awt/splashscreen |
|
1217 |
endif |
|
1218 |
||
1219 |
LIBSPLASHSCREEN_CFLAGS := -DSPLASHSCREEN -DPNG_NO_MMX_CODE \ |
|
1220 |
$(foreach dir, $(LIBSPLASHSCREEN_DIRS), -I$(dir)) |
|
1221 |
||
1222 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
1223 |
LIBSPLASHSCREEN_CFLAGS := -I$(JDK_TOPDIR)/src/macosx/native/sun/awt/splashscreen \ |
|
1224 |
$(LIBSPLASHSCREEN_CFLAGS) \ |
|
1225 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks |
|
1226 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_MACOSX |
|
1227 |
LIBSPLASHSCREEN_CFLAGS += -I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp |
|
1228 |
||
1229 |
LIBSPLASHSCREEN_java_awt_SplashScreen.c_CFLAGS := -x objective-c -O0 |
|
1230 |
LIBSPLASHSCREEN_splashscreen_gfx_impl.c_CFLAGS := -x objective-c -O0 |
|
1231 |
LIBSPLASHSCREEN_splashscreen_gif.c_CFLAGS := -x objective-c -O0 |
|
1232 |
LIBSPLASHSCREEN_splashscreen_impl.c_CFLAGS := -x objective-c -O0 |
|
1233 |
LIBSPLASHSCREEN_splashscreen_jpeg.c_CFLAGS := -x objective-c -O0 |
|
1234 |
LIBSPLASHSCREEN_splashscreen_png.c_CFLAGS := -x objective-c -O0 |
|
1235 |
LIBSPLASHSCREEN_splashscreen_sys.m_CFLAGS := -O0 |
|
1236 |
||
20901
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
1237 |
else ifeq ($(OPENJDK_TARGET_OS), windows) |
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
1238 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_WIN32 |
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
1239 |
else ifeq ($(OPENJDK_TARGET_OS), solaris) |
20547 | 1240 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_X11 -I$(OPENWIN_HOME)/include -I$(OPENWIN_HOME)/include/X11/extensions |
1241 |
else |
|
20901
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
1242 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_X11 $(X_CFLAGS) |
20547 | 1243 |
endif |
1244 |
||
1245 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX := |
|
1246 |
||
1247 |
ifneq ($(USE_EXTERNAL_LIBZ), true) |
|
1248 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/share/native/java/util/zip/zlib-1.2.5 |
|
1249 |
LIBSPLASHSCREEN_CFLAGS += $(ZLIB_CPPFLAGS) |
|
1250 |
endif |
|
1251 |
||
1252 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
1253 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX += $(LIBM) -lpthread -liconv -losxapp \ |
|
1254 |
-framework ApplicationServices \ |
|
1255 |
-framework Foundation \ |
|
1256 |
-framework Cocoa \ |
|
1257 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
1258 |
-framework JavaNativeFoundation |
|
20901
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
1259 |
else ifeq ($(OPENJDK_TARGET_OS), windows) |
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
1260 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX += kernel32.lib user32.lib gdi32.lib delayimp.lib -DELAYLOAD:user32.dll |
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
1261 |
else ifeq ($(OPENJDK_TARGET_OS), solaris) |
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
1262 |
# Solaris still uses OPENWIN_LIB .. |
20547 | 1263 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX += -L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -lX11 -lXext $(LIBM) -lpthread |
20901
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
1264 |
else # .. all other Unixes can use X_LIBS |
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
1265 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX += $(X_LIBS) -lX11 -lXext $(LIBM) -lpthread |
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
1266 |
endif |
20547 | 1267 |
|
1268 |
$(eval $(call SetupNativeCompilation,LIBSPLASHSCREEN, \ |
|
1269 |
LIBRARY := splashscreen, \ |
|
1270 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
1271 |
SRC := $(LIBSPLASHSCREEN_DIRS), \ |
|
1272 |
EXCLUDE_FILES := imageioJPEG.c jpegdecoder.c pngtest.c, \ |
|
1273 |
LANG := C, \ |
|
1274 |
OPTIMIZATION := LOW, \ |
|
23305 | 1275 |
CFLAGS := $(LIBSPLASHSCREEN_CFLAGS) $(CFLAGS_JDKLIB) \ |
1276 |
$(GIFLIB_CFLAGS) $(PNG_CFLAGS), \ |
|
21805 | 1277 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libsplashscreen/mapfile-vers, \ |
20547 | 1278 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
1279 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
23305 | 1280 |
LDFLAGS_SUFFIX := $(LIBSPLASHSCREEN_LDFLAGS_SUFFIX) $(LIBZ) \ |
1281 |
$(GIFLIB_LDFLAGS) $(PNG_LIBS), \ |
|
20547 | 1282 |
LDFLAGS_SUFFIX_solaris := -lc, \ |
1283 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ |
|
1284 |
RC_FLAGS := $(RC_FLAGS) \ |
|
1285 |
-D "JDK_FNAME=splashscreen.dll" \ |
|
1286 |
-D "JDK_INTERNAL_NAME=splashscreen" \ |
|
1287 |
-D "JDK_FTYPE=0x2L", \ |
|
1288 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libsplashscreen, \ |
|
1289 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
1290 |
||
1291 |
BUILD_LIBRARIES += $(LIBSPLASHSCREEN) |
|
1292 |
||
1293 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
1294 |
$(LIBSPLASHSCREEN): $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)osxapp$(SHARED_LIBRARY_SUFFIX) |
|
1295 |
endif |
|
1296 |
||
1297 |
endif |
|
1298 |
||
1299 |
########################################################################################## |
|
1300 |
||
1301 |
ifndef OPENJDK |
|
1302 |
||
1303 |
LIBDCPR_SRC_DIRS := \ |
|
1304 |
$(JDK_TOPDIR)/src/closed/share/native/sun/dc/doe \ |
|
1305 |
$(JDK_TOPDIR)/src/closed/share/native/sun/dc/path \ |
|
1306 |
$(JDK_TOPDIR)/src/closed/share/native/sun/dc/pr \ |
|
1307 |
$(JDK_TOPDIR)/src/closed/share/native/sun/dc/util |
|
1308 |
||
1309 |
LIBDCPR_CFLAGS := $(foreach dir, $(LIBDCPR_SRC_DIRS), -I$(dir)) \ |
|
1310 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe |
|
1311 |
||
1312 |
$(eval $(call SetupNativeCompilation,BUILD_LIBDCPR, \ |
|
1313 |
LIBRARY := dcpr, \ |
|
1314 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
1315 |
SRC := $(LIBDCPR_SRC_DIRS), \ |
|
1316 |
LANG := C, \ |
|
1317 |
OPTIMIZATION := LOW, \ |
|
1318 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
1319 |
$(LIBDCPR_CFLAGS), \ |
|
21805 | 1320 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libdcpr/mapfile-vers, \ |
20547 | 1321 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
1322 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
1323 |
LDFLAGS_SUFFIX := $(LIBM) $(LDFLAGS_JDKLIB_SUFFIX), \ |
|
23291 | 1324 |
LDFLAGS_SUFFIX_windows := $(WIN_JAVA_LIB), \ |
20547 | 1325 |
LDFLAGS_SUFFIX_posix := -lm, \ |
1326 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ |
|
1327 |
RC_FLAGS := $(RC_FLAGS) \ |
|
1328 |
-D "JDK_FNAME=dcpr.dll" \ |
|
1329 |
-D "JDK_INTERNAL_NAME=dcpr" \ |
|
1330 |
-D "JDK_FTYPE=0x2L", \ |
|
1331 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libdcpr, \ |
|
1332 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
1333 |
||
1334 |
$(BUILD_LIBDCPR): $(BUILD_LIBJAVA) |
|
1335 |
||
1336 |
BUILD_LIBRARIES += $(BUILD_LIBDCPR) |
|
1337 |
||
1338 |
endif |
|
1339 |
||
1340 |
########################################################################################## |
|
1341 |
||
1342 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
1343 |
||
1344 |
LIBAWT_LWAWT_FILES := \ |
|
1345 |
awt.m \ |
|
1346 |
ApplicationDelegate.m \ |
|
1347 |
CFRetainedResource.m \ |
|
1348 |
CGLGraphicsConfig.m \ |
|
1349 |
CGLSurfaceData.m \ |
|
1350 |
CGLLayer.m \ |
|
1351 |
CGraphicsConfig.m \ |
|
1352 |
CGraphicsDevice.m \ |
|
1353 |
CGraphicsEnv.m \ |
|
1354 |
CCharToGlyphMapper.m \ |
|
1355 |
CSystemColors.m \ |
|
1356 |
AWTFont.m \ |
|
1357 |
CGGlyphOutlines.m \ |
|
1358 |
CGGlyphImages.m \ |
|
1359 |
CoreTextSupport.m \ |
|
1360 |
AWTStrike.m \ |
|
1361 |
InitIDs.m \ |
|
1362 |
AWTEvent.m \ |
|
1363 |
AWTView.m \ |
|
1364 |
AWTWindow.m \ |
|
1365 |
AWTSurfaceLayers.m \ |
|
1366 |
CCursorManager.m \ |
|
1367 |
CClipboard.m \ |
|
1368 |
CDataTransferer.m \ |
|
1369 |
CDragSource.m \ |
|
1370 |
CDragSourceContextPeer.m \ |
|
1371 |
CDropTarget.m \ |
|
1372 |
CDropTargetContextPeer.m \ |
|
1373 |
CInputMethod.m \ |
|
1374 |
CDesktopPeer.m \ |
|
1375 |
OSVersion.m \ |
|
1376 |
DnDUtilities.m \ |
|
1377 |
CFileDialog.m \ |
|
1378 |
CImage.m \ |
|
1379 |
CMenu.m \ |
|
1380 |
CMenuBar.m \ |
|
1381 |
CMenuComponent.m \ |
|
1382 |
CMenuItem.m \ |
|
1383 |
CPopupMenu.m \ |
|
1384 |
CRobot.m \ |
|
1385 |
CTrayIcon.m \ |
|
1386 |
CWrapper.m \ |
|
1387 |
JavaAccessibilityAction.m \ |
|
1388 |
JavaAccessibilityUtilities.m \ |
|
1389 |
JavaComponentAccessibility.m \ |
|
1390 |
JavaTextAccessibility.m \ |
|
1391 |
LWCToolkit.m \ |
|
1392 |
GeomUtilities.m \ |
|
1393 |
CPrinterJob.m \ |
|
1394 |
PrintModel.m \ |
|
1395 |
PrinterSurfaceData.m \ |
|
1396 |
PrinterView.m \ |
|
1397 |
QuartzSurfaceData.m \ |
|
1398 |
QuartzRenderer.m \ |
|
1399 |
CTextPipe.m \ |
|
1400 |
ImageSurfaceData.m \ |
|
1401 |
awt_DrawingSurface.m \ |
|
1402 |
\ |
|
1403 |
OGLBlitLoops.c \ |
|
1404 |
OGLBufImgOps.c \ |
|
1405 |
OGLContext.c \ |
|
1406 |
OGLFuncs.c \ |
|
1407 |
OGLMaskBlit.c \ |
|
1408 |
OGLMaskFill.c \ |
|
1409 |
OGLPaints.c \ |
|
1410 |
OGLRenderQueue.c \ |
|
1411 |
OGLRenderer.c \ |
|
1412 |
OGLSurfaceData.c \ |
|
1413 |
OGLTextRenderer.c \ |
|
1414 |
OGLVertexCache.c \ |
|
1415 |
AccelGlyphCache.c \ |
|
1416 |
CUPSfuncs.c |
|
1417 |
||
1418 |
||
1419 |
LIBAWT_LWAWT_DIRS := \ |
|
1420 |
$(JDK_TOPDIR)/src/macosx/native/sun/awt \ |
|
1421 |
$(JDK_TOPDIR)/src/macosx/native/sun/font \ |
|
1422 |
$(JDK_TOPDIR)/src/macosx/native/sun/java2d/opengl \ |
|
1423 |
$(JDK_TOPDIR)/src/solaris/native/sun/awt \ |
|
1424 |
$(JDK_TOPDIR)/src/share/native/sun/font \ |
|
1425 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \ |
|
1426 |
||
1427 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_LWAWT, \ |
|
1428 |
LIBRARY := awt_lwawt, \ |
|
1429 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
1430 |
SRC := $(LIBAWT_LWAWT_DIRS), \ |
|
1431 |
LANG := C, \ |
|
1432 |
INCLUDE_FILES := $(LIBAWT_LWAWT_FILES), \ |
|
1433 |
OPTIMIZATION := LOW, \ |
|
1434 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
20901
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
1435 |
$(X_CFLAGS) \ |
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
1436 |
$(X_LIBS) \ |
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
1437 |
$(foreach dir, $(LIBAWT_LWAWT_DIRS), -I$(dir)) \ |
20547 | 1438 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \ |
1439 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
1440 |
-I$(JDK_TOPDIR)/src/solaris/native/sun/java2d \ |
|
1441 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image \ |
|
1442 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
1443 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
|
1444 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
1445 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
|
1446 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
1447 |
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks, \ |
|
1448 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
|
1449 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
1450 |
LDFLAGS_SUFFIX_macosx := -lawt -lmlib_image -losxapp -ljvm $(LIBM) \ |
|
1451 |
-framework Accelerate \ |
|
1452 |
-framework ApplicationServices \ |
|
1453 |
-framework AudioToolbox \ |
|
1454 |
-framework Carbon \ |
|
1455 |
-framework Cocoa \ |
|
1456 |
-framework Security \ |
|
1457 |
-framework ExceptionHandling \ |
|
1458 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
1459 |
-framework JavaNativeFoundation \ |
|
1460 |
-framework JavaRuntimeSupport \ |
|
1461 |
-framework OpenGL \ |
|
1462 |
-framework QuartzCore -ljava, \ |
|
1463 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libawt_lwawt, \ |
|
1464 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
1465 |
||
1466 |
BUILD_LIBRARIES += $(BUILD_LIBAWT_LWAWT) |
|
1467 |
||
1468 |
$(BUILD_LIBAWT_LWAWT): $(BUILD_LIBAWT) |
|
1469 |
||
1470 |
$(BUILD_LIBAWT_LWAWT): $(BUILD_LIBMLIB_IMAGE) |
|
1471 |
||
1472 |
$(BUILD_LIBAWT_LWAWT): $(BUILD_LIBOSXAPP) |
|
1473 |
||
1474 |
$(BUILD_LIBAWT_LWAWT): $(BUILD_LIBJAVA) |
|
1475 |
||
1476 |
endif |
|
1477 |
||
1478 |
########################################################################################## |
|
1479 |
||
1480 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
1481 |
||
1482 |
$(eval $(call SetupNativeCompilation,BUILD_LIBOSXUI, \ |
|
1483 |
LIBRARY := osxui, \ |
|
1484 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
1485 |
SRC := $(JDK_TOPDIR)/src/macosx/native/com/apple/laf, \ |
|
1486 |
LANG := C, \ |
|
1487 |
OPTIMIZATION := LOW, \ |
|
1488 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
1489 |
-I$(JDK_TOPDIR)/src/macosx/native/com/apple/laf \ |
|
1490 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \ |
|
1491 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/awt \ |
|
1492 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks, \ |
|
1493 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
|
1494 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
|
1495 |
-Xlinker -rpath -Xlinker @loader_path, \ |
|
1496 |
LDFLAGS_SUFFIX_macosx := -lawt -losxapp -lawt_lwawt \ |
|
1497 |
-framework Cocoa \ |
|
1498 |
-framework Carbon \ |
|
1499 |
-framework ApplicationServices \ |
|
1500 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
1501 |
-framework JavaNativeFoundation \ |
|
1502 |
-framework JavaRuntimeSupport \ |
|
1503 |
-ljava -ljvm, \ |
|
1504 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libosxui, \ |
|
1505 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
1506 |
||
1507 |
BUILD_LIBRARIES += $(BUILD_LIBOSXUI) |
|
1508 |
||
1509 |
$(BUILD_LIBOSXUI): $(BUILD_LIBAWT) |
|
1510 |
||
1511 |
$(BUILD_LIBOSXUI): $(BUILD_LIBOSXAPP) |
|
1512 |
||
1513 |
$(BUILD_LIBOSXUI): $(BUILD_LIBAWT_LWAWT) |
|
1514 |
||
1515 |
#$(BUILD_LIBOSXUI): $(BUILD_LIBJAVA) |
|
1516 |
||
1517 |
endif |