author | erikj |
Tue, 09 Dec 2014 08:43:06 +0100 | |
changeset 27944 | c6d5edd39016 |
parent 27799 | 097b1d6f6894 |
child 28537 | 0a030920b0f5 |
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 |
|
27565 | 26 |
WIN_AWT_LIB := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libawt/awt.lib |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
27 |
|
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
28 |
################################################################################ |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
29 |
|
25859 | 30 |
BUILD_LIBMLIB_SRC := $(JDK_TOPDIR)/src/java.desktop/share/native/libmlib_image \ |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
31 |
$(JDK_TOPDIR)/src/java.desktop/share/native/common/awt/medialib |
20547 | 32 |
BUILD_LIBMLIB_CFLAGS := -D__USE_J2D_NAMES -D__MEDIALIB_OLD_NAMES \ |
25859 | 33 |
$(addprefix -I, $(BUILD_LIBMLIB_SRC)) \ |
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
34 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libmlib_image |
20547 | 35 |
|
36 |
BUILD_LIBMLIB_LDLIBS := |
|
21805 | 37 |
BUILD_LIBMLIB_IMAGE_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libmlib_image/mapfile-vers |
13164 | 38 |
|
13702 | 39 |
BUILD_LIBMLIB_CFLAGS += -DMLIB_NO_LIBSUNMATH |
40 |
||
41 |
ifeq ($(OPENJDK_TARGET_CPU_BITS), 64) |
|
20547 | 42 |
BUILD_LIBMLIB_CFLAGS += -DMLIB_OS64BIT |
12892 | 43 |
endif |
44 |
||
13164 | 45 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
20547 | 46 |
BUILD_LIBMLIB_LDLIBS += $(LIBM) $(LIBDL) |
12892 | 47 |
endif |
48 |
||
20547 | 49 |
$(eval $(call SetupNativeCompilation,BUILD_LIBMLIB_IMAGE, \ |
50 |
LIBRARY := mlib_image, \ |
|
51 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
52 |
SRC := $(BUILD_LIBMLIB_SRC), \ |
|
25859 | 53 |
EXCLUDE_FILES := mlib_c_ImageBlendTable.c, \ |
20547 | 54 |
LANG := C, \ |
55 |
OPTIMIZATION := HIGHEST, \ |
|
56 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
57 |
$(BUILD_LIBMLIB_CFLAGS), \ |
|
58 |
MAPFILE := $(BUILD_LIBMLIB_IMAGE_MAPFILE), \ |
|
59 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
|
60 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
61 |
LDFLAGS_SUFFIX := $(BUILD_LIBMLIB_LDLIBS) \ |
|
62 |
$(LDFLAGS_JDKLIB_SUFFIX), \ |
|
63 |
LDFLAGS_SUFFIX_solaris := -lc, \ |
|
25859 | 64 |
VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \ |
20547 | 65 |
RC_FLAGS := $(RC_FLAGS) \ |
66 |
-D "JDK_FNAME=mlib_image.dll" \ |
|
67 |
-D "JDK_INTERNAL_NAME=mlib_image" \ |
|
68 |
-D "JDK_FTYPE=0x2L", \ |
|
27565 | 69 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libmlib_image, \ |
20547 | 70 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
71 |
||
27565 | 72 |
$(BUILD_LIBMLIB_IMAGE): $(call FindLib, java.base, java) |
13164 | 73 |
|
27565 | 74 |
TARGETS += $(BUILD_LIBMLIB_IMAGE) |
12892 | 75 |
|
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
76 |
################################################################################ |
12892 | 77 |
|
20547 | 78 |
ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH), solaris-sparc) |
79 |
||
25859 | 80 |
LIBMLIB_IMAGE_V_SRC := $(JDK_TOPDIR)/src/java.desktop/share/native/libmlib_image \ |
81 |
$(JDK_TOPDIR)/src/java.desktop/unix/native/libmlib_image \ |
|
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
82 |
$(JDK_TOPDIR)/src/java.desktop/share/native/common/awt/medialib \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
83 |
$(JDK_TOPDIR)/src/java.desktop/unix/native/common/awt/medialib \ |
25859 | 84 |
# |
85 |
LIBMLIB_IMAGE_V_CFLAGS := $(JDK_TOPDIR)/src/java.desktop/unix/native/libmlib_image/vis_$(OPENJDK_TARGET_CPU_BITS).il \ |
|
86 |
$(addprefix -I, $(LIBMLIB_IMAGE_V_SRC)) \ |
|
87 |
# |
|
20547 | 88 |
|
25859 | 89 |
BUILD_LIBMLIB_IMAGE_V_EXFILES := \ |
90 |
awt_ImagingLib.c \ |
|
91 |
mlib_c_ImageAffine_BC.c \ |
|
92 |
mlib_c_ImageAffine_BC_S16.c \ |
|
93 |
mlib_c_ImageAffine_BC_U16.c \ |
|
94 |
mlib_c_ImageAffine_BL.c \ |
|
95 |
mlib_c_ImageAffine_BL_S16.c \ |
|
96 |
mlib_c_ImageAffine_BL_U16.c \ |
|
97 |
mlib_c_ImageAffineIndex_BC.c \ |
|
98 |
mlib_c_ImageAffineIndex_BL.c \ |
|
99 |
mlib_c_ImageAffine_NN.c \ |
|
100 |
mlib_c_ImageBlendTable.c \ |
|
101 |
mlib_c_ImageConvClearEdge.c \ |
|
102 |
mlib_c_ImageConvCopyEdge.c \ |
|
103 |
mlib_c_ImageConv_f.c \ |
|
104 |
mlib_c_ImageConvVersion.c \ |
|
105 |
mlib_c_ImageCopy.c \ |
|
106 |
mlib_c_ImageLookUp.c \ |
|
107 |
mlib_c_ImageLookUp_f.c \ |
|
108 |
mlib_v_ImageChannelExtract.c \ |
|
109 |
mlib_v_ImageChannelExtract_f.c \ |
|
110 |
mlib_v_ImageChannelInsert_34.c \ |
|
111 |
mlib_v_ImageChannelInsert.c \ |
|
112 |
mlib_v_ImageConvIndex3_8_16nw.c \ |
|
113 |
mlib_v_ImageConvIndex3_8_8nw.c \ |
|
114 |
mlib_v_ImageCopy.c \ |
|
115 |
mlib_v_ImageCopy_blk.s \ |
|
116 |
# |
|
117 |
||
118 |
LIBMLIB_IMAGE_V_CFLAGS += $(filter-out -DMLIB_NO_LIBSUNMATH, $(BUILD_LIBMLIB_CFLAGS)) |
|
20547 | 119 |
|
120 |
$(eval $(call SetupNativeCompilation,BUILD_LIBMLIB_IMAGE_V, \ |
|
121 |
LIBRARY := mlib_image_v, \ |
|
122 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
25859 | 123 |
SRC := $(LIBMLIB_IMAGE_V_SRC), \ |
20547 | 124 |
LANG := C, \ |
25859 | 125 |
EXCLUDE_FILES := $(BUILD_LIBMLIB_IMAGE_V_EXFILES), \ |
20547 | 126 |
OPTIMIZATION := HIGHEST, \ |
127 |
CFLAGS := -xarch=sparcvis \ |
|
25859 | 128 |
$(LIBMLIB_IMAGE_V_CFLAGS) \ |
20547 | 129 |
$(CFLAGS_JDKLIB), \ |
130 |
MAPFILE := $(BUILD_LIBMLIB_IMAGE_MAPFILE), \ |
|
131 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
|
132 |
$(BUILD_LIBMLIB_LDLIBS) -ljava -ljvm \ |
|
133 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
134 |
LDFLAGS_SUFFIX_solaris := -lc, \ |
|
27565 | 135 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libmlib_image_v, \ |
20547 | 136 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
137 |
||
27565 | 138 |
$(BUILD_LIBMLIB_IMAGE_V): $(call FindLib, java.base, java) |
20547 | 139 |
|
27565 | 140 |
TARGETS += $(BUILD_LIBMLIB_IMAGE_V) |
12892 | 141 |
|
142 |
endif |
|
143 |
||
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
144 |
################################################################################ |
12892 | 145 |
|
25859 | 146 |
LIBAWT_DIRS := $(JDK_TOPDIR)/src/java.desktop/share/native/libawt \ |
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
147 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libawt \ |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
148 |
$(JDK_TOPDIR)/src/java.desktop/share/native/common/awt/debug \ |
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
149 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/awt \ |
25859 | 150 |
# |
20547 | 151 |
|
26225
3c7e92c78bab
8056246: Fix AIX build after the Modular Source Code change 8054834
simonis
parents:
26191
diff
changeset
|
152 |
ifeq ($(OPENJDK_TARGET_OS), aix) |
3c7e92c78bab
8056246: Fix AIX build after the Modular Source Code change 8054834
simonis
parents:
26191
diff
changeset
|
153 |
LIBAWT_DIRS += $(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS)/native/libawt |
3c7e92c78bab
8056246: Fix AIX build after the Modular Source Code change 8054834
simonis
parents:
26191
diff
changeset
|
154 |
endif |
3c7e92c78bab
8056246: Fix AIX build after the Modular Source Code change 8054834
simonis
parents:
26191
diff
changeset
|
155 |
|
20547 | 156 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
157 |
LIBAWT_DIRS += $(JDK_TOPDIR)/src/java.desktop/share/native/common/awt/utility |
25859 | 158 |
else |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
159 |
LIBAWT_EXFILES := java2d/ShaderList.c |
25859 | 160 |
endif |
161 |
||
26225
3c7e92c78bab
8056246: Fix AIX build after the Modular Source Code change 8054834
simonis
parents:
26191
diff
changeset
|
162 |
ifneq ($(filter $(OPENJDK_TARGET_OS), solaris linux macosx aix), ) |
25859 | 163 |
LIBAWT_EXFILES += awt_Font.c CUPSfuncs.c fontpath.c X11Color.c |
14231 | 164 |
endif |
13164 | 165 |
|
25859 | 166 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
167 |
LIBAWT_EXFILES += initIDs.c awt/image/cvutils/img_colors.c |
22597
7515a991bb37
8024854: PPC64: Basic changes and files to build the class library on AIX
simonis
parents:
22595
diff
changeset
|
168 |
endif |
7515a991bb37
8024854: PPC64: Basic changes and files to build the class library on AIX
simonis
parents:
22595
diff
changeset
|
169 |
|
27565 | 170 |
LIBAWT_CFLAGS += -I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \ |
25859 | 171 |
$(addprefix -I, $(shell find $(LIBAWT_DIRS) -type d)) \ |
172 |
$(LIBJAVA_HEADER_FLAGS) \ |
|
173 |
$(addprefix -I, $(BUILD_LIBMLIB_IMAGE_SRC)) \ |
|
174 |
# |
|
175 |
||
26225
3c7e92c78bab
8056246: Fix AIX build after the Modular Source Code change 8054834
simonis
parents:
26191
diff
changeset
|
176 |
LIBAWT_CFLAGS += -D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES $(X_CFLAGS) |
20547 | 177 |
|
178 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
12892 | 179 |
endif |
180 |
||
13164 | 181 |
ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH), solaris-sparc) |
20547 | 182 |
LIBAWT_CFLAGS += -DMLIB_ADD_SUFF |
183 |
LIBAWT_CFLAGS += -xarch=sparcvis |
|
184 |
||
25859 | 185 |
LIBAWT_CFLAGS += $(JDK_TOPDIR)/src/java.desktop/unix/native/libmlib_image/vis_$(OPENJDK_TARGET_CPU_BITS).il |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
186 |
LIBAWT_DIRS += $(JDK_TOPDIR)/src/java.desktop/share/native/common/awt/medialib |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
187 |
LIBAWT_EXFILES += java2d/loops/MapAccelFunc.c |
20547 | 188 |
|
189 |
ifeq ($(OPENJDK_TARGET_CPU), sparcv9) |
|
190 |
LIBAWT_ASFLAGS = -P -xarch=v9a |
|
191 |
else |
|
192 |
LIBAWT_ASFLAGS = -P -xarch=v8plusa |
|
193 |
endif |
|
12892 | 194 |
else |
25859 | 195 |
LIBAWT_EXCLUDES += \ |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
196 |
$(JDK_TOPDIR)/src/java.desktop/unix/native/libawt/awt/medialib \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
197 |
$(JDK_TOPDIR)/src/java.desktop/unix/native/libawt/java2d/loops \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
198 |
$(JDK_TOPDIR)/src/java.desktop/unix/native/common/awt/medialib \ |
25859 | 199 |
# |
12892 | 200 |
endif |
201 |
||
20547 | 202 |
ifneq ($(OPENJDK_TARGET_OS), solaris) |
203 |
LIBAWT_CFLAGS += -DMLIB_NO_LIBSUNMATH |
|
12892 | 204 |
endif |
205 |
||
20547 | 206 |
LIBAWT_LANG := C |
207 |
||
208 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
209 |
LIBAWT_DIRS += $(JDK_TOPDIR)/src/java.desktop/share/native/common/font \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
210 |
$(JDK_TOPDIR)/src/java.desktop/share/native/common/java2d/opengl \ |
25859 | 211 |
# Why does libawt need java.base headers? |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
212 |
LIBAWT_CFLAGS += -I$(JDK_TOPDIR)/src/java.desktop/share/native/common/font \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
213 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/common/java2d/opengl \ |
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
214 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/java2d/opengl \ |
25859 | 215 |
-I$(JDK_TOPDIR)/src/java.desktop/windows/native/include \ |
216 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/include \ |
|
27565 | 217 |
-I$(SUPPORT_OUTPUTDIR)/headers/java.base \ |
25859 | 218 |
# |
219 |
LIBAWT_EXFILES += \ |
|
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
220 |
java2d/d3d/D3DShaderGen.c \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
221 |
awt/image/cvutils/img_colors.c \ |
25859 | 222 |
# |
20547 | 223 |
|
224 |
LIBAWT_LANG := C++ |
|
225 |
LIBAWT_CFLAGS += -EHsc -DUNICODE -D_UNICODE |
|
226 |
ifeq ($(OPENJDK_TARGET_CPU_BITS), 64) |
|
227 |
LIBAWT_CFLAGS += -DMLIB_OS64BIT |
|
228 |
endif |
|
229 |
||
230 |
ifdef OPENJDK |
|
25859 | 231 |
LIBAWT_RC_FLAGS := -i "$(JDK_TOPDIR)/src/java.base/windows/native/launcher/icons" |
20547 | 232 |
else |
25859 | 233 |
LIBAWT_RC_FLAGS := -i "$(JDK_TOPDIR)/src/closed/java.base/windows/native/launcher/icons" |
20547 | 234 |
endif |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
235 |
LIBAWT_VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/java.desktop/windows/native/libawt/windows/awt.rc |
12892 | 236 |
endif |
237 |
||
13164 | 238 |
ifeq ($(MILESTONE), internal) |
20547 | 239 |
LIBAWT_CFLAGS += -DINTERNAL_BUILD |
12892 | 240 |
endif |
241 |
||
21805 | 242 |
LIBAWT_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libawt/mapfile-vers |
20547 | 243 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
244 |
LIBAWT_MAPFILE := |
|
12892 | 245 |
endif |
246 |
||
20547 | 247 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT, \ |
248 |
LIBRARY := awt, \ |
|
249 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
250 |
SRC := $(LIBAWT_DIRS), \ |
|
25859 | 251 |
EXCLUDES := $(LIBAWT_EXCLUDES), \ |
252 |
EXCLUDE_FILES := $(LIBAWT_EXFILES), \ |
|
20547 | 253 |
LANG := $(LIBAWT_LANG), \ |
254 |
OPTIMIZATION := LOW, \ |
|
255 |
CFLAGS := $(CFLAGS_JDKLIB) $(LIBAWT_CFLAGS), \ |
|
256 |
ASFLAGS := $(LIBAWT_ASFLAGS), \ |
|
257 |
MAPFILE := $(LIBAWT_MAPFILE), \ |
|
258 |
LDFLAGS := $(LDFLAGS_JDKLIB) $(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
259 |
LDFLAGS_SUFFIX_linux := -ljvm $(LIBM) $(LIBDL) -ljava, \ |
|
260 |
LDFLAGS_SUFFIX_solaris := -ljvm $(LIBM) $(LIBDL) -ljava -lc, \ |
|
22595
aaa6b141196c
8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents:
22594
diff
changeset
|
261 |
LDFLAGS_SUFFIX_aix :=-ljvm $(LIBM) $(LIBDL) -ljava -lm,\ |
27565 | 262 |
LDFLAGS_SUFFIX_macosx := -L$(INSTALL_LIBRARIES_HERE) \ |
263 |
-lmlib_image -ljvm $(LIBM) \ |
|
20547 | 264 |
-framework Cocoa \ |
265 |
-framework OpenGL \ |
|
266 |
-framework JavaNativeFoundation \ |
|
267 |
-framework JavaRuntimeSupport \ |
|
268 |
-framework ApplicationServices \ |
|
269 |
-framework AudioToolbox \ |
|
270 |
-ljava, \ |
|
271 |
LDFLAGS_SUFFIX_windows := kernel32.lib user32.lib gdi32.lib winspool.lib \ |
|
272 |
imm32.lib ole32.lib uuid.lib shell32.lib \ |
|
273 |
comdlg32.lib winmm.lib comctl32.lib shlwapi.lib \ |
|
274 |
delayimp.lib jvm.lib $(WIN_JAVA_LIB) advapi32.lib \ |
|
275 |
-DELAYLOAD:user32.dll -DELAYLOAD:gdi32.dll \ |
|
276 |
-DELAYLOAD:shell32.dll -DELAYLOAD:winmm.dll \ |
|
277 |
-DELAYLOAD:winspool.drv -DELAYLOAD:imm32.dll \ |
|
278 |
-DELAYLOAD:ole32.dll -DELAYLOAD:comdlg32.dll \ |
|
279 |
-DELAYLOAD:comctl32.dll -DELAYLOAD:shlwapi.dll, \ |
|
280 |
VERSIONINFO_RESOURCE := $(LIBAWT_VERSIONINFO_RESOURCE), \ |
|
281 |
RC_FLAGS := $(RC_FLAGS) $(LIBAWT_RC_FLAGS) \ |
|
282 |
-D "JDK_FNAME=awt.dll" \ |
|
283 |
-D "JDK_INTERNAL_NAME=awt" \ |
|
284 |
-D "JDK_FTYPE=0x2L", \ |
|
27565 | 285 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libawt, \ |
20547 | 286 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
287 |
||
27565 | 288 |
$(BUILD_LIBAWT): $(call FindLib, java.base, java) |
13164 | 289 |
|
290 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
20547 | 291 |
$(BUILD_LIBAWT): $(BUILD_LIBMLIB_IMAGE) |
13164 | 292 |
endif |
293 |
||
27565 | 294 |
TARGETS += $(BUILD_LIBAWT) |
12892 | 295 |
|
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
296 |
################################################################################ |
12892 | 297 |
|
21130 | 298 |
ifeq ($(findstring $(OPENJDK_TARGET_OS),windows macosx),) |
20547 | 299 |
ifndef BUILD_HEADLESS_ONLY |
300 |
||
301 |
LIBAWT_XAWT_DIRS := \ |
|
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
302 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libawt_xawt \ |
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
303 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libjawt \ |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
304 |
$(JDK_TOPDIR)/src/java.desktop/share/native/common/awt/debug \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
305 |
$(JDK_TOPDIR)/src/java.desktop/share/native/common/awt/utility \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
306 |
$(JDK_TOPDIR)/src/java.desktop/share/native/common/font \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
307 |
$(JDK_TOPDIR)/src/java.desktop/share/native/common/java2d/opengl \ |
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
308 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/java2d/opengl \ |
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
309 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/java2d/x11 \ |
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
310 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/awt \ |
25859 | 311 |
# |
312 |
||
313 |
LIBAWT_XAWT_EXCLUDES := medialib |
|
20547 | 314 |
|
25859 | 315 |
LIBAWT_XAWT_CFLAGS := $(addprefix -I, $(shell $(FIND) $(LIBAWT_XAWT_DIRS) -type d)) \ |
27565 | 316 |
-I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \ |
25859 | 317 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/include \ |
318 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS)/native/include \ |
|
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
319 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/include \ |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
320 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d \ |
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
321 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libawt/java2d \ |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
322 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d/loops \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
323 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d/pipe \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
324 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/awt/image/cvutils \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
325 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/awt/image \ |
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
326 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libsunwjdga \ |
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
327 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/font \ |
25859 | 328 |
$(LIBJAVA_HEADER_FLAGS) |
329 |
# |
|
330 |
||
331 |
LIBAWT_XAWT_CFLAGS += -DXAWT -DXAWT_HACK \ |
|
21130 | 332 |
-DPACKAGE_PATH=\"$(PACKAGE_PATH)\" \ |
25859 | 333 |
$(CUPS_CFLAGS) |
20547 | 334 |
|
335 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
336 |
LIBAWT_XAWT_CFLAGS += -DFUNCPROTO=15 |
|
337 |
endif |
|
338 |
||
339 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
340 |
ifeq ($(DISABLE_XRENDER), true) |
|
341 |
LIBAWT_XAWT_CFLAGS += -DDISABLE_XRENDER_BY_DEFAULT=true |
|
342 |
endif |
|
343 |
endif |
|
344 |
||
345 |
ifeq ($(MILESTONE), internal) |
|
346 |
LIBAWT_XAWT_CFLAGS += -DINTERNAL_BUILD |
|
347 |
endif |
|
348 |
||
349 |
LIBAWT_XAWT_LDFLAGS_SUFFIX := $(LIBM) -lawt -lXext -lX11 -lXrender $(LIBDL) -lXtst -lXi -ljava -ljvm -lc |
|
350 |
||
351 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
352 |
# To match old build, add this to LDFLAGS instead of suffix. |
|
353 |
LIBAWT_XAWT_LDFLAGS += -lpthread |
|
354 |
endif |
|
355 |
||
356 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_XAWT, \ |
|
357 |
LIBRARY := awt_xawt, \ |
|
358 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
359 |
SRC := $(LIBAWT_XAWT_DIRS), \ |
|
25859 | 360 |
EXCLUDES := $(LIBAWT_XAWT_EXCLUDES), \ |
20547 | 361 |
LANG := C, \ |
362 |
OPTIMIZATION := LOW, \ |
|
363 |
CFLAGS := $(CFLAGS_JDKLIB) $(LIBAWT_XAWT_CFLAGS) \ |
|
364 |
$(X_CFLAGS), \ |
|
21805 | 365 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libawt_xawt/mapfile-vers, \ |
20547 | 366 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
23592
35b16ae6b4f4
8038340: Cleanup and fix sysroot and devkit handling on Linux and Solaris
erikj
parents:
23310
diff
changeset
|
367 |
$(X_LIBS) $(LIBAWT_XAWT_LDFLAGS) \ |
20547 | 368 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
27565 | 369 |
$(call SET_SHARED_LIBRARY_ORIGIN,/..) \ |
27944 | 370 |
-L$(INSTALL_LIBRARIES_HERE), \ |
20547 | 371 |
LDFLAGS_SUFFIX := $(LIBAWT_XAWT_LDFLAGS_SUFFIX), \ |
25859 | 372 |
VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \ |
20547 | 373 |
RC_FLAGS := $(RC_FLAGS) \ |
374 |
-D "JDK_FNAME=xawt.dll" \ |
|
375 |
-D "JDK_INTERNAL_NAME=xawt" \ |
|
376 |
-D "JDK_FTYPE=0x2L", \ |
|
27565 | 377 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libawt_xawt, \ |
20547 | 378 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
379 |
||
27565 | 380 |
$(BUILD_LIBAWT_XAWT): $(call FindLib, java.base, java) |
20547 | 381 |
|
382 |
$(BUILD_LIBAWT_XAWT): $(BUILD_LIBAWT) |
|
383 |
||
27565 | 384 |
TARGETS += $(BUILD_LIBAWT_XAWT) |
20547 | 385 |
|
386 |
endif |
|
387 |
endif |
|
388 |
||
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
389 |
################################################################################ |
20547 | 390 |
|
25859 | 391 |
LIBLCMS_SRC := $(JDK_TOPDIR)/src/java.desktop/share/native/liblcms |
27565 | 392 |
LIBLCMS_CPPFLAGS += -I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \ |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
393 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
394 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/common/awt/debug \ |
25859 | 395 |
$(LIBJAVA_HEADER_FLAGS) \ |
396 |
# |
|
24540 | 397 |
|
398 |
ifeq ($(USE_EXTERNAL_LCMS), true) |
|
399 |
# If we're using an external library, we'll just need the wrapper part. |
|
400 |
# By including it explicitely, all other files will be excluded. |
|
401 |
BUILD_LIBLCMS_INCLUDE_FILES := LCMS.c |
|
402 |
else |
|
403 |
BUILD_LIBLCMS_INCLUDE_FILES := |
|
404 |
# If we're using the bundled library, we'll need to include it in the |
|
405 |
# include path explicitly. Otherwise the system headers will be used. |
|
25859 | 406 |
LIBLCMS_CPPFLAGS += $(addprefix -I, $(LIBLCMS_SRC)) |
24540 | 407 |
endif |
408 |
||
20547 | 409 |
$(eval $(call SetupNativeCompilation,BUILD_LIBLCMS, \ |
410 |
LIBRARY := lcms, \ |
|
411 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
25859 | 412 |
SRC := $(LIBLCMS_SRC), \ |
24540 | 413 |
INCLUDE_FILES := $(BUILD_LIBLCMS_INCLUDE_FILES), \ |
20547 | 414 |
LANG := C, \ |
415 |
OPTIMIZATION := HIGHEST, \ |
|
416 |
CFLAGS := $(filter-out -xc99=%none, $(CFLAGS_JDKLIB)) \ |
|
25859 | 417 |
$(SHARED_LIBRARY_FLAGS) $(LIBLCMS_CPPFLAGS) \ |
24540 | 418 |
$(LCMS_CFLAGS), \ |
20547 | 419 |
CFLAGS_solaris := -xc99=no_lib, \ |
420 |
CFLAGS_windows := -DCMS_IS_WINDOWS_, \ |
|
21805 | 421 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/liblcms/mapfile-vers, \ |
20547 | 422 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
423 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
27944 | 424 |
LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \ |
20547 | 425 |
LDFLAGS_solaris := /usr/lib$(OPENJDK_TARGET_CPU_ISADIR)/libm.so.2, \ |
426 |
LDFLAGS_windows := $(WIN_AWT_LIB) $(WIN_JAVA_LIB), \ |
|
24540 | 427 |
LDFLAGS_SUFFIX_solaris := -lawt -ljava -ljvm -lc $(LCMS_LIBS), \ |
428 |
LDFLAGS_SUFFIX_macosx := $(LIBM) -lawt -ljava -ljvm $(LCMS_LIBS), \ |
|
429 |
LDFLAGS_SUFFIX_linux := -lm -lawt -ljava -ljvm $(LCMS_LIBS), \ |
|
430 |
LDFLAGS_SUFFIX_aix := -lm -lawt -ljava -ljvm $(LCMS_LIBS),\ |
|
25859 | 431 |
VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \ |
20547 | 432 |
RC_FLAGS := $(RC_FLAGS) \ |
433 |
-D "JDK_FNAME=lcms.dll" \ |
|
434 |
-D "JDK_INTERNAL_NAME=lcms" \ |
|
435 |
-D "JDK_FTYPE=0x2L", \ |
|
27565 | 436 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/liblcms, \ |
20547 | 437 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
438 |
||
27565 | 439 |
TARGETS += $(BUILD_LIBLCMS) |
20547 | 440 |
|
441 |
$(BUILD_LIBLCMS): $(BUILD_LIBAWT) |
|
442 |
||
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
443 |
################################################################################ |
20547 | 444 |
|
445 |
ifdef OPENJDK |
|
25103 | 446 |
BUILD_LIBJAVAJPEG_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjpeg/mapfile-vers |
20547 | 447 |
else |
25103 | 448 |
BUILD_LIBJAVAJPEG_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjpeg/mapfile-vers-closed |
25859 | 449 |
LIBJAVAJPEG_SRC += $(JDK_TOPDIR)/src/closed/java.desktop/share/native/libjavajpeg |
20547 | 450 |
endif |
451 |
||
25859 | 452 |
LIBJAVAJPEG_SRC += $(JDK_TOPDIR)/src/java.desktop/share/native/libjavajpeg |
453 |
||
25103 | 454 |
BUILD_LIBJAVAJPEG_REORDER := |
13164 | 455 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
20547 | 456 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
25103 | 457 |
BUILD_LIBJAVAJPEG_REORDER := $(JDK_TOPDIR)/make/mapfiles/libjpeg/reorder-$(OPENJDK_TARGET_CPU) |
20547 | 458 |
endif |
459 |
endif |
|
460 |
||
25103 | 461 |
|
20547 | 462 |
# Suppress gcc warnings like "variable might be clobbered by 'longjmp' |
463 |
# or 'vfork'": this warning indicates that some variable is placed to |
|
464 |
# a register by optimized compiler and it's value might be lost on longjmp(). |
|
465 |
# Recommended way to avoid such warning is to declare the variable as |
|
466 |
# volatile to prevent the optimization. However, this approach does not |
|
467 |
# work because we have to declare all variables as volatile in result. |
|
468 |
#ifndef CROSS_COMPILE_ARCH |
|
469 |
# CC_43_OR_NEWER := \ |
|
470 |
# $(shell $(EXPR) $(CC_MAJORVER) \> 4 \| \ |
|
471 |
# \( $(CC_MAJORVER) = 4 \& $(CC_MINORVER) \>= 3 \) ) |
|
472 |
# ifeq ($(CC_43_OR_NEWER), 1) |
|
25103 | 473 |
# BUILD_LIBJAVAJPEG_CFLAGS_linux += -Wno-clobbered |
20547 | 474 |
# endif |
475 |
#endif |
|
476 |
||
25103 | 477 |
ifeq ($(USE_EXTERNAL_LIBJPEG), true) |
478 |
LIBJPEG_LIBS := -ljpeg |
|
479 |
BUILD_LIBJAVAJPEG_INCLUDE_FILES := \ |
|
480 |
imageIOJPEG.c \ |
|
481 |
jpegdecoder.c |
|
482 |
BUILD_LIBJAVAJPEG_HEADERS := |
|
483 |
else |
|
484 |
LIBJPEG_LIBS := |
|
485 |
BUILD_LIBJAVAJPEG_INCLUDE_FILES := |
|
25859 | 486 |
BUILD_LIBJAVAJPEG_HEADERS := $(addprefix -I, $(LIBJAVAJPEG_SRC)) |
25103 | 487 |
endif |
488 |
||
489 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAVAJPEG, \ |
|
490 |
LIBRARY := javajpeg, \ |
|
20547 | 491 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
25859 | 492 |
SRC := $(LIBJAVAJPEG_SRC), \ |
25103 | 493 |
INCLUDE_FILES := $(BUILD_LIBJAVAJPEG_INCLUDE_FILES), \ |
20547 | 494 |
LANG := C, \ |
495 |
OPTIMIZATION := HIGHEST, \ |
|
25859 | 496 |
CFLAGS := $(CFLAGS_JDKLIB) $(addprefix -I, $(LIBJAVAJPEG_SRC)) \ |
497 |
$(LIBJAVA_HEADER_FLAGS) \ |
|
27565 | 498 |
-I$(SUPPORT_OUTPUTDIR)/headers/java.desktop, \ |
25103 | 499 |
MAPFILE := $(BUILD_LIBJAVAJPEG_MAPFILE), \ |
500 |
LDFLAGS := $(LDFLAGS_JDKLIB) $(LIBJPEG_LIBS) \ |
|
20547 | 501 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
502 |
LDFLAGS_windows := $(WIN_JAVA_LIB) jvm.lib, \ |
|
503 |
LDFLAGS_SUFFIX := $(LDFLAGS_JDKLIB_SUFFIX), \ |
|
25859 | 504 |
VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \ |
20547 | 505 |
RC_FLAGS := $(RC_FLAGS) \ |
25103 | 506 |
-D "JDK_FNAME=javajpeg.dll" \ |
507 |
-D "JDK_INTERNAL_NAME=javajpeg" \ |
|
20547 | 508 |
-D "JDK_FTYPE=0x2L", \ |
25103 | 509 |
REORDER := $(BUILD_LIBJAVAJPEG_REORDER), \ |
27565 | 510 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjavajpeg, \ |
20547 | 511 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
512 |
||
27565 | 513 |
$(BUILD_LIBJAVAJPEG): $(call FindLib, java.base, java) |
20547 | 514 |
|
27565 | 515 |
TARGETS += $(BUILD_LIBJAVAJPEG) |
20547 | 516 |
|
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
517 |
################################################################################ |
20547 | 518 |
|
25859 | 519 |
LIBFONTMANAGER_SRC := $(JDK_TOPDIR)/src/java.desktop/share/native/libfontmanager \ |
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
520 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libfontmanager |
25859 | 521 |
LIBFONTMANAGER_CFLAGS := \ |
522 |
$(addprefix -I, $(shell $(FIND) \ |
|
523 |
$(LIBFONTMANAGER_SRC) \ |
|
524 |
$(JDK_TOPDIR)/src/java.desktop/share/native/libawt \ |
|
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
525 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libawt \ |
25859 | 526 |
$(JDK_TOPDIR)/src/java.desktop/share/native/common \ |
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
527 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common -type d)) \ |
27565 | 528 |
-I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \ |
25859 | 529 |
$(LIBJAVA_HEADER_FLAGS) \ |
530 |
# |
|
531 |
||
20547 | 532 |
ifndef OPENJDK |
25859 | 533 |
LIBFONTMANAGER_CFLAGS += -I$(JDK_TOPDIR)/src/closed/java.desktop/share/native/libt2k |
21805 | 534 |
BUILD_LIBFONTMANAGER_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libfontmanager/mapfile-vers |
20547 | 535 |
LIBFONTMANAGER_EXCLUDE_FILES += freetypeScaler.c |
536 |
else |
|
25859 | 537 |
LIBFONTMANAGER_CFLAGS += $(FREETYPE_CFLAGS) |
21805 | 538 |
BUILD_LIBFONTMANAGER_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libfontmanager/mapfile-vers.openjdk |
20899 | 539 |
BUILD_LIBFONTMANAGER_FONTLIB := $(FREETYPE_LIBS) |
20547 | 540 |
endif |
541 |
||
542 |
LIBFONTMANAGER_OPTIMIZATION := HIGH |
|
543 |
||
544 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
545 |
LIBFONTMANAGER_EXCLUDE_FILES += X11FontScaler.c \ |
|
546 |
X11TextRenderer.c |
|
547 |
LIBFONTMANAGER_OPTIMIZATION := HIGHEST |
|
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
548 |
LIBFONTMANAGER_CFLAGS += -I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libawt/windows |
21130 | 549 |
else ifeq ($(OPENJDK_TARGET_OS), macosx) |
550 |
LIBFONTMANAGER_EXCLUDE_FILES += X11FontScaler.c \ |
|
551 |
X11TextRenderer.c \ |
|
552 |
fontpath.c \ |
|
553 |
lcdglyph.c |
|
20547 | 554 |
else |
555 |
LIBFONTMANAGER_EXCLUDE_FILES += fontpath.c \ |
|
556 |
lcdglyph.c |
|
557 |
endif |
|
558 |
||
25859 | 559 |
LIBFONTMANAGER_CFLAGS += $(FONT_HEADERS) $(X_CFLAGS) -DLE_STANDALONE -DHEADLESS |
20547 | 560 |
|
561 |
# Turn off aliasing with GCC for ExtensionSubtables.cpp |
|
562 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
563 |
BUILD_LIBFONTMANAGER_ExtensionSubtables.cpp_CXXFLAGS := -fno-strict-aliasing |
|
564 |
endif |
|
565 |
||
24198
41b2f3e923b8
8042208: Build fails on Solaris using devkit when X isn't installed
erikj
parents:
23592
diff
changeset
|
566 |
# Libfontmanager doesn't actually need X_LIBS to link, but if building |
41b2f3e923b8
8042208: Build fails on Solaris using devkit when X isn't installed
erikj
parents:
23592
diff
changeset
|
567 |
# on a Solaris machine without X installed, using a devkit, linking |
41b2f3e923b8
8042208: Build fails on Solaris using devkit when X isn't installed
erikj
parents:
23592
diff
changeset
|
568 |
# to libawt_xawt will fail without the -L parameters from X_LIBS. Filter |
41b2f3e923b8
8042208: Build fails on Solaris using devkit when X isn't installed
erikj
parents:
23592
diff
changeset
|
569 |
# out the -R parameters since they aren't needed. |
20547 | 570 |
$(eval $(call SetupNativeCompilation,BUILD_LIBFONTMANAGER, \ |
571 |
LIBRARY := fontmanager, \ |
|
572 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
25859 | 573 |
SRC := $(LIBFONTMANAGER_SRC), \ |
20547 | 574 |
EXCLUDE_FILES := $(LIBFONTMANAGER_EXCLUDE_FILES) \ |
575 |
AccelGlyphCache.c, \ |
|
576 |
LANG := C++, \ |
|
25859 | 577 |
CFLAGS := $(CFLAGS_JDKLIB) $(LIBFONTMANAGER_CFLAGS), \ |
578 |
CXXFLAGS := $(CXXFLAGS_JDKLIB) $(LIBFONTMANAGER_CFLAGS), \ |
|
20547 | 579 |
OPTIMIZATION := $(LIBFONTMANAGER_OPTIMIZATION), \ |
25859 | 580 |
CFLAGS_windows = -DCC_NOEX, \ |
20547 | 581 |
MAPFILE := $(BUILD_LIBFONTMANAGER_MAPFILE), \ |
582 |
LDFLAGS := $(subst -Xlinker -z -Xlinker defs,,$(LDFLAGS_JDKLIB)) $(LDFLAGS_CXX_JDK) \ |
|
583 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
27944 | 584 |
LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \ |
20547 | 585 |
LDFLAGS_SUFFIX := $(BUILD_LIBFONTMANAGER_FONTLIB), \ |
586 |
LDFLAGS_SUFFIX_linux := -lawt $(LIBM) $(LIBCXX) -ljava -ljvm -lc, \ |
|
24198
41b2f3e923b8
8042208: Build fails on Solaris using devkit when X isn't installed
erikj
parents:
23592
diff
changeset
|
587 |
LDFLAGS_SUFFIX_solaris := $(filter-out -R%, $(X_LIBS)) \ |
41b2f3e923b8
8042208: Build fails on Solaris using devkit when X isn't installed
erikj
parents:
23592
diff
changeset
|
588 |
-lawt -lawt_xawt -lc $(LIBM) $(LIBCXX) -ljava -ljvm, \ |
22595
aaa6b141196c
8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents:
22594
diff
changeset
|
589 |
LDFLAGS_SUFFIX_aix := -lawt -lawt_xawt $(LIBM) $(LIBCXX) -ljava -ljvm,\ |
20547 | 590 |
LDFLAGS_SUFFIX_macosx := -lawt $(LIBM) $(LIBCXX) -undefined dynamic_lookup \ |
591 |
-ljava -ljvm, \ |
|
592 |
LDFLAGS_SUFFIX_windows := $(WIN_JAVA_LIB) advapi32.lib user32.lib gdi32.lib \ |
|
593 |
$(WIN_AWT_LIB), \ |
|
25859 | 594 |
VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \ |
20547 | 595 |
RC_FLAGS := $(RC_FLAGS) \ |
596 |
-D "JDK_FNAME=fontmanager.dll" \ |
|
597 |
-D "JDK_INTERNAL_NAME=fontmanager" \ |
|
598 |
-D "JDK_FTYPE=0x2L", \ |
|
27565 | 599 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libfontmanager, \ |
20547 | 600 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
601 |
||
602 |
$(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT) |
|
603 |
||
22595
aaa6b141196c
8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents:
22594
diff
changeset
|
604 |
ifneq (, $(findstring $(OPENJDK_TARGET_OS), solaris aix)) |
20547 | 605 |
$(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT_XAWT) |
606 |
endif |
|
607 |
||
27565 | 608 |
TARGETS += $(BUILD_LIBFONTMANAGER) |
20547 | 609 |
|
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
610 |
################################################################################ |
20547 | 611 |
|
612 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
613 |
LIBJAWT_SRC := $(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libjawt |
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
614 |
LIBJAWT_CFLAGS := -I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libawt/windows \ |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
615 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/common/awt/debug \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
616 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
617 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/awt/image/cvutils \ |
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
618 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libawt/java2d/windows \ |
27565 | 619 |
-I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \ |
25859 | 620 |
-I$(JDK_TOPDIR)/src/java.desktop/windows/native/include \ |
621 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/include \ |
|
622 |
$(LIBJAVA_HEADER_FLAGS) \ |
|
623 |
# |
|
624 |
||
20547 | 625 |
ifeq ($(OPENJDK_TARGET_CPU), x86) |
626 |
KERNEL32_LIB := kernel32.lib |
|
627 |
endif |
|
628 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAWT, \ |
|
629 |
LIBRARY := jawt, \ |
|
630 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
25859 | 631 |
SRC := $(LIBJAWT_SRC), \ |
632 |
INCLUDE_FILES := $(LIBJAWT_INCLUDE_FILES), \ |
|
20547 | 633 |
LANG := C++, \ |
634 |
OPTIMIZATION := LOW, \ |
|
635 |
CFLAGS := $(CXXFLAGS_JDKLIB) \ |
|
636 |
-EHsc -DUNICODE -D_UNICODE \ |
|
25859 | 637 |
$(LIBJAWT_CFLAGS), \ |
20547 | 638 |
LDFLAGS := $(LDFLAGS_JDKLIB) $(KERNEL32_LIB) $(LDFLAGS_CXX_JDK) \ |
639 |
advapi32.lib $(WIN_AWT_LIB), \ |
|
640 |
LDFLAGS_SUFFIX := $(LDFLAGS_JDKLIB_SUFFIX), \ |
|
25859 | 641 |
VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \ |
20547 | 642 |
RC_FLAGS := $(RC_FLAGS) \ |
643 |
-D "JDK_FNAME=jawt.dll" \ |
|
644 |
-D "JDK_INTERNAL_NAME=jawt" \ |
|
645 |
-D "JDK_FTYPE=0x2L", \ |
|
27565 | 646 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjawt, \ |
20547 | 647 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
648 |
||
649 |
$(BUILD_LIBJAWT): $(BUILD_LIBAWT) |
|
650 |
||
651 |
$(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX): $(BUILD_LIBJAWT) |
|
652 |
$(ECHO) Copying $(@F) |
|
27565 | 653 |
$(CP) $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjawt/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX) $@ |
20547 | 654 |
|
27565 | 655 |
TARGETS += $(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX) |
20547 | 656 |
|
657 |
else # OPENJDK_TARGET_OS not windows |
|
658 |
||
659 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
25859 | 660 |
LIBJAWT_SRC := $(JDK_TOPDIR)/src/java.desktop/macosx/native/libjawt |
661 |
else |
|
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
662 |
LIBJAWT_SRC := $(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libjawt |
25859 | 663 |
endif |
664 |
LIBJAWT_CFLAGS := \ |
|
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
665 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/awt \ |
25859 | 666 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS)/native/include \ |
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
667 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/include \ |
25859 | 668 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/include \ |
669 |
$(LIBJAVA_HEADER_FLAGS) \ |
|
670 |
# |
|
671 |
||
672 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
20547 | 673 |
JAWT_LIBS := -lawt_lwawt |
21130 | 674 |
else |
675 |
JAWT_LIBS := |
|
676 |
ifneq ($(OPENJDK_TARGET_OS), solaris) |
|
677 |
JAWT_LIBS += -lawt |
|
678 |
endif |
|
679 |
ifndef BUILD_HEADLESS_ONLY |
|
680 |
JAWT_LIBS += -lawt_xawt |
|
681 |
else |
|
682 |
JAWT_LIBS += -lawt_headless |
|
683 |
HEADLESS_CFLAG += -DHEADLESS |
|
684 |
endif |
|
20547 | 685 |
endif |
686 |
||
687 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAWT, \ |
|
688 |
LIBRARY := jawt, \ |
|
689 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
25859 | 690 |
SRC := $(LIBJAWT_SRC), \ |
20547 | 691 |
INCLUDE_FILES := $(JAWT_FILES), \ |
692 |
LANG := C, \ |
|
693 |
OPTIMIZATION := LOW, \ |
|
25859 | 694 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
695 |
$(LIBJAWT_CFLAGS), \ |
|
20547 | 696 |
CFLAGS_linux := $(HEADLESS_CFLAG), \ |
25859 | 697 |
CFLAGS_macosx := $(LIBJAWT_CFLAGS_macosx), \ |
21805 | 698 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjawt/mapfile-vers, \ |
20547 | 699 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
700 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
27944 | 701 |
LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \ |
23592
35b16ae6b4f4
8038340: Cleanup and fix sysroot and devkit handling on Linux and Solaris
erikj
parents:
23310
diff
changeset
|
702 |
LDFLAGS_solaris := $(X_LIBS), \ |
20547 | 703 |
LDFLAGS_SUFFIX_linux := $(JAWT_LIBS) $(LDFLAGS_JDKLIB_SUFFIX), \ |
22595
aaa6b141196c
8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents:
22594
diff
changeset
|
704 |
LDFLAGS_SUFFIX_aix := $(JAWT_LIBS) $(LDFLAGS_JDKLIB_SUFFIX),\ |
20547 | 705 |
LDFLAGS_SUFFIX_solaris := $(JAWT_LIBS) $(LDFLAGS_JDKLIB_SUFFIX) -lXrender, \ |
706 |
LDFLAGS_SUFFIX_macosx := -Xlinker -rpath -Xlinker @loader_path $(JAWT_LIBS) \ |
|
707 |
-framework Cocoa $(LDFLAGS_JDKLIB_SUFFIX), \ |
|
27565 | 708 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjawt, \ |
20547 | 709 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
710 |
||
711 |
ifndef BUILD_HEADLESS_ONLY |
|
712 |
$(BUILD_LIBJAWT): $(BUILD_LIBAWT_XAWT) |
|
713 |
else |
|
714 |
$(BUILD_LIBJAWT): $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)awt_headless$(SHARED_LIBRARY_SUFFIX) |
|
715 |
endif |
|
716 |
||
717 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
718 |
$(BUILD_LIBJAWT): $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)awt_lwawt$(SHARED_LIBRARY_SUFFIX) |
|
719 |
endif |
|
720 |
||
721 |
endif # OPENJDK_TARGET_OS |
|
722 |
||
27565 | 723 |
TARGETS += $(BUILD_LIBJAWT) |
20547 | 724 |
|
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
725 |
################################################################################ |
12892 | 726 |
|
20547 | 727 |
ifeq ($(BUILD_HEADLESS), true) |
21130 | 728 |
# Mac and Windows only use the native AWT lib, do not build libawt_headless |
729 |
ifeq ($(findstring $(OPENJDK_TARGET_OS), windows macosx),) |
|
20547 | 730 |
|
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
731 |
LIBAWT_HEADLESS_DIRS := $(JDK_TOPDIR)/src/java.desktop/unix/native/libawt_headless/awt \ |
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
732 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/awt \ |
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
733 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/java2d/opengl \ |
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
734 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/java2d/x11 \ |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
735 |
$(JDK_TOPDIR)/src/java.desktop/share/native/common/java2d/opengl \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
736 |
$(JDK_TOPDIR)/src/java.desktop/share/native/common/font \ |
25859 | 737 |
# |
20547 | 738 |
|
25859 | 739 |
LIBAWT_HEADLESS_EXCLUDES := medialib |
27565 | 740 |
LIBAWT_HEADLESS_CFLAGS := -I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \ |
25859 | 741 |
$(addprefix -I, $(LIBAWT_HEADLESS_DIRS)) \ |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
742 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
743 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d/loops \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
744 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/awt/image/cvutils \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
745 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d/pipe \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
746 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/awt/image \ |
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
747 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libawt/java2d \ |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
748 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/common/font \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
749 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/common/awt/debug \ |
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
750 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/font \ |
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
751 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libsunwjdga/ \ |
25859 | 752 |
$(LIBJAVA_HEADER_FLAGS) \ |
753 |
# |
|
12892 | 754 |
|
20547 | 755 |
LIBAWT_HEADLESS_REORDER := |
756 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
757 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
|
21805 | 758 |
LIBAWT_HEADLESS_REORDER := $(JDK_TOPDIR)/make/mapfiles/libawt_headless/reorder-$(OPENJDK_TARGET_CPU) |
20547 | 759 |
endif |
760 |
endif |
|
761 |
||
762 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_HEADLESS, \ |
|
763 |
LIBRARY := awt_headless, \ |
|
764 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
765 |
SRC := $(LIBAWT_HEADLESS_DIRS), \ |
|
25859 | 766 |
EXCLUDES := $(LIBAWT_HEADLESS_EXCLUDES), \ |
20547 | 767 |
LANG := C, \ |
768 |
OPTIMIZATION := LOW, \ |
|
25859 | 769 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
770 |
-DHEADLESS=true \ |
|
771 |
-DPACKAGE_PATH=\"$(PACKAGE_PATH)\" \ |
|
772 |
$(CUPS_CFLAGS) \ |
|
773 |
$(X_CFLAGS) \ |
|
774 |
$(LIBAWT_HEADLESS_CFLAGS), \ |
|
21805 | 775 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libawt_headless/mapfile-vers, \ |
20547 | 776 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
777 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
27944 | 778 |
LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \ |
20547 | 779 |
LDFLAGS_linux := $(call SET_SHARED_LIBRARY_ORIGIN,/..), \ |
23592
35b16ae6b4f4
8038340: Cleanup and fix sysroot and devkit handling on Linux and Solaris
erikj
parents:
23310
diff
changeset
|
780 |
LDFLAGS_solaris := $(call SET_SHARED_LIBRARY_ORIGIN,/..), \ |
20547 | 781 |
LDFLAGS_macosx := $(call SET_SHARED_LIBRARY_ORIGIN)., \ |
782 |
REORDER := $(LIBAWT_HEADLESS_REORDER), \ |
|
783 |
LDFLAGS_SUFFIX_linux := -ljvm -lawt -lm $(LIBDL) -ljava, \ |
|
22595
aaa6b141196c
8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents:
22594
diff
changeset
|
784 |
LDFLAGS_SUFFIX_aix := -ljvm -lawt -ljava,\ |
20547 | 785 |
LDFLAGS_SUFFIX_solaris := $(LIBDL) -ljvm -lawt -lm -ljava $(LIBCXX) -lc, \ |
27565 | 786 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libawt_headless, \ |
20547 | 787 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
788 |
||
789 |
$(BUILD_LIBAWT_HEADLESS): $(BUILD_LIBAWT) |
|
790 |
||
27565 | 791 |
TARGETS += $(BUILD_LIBAWT_HEADLESS) |
20547 | 792 |
|
793 |
endif |
|
794 |
endif |
|
795 |
||
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
796 |
################################################################################ |
20547 | 797 |
|
798 |
ifndef BUILD_HEADLESS_ONLY |
|
25859 | 799 |
|
20547 | 800 |
LIBSPLASHSCREEN_DIRS := \ |
25859 | 801 |
$(JDK_TOPDIR)/src/java.desktop/share/native/libjavajpeg \ |
802 |
$(JDK_TOPDIR)/src/java.desktop/share/native/libsplashscreen \ |
|
803 |
# |
|
20547 | 804 |
|
805 |
ifeq ($(USE_EXTERNAL_LIBGIF), true) |
|
806 |
GIFLIB_LDFLAGS := -lgif |
|
25859 | 807 |
LIBSPLASHSCREEN_EXCLUDES := giflib |
20547 | 808 |
else |
25859 | 809 |
LIBSPLASHSCREEN_CFLAGS += -I$(JDK_TOPDIR)/src/java.desktop/share/native/libsplashscreen/giflib |
20547 | 810 |
endif |
811 |
||
25103 | 812 |
ifeq ($(USE_EXTERNAL_LIBJPEG), true) |
813 |
LIBJPEG_LDFLAGS := -ljpeg |
|
814 |
else |
|
25859 | 815 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/java.desktop/share/native/libjavajpeg |
816 |
LIBJPEG_CFLAGS := -I$(JDK_TOPDIR)/src/java.desktop/share/native/libjavajpeg |
|
25103 | 817 |
endif |
818 |
||
23305 | 819 |
ifeq ($(USE_EXTERNAL_LIBPNG), false) |
25859 | 820 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/java.desktop/share/native/libsplashscreen/libpng |
821 |
else |
|
822 |
LIBSPLASHSCREEN_EXCLUDES += libpng |
|
23305 | 823 |
endif |
824 |
||
20547 | 825 |
ifneq ($(OPENJDK_TARGET_OS), macosx) |
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
826 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libsplashscreen |
20547 | 827 |
else |
25859 | 828 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/java.desktop/macosx/native/libsplashscreen |
20547 | 829 |
endif |
830 |
||
25859 | 831 |
LIBSPLASHSCREEN_CFLAGS += -DSPLASHSCREEN -DPNG_NO_MMX_CODE \ |
832 |
$(addprefix -I, $(LIBSPLASHSCREEN_DIRS)) \ |
|
833 |
$(LIBJAVA_HEADER_FLAGS) \ |
|
834 |
# |
|
20547 | 835 |
|
836 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
837 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_MACOSX |
|
25859 | 838 |
LIBSPLASHSCREEN_CFLAGS += -I$(JDK_TOPDIR)/src/java.desktop/macosx/native/libosxapp |
20547 | 839 |
|
25859 | 840 |
BUILD_LIBSPLASHSCREEN_java_awt_SplashScreen.c_CFLAGS := -x objective-c -O0 |
841 |
BUILD_LIBSPLASHSCREEN_splashscreen_gfx_impl.c_CFLAGS := -x objective-c -O0 |
|
842 |
BUILD_LIBSPLASHSCREEN_splashscreen_gif.c_CFLAGS := -x objective-c -O0 |
|
843 |
BUILD_LIBSPLASHSCREEN_splashscreen_impl.c_CFLAGS := -x objective-c -O0 |
|
844 |
BUILD_LIBSPLASHSCREEN_splashscreen_jpeg.c_CFLAGS := -x objective-c -O0 |
|
845 |
BUILD_LIBSPLASHSCREEN_splashscreen_png.c_CFLAGS := -x objective-c -O0 |
|
846 |
BUILD_LIBSPLASHSCREEN_splashscreen_sys.m_CFLAGS := -O0 |
|
20547 | 847 |
|
20901
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
848 |
else ifeq ($(OPENJDK_TARGET_OS), windows) |
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
849 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_WIN32 |
20547 | 850 |
else |
20901
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
851 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_X11 $(X_CFLAGS) |
20547 | 852 |
endif |
853 |
||
854 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX := |
|
855 |
||
856 |
ifneq ($(USE_EXTERNAL_LIBZ), true) |
|
25859 | 857 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/java.base/share/native/libzip/zlib-1.2.8 |
20547 | 858 |
LIBSPLASHSCREEN_CFLAGS += $(ZLIB_CPPFLAGS) |
859 |
endif |
|
860 |
||
861 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
27565 | 862 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX += \ |
863 |
-L$(INSTALL_LIBRARIES_HERE) \ |
|
864 |
$(LIBM) -lpthread -liconv -losxapp \ |
|
20547 | 865 |
-framework ApplicationServices \ |
866 |
-framework Foundation \ |
|
867 |
-framework Cocoa \ |
|
868 |
-framework JavaNativeFoundation |
|
20901
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
869 |
else ifeq ($(OPENJDK_TARGET_OS), windows) |
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
870 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX += kernel32.lib user32.lib gdi32.lib delayimp.lib -DELAYLOAD:user32.dll |
23592
35b16ae6b4f4
8038340: Cleanup and fix sysroot and devkit handling on Linux and Solaris
erikj
parents:
23310
diff
changeset
|
871 |
else |
20901
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
872 |
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
|
873 |
endif |
20547 | 874 |
|
25859 | 875 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSPLASHSCREEN, \ |
20547 | 876 |
LIBRARY := splashscreen, \ |
877 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
878 |
SRC := $(LIBSPLASHSCREEN_DIRS), \ |
|
879 |
EXCLUDE_FILES := imageioJPEG.c jpegdecoder.c pngtest.c, \ |
|
25859 | 880 |
EXCLUDES := $(LIBSPLASHSCREEN_EXCLUDES), \ |
20547 | 881 |
LANG := C, \ |
882 |
OPTIMIZATION := LOW, \ |
|
23305 | 883 |
CFLAGS := $(LIBSPLASHSCREEN_CFLAGS) $(CFLAGS_JDKLIB) \ |
25103 | 884 |
$(GIFLIB_CFLAGS) $(LIBJPEG_CFLAGS) $(PNG_CFLAGS), \ |
21805 | 885 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libsplashscreen/mapfile-vers, \ |
20547 | 886 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
887 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
23305 | 888 |
LDFLAGS_SUFFIX := $(LIBSPLASHSCREEN_LDFLAGS_SUFFIX) $(LIBZ) \ |
25103 | 889 |
$(GIFLIB_LDFLAGS) $(LIBJPEG_LDFLAGS) $(PNG_LIBS), \ |
20547 | 890 |
LDFLAGS_SUFFIX_solaris := -lc, \ |
25859 | 891 |
VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \ |
20547 | 892 |
RC_FLAGS := $(RC_FLAGS) \ |
893 |
-D "JDK_FNAME=splashscreen.dll" \ |
|
894 |
-D "JDK_INTERNAL_NAME=splashscreen" \ |
|
895 |
-D "JDK_FTYPE=0x2L", \ |
|
27565 | 896 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libsplashscreen, \ |
20547 | 897 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
898 |
||
27565 | 899 |
TARGETS += $(BUILD_LIBSPLASHSCREEN) |
20547 | 900 |
|
901 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
25859 | 902 |
$(BUILD_LIBSPLASHSCREEN): $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)osxapp$(SHARED_LIBRARY_SUFFIX) |
20547 | 903 |
endif |
904 |
||
905 |
endif |
|
906 |
||
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
907 |
################################################################################ |
20547 | 908 |
|
909 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
910 |
||
25859 | 911 |
LIBAWT_LWAWT_DIRS := \ |
912 |
$(JDK_TOPDIR)/src/java.desktop/macosx/native/libawt_lwawt \ |
|
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
913 |
$(JDK_TOPDIR)/src/java.desktop/unix/native/common/awt \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
914 |
$(JDK_TOPDIR)/src/java.desktop/share/native/common/font \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
915 |
$(JDK_TOPDIR)/src/java.desktop/share/native/common/java2d/opengl \ |
25859 | 916 |
# |
20547 | 917 |
|
25859 | 918 |
LIBAWT_LWAWT_CFLAGS := \ |
919 |
$(addprefix -I, $(LIBAWT_LWAWT_DIRS)) \ |
|
27565 | 920 |
-I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \ |
25859 | 921 |
-I$(JDK_TOPDIR)/src/java.desktop/macosx/native/include \ |
922 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/include \ |
|
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
923 |
-I$(JDK_TOPDIR)/src/java.desktop/macosx/native/libawt_lwawt/java2d/opengl \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
924 |
-I$(JDK_TOPDIR)/src/java.desktop/macosx/native/libawt_lwawt/awt \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
925 |
-I$(JDK_TOPDIR)/src/java.desktop/unix/native/libawt_xawt/awt \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
926 |
-I$(JDK_TOPDIR)/src/java.desktop/macosx/native/libawt_lwawt/font \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
927 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/awt/image \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
928 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
929 |
-I$(JDK_TOPDIR)/src/java.desktop/unix/native/libawt/java2d \ |
25859 | 930 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libmlib_image/ \ |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
931 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/awt/image/cvutils \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
932 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d/loops \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
933 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d/pipe \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
934 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/common/awt/debug \ |
25859 | 935 |
-I$(JDK_TOPDIR)/src/java.desktop/macosx/native/libosxapp \ |
936 |
$(LIBJAVA_HEADER_FLAGS) \ |
|
937 |
# |
|
20547 | 938 |
|
26741 | 939 |
LIBAWT_LWAWT_EXFILES := fontpath.c awt_Font.c X11Color.c |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
940 |
LIBAWT_LWAWT_EXCLUDES := $(JDK_TOPDIR)/src/java.desktop/unix/native/common/awt/medialib |
20547 | 941 |
|
942 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_LWAWT, \ |
|
943 |
LIBRARY := awt_lwawt, \ |
|
944 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
945 |
SRC := $(LIBAWT_LWAWT_DIRS), \ |
|
946 |
LANG := C, \ |
|
947 |
INCLUDE_FILES := $(LIBAWT_LWAWT_FILES), \ |
|
25859 | 948 |
EXCLUDE_FILES := $(LIBAWT_LWAWT_EXFILES), \ |
949 |
EXCLUDES := $(LIBAWT_LWAWT_EXCLUDES), \ |
|
20547 | 950 |
OPTIMIZATION := LOW, \ |
951 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
20901
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
952 |
$(X_CFLAGS) \ |
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
953 |
$(X_LIBS) \ |
25859 | 954 |
$(LIBAWT_LWAWT_CFLAGS), \ |
20547 | 955 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
27565 | 956 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
27944 | 957 |
-L$(INSTALL_LIBRARIES_HERE), \ |
20547 | 958 |
LDFLAGS_SUFFIX_macosx := -lawt -lmlib_image -losxapp -ljvm $(LIBM) \ |
959 |
-framework Accelerate \ |
|
960 |
-framework ApplicationServices \ |
|
961 |
-framework AudioToolbox \ |
|
962 |
-framework Carbon \ |
|
963 |
-framework Cocoa \ |
|
964 |
-framework Security \ |
|
965 |
-framework ExceptionHandling \ |
|
966 |
-framework JavaNativeFoundation \ |
|
967 |
-framework JavaRuntimeSupport \ |
|
968 |
-framework OpenGL \ |
|
969 |
-framework QuartzCore -ljava, \ |
|
27565 | 970 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libawt_lwawt, \ |
20547 | 971 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
972 |
||
27565 | 973 |
TARGETS += $(BUILD_LIBAWT_LWAWT) |
20547 | 974 |
|
975 |
$(BUILD_LIBAWT_LWAWT): $(BUILD_LIBAWT) |
|
976 |
||
977 |
$(BUILD_LIBAWT_LWAWT): $(BUILD_LIBMLIB_IMAGE) |
|
978 |
||
979 |
$(BUILD_LIBAWT_LWAWT): $(BUILD_LIBOSXAPP) |
|
980 |
||
27565 | 981 |
$(BUILD_LIBAWT_LWAWT): $(call FindLib, java.base, java) |
20547 | 982 |
|
983 |
endif |
|
984 |
||
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
985 |
################################################################################ |
20547 | 986 |
|
987 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
988 |
||
989 |
$(eval $(call SetupNativeCompilation,BUILD_LIBOSXUI, \ |
|
990 |
LIBRARY := osxui, \ |
|
991 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
25859 | 992 |
SRC := $(JDK_TOPDIR)/src/java.desktop/macosx/native/libosxui, \ |
20547 | 993 |
LANG := C, \ |
994 |
OPTIMIZATION := LOW, \ |
|
995 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
25859 | 996 |
-I$(JDK_TOPDIR)/src/java.desktop/macosx/native/libosxui \ |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
997 |
-I$(JDK_TOPDIR)/src/java.desktop/macosx/native/libawt_lwawt/awt \ |
25859 | 998 |
-I$(JDK_TOPDIR)/src/java.desktop/macosx/native/libosxapp \ |
999 |
-I$(JDK_TOPDIR)/src/java.base/share/native/libjava \ |
|
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
1000 |
-I$(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libjava \ |
27565 | 1001 |
-I$(SUPPORT_OUTPUTDIR)/headers/java.desktop, \ |
20547 | 1002 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
1003 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
|
27565 | 1004 |
-Xlinker -rpath -Xlinker @loader_path \ |
27944 | 1005 |
-L$(INSTALL_LIBRARIES_HERE), \ |
20547 | 1006 |
LDFLAGS_SUFFIX_macosx := -lawt -losxapp -lawt_lwawt \ |
1007 |
-framework Cocoa \ |
|
1008 |
-framework Carbon \ |
|
1009 |
-framework ApplicationServices \ |
|
1010 |
-framework JavaNativeFoundation \ |
|
1011 |
-framework JavaRuntimeSupport \ |
|
1012 |
-ljava -ljvm, \ |
|
27565 | 1013 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libosxui, \ |
20547 | 1014 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
1015 |
||
27565 | 1016 |
TARGETS += $(BUILD_LIBOSXUI) |
20547 | 1017 |
|
1018 |
$(BUILD_LIBOSXUI): $(BUILD_LIBAWT) |
|
1019 |
||
1020 |
$(BUILD_LIBOSXUI): $(BUILD_LIBOSXAPP) |
|
1021 |
||
1022 |
$(BUILD_LIBOSXUI): $(BUILD_LIBAWT_LWAWT) |
|
1023 |
||
27565 | 1024 |
#$(BUILD_LIBOSXUI): $(call FindLib, java.base, java) |
20547 | 1025 |
|
1026 |
endif |
|
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
1027 |
|
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
1028 |
################################################################################ |
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
1029 |
|
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
1030 |
# Hook to include the corresponding custom file, if present. |
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
1031 |
$(eval $(call IncludeCustomExtension, jdk, lib/Awt2dLibraries.gmk)) |