author | vadim |
Fri, 13 May 2016 11:31:05 +0300 | |
changeset 38415 | acea5f7d354b |
parent 37532 | 1f7423e427d3 |
child 38417 | 07152c7004b0 |
permissions | -rw-r--r-- |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
1 |
# |
36110
91a3a6df36ec
8150203: Incremental update from build-infra project
ihse
parents:
35711
diff
changeset
|
2 |
# Copyright (c) 2011, 2016, 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 |
OPTIMIZATION := HIGHEST, \ |
55 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
56 |
$(BUILD_LIBMLIB_CFLAGS), \ |
|
31157 | 57 |
DISABLED_WARNINGS_gcc := parentheses array-bounds, \ |
29374
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
58 |
DISABLED_WARNINGS_clang := parentheses, \ |
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
59 |
DISABLED_WARNINGS_solstudio := E_STATEMENT_NOT_REACHED, \ |
20547 | 60 |
MAPFILE := $(BUILD_LIBMLIB_IMAGE_MAPFILE), \ |
61 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
|
62 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
33406 | 63 |
LIBS := $(BUILD_LIBMLIB_LDLIBS) \ |
64 |
$(JDKLIB_LIBS), \ |
|
65 |
LIBS_solaris := -lc, \ |
|
25859 | 66 |
VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \ |
20547 | 67 |
RC_FLAGS := $(RC_FLAGS) \ |
68 |
-D "JDK_FNAME=mlib_image.dll" \ |
|
69 |
-D "JDK_INTERNAL_NAME=mlib_image" \ |
|
70 |
-D "JDK_FTYPE=0x2L", \ |
|
27565 | 71 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libmlib_image, \ |
35276 | 72 |
)) |
20547 | 73 |
|
27565 | 74 |
$(BUILD_LIBMLIB_IMAGE): $(call FindLib, java.base, java) |
13164 | 75 |
|
27565 | 76 |
TARGETS += $(BUILD_LIBMLIB_IMAGE) |
12892 | 77 |
|
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
78 |
################################################################################ |
12892 | 79 |
|
20547 | 80 |
ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH), solaris-sparc) |
81 |
||
25859 | 82 |
LIBMLIB_IMAGE_V_SRC := $(JDK_TOPDIR)/src/java.desktop/share/native/libmlib_image \ |
83 |
$(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
|
84 |
$(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
|
85 |
$(JDK_TOPDIR)/src/java.desktop/unix/native/common/awt/medialib \ |
25859 | 86 |
# |
87 |
LIBMLIB_IMAGE_V_CFLAGS := $(JDK_TOPDIR)/src/java.desktop/unix/native/libmlib_image/vis_$(OPENJDK_TARGET_CPU_BITS).il \ |
|
88 |
$(addprefix -I, $(LIBMLIB_IMAGE_V_SRC)) \ |
|
89 |
# |
|
20547 | 90 |
|
25859 | 91 |
BUILD_LIBMLIB_IMAGE_V_EXFILES := \ |
92 |
awt_ImagingLib.c \ |
|
93 |
mlib_c_ImageAffine_BC.c \ |
|
94 |
mlib_c_ImageAffine_BC_S16.c \ |
|
95 |
mlib_c_ImageAffine_BC_U16.c \ |
|
96 |
mlib_c_ImageAffine_BL.c \ |
|
97 |
mlib_c_ImageAffine_BL_S16.c \ |
|
98 |
mlib_c_ImageAffine_BL_U16.c \ |
|
99 |
mlib_c_ImageAffine_NN.c \ |
|
100 |
mlib_c_ImageConvClearEdge.c \ |
|
101 |
mlib_c_ImageConvCopyEdge.c \ |
|
102 |
mlib_c_ImageConv_f.c \ |
|
103 |
mlib_c_ImageConvVersion.c \ |
|
104 |
mlib_c_ImageCopy.c \ |
|
105 |
mlib_c_ImageLookUp.c \ |
|
106 |
mlib_c_ImageLookUp_f.c \ |
|
107 |
# |
|
108 |
||
109 |
LIBMLIB_IMAGE_V_CFLAGS += $(filter-out -DMLIB_NO_LIBSUNMATH, $(BUILD_LIBMLIB_CFLAGS)) |
|
20547 | 110 |
|
111 |
$(eval $(call SetupNativeCompilation,BUILD_LIBMLIB_IMAGE_V, \ |
|
112 |
LIBRARY := mlib_image_v, \ |
|
113 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
25859 | 114 |
SRC := $(LIBMLIB_IMAGE_V_SRC), \ |
115 |
EXCLUDE_FILES := $(BUILD_LIBMLIB_IMAGE_V_EXFILES), \ |
|
20547 | 116 |
OPTIMIZATION := HIGHEST, \ |
117 |
CFLAGS := -xarch=sparcvis \ |
|
25859 | 118 |
$(LIBMLIB_IMAGE_V_CFLAGS) \ |
20547 | 119 |
$(CFLAGS_JDKLIB), \ |
29374
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
120 |
DISABLED_WARNINGS_solstudio := E_STATEMENT_NOT_REACHED, \ |
20547 | 121 |
MAPFILE := $(BUILD_LIBMLIB_IMAGE_MAPFILE), \ |
122 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
|
123 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
33406 | 124 |
LIBS := -ljava -ljvm -lc $(BUILD_LIBMLIB_LDLIBS), \ |
27565 | 125 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libmlib_image_v, \ |
35276 | 126 |
)) |
20547 | 127 |
|
27565 | 128 |
$(BUILD_LIBMLIB_IMAGE_V): $(call FindLib, java.base, java) |
20547 | 129 |
|
27565 | 130 |
TARGETS += $(BUILD_LIBMLIB_IMAGE_V) |
12892 | 131 |
|
132 |
endif |
|
133 |
||
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
134 |
################################################################################ |
12892 | 135 |
|
25859 | 136 |
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
|
137 |
$(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
|
138 |
$(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
|
139 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/awt \ |
25859 | 140 |
# |
20547 | 141 |
|
26225
3c7e92c78bab
8056246: Fix AIX build after the Modular Source Code change 8054834
simonis
parents:
26191
diff
changeset
|
142 |
ifeq ($(OPENJDK_TARGET_OS), aix) |
3c7e92c78bab
8056246: Fix AIX build after the Modular Source Code change 8054834
simonis
parents:
26191
diff
changeset
|
143 |
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
|
144 |
endif |
3c7e92c78bab
8056246: Fix AIX build after the Modular Source Code change 8054834
simonis
parents:
26191
diff
changeset
|
145 |
|
20547 | 146 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
147 |
LIBAWT_DIRS += $(JDK_TOPDIR)/src/java.desktop/share/native/common/awt/utility |
25859 | 148 |
else |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
149 |
LIBAWT_EXFILES := java2d/ShaderList.c |
25859 | 150 |
endif |
151 |
||
26225
3c7e92c78bab
8056246: Fix AIX build after the Modular Source Code change 8054834
simonis
parents:
26191
diff
changeset
|
152 |
ifneq ($(filter $(OPENJDK_TARGET_OS), solaris linux macosx aix), ) |
25859 | 153 |
LIBAWT_EXFILES += awt_Font.c CUPSfuncs.c fontpath.c X11Color.c |
14231 | 154 |
endif |
13164 | 155 |
|
25859 | 156 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
157 |
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
|
158 |
endif |
7515a991bb37
8024854: PPC64: Basic changes and files to build the class library on AIX
simonis
parents:
22595
diff
changeset
|
159 |
|
27565 | 160 |
LIBAWT_CFLAGS += -I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \ |
25859 | 161 |
$(addprefix -I, $(shell find $(LIBAWT_DIRS) -type d)) \ |
162 |
$(LIBJAVA_HEADER_FLAGS) \ |
|
163 |
$(addprefix -I, $(BUILD_LIBMLIB_IMAGE_SRC)) \ |
|
164 |
# |
|
165 |
||
26225
3c7e92c78bab
8056246: Fix AIX build after the Modular Source Code change 8054834
simonis
parents:
26191
diff
changeset
|
166 |
LIBAWT_CFLAGS += -D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES $(X_CFLAGS) |
20547 | 167 |
|
13164 | 168 |
ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH), solaris-sparc) |
20547 | 169 |
LIBAWT_CFLAGS += -DMLIB_ADD_SUFF |
170 |
LIBAWT_CFLAGS += -xarch=sparcvis |
|
171 |
||
25859 | 172 |
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
|
173 |
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
|
174 |
LIBAWT_EXFILES += java2d/loops/MapAccelFunc.c |
20547 | 175 |
|
176 |
ifeq ($(OPENJDK_TARGET_CPU), sparcv9) |
|
177 |
LIBAWT_ASFLAGS = -P -xarch=v9a |
|
178 |
else |
|
179 |
LIBAWT_ASFLAGS = -P -xarch=v8plusa |
|
180 |
endif |
|
12892 | 181 |
else |
25859 | 182 |
LIBAWT_EXCLUDES += \ |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
183 |
$(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
|
184 |
$(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
|
185 |
$(JDK_TOPDIR)/src/java.desktop/unix/native/common/awt/medialib \ |
25859 | 186 |
# |
12892 | 187 |
endif |
188 |
||
20547 | 189 |
ifneq ($(OPENJDK_TARGET_OS), solaris) |
190 |
LIBAWT_CFLAGS += -DMLIB_NO_LIBSUNMATH |
|
12892 | 191 |
endif |
192 |
||
20547 | 193 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
194 |
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
|
195 |
$(JDK_TOPDIR)/src/java.desktop/share/native/common/java2d/opengl \ |
36907 | 196 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/awt/systemscale \ |
25859 | 197 |
# Why does libawt need java.base headers? |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
198 |
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
|
199 |
-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
|
200 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/java2d/opengl \ |
25859 | 201 |
-I$(JDK_TOPDIR)/src/java.desktop/windows/native/include \ |
202 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/include \ |
|
27565 | 203 |
-I$(SUPPORT_OUTPUTDIR)/headers/java.base \ |
25859 | 204 |
# |
205 |
LIBAWT_EXFILES += \ |
|
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
206 |
java2d/d3d/D3DShaderGen.c \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
207 |
awt/image/cvutils/img_colors.c \ |
25859 | 208 |
# |
20547 | 209 |
|
210 |
LIBAWT_CFLAGS += -EHsc -DUNICODE -D_UNICODE |
|
211 |
ifeq ($(OPENJDK_TARGET_CPU_BITS), 64) |
|
212 |
LIBAWT_CFLAGS += -DMLIB_OS64BIT |
|
213 |
endif |
|
214 |
||
215 |
ifdef OPENJDK |
|
25859 | 216 |
LIBAWT_RC_FLAGS := -i "$(JDK_TOPDIR)/src/java.base/windows/native/launcher/icons" |
20547 | 217 |
else |
25859 | 218 |
LIBAWT_RC_FLAGS := -i "$(JDK_TOPDIR)/src/closed/java.base/windows/native/launcher/icons" |
20547 | 219 |
endif |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
220 |
LIBAWT_VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/java.desktop/windows/native/libawt/windows/awt.rc |
12892 | 221 |
endif |
222 |
||
21805 | 223 |
LIBAWT_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libawt/mapfile-vers |
20547 | 224 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
225 |
LIBAWT_MAPFILE := |
|
12892 | 226 |
endif |
227 |
||
35711
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
228 |
# Turn off all warnings for debug_mem.c This is needed because the specific warning |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
229 |
# about initializing a declared 'extern' cannot be turned off individually. Only |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
230 |
# applies to debug builds. |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
231 |
ifeq ($(TOOLCHAIN_TYPE), gcc) |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
232 |
BUILD_LIBAWT_debug_mem.c_CFLAGS := -w |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
233 |
endif |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
234 |
|
20547 | 235 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT, \ |
236 |
LIBRARY := awt, \ |
|
237 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
238 |
SRC := $(LIBAWT_DIRS), \ |
|
25859 | 239 |
EXCLUDES := $(LIBAWT_EXCLUDES), \ |
240 |
EXCLUDE_FILES := $(LIBAWT_EXFILES), \ |
|
20547 | 241 |
OPTIMIZATION := LOW, \ |
242 |
CFLAGS := $(CFLAGS_JDKLIB) $(LIBAWT_CFLAGS), \ |
|
29374
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
243 |
DISABLED_WARNINGS_gcc := sign-compare unused-result maybe-uninitialized \ |
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
244 |
format-nonliteral parentheses, \ |
30434 | 245 |
DISABLED_WARNINGS_clang := logical-op-parentheses extern-initializer, \ |
29374
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
246 |
DISABLED_WARNINGS_solstudio := E_DECLARATION_IN_CODE, \ |
30434 | 247 |
DISABLED_WARNINGS_microsoft := 4297 4244 4267 4996, \ |
20547 | 248 |
ASFLAGS := $(LIBAWT_ASFLAGS), \ |
249 |
MAPFILE := $(LIBAWT_MAPFILE), \ |
|
250 |
LDFLAGS := $(LDFLAGS_JDKLIB) $(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
33406 | 251 |
LDFLAGS_macosx := -L$(INSTALL_LIBRARIES_HERE), \ |
252 |
LDFLAGS_windows := -delayload:user32.dll -delayload:gdi32.dll \ |
|
253 |
-delayload:shell32.dll -delayload:winmm.dll \ |
|
254 |
-delayload:winspool.drv -delayload:imm32.dll \ |
|
255 |
-delayload:ole32.dll -delayload:comdlg32.dll \ |
|
256 |
-delayload:comctl32.dll -delayload:shlwapi.dll, \ |
|
257 |
LIBS_unix := -ljvm -ljava $(LIBM), \ |
|
258 |
LIBS_linux := $(LIBDL), \ |
|
259 |
LIBS_solaris := $(LIBDL) -lc, \ |
|
260 |
LIBS_aix := $(LIBDL),\ |
|
261 |
LIBS_macosx := -lmlib_image \ |
|
20547 | 262 |
-framework Cocoa \ |
263 |
-framework OpenGL \ |
|
264 |
-framework JavaNativeFoundation \ |
|
265 |
-framework JavaRuntimeSupport \ |
|
266 |
-framework ApplicationServices \ |
|
33406 | 267 |
-framework AudioToolbox, \ |
268 |
LIBS_windows := kernel32.lib user32.lib gdi32.lib winspool.lib \ |
|
20547 | 269 |
imm32.lib ole32.lib uuid.lib shell32.lib \ |
270 |
comdlg32.lib winmm.lib comctl32.lib shlwapi.lib \ |
|
33406 | 271 |
delayimp.lib jvm.lib $(WIN_JAVA_LIB) advapi32.lib, \ |
20547 | 272 |
VERSIONINFO_RESOURCE := $(LIBAWT_VERSIONINFO_RESOURCE), \ |
273 |
RC_FLAGS := $(RC_FLAGS) $(LIBAWT_RC_FLAGS) \ |
|
274 |
-D "JDK_FNAME=awt.dll" \ |
|
275 |
-D "JDK_INTERNAL_NAME=awt" \ |
|
276 |
-D "JDK_FTYPE=0x2L", \ |
|
27565 | 277 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libawt, \ |
35276 | 278 |
)) |
20547 | 279 |
|
27565 | 280 |
$(BUILD_LIBAWT): $(call FindLib, java.base, java) |
13164 | 281 |
|
282 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
20547 | 283 |
$(BUILD_LIBAWT): $(BUILD_LIBMLIB_IMAGE) |
13164 | 284 |
endif |
285 |
||
27565 | 286 |
TARGETS += $(BUILD_LIBAWT) |
12892 | 287 |
|
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
288 |
################################################################################ |
12892 | 289 |
|
21130 | 290 |
ifeq ($(findstring $(OPENJDK_TARGET_OS),windows macosx),) |
20547 | 291 |
ifndef BUILD_HEADLESS_ONLY |
292 |
||
293 |
LIBAWT_XAWT_DIRS := \ |
|
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
294 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libawt_xawt \ |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
295 |
$(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
|
296 |
$(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
|
297 |
$(JDK_TOPDIR)/src/java.desktop/share/native/common/font \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
298 |
$(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
|
299 |
$(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
|
300 |
$(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
|
301 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/awt \ |
25859 | 302 |
# |
303 |
||
36953 | 304 |
ifneq ($(filter $(OPENJDK_TARGET_OS),linux solaris aix), ) |
36880
3a05117c7611
8151770: 9-client windows builds fail on windows since make file change for 8145174
erikj
parents:
36869
diff
changeset
|
305 |
LIBAWT_XAWT_DIRS += $(JDK_TOPDIR)/src/java.desktop/unix/native/common/awt/systemscale |
3a05117c7611
8151770: 9-client windows builds fail on windows since make file change for 8145174
erikj
parents:
36869
diff
changeset
|
306 |
endif |
3a05117c7611
8151770: 9-client windows builds fail on windows since make file change for 8145174
erikj
parents:
36869
diff
changeset
|
307 |
|
25859 | 308 |
LIBAWT_XAWT_EXCLUDES := medialib |
20547 | 309 |
|
25859 | 310 |
LIBAWT_XAWT_CFLAGS := $(addprefix -I, $(shell $(FIND) $(LIBAWT_XAWT_DIRS) -type d)) \ |
27565 | 311 |
-I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \ |
25859 | 312 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/include \ |
313 |
-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
|
314 |
-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
|
315 |
-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
|
316 |
-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
|
317 |
-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
|
318 |
-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
|
319 |
-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
|
320 |
-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
|
321 |
-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
|
322 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/font \ |
25859 | 323 |
$(LIBJAVA_HEADER_FLAGS) |
324 |
# |
|
325 |
||
326 |
LIBAWT_XAWT_CFLAGS += -DXAWT -DXAWT_HACK \ |
|
21130 | 327 |
-DPACKAGE_PATH=\"$(PACKAGE_PATH)\" \ |
25859 | 328 |
$(CUPS_CFLAGS) |
20547 | 329 |
|
330 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
331 |
LIBAWT_XAWT_CFLAGS += -DFUNCPROTO=15 |
|
332 |
endif |
|
333 |
||
334 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
335 |
ifeq ($(DISABLE_XRENDER), true) |
|
336 |
LIBAWT_XAWT_CFLAGS += -DDISABLE_XRENDER_BY_DEFAULT=true |
|
337 |
endif |
|
338 |
endif |
|
339 |
||
33406 | 340 |
LIBAWT_XAWT_LIBS := $(LIBM) -lawt -lXext -lX11 -lXrender $(LIBDL) -lXtst -lXi -ljava -ljvm -lc |
20547 | 341 |
|
342 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
33406 | 343 |
LIBAWT_XAWT_LIBS += -lpthread |
20547 | 344 |
endif |
345 |
||
35711
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
346 |
ifeq ($(TOOLCHAIN_TYPE), gcc) |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
347 |
# Turn off all warnings for the following files since they contain warnings |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
348 |
# that cannot be turned of individually. |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
349 |
# redefining a macro |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
350 |
BUILD_LIBAWT_XAWT_gtk2_interface.c_CFLAGS := -w |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
351 |
# comparison between pointer and integer |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
352 |
BUILD_LIBAWT_XAWT_awt_Font.c_CFLAGS := -w |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
353 |
# initializing a declared 'extern' |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
354 |
BUILD_LIBAWT_XAWT_debug_mem.c_CFLAGS := -w |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
355 |
# decimal constant is unsigned only in ISO C90 (JAVASE_EMBEDDED) |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
356 |
BUILD_LIBAWT_XAWT_XToolkit.c_CFLAGS := -w |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
357 |
endif |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
358 |
|
20547 | 359 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_XAWT, \ |
360 |
LIBRARY := awt_xawt, \ |
|
361 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
362 |
SRC := $(LIBAWT_XAWT_DIRS), \ |
|
25859 | 363 |
EXCLUDES := $(LIBAWT_XAWT_EXCLUDES), \ |
20547 | 364 |
OPTIMIZATION := LOW, \ |
365 |
CFLAGS := $(CFLAGS_JDKLIB) $(LIBAWT_XAWT_CFLAGS) \ |
|
366 |
$(X_CFLAGS), \ |
|
37529
868c7195632c
8154087: Fix AIX and Linux/ppc64le after the integration of the new hotspot build
simonis
parents:
36110
diff
changeset
|
367 |
WARNINGS_AS_ERRORS_xlc := false, \ |
29374
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
368 |
DISABLED_WARNINGS_gcc := type-limits pointer-to-int-cast \ |
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
369 |
deprecated-declarations unused-result maybe-uninitialized format \ |
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
370 |
format-security int-to-pointer-cast parentheses, \ |
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
371 |
DISABLED_WARNINGS_solstudio := E_DECLARATION_IN_CODE \ |
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
372 |
E_ASSIGNMENT_TYPE_MISMATCH E_NON_CONST_INIT, \ |
21805 | 373 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libawt_xawt/mapfile-vers, \ |
20547 | 374 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
375 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
|
27565 | 376 |
$(call SET_SHARED_LIBRARY_ORIGIN,/..) \ |
27944 | 377 |
-L$(INSTALL_LIBRARIES_HERE), \ |
33406 | 378 |
LIBS := $(X_LIBS) $(LIBAWT_XAWT_LIBS), \ |
25859 | 379 |
VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \ |
20547 | 380 |
RC_FLAGS := $(RC_FLAGS) \ |
381 |
-D "JDK_FNAME=xawt.dll" \ |
|
382 |
-D "JDK_INTERNAL_NAME=xawt" \ |
|
383 |
-D "JDK_FTYPE=0x2L", \ |
|
27565 | 384 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libawt_xawt, \ |
35276 | 385 |
)) |
20547 | 386 |
|
27565 | 387 |
$(BUILD_LIBAWT_XAWT): $(call FindLib, java.base, java) |
20547 | 388 |
|
389 |
$(BUILD_LIBAWT_XAWT): $(BUILD_LIBAWT) |
|
390 |
||
27565 | 391 |
TARGETS += $(BUILD_LIBAWT_XAWT) |
20547 | 392 |
|
393 |
endif |
|
394 |
endif |
|
395 |
||
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
396 |
################################################################################ |
20547 | 397 |
|
25859 | 398 |
LIBLCMS_SRC := $(JDK_TOPDIR)/src/java.desktop/share/native/liblcms |
27565 | 399 |
LIBLCMS_CPPFLAGS += -I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \ |
26751
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
400 |
-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
|
401 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/common/awt/debug \ |
25859 | 402 |
$(LIBJAVA_HEADER_FLAGS) \ |
403 |
# |
|
33285 | 404 |
# The fast floor code loses precision. |
405 |
LCMS_CFLAGS=-DCMS_DONT_USE_FAST_FLOOR |
|
24540 | 406 |
|
407 |
ifeq ($(USE_EXTERNAL_LCMS), true) |
|
408 |
# If we're using an external library, we'll just need the wrapper part. |
|
409 |
# By including it explicitely, all other files will be excluded. |
|
410 |
BUILD_LIBLCMS_INCLUDE_FILES := LCMS.c |
|
411 |
else |
|
412 |
BUILD_LIBLCMS_INCLUDE_FILES := |
|
413 |
# If we're using the bundled library, we'll need to include it in the |
|
414 |
# include path explicitly. Otherwise the system headers will be used. |
|
25859 | 415 |
LIBLCMS_CPPFLAGS += $(addprefix -I, $(LIBLCMS_SRC)) |
24540 | 416 |
endif |
417 |
||
20547 | 418 |
$(eval $(call SetupNativeCompilation,BUILD_LIBLCMS, \ |
419 |
LIBRARY := lcms, \ |
|
420 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
25859 | 421 |
SRC := $(LIBLCMS_SRC), \ |
24540 | 422 |
INCLUDE_FILES := $(BUILD_LIBLCMS_INCLUDE_FILES), \ |
20547 | 423 |
OPTIMIZATION := HIGHEST, \ |
424 |
CFLAGS := $(filter-out -xc99=%none, $(CFLAGS_JDKLIB)) \ |
|
30434 | 425 |
$(LIBLCMS_CPPFLAGS) \ |
24540 | 426 |
$(LCMS_CFLAGS), \ |
20547 | 427 |
CFLAGS_solaris := -xc99=no_lib, \ |
428 |
CFLAGS_windows := -DCMS_IS_WINDOWS_, \ |
|
30434 | 429 |
DISABLED_WARNINGS_gcc := format-nonliteral type-limits, \ |
29374
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
430 |
DISABLED_WARNINGS_clang := tautological-compare, \ |
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
431 |
DISABLED_WARNINGS_solstudio := E_STATEMENT_NOT_REACHED, \ |
21805 | 432 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/liblcms/mapfile-vers, \ |
20547 | 433 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
434 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
27944 | 435 |
LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \ |
20547 | 436 |
LDFLAGS_solaris := /usr/lib$(OPENJDK_TARGET_CPU_ISADIR)/libm.so.2, \ |
33406 | 437 |
LIBS_unix := -lawt -ljvm -ljava $(LCMS_LIBS), \ |
438 |
LIBS_linux := $(LIBM), \ |
|
439 |
LIBS_macosx := $(LIBM), \ |
|
440 |
LIBS_solaris := -lc, \ |
|
441 |
LIBS_aix := $(LIBM),\ |
|
442 |
LIBS_windows := $(WIN_AWT_LIB) $(WIN_JAVA_LIB), \ |
|
25859 | 443 |
VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \ |
20547 | 444 |
RC_FLAGS := $(RC_FLAGS) \ |
445 |
-D "JDK_FNAME=lcms.dll" \ |
|
446 |
-D "JDK_INTERNAL_NAME=lcms" \ |
|
447 |
-D "JDK_FTYPE=0x2L", \ |
|
27565 | 448 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/liblcms, \ |
35276 | 449 |
)) |
20547 | 450 |
|
27565 | 451 |
TARGETS += $(BUILD_LIBLCMS) |
20547 | 452 |
|
453 |
$(BUILD_LIBLCMS): $(BUILD_LIBAWT) |
|
454 |
||
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
455 |
################################################################################ |
20547 | 456 |
|
457 |
ifdef OPENJDK |
|
25103 | 458 |
BUILD_LIBJAVAJPEG_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjpeg/mapfile-vers |
20547 | 459 |
else |
25103 | 460 |
BUILD_LIBJAVAJPEG_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjpeg/mapfile-vers-closed |
25859 | 461 |
LIBJAVAJPEG_SRC += $(JDK_TOPDIR)/src/closed/java.desktop/share/native/libjavajpeg |
20547 | 462 |
endif |
463 |
||
25859 | 464 |
LIBJAVAJPEG_SRC += $(JDK_TOPDIR)/src/java.desktop/share/native/libjavajpeg |
465 |
||
25103 | 466 |
BUILD_LIBJAVAJPEG_REORDER := |
13164 | 467 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
20547 | 468 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
25103 | 469 |
BUILD_LIBJAVAJPEG_REORDER := $(JDK_TOPDIR)/make/mapfiles/libjpeg/reorder-$(OPENJDK_TARGET_CPU) |
20547 | 470 |
endif |
471 |
endif |
|
472 |
||
25103 | 473 |
|
20547 | 474 |
# Suppress gcc warnings like "variable might be clobbered by 'longjmp' |
475 |
# or 'vfork'": this warning indicates that some variable is placed to |
|
476 |
# a register by optimized compiler and it's value might be lost on longjmp(). |
|
477 |
# Recommended way to avoid such warning is to declare the variable as |
|
478 |
# volatile to prevent the optimization. However, this approach does not |
|
479 |
# work because we have to declare all variables as volatile in result. |
|
480 |
#ifndef CROSS_COMPILE_ARCH |
|
481 |
# CC_43_OR_NEWER := \ |
|
482 |
# $(shell $(EXPR) $(CC_MAJORVER) \> 4 \| \ |
|
483 |
# \( $(CC_MAJORVER) = 4 \& $(CC_MINORVER) \>= 3 \) ) |
|
484 |
# ifeq ($(CC_43_OR_NEWER), 1) |
|
25103 | 485 |
# BUILD_LIBJAVAJPEG_CFLAGS_linux += -Wno-clobbered |
20547 | 486 |
# endif |
487 |
#endif |
|
488 |
||
25103 | 489 |
ifeq ($(USE_EXTERNAL_LIBJPEG), true) |
490 |
LIBJPEG_LIBS := -ljpeg |
|
491 |
BUILD_LIBJAVAJPEG_INCLUDE_FILES := \ |
|
33647
2665054d3864
8139932: Typo in makefile changes for 8043805 [Allow using a system-installed libjpeg]
omajid
parents:
33518
diff
changeset
|
492 |
imageioJPEG.c \ |
25103 | 493 |
jpegdecoder.c |
494 |
BUILD_LIBJAVAJPEG_HEADERS := |
|
495 |
else |
|
496 |
LIBJPEG_LIBS := |
|
497 |
BUILD_LIBJAVAJPEG_INCLUDE_FILES := |
|
25859 | 498 |
BUILD_LIBJAVAJPEG_HEADERS := $(addprefix -I, $(LIBJAVAJPEG_SRC)) |
25103 | 499 |
endif |
500 |
||
501 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAVAJPEG, \ |
|
502 |
LIBRARY := javajpeg, \ |
|
20547 | 503 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
25859 | 504 |
SRC := $(LIBJAVAJPEG_SRC), \ |
25103 | 505 |
INCLUDE_FILES := $(BUILD_LIBJAVAJPEG_INCLUDE_FILES), \ |
20547 | 506 |
OPTIMIZATION := HIGHEST, \ |
31159
6f5c7d192b2d
8081447: System JPEG builds include in-tree jpeglib.h, resulting in build failure
andrew
parents:
31157
diff
changeset
|
507 |
CFLAGS := $(CFLAGS_JDKLIB) $(BUILD_LIBJAVAJPEG_HEADERS) \ |
25859 | 508 |
$(LIBJAVA_HEADER_FLAGS) \ |
27565 | 509 |
-I$(SUPPORT_OUTPUTDIR)/headers/java.desktop, \ |
31157 | 510 |
DISABLED_WARNINGS_gcc := clobbered parentheses array-bounds, \ |
29374
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
511 |
DISABLED_WARNINGS_clang := logical-op-parentheses, \ |
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
512 |
DISABLED_WARNINGS_microsoft := 4267, \ |
25103 | 513 |
MAPFILE := $(BUILD_LIBJAVAJPEG_MAPFILE), \ |
33305
ed708a0e3482
8140223: fix the build with a toolchain with a linker defaulting to ld --as-needed
erikj
parents:
33285
diff
changeset
|
514 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
20547 | 515 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
33406 | 516 |
LIBS := $(LIBJPEG_LIBS) $(JDKLIB_LIBS), \ |
517 |
LIBS_windows := $(WIN_JAVA_LIB) jvm.lib, \ |
|
25859 | 518 |
VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \ |
20547 | 519 |
RC_FLAGS := $(RC_FLAGS) \ |
25103 | 520 |
-D "JDK_FNAME=javajpeg.dll" \ |
521 |
-D "JDK_INTERNAL_NAME=javajpeg" \ |
|
20547 | 522 |
-D "JDK_FTYPE=0x2L", \ |
25103 | 523 |
REORDER := $(BUILD_LIBJAVAJPEG_REORDER), \ |
27565 | 524 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjavajpeg, \ |
35276 | 525 |
)) |
20547 | 526 |
|
27565 | 527 |
$(BUILD_LIBJAVAJPEG): $(call FindLib, java.base, java) |
20547 | 528 |
|
27565 | 529 |
TARGETS += $(BUILD_LIBJAVAJPEG) |
20547 | 530 |
|
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
531 |
################################################################################ |
20547 | 532 |
|
29006
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
533 |
ifeq ($(BUILD_HEADLESS), true) |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
534 |
# Mac and Windows only use the native AWT lib, do not build libawt_headless |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
535 |
ifeq ($(findstring $(OPENJDK_TARGET_OS), windows macosx),) |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
536 |
|
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
537 |
LIBAWT_HEADLESS_DIRS := $(JDK_TOPDIR)/src/java.desktop/unix/native/libawt_headless/awt \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
538 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/awt \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
539 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/java2d/opengl \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
540 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/java2d/x11 \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
541 |
$(JDK_TOPDIR)/src/java.desktop/share/native/common/java2d/opengl \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
542 |
$(JDK_TOPDIR)/src/java.desktop/share/native/common/font \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
543 |
# |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
544 |
|
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
545 |
LIBAWT_HEADLESS_EXCLUDES := medialib |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
546 |
LIBAWT_HEADLESS_CFLAGS := -I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
547 |
$(addprefix -I, $(LIBAWT_HEADLESS_DIRS)) \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
548 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
549 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d/loops \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
550 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/awt/image/cvutils \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
551 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d/pipe \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
552 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/awt/image \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
553 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libawt/java2d \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
554 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/common/font \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
555 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/common/awt/debug \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
556 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/font \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
557 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libsunwjdga/ \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
558 |
$(LIBJAVA_HEADER_FLAGS) \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
559 |
# |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
560 |
|
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
561 |
LIBAWT_HEADLESS_REORDER := |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
562 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
563 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
564 |
LIBAWT_HEADLESS_REORDER := $(JDK_TOPDIR)/make/mapfiles/libawt_headless/reorder-$(OPENJDK_TARGET_CPU) |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
565 |
endif |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
566 |
endif |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
567 |
|
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
568 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_HEADLESS, \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
569 |
LIBRARY := awt_headless, \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
570 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
571 |
SRC := $(LIBAWT_HEADLESS_DIRS), \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
572 |
EXCLUDES := $(LIBAWT_HEADLESS_EXCLUDES), \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
573 |
OPTIMIZATION := LOW, \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
574 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
575 |
-DHEADLESS=true \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
576 |
-DPACKAGE_PATH=\"$(PACKAGE_PATH)\" \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
577 |
$(CUPS_CFLAGS) \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
578 |
$(X_CFLAGS) \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
579 |
$(LIBAWT_HEADLESS_CFLAGS), \ |
37529
868c7195632c
8154087: Fix AIX and Linux/ppc64le after the integration of the new hotspot build
simonis
parents:
36110
diff
changeset
|
580 |
DISABLED_WARNINGS_xlc := 1506-356, \ |
29374
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
581 |
DISABLED_WARNINGS_gcc := maybe-uninitialized int-to-pointer-cast, \ |
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
582 |
DISABLED_WARNINGS_solstudio := E_DECLARATION_IN_CODE \ |
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
583 |
E_EMPTY_TRANSLATION_UNIT, \ |
29006
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
584 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libawt_headless/mapfile-vers, \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
585 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
586 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
587 |
LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
588 |
LDFLAGS_linux := $(call SET_SHARED_LIBRARY_ORIGIN,/..), \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
589 |
LDFLAGS_solaris := $(call SET_SHARED_LIBRARY_ORIGIN,/..), \ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
590 |
REORDER := $(LIBAWT_HEADLESS_REORDER), \ |
33406 | 591 |
LIBS_unix := -lawt -ljvm -ljava, \ |
36110
91a3a6df36ec
8150203: Incremental update from build-infra project
ihse
parents:
35711
diff
changeset
|
592 |
LIBS_linux := $(LIBM) $(LIBDL), \ |
91a3a6df36ec
8150203: Incremental update from build-infra project
ihse
parents:
35711
diff
changeset
|
593 |
LIBS_solaris := $(LIBM) $(LIBDL) $(LIBCXX) -lc, \ |
29006
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
594 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libawt_headless, \ |
35276 | 595 |
)) |
29006
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
596 |
|
37529
868c7195632c
8154087: Fix AIX and Linux/ppc64le after the integration of the new hotspot build
simonis
parents:
36110
diff
changeset
|
597 |
# AIX warning explanation: |
868c7195632c
8154087: Fix AIX and Linux/ppc64le after the integration of the new hotspot build
simonis
parents:
36110
diff
changeset
|
598 |
# 1506-356 : (W) Compilation unit is empty. |
868c7195632c
8154087: Fix AIX and Linux/ppc64le after the integration of the new hotspot build
simonis
parents:
36110
diff
changeset
|
599 |
# This happens during the headless build |
868c7195632c
8154087: Fix AIX and Linux/ppc64le after the integration of the new hotspot build
simonis
parents:
36110
diff
changeset
|
600 |
|
29006
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
601 |
$(BUILD_LIBAWT_HEADLESS): $(BUILD_LIBAWT) |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
602 |
|
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
603 |
TARGETS += $(BUILD_LIBAWT_HEADLESS) |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
604 |
|
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
605 |
endif |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
606 |
endif |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
607 |
|
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
608 |
################################################################################ |
0d72c5ab72d8
8072116: [Solaris] : Fix for 8071710 needs to be updated for build dependency checking
prr
parents:
29002
diff
changeset
|
609 |
|
25859 | 610 |
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
|
611 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libfontmanager |
25859 | 612 |
LIBFONTMANAGER_CFLAGS := \ |
613 |
$(addprefix -I, $(shell $(FIND) \ |
|
614 |
$(LIBFONTMANAGER_SRC) \ |
|
615 |
$(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
|
616 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libawt \ |
25859 | 617 |
$(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
|
618 |
$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common -type d)) \ |
27565 | 619 |
-I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \ |
25859 | 620 |
$(LIBJAVA_HEADER_FLAGS) \ |
621 |
# |
|
622 |
||
34414
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
623 |
#### Begin harfbuzz configuration |
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
624 |
|
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
625 |
HARFBUZZ_CFLAGS := -DHAVE_OT -DHAVE_FALLBACK -DHAVE_UCDN |
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
626 |
|
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
627 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
628 |
HARFBUZZ_CFLAGS += -DGETPAGESIZE -DHAVE_MPROTECT -DHAVE_PTHREAD \ |
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
629 |
-DHAVE_SYSCONF -DHAVE_SYS_MMAN_H -DHAVE_UNISTD_H |
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
630 |
endif |
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
631 |
ifneq (, $(findstring $(OPENJDK_TARGET_OS), linux macosx)) |
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
632 |
HARFBUZZ_CFLAGS += -DHAVE_INTEL_ATOMIC_PRIMITIVES |
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
633 |
endif |
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
634 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
635 |
HARFBUZZ_CFLAGS += -DHAVE_SOLARIS_ATOMIC_OPS |
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
636 |
endif |
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
637 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
638 |
HARFBUZZ_CFLAGS += -DHAVE_CORETEXT |
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
639 |
endif |
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
640 |
ifneq ($(OPENJDK_TARGET_OS), macosx) |
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
641 |
LIBFONTMANAGER_EXCLUDE_FILES += harfbuzz/hb-coretext.cc |
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
642 |
endif |
34432 | 643 |
# hb-ft.cc is not presently needed, and requires freetype 2.4.2 or later. |
644 |
LIBFONTMANAGER_EXCLUDE_FILES += harfbuzz/hb-ft.cc |
|
34414
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
645 |
|
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
646 |
LIBFONTMANAGER_CFLAGS += $(HARFBUZZ_CFLAGS) |
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
647 |
|
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
648 |
#### End harfbuzz configuration |
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
649 |
|
20547 | 650 |
ifndef OPENJDK |
25859 | 651 |
LIBFONTMANAGER_CFLAGS += -I$(JDK_TOPDIR)/src/closed/java.desktop/share/native/libt2k |
21805 | 652 |
BUILD_LIBFONTMANAGER_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libfontmanager/mapfile-vers |
20547 | 653 |
LIBFONTMANAGER_EXCLUDE_FILES += freetypeScaler.c |
654 |
else |
|
25859 | 655 |
LIBFONTMANAGER_CFLAGS += $(FREETYPE_CFLAGS) |
21805 | 656 |
BUILD_LIBFONTMANAGER_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libfontmanager/mapfile-vers.openjdk |
20899 | 657 |
BUILD_LIBFONTMANAGER_FONTLIB := $(FREETYPE_LIBS) |
20547 | 658 |
endif |
659 |
||
660 |
LIBFONTMANAGER_OPTIMIZATION := HIGH |
|
661 |
||
662 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
663 |
LIBFONTMANAGER_EXCLUDE_FILES += X11FontScaler.c \ |
|
664 |
X11TextRenderer.c |
|
665 |
LIBFONTMANAGER_OPTIMIZATION := HIGHEST |
|
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
666 |
LIBFONTMANAGER_CFLAGS += -I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libawt/windows |
21130 | 667 |
else ifeq ($(OPENJDK_TARGET_OS), macosx) |
668 |
LIBFONTMANAGER_EXCLUDE_FILES += X11FontScaler.c \ |
|
669 |
X11TextRenderer.c \ |
|
670 |
fontpath.c \ |
|
671 |
lcdglyph.c |
|
20547 | 672 |
else |
673 |
LIBFONTMANAGER_EXCLUDE_FILES += fontpath.c \ |
|
674 |
lcdglyph.c |
|
675 |
endif |
|
676 |
||
25859 | 677 |
LIBFONTMANAGER_CFLAGS += $(FONT_HEADERS) $(X_CFLAGS) -DLE_STANDALONE -DHEADLESS |
20547 | 678 |
|
35711
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
679 |
ifeq ($(TOOLCHAIN_TYPE), gcc) |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
680 |
# Turn off all warnings for sunFont.c. This is needed because the specific warning |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
681 |
# about discarding 'const' qualifier cannot be turned off individually. |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
682 |
BUILD_LIBFONTMANAGER_sunFont.c_CFLAGS := -w |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
683 |
# Turn off aliasing with GCC for ExtensionSubtables.cpp |
20547 | 684 |
BUILD_LIBFONTMANAGER_ExtensionSubtables.cpp_CXXFLAGS := -fno-strict-aliasing |
685 |
endif |
|
686 |
||
687 |
$(eval $(call SetupNativeCompilation,BUILD_LIBFONTMANAGER, \ |
|
688 |
LIBRARY := fontmanager, \ |
|
689 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
25859 | 690 |
SRC := $(LIBFONTMANAGER_SRC), \ |
20547 | 691 |
EXCLUDE_FILES := $(LIBFONTMANAGER_EXCLUDE_FILES) \ |
692 |
AccelGlyphCache.c, \ |
|
29931
64e274ed6567
8077824: Introduce DefineNativeToolchain to handle toolchain configurations
erikj
parents:
29734
diff
changeset
|
693 |
TOOLCHAIN := TOOLCHAIN_LINK_CXX, \ |
25859 | 694 |
CFLAGS := $(CFLAGS_JDKLIB) $(LIBFONTMANAGER_CFLAGS), \ |
695 |
CXXFLAGS := $(CXXFLAGS_JDKLIB) $(LIBFONTMANAGER_CFLAGS), \ |
|
20547 | 696 |
OPTIMIZATION := $(LIBFONTMANAGER_OPTIMIZATION), \ |
25859 | 697 |
CFLAGS_windows = -DCC_NOEX, \ |
37529
868c7195632c
8154087: Fix AIX and Linux/ppc64le after the integration of the new hotspot build
simonis
parents:
36110
diff
changeset
|
698 |
WARNINGS_AS_ERRORS_xlc := false, \ |
35711
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
699 |
DISABLED_WARNINGS_gcc := sign-compare int-to-pointer-cast \ |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
700 |
type-limits missing-field-initializers, \ |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
701 |
DISABLED_WARNINGS_CXX_gcc := reorder delete-non-virtual-dtor strict-overflow \ |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
702 |
maybe-uninitialized, \ |
30434 | 703 |
DISABLED_WARNINGS_clang := unused-value incompatible-pointer-types \ |
704 |
tautological-constant-out-of-range-compare int-to-pointer-cast, \ |
|
35711
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
705 |
DISABLED_WARNINGS_C_solstudio = \ |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
706 |
E_INTEGER_OVERFLOW_DETECTED \ |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
707 |
E_ARG_INCOMPATIBLE_WITH_ARG_L \ |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
708 |
E_ENUM_VAL_OVERFLOWS_INT_MAX, \ |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
709 |
DISABLED_WARNINGS_CXX_solstudio := \ |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
710 |
truncwarn wvarhidenmem wvarhidemem wbadlkginit identexpected \ |
d08f24178498
8148629: Disable remaining warnings in awt/fontmanager
erikj
parents:
35276
diff
changeset
|
711 |
hidevf w_novirtualdescr arrowrtn2, \ |
34414
e496a8d8fc8a
8143177: Integrate harfbuzz opentype layout engine per JEP 258
prr
parents:
33647
diff
changeset
|
712 |
DISABLED_WARNINGS_microsoft := 4267 4244 4018 4090 4996 4146 4334, \ |
20547 | 713 |
MAPFILE := $(BUILD_LIBFONTMANAGER_MAPFILE), \ |
34695
7a6cc9982d22
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34432
diff
changeset
|
714 |
LDFLAGS := $(subst -Wl$(COMMA)-z$(COMMA)defs,,$(LDFLAGS_JDKLIB)) $(LDFLAGS_CXX_JDK) \ |
20547 | 715 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
27944 | 716 |
LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \ |
33406 | 717 |
LDFLAGS_macosx := -undefined dynamic_lookup, \ |
718 |
LIBS := $(BUILD_LIBFONTMANAGER_FONTLIB), \ |
|
719 |
LIBS_unix := -lawt -ljava -ljvm $(LIBM) $(LIBCXX), \ |
|
720 |
LIBS_linux := -lc, \ |
|
721 |
LIBS_solaris := -lawt_headless -lc, \ |
|
722 |
LIBS_aix := -lawt_headless,\ |
|
723 |
LIBS_windows := $(WIN_JAVA_LIB) advapi32.lib user32.lib gdi32.lib \ |
|
20547 | 724 |
$(WIN_AWT_LIB), \ |
25859 | 725 |
VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \ |
20547 | 726 |
RC_FLAGS := $(RC_FLAGS) \ |
727 |
-D "JDK_FNAME=fontmanager.dll" \ |
|
728 |
-D "JDK_INTERNAL_NAME=fontmanager" \ |
|
729 |
-D "JDK_FTYPE=0x2L", \ |
|
27565 | 730 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libfontmanager, \ |
35276 | 731 |
)) |
20547 | 732 |
|
733 |
$(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT) |
|
734 |
||
22595
aaa6b141196c
8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents:
22594
diff
changeset
|
735 |
ifneq (, $(findstring $(OPENJDK_TARGET_OS), solaris aix)) |
29002
613ae4804312
8071710: [solaris] libfontmanager should be linked against headless awt library
prr
parents:
28537
diff
changeset
|
736 |
$(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT_HEADLESS) |
20547 | 737 |
endif |
738 |
||
27565 | 739 |
TARGETS += $(BUILD_LIBFONTMANAGER) |
20547 | 740 |
|
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
741 |
################################################################################ |
20547 | 742 |
|
743 |
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
|
744 |
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
|
745 |
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
|
746 |
-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
|
747 |
-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
|
748 |
-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
|
749 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libawt/java2d/windows \ |
27565 | 750 |
-I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \ |
25859 | 751 |
-I$(JDK_TOPDIR)/src/java.desktop/windows/native/include \ |
752 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/include \ |
|
753 |
$(LIBJAVA_HEADER_FLAGS) \ |
|
754 |
# |
|
755 |
||
20547 | 756 |
ifeq ($(OPENJDK_TARGET_CPU), x86) |
757 |
KERNEL32_LIB := kernel32.lib |
|
758 |
endif |
|
759 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAWT, \ |
|
760 |
LIBRARY := jawt, \ |
|
761 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
25859 | 762 |
SRC := $(LIBJAWT_SRC), \ |
763 |
INCLUDE_FILES := $(LIBJAWT_INCLUDE_FILES), \ |
|
20547 | 764 |
OPTIMIZATION := LOW, \ |
765 |
CFLAGS := $(CXXFLAGS_JDKLIB) \ |
|
766 |
-EHsc -DUNICODE -D_UNICODE \ |
|
25859 | 767 |
$(LIBJAWT_CFLAGS), \ |
33406 | 768 |
LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK), \ |
769 |
LIBS := $(JDKLIB_LIBS) $(KERNEL32_LIB) advapi32.lib $(WIN_AWT_LIB), \ |
|
25859 | 770 |
VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \ |
20547 | 771 |
RC_FLAGS := $(RC_FLAGS) \ |
772 |
-D "JDK_FNAME=jawt.dll" \ |
|
773 |
-D "JDK_INTERNAL_NAME=jawt" \ |
|
774 |
-D "JDK_FTYPE=0x2L", \ |
|
27565 | 775 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjawt, \ |
35276 | 776 |
)) |
20547 | 777 |
|
778 |
$(BUILD_LIBJAWT): $(BUILD_LIBAWT) |
|
779 |
||
780 |
$(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX): $(BUILD_LIBJAWT) |
|
35241 | 781 |
$(call LogInfo, Copying $(patsubst $(OUTPUT_ROOT)/%, %, $@)) |
782 |
$(call MakeDir, $(@D)) |
|
27565 | 783 |
$(CP) $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjawt/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX) $@ |
20547 | 784 |
|
27565 | 785 |
TARGETS += $(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX) |
20547 | 786 |
|
787 |
else # OPENJDK_TARGET_OS not windows |
|
788 |
||
789 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
25859 | 790 |
LIBJAWT_SRC := $(JDK_TOPDIR)/src/java.desktop/macosx/native/libjawt |
791 |
else |
|
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
792 |
LIBJAWT_SRC := $(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libjawt |
25859 | 793 |
endif |
794 |
LIBJAWT_CFLAGS := \ |
|
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
26751
diff
changeset
|
795 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/awt \ |
25859 | 796 |
-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
|
797 |
-I$(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/include \ |
25859 | 798 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/include \ |
799 |
$(LIBJAVA_HEADER_FLAGS) \ |
|
800 |
# |
|
801 |
||
802 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
20547 | 803 |
JAWT_LIBS := -lawt_lwawt |
21130 | 804 |
else |
805 |
JAWT_LIBS := |
|
806 |
ifneq ($(OPENJDK_TARGET_OS), solaris) |
|
807 |
JAWT_LIBS += -lawt |
|
808 |
endif |
|
809 |
ifndef BUILD_HEADLESS_ONLY |
|
810 |
JAWT_LIBS += -lawt_xawt |
|
811 |
else |
|
812 |
JAWT_LIBS += -lawt_headless |
|
813 |
HEADLESS_CFLAG += -DHEADLESS |
|
814 |
endif |
|
20547 | 815 |
endif |
816 |
||
817 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAWT, \ |
|
818 |
LIBRARY := jawt, \ |
|
819 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
25859 | 820 |
SRC := $(LIBJAWT_SRC), \ |
20547 | 821 |
INCLUDE_FILES := $(JAWT_FILES), \ |
822 |
OPTIMIZATION := LOW, \ |
|
25859 | 823 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
824 |
$(LIBJAWT_CFLAGS), \ |
|
20547 | 825 |
CFLAGS_linux := $(HEADLESS_CFLAG), \ |
25859 | 826 |
CFLAGS_macosx := $(LIBJAWT_CFLAGS_macosx), \ |
21805 | 827 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjawt/mapfile-vers, \ |
20547 | 828 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
829 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
27944 | 830 |
LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \ |
34695
7a6cc9982d22
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34432
diff
changeset
|
831 |
LDFLAGS_macosx := -Wl$(COMMA)-rpath$(COMMA)@loader_path, \ |
33406 | 832 |
LIBS_unix := $(JAWT_LIBS) $(JDKLIB_LIBS), \ |
833 |
LIBS_solaris := $(X_LIBS) -lXrender, \ |
|
834 |
LIBS_macosx := -framework Cocoa, \ |
|
27565 | 835 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjawt, \ |
35276 | 836 |
)) |
20547 | 837 |
|
838 |
ifndef BUILD_HEADLESS_ONLY |
|
839 |
$(BUILD_LIBJAWT): $(BUILD_LIBAWT_XAWT) |
|
840 |
else |
|
841 |
$(BUILD_LIBJAWT): $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)awt_headless$(SHARED_LIBRARY_SUFFIX) |
|
842 |
endif |
|
843 |
||
844 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
845 |
$(BUILD_LIBJAWT): $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)awt_lwawt$(SHARED_LIBRARY_SUFFIX) |
|
846 |
endif |
|
847 |
||
848 |
endif # OPENJDK_TARGET_OS |
|
849 |
||
27565 | 850 |
TARGETS += $(BUILD_LIBJAWT) |
20547 | 851 |
|
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
852 |
################################################################################ |
12892 | 853 |
|
20547 | 854 |
ifndef BUILD_HEADLESS_ONLY |
25859 | 855 |
|
20547 | 856 |
LIBSPLASHSCREEN_DIRS := \ |
25859 | 857 |
$(JDK_TOPDIR)/src/java.desktop/share/native/libjavajpeg \ |
858 |
$(JDK_TOPDIR)/src/java.desktop/share/native/libsplashscreen \ |
|
859 |
# |
|
20547 | 860 |
|
861 |
ifeq ($(USE_EXTERNAL_LIBGIF), true) |
|
33406 | 862 |
GIFLIB_LIBS := -lgif |
25859 | 863 |
LIBSPLASHSCREEN_EXCLUDES := giflib |
20547 | 864 |
else |
25859 | 865 |
LIBSPLASHSCREEN_CFLAGS += -I$(JDK_TOPDIR)/src/java.desktop/share/native/libsplashscreen/giflib |
20547 | 866 |
endif |
867 |
||
25103 | 868 |
ifeq ($(USE_EXTERNAL_LIBJPEG), true) |
33406 | 869 |
LIBJPEG_LIBS := -ljpeg |
25103 | 870 |
else |
25859 | 871 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/java.desktop/share/native/libjavajpeg |
872 |
LIBJPEG_CFLAGS := -I$(JDK_TOPDIR)/src/java.desktop/share/native/libjavajpeg |
|
25103 | 873 |
endif |
874 |
||
23305 | 875 |
ifeq ($(USE_EXTERNAL_LIBPNG), false) |
25859 | 876 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/java.desktop/share/native/libsplashscreen/libpng |
877 |
else |
|
878 |
LIBSPLASHSCREEN_EXCLUDES += libpng |
|
23305 | 879 |
endif |
880 |
||
20547 | 881 |
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
|
882 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/libsplashscreen |
20547 | 883 |
else |
25859 | 884 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/java.desktop/macosx/native/libsplashscreen |
20547 | 885 |
endif |
886 |
||
36953 | 887 |
ifneq ($(filter $(OPENJDK_TARGET_OS),linux solaris aix), ) |
36880
3a05117c7611
8151770: 9-client windows builds fail on windows since make file change for 8145174
erikj
parents:
36869
diff
changeset
|
888 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/java.desktop/unix/native/common/awt/systemscale |
36869 | 889 |
endif |
36880
3a05117c7611
8151770: 9-client windows builds fail on windows since make file change for 8145174
erikj
parents:
36869
diff
changeset
|
890 |
|
36907 | 891 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
892 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/java.desktop/windows/native/common/awt/systemscale |
|
893 |
endif |
|
30325
1472b22475f2
8078245: AARCH64: JDK fails to build due to undefined symbol in libpng
enevill
parents:
29931
diff
changeset
|
894 |
LIBSPLASHSCREEN_CFLAGS += -DSPLASHSCREEN -DPNG_NO_MMX_CODE -DPNG_ARM_NEON_OPT=0 \ |
25859 | 895 |
$(addprefix -I, $(LIBSPLASHSCREEN_DIRS)) \ |
896 |
$(LIBJAVA_HEADER_FLAGS) \ |
|
897 |
# |
|
20547 | 898 |
|
899 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
900 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_MACOSX |
|
25859 | 901 |
LIBSPLASHSCREEN_CFLAGS += -I$(JDK_TOPDIR)/src/java.desktop/macosx/native/libosxapp |
20547 | 902 |
|
25859 | 903 |
BUILD_LIBSPLASHSCREEN_java_awt_SplashScreen.c_CFLAGS := -x objective-c -O0 |
904 |
BUILD_LIBSPLASHSCREEN_splashscreen_gfx_impl.c_CFLAGS := -x objective-c -O0 |
|
905 |
BUILD_LIBSPLASHSCREEN_splashscreen_gif.c_CFLAGS := -x objective-c -O0 |
|
906 |
BUILD_LIBSPLASHSCREEN_splashscreen_impl.c_CFLAGS := -x objective-c -O0 |
|
907 |
BUILD_LIBSPLASHSCREEN_splashscreen_jpeg.c_CFLAGS := -x objective-c -O0 |
|
908 |
BUILD_LIBSPLASHSCREEN_splashscreen_png.c_CFLAGS := -x objective-c -O0 |
|
909 |
BUILD_LIBSPLASHSCREEN_splashscreen_sys.m_CFLAGS := -O0 |
|
20547 | 910 |
|
20901
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
911 |
else ifeq ($(OPENJDK_TARGET_OS), windows) |
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
912 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_WIN32 |
20547 | 913 |
else |
20901
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
914 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_X11 $(X_CFLAGS) |
20547 | 915 |
endif |
916 |
||
33406 | 917 |
LIBSPLASHSCREEN_LIBS := |
20547 | 918 |
|
919 |
ifneq ($(USE_EXTERNAL_LIBZ), true) |
|
25859 | 920 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/java.base/share/native/libzip/zlib-1.2.8 |
20547 | 921 |
LIBSPLASHSCREEN_CFLAGS += $(ZLIB_CPPFLAGS) |
922 |
endif |
|
923 |
||
924 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
33406 | 925 |
LIBSPLASHSCREEN_LDFLAGS := -L$(INSTALL_LIBRARIES_HERE) |
926 |
LIBSPLASHSCREEN_LIBS += \ |
|
27565 | 927 |
$(LIBM) -lpthread -liconv -losxapp \ |
20547 | 928 |
-framework ApplicationServices \ |
929 |
-framework Foundation \ |
|
930 |
-framework Cocoa \ |
|
931 |
-framework JavaNativeFoundation |
|
20901
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
932 |
else ifeq ($(OPENJDK_TARGET_OS), windows) |
33406 | 933 |
LIBSPLASHSCREEN_LDFLAGS := -delayload:user32.dll |
36907 | 934 |
LIBSPLASHSCREEN_LIBS += kernel32.lib user32.lib gdi32.lib delayimp.lib $(WIN_JAVA_LIB) jvm.lib |
23592
35b16ae6b4f4
8038340: Cleanup and fix sysroot and devkit handling on Linux and Solaris
erikj
parents:
23310
diff
changeset
|
935 |
else |
33406 | 936 |
LIBSPLASHSCREEN_LIBS += $(X_LIBS) -lX11 -lXext $(LIBM) -lpthread |
20901
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
937 |
endif |
20547 | 938 |
|
25859 | 939 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSPLASHSCREEN, \ |
20547 | 940 |
LIBRARY := splashscreen, \ |
941 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
942 |
SRC := $(LIBSPLASHSCREEN_DIRS), \ |
|
943 |
EXCLUDE_FILES := imageioJPEG.c jpegdecoder.c pngtest.c, \ |
|
25859 | 944 |
EXCLUDES := $(LIBSPLASHSCREEN_EXCLUDES), \ |
20547 | 945 |
OPTIMIZATION := LOW, \ |
23305 | 946 |
CFLAGS := $(LIBSPLASHSCREEN_CFLAGS) $(CFLAGS_JDKLIB) \ |
25103 | 947 |
$(GIFLIB_CFLAGS) $(LIBJPEG_CFLAGS) $(PNG_CFLAGS), \ |
30502
50552a5900a2
8080317: Disable warning treated as error for signed/unsigned comparison in building splashscreen
prr
parents:
30439
diff
changeset
|
948 |
DISABLED_WARNINGS_gcc := sign-compare type-limits unused-result maybe-uninitialized, \ |
29374
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
949 |
DISABLED_WARNINGS_clang := incompatible-pointer-types, \ |
32408
97230ec16697
8134408: Disable warnings for jdk libraries triggered by SS12u4
erikj
parents:
31159
diff
changeset
|
950 |
DISABLED_WARNINGS_solstudio := E_NEWLINE_NOT_LAST E_DECLARATION_IN_CODE \ |
97230ec16697
8134408: Disable warnings for jdk libraries triggered by SS12u4
erikj
parents:
31159
diff
changeset
|
951 |
E_STATEMENT_NOT_REACHED, \ |
30502
50552a5900a2
8080317: Disable warning treated as error for signed/unsigned comparison in building splashscreen
prr
parents:
30439
diff
changeset
|
952 |
DISABLED_WARNINGS_microsoft := 4018 4244 4267, \ |
21805 | 953 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libsplashscreen/mapfile-vers, \ |
33406 | 954 |
LDFLAGS := $(LIBSPLASHSCREEN_LDFLAGS) $(LDFLAGS_JDKLIB) \ |
20547 | 955 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
33518
3f1644328d06
8141290: AIX: fix build after '8140661: Rename LDFLAGS_SUFFIX to LIBS'
simonis
parents:
33406
diff
changeset
|
956 |
LIBS := $(JDKLIB_LIBS) $(LIBSPLASHSCREEN_LIBS) $(LIBZ) \ |
33406 | 957 |
$(GIFLIB_LIBS) $(LIBJPEG_LIBS) $(PNG_LIBS), \ |
33518
3f1644328d06
8141290: AIX: fix build after '8140661: Rename LDFLAGS_SUFFIX to LIBS'
simonis
parents:
33406
diff
changeset
|
958 |
LIBS_aix := -liconv, \ |
25859 | 959 |
VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \ |
20547 | 960 |
RC_FLAGS := $(RC_FLAGS) \ |
961 |
-D "JDK_FNAME=splashscreen.dll" \ |
|
962 |
-D "JDK_INTERNAL_NAME=splashscreen" \ |
|
963 |
-D "JDK_FTYPE=0x2L", \ |
|
27565 | 964 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libsplashscreen, \ |
35276 | 965 |
)) |
20547 | 966 |
|
27565 | 967 |
TARGETS += $(BUILD_LIBSPLASHSCREEN) |
20547 | 968 |
|
969 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
25859 | 970 |
$(BUILD_LIBSPLASHSCREEN): $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)osxapp$(SHARED_LIBRARY_SUFFIX) |
20547 | 971 |
endif |
972 |
||
973 |
endif |
|
974 |
||
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
975 |
################################################################################ |
20547 | 976 |
|
977 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
978 |
||
25859 | 979 |
LIBAWT_LWAWT_DIRS := \ |
980 |
$(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
|
981 |
$(JDK_TOPDIR)/src/java.desktop/unix/native/common/awt \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
982 |
$(JDK_TOPDIR)/src/java.desktop/share/native/common/font \ |
70bac69b37c9
8056216: Remove "sun" directory layer from libawt and common
prr
parents:
26741
diff
changeset
|
983 |
$(JDK_TOPDIR)/src/java.desktop/share/native/common/java2d/opengl \ |
25859 | 984 |
# |
20547 | 985 |
|
25859 | 986 |
LIBAWT_LWAWT_CFLAGS := \ |
987 |
$(addprefix -I, $(LIBAWT_LWAWT_DIRS)) \ |
|
27565 | 988 |
-I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \ |
25859 | 989 |
-I$(JDK_TOPDIR)/src/java.desktop/macosx/native/include \ |
990 |
-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
|
991 |
-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
|
992 |
-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
|
993 |
-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
|
994 |
-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
|
995 |
-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
|
996 |
-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
|
997 |
-I$(JDK_TOPDIR)/src/java.desktop/unix/native/libawt/java2d \ |
25859 | 998 |
-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
|
999 |
-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
|
1000 |
-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
|
1001 |
-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
|
1002 |
-I$(JDK_TOPDIR)/src/java.desktop/share/native/common/awt/debug \ |
25859 | 1003 |
-I$(JDK_TOPDIR)/src/java.desktop/macosx/native/libosxapp \ |
1004 |
$(LIBJAVA_HEADER_FLAGS) \ |
|
1005 |
# |
|
20547 | 1006 |
|
26741 | 1007 |
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
|
1008 |
LIBAWT_LWAWT_EXCLUDES := $(JDK_TOPDIR)/src/java.desktop/unix/native/common/awt/medialib |
20547 | 1009 |
|
1010 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_LWAWT, \ |
|
1011 |
LIBRARY := awt_lwawt, \ |
|
1012 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
1013 |
SRC := $(LIBAWT_LWAWT_DIRS), \ |
|
1014 |
INCLUDE_FILES := $(LIBAWT_LWAWT_FILES), \ |
|
25859 | 1015 |
EXCLUDE_FILES := $(LIBAWT_LWAWT_EXFILES), \ |
1016 |
EXCLUDES := $(LIBAWT_LWAWT_EXCLUDES), \ |
|
20547 | 1017 |
OPTIMIZATION := LOW, \ |
1018 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
20901
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
1019 |
$(X_CFLAGS) \ |
70f69e624fc9
8026888: Licensee build failure due to wrong libs being called
erikj
parents:
20899
diff
changeset
|
1020 |
$(X_LIBS) \ |
25859 | 1021 |
$(LIBAWT_LWAWT_CFLAGS), \ |
32872 | 1022 |
DISABLED_WARNINGS_clang := incomplete-implementation enum-conversion \ |
29374
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
1023 |
deprecated-declarations objc-method-access bitwise-op-parentheses \ |
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
29006
diff
changeset
|
1024 |
incompatible-pointer-types parentheses-equality extra-tokens, \ |
20547 | 1025 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
27565 | 1026 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
27944 | 1027 |
-L$(INSTALL_LIBRARIES_HERE), \ |
33406 | 1028 |
LIBS := -lawt -lmlib_image -losxapp -ljvm $(LIBM) \ |
20547 | 1029 |
-framework Accelerate \ |
1030 |
-framework ApplicationServices \ |
|
1031 |
-framework AudioToolbox \ |
|
1032 |
-framework Carbon \ |
|
1033 |
-framework Cocoa \ |
|
1034 |
-framework Security \ |
|
1035 |
-framework ExceptionHandling \ |
|
1036 |
-framework JavaNativeFoundation \ |
|
1037 |
-framework JavaRuntimeSupport \ |
|
1038 |
-framework OpenGL \ |
|
1039 |
-framework QuartzCore -ljava, \ |
|
27565 | 1040 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libawt_lwawt, \ |
35276 | 1041 |
)) |
20547 | 1042 |
|
27565 | 1043 |
TARGETS += $(BUILD_LIBAWT_LWAWT) |
20547 | 1044 |
|
1045 |
$(BUILD_LIBAWT_LWAWT): $(BUILD_LIBAWT) |
|
1046 |
||
1047 |
$(BUILD_LIBAWT_LWAWT): $(BUILD_LIBMLIB_IMAGE) |
|
1048 |
||
1049 |
$(BUILD_LIBAWT_LWAWT): $(BUILD_LIBOSXAPP) |
|
1050 |
||
27565 | 1051 |
$(BUILD_LIBAWT_LWAWT): $(call FindLib, java.base, java) |
20547 | 1052 |
|
1053 |
endif |
|
1054 |
||
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
1055 |
################################################################################ |
20547 | 1056 |
|
1057 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
1058 |
||
1059 |
$(eval $(call SetupNativeCompilation,BUILD_LIBOSXUI, \ |
|
1060 |
LIBRARY := osxui, \ |
|
1061 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
25859 | 1062 |
SRC := $(JDK_TOPDIR)/src/java.desktop/macosx/native/libosxui, \ |
20547 | 1063 |
OPTIMIZATION := LOW, \ |
1064 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
25859 | 1065 |
-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
|
1066 |
-I$(JDK_TOPDIR)/src/java.desktop/macosx/native/libawt_lwawt/awt \ |
25859 | 1067 |
-I$(JDK_TOPDIR)/src/java.desktop/macosx/native/libosxapp \ |
1068 |
-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
|
1069 |
-I$(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libjava \ |
27565 | 1070 |
-I$(SUPPORT_OUTPUTDIR)/headers/java.desktop, \ |
20547 | 1071 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
1072 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
|
34695
7a6cc9982d22
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34432
diff
changeset
|
1073 |
-Wl$(COMMA)-rpath$(COMMA)@loader_path \ |
27944 | 1074 |
-L$(INSTALL_LIBRARIES_HERE), \ |
33406 | 1075 |
LIBS := -lawt -losxapp -lawt_lwawt \ |
20547 | 1076 |
-framework Cocoa \ |
1077 |
-framework Carbon \ |
|
1078 |
-framework ApplicationServices \ |
|
1079 |
-framework JavaNativeFoundation \ |
|
1080 |
-framework JavaRuntimeSupport \ |
|
1081 |
-ljava -ljvm, \ |
|
27565 | 1082 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libosxui, \ |
35276 | 1083 |
)) |
20547 | 1084 |
|
27565 | 1085 |
TARGETS += $(BUILD_LIBOSXUI) |
20547 | 1086 |
|
1087 |
$(BUILD_LIBOSXUI): $(BUILD_LIBAWT) |
|
1088 |
||
1089 |
$(BUILD_LIBOSXUI): $(BUILD_LIBOSXAPP) |
|
1090 |
||
1091 |
$(BUILD_LIBOSXUI): $(BUILD_LIBAWT_LWAWT) |
|
1092 |
||
27565 | 1093 |
#$(BUILD_LIBOSXUI): $(call FindLib, java.base, java) |
20547 | 1094 |
|
1095 |
endif |
|
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
1096 |
|
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
1097 |
################################################################################ |
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
1098 |
|
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
1099 |
# Hook to include the corresponding custom file, if present. |
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25993
diff
changeset
|
1100 |
$(eval $(call IncludeCustomExtension, jdk, lib/Awt2dLibraries.gmk)) |