author | dxu |
Wed, 13 Mar 2013 14:50:40 -0700 | |
changeset 16476 | e269be167fae |
parent 15676 | 291a66e841c2 |
child 16483 | 443a7e5f9b91 |
permissions | -rw-r--r-- |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
1 |
# |
16476
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
15676
diff
changeset
|
2 |
# Copyright (c) 2011, 2013, 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 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
26 |
defalt: all |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
27 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
28 |
include $(SPEC) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
29 |
include MakeBase.gmk |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
30 |
include NativeCompilation.gmk |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
31 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
32 |
# Setup the java compilers for the JDK build. |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
33 |
include Setup.gmk |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
34 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
35 |
# Copy files (can now depend on $(COPY_FILES)) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
36 |
include CopyFiles.gmk |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
37 |
|
15126
bceb690ccf35
8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents:
14855
diff
changeset
|
38 |
# Prepare the find cache. Only used if running on windows. |
bceb690ccf35
8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents:
14855
diff
changeset
|
39 |
$(eval $(call FillCacheFind,$(JDK_TOPDIR)/src)) |
bceb690ccf35
8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents:
14855
diff
changeset
|
40 |
|
13164 | 41 |
# Build tools |
42 |
include Tools.gmk |
|
43 |
||
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
44 |
# Include the javah generated headers. |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
45 |
CFLAGS_JDKLIB += -I$(JDK_OUTPUTDIR)/gensrc_headers |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
46 |
CXXFLAGS_JDKLIB += -I$(JDK_OUTPUTDIR)/gensrc_headers |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
47 |
|
13164 | 48 |
# Put the libraries here. Different locations for different target apis. |
49 |
ifeq ($(OPENJDK_TARGET_OS_API),posix) |
|
13702 | 50 |
INSTALL_LIBRARIES_HERE:=$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
51 |
else |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
52 |
INSTALL_LIBRARIES_HERE:=$(JDK_OUTPUTDIR)/bin |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
53 |
endif |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
54 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
55 |
BUILD_LIBRARIES= |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
56 |
|
13164 | 57 |
# Absolute paths to lib files on windows for use in LDFLAGS. Should figure out a more |
58 |
# elegant solution to this. |
|
59 |
WIN_VERIFY_LIB := $(JDK_OUTPUTDIR)/objs/libverify/verify.lib |
|
60 |
WIN_JAVA_LIB := $(JDK_OUTPUTDIR)/objs/libjava/java.lib |
|
61 |
WIN_AWT_LIB := $(JDK_OUTPUTDIR)/objs/libawt/awt.lib |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
62 |
|
13702 | 63 |
# Use this variable to set DEBUG_SYMBOLS true on windows for all libraries, but |
64 |
# not on other platforms. |
|
65 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
66 |
WINDOWS_ONLY := true |
|
67 |
endif |
|
68 |
||
69 |
# |
|
70 |
# TODO replace with X_FLAGS / X_LIBS |
|
71 |
# and add them to configure |
|
72 |
# |
|
73 |
OPENWIN_LIB:=$(OPENWIN_HOME)/lib |
|
74 |
||
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
75 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
76 |
|
13164 | 77 |
BUILD_LIBFDLIBM_OPTIMIZATION:=HIGH |
78 |
||
79 |
ifneq ($(OPENJDK_TARGET_OS), solaris) |
|
80 |
BUILD_LIBFDLIBM_OPTIMIZATION:=NONE |
|
12892 | 81 |
endif |
82 |
||
13164 | 83 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
84 |
$(eval $(call SetupNativeCompilation,BUILD_LIBFDLIBM,\ |
13164 | 85 |
STATIC_LIBRARY:=fdlibm,\ |
86 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs,\ |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
87 |
SRC:=$(JDK_TOPDIR)/src/share/native/java/lang/fdlibm/src,\ |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
88 |
LANG:=C,\ |
13164 | 89 |
OPTIMIZATION:=$(BUILD_LIBFDLIBM_OPTIMIZATION), \ |
90 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
91 |
-I$(JDK_TOPDIR)/src/share/native/java/lang/fdlibm/include,\ |
13702 | 92 |
CFLAGS_windows_debug:=-DLOGGING,\ |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
93 |
ARFLAGS:=$(ARFLAGS),\ |
13164 | 94 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libfdlibm)) |
95 |
||
12892 | 96 |
else |
14855
d104ff4d4bb9
8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents:
14789
diff
changeset
|
97 |
|
d104ff4d4bb9
8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents:
14789
diff
changeset
|
98 |
# On macosx the old build does partial (incremental) linking of fdlibm instead of |
d104ff4d4bb9
8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents:
14789
diff
changeset
|
99 |
# a plain static library. |
d104ff4d4bb9
8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents:
14789
diff
changeset
|
100 |
$(eval $(call SetupNativeCompilation,BUILD_LIBFDLIBM_MAC,\ |
13164 | 101 |
LIBRARY:=fdlibm,\ |
102 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs/libfdlibm,\ |
|
12892 | 103 |
SRC:=$(JDK_TOPDIR)/src/share/native/java/lang/fdlibm/src,\ |
104 |
LANG:=C,\ |
|
13164 | 105 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
12892 | 106 |
-I$(JDK_TOPDIR)/src/share/native/java/lang/fdlibm/include,\ |
14524 | 107 |
LDFLAGS:=-nostdlib -r -arch x86_64,\ |
13164 | 108 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libfdlibm)) |
109 |
||
14855
d104ff4d4bb9
8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents:
14789
diff
changeset
|
110 |
BUILD_LIBFDLIBM := $(JDK_OUTPUTDIR)/objs/$(LIBRARY_PREFIX)fdlibm$(STATIC_LIBRARY_SUFFIX) |
d104ff4d4bb9
8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents:
14789
diff
changeset
|
111 |
$(BUILD_LIBFDLIBM) : $(BUILD_LIBFDLIBM_MAC) |
12892 | 112 |
$(CP) -a $< $@ |
113 |
||
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
114 |
endif |
14855
d104ff4d4bb9
8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents:
14789
diff
changeset
|
115 |
BUILD_LIBRARIES += $(BUILD_LIBFDLIBM) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
116 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
117 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
118 |
|
13164 | 119 |
BUILD_LIBVERIFY_SRC:=check_code.c check_format.c |
120 |
||
121 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 122 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
123 |
BUILD_LIBVERIFY_REORDER:=$(JDK_TOPDIR)/makefiles/mapfiles/libverify/reorder-$(OPENJDK_TARGET_CPU) |
|
13164 | 124 |
endif |
125 |
endif |
|
126 |
||
13702 | 127 |
LIBVERIFY_OPTIMIZATION:=HIGH |
128 |
ifneq ($(findstring $(OPENJDK_TARGET_OS),solaris linux),) |
|
14707
511b222f99b2
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14706
diff
changeset
|
129 |
ifeq ($(ENABLE_DEBUG_SYMBOLS), true) |
13702 | 130 |
LIBVERIFY_OPTIMIZATION:=LOW |
131 |
endif |
|
132 |
endif |
|
133 |
||
13164 | 134 |
|
135 |
$(eval $(call SetupNativeCompilation,BUILD_LIBVERIFY,\ |
|
136 |
LIBRARY:=verify, \ |
|
137 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
138 |
SRC:=$(JDK_TOPDIR)/src/share/native/common,\ |
|
139 |
INCLUDE_FILES:=$(BUILD_LIBVERIFY_SRC),\ |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
140 |
LANG:=C,\ |
13702 | 141 |
OPTIMIZATION:=$(LIBVERIFY_OPTIMIZATION), \ |
13164 | 142 |
CFLAGS:=$(CFLAGS_JDKLIB),\ |
143 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libverify/mapfile-vers, \ |
|
12892 | 144 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
13164 | 145 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
146 |
LDFLAGS_SUFFIX_posix:=-ljvm -lc,\ |
|
147 |
LDFLAGS_SUFFIX_windows:=jvm.lib,\ |
|
13702 | 148 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
149 |
RC_FLAGS:=$(RC_FLAGS) \ |
|
14231 | 150 |
-D "JDK_FNAME=verify.dll" \ |
151 |
-D "JDK_INTERNAL_NAME=verify" \ |
|
152 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 153 |
REORDER:=$(BUILD_LIBVERIFY_REORDER),\ |
154 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libverify,\ |
|
155 |
DEBUG_SYMBOLS:=true)) |
|
156 |
||
157 |
BUILD_LIBRARIES += $(BUILD_LIBVERIFY) |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
158 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
159 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
160 |
|
13702 | 161 |
LIBJAVA_SRC_DIRS:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/lang \ |
13164 | 162 |
$(JDK_TOPDIR)/src/share/native/java/lang \ |
163 |
$(JDK_TOPDIR)/src/share/native/java/lang/ref \ |
|
164 |
$(JDK_TOPDIR)/src/share/native/java/lang/reflect \ |
|
165 |
$(JDK_TOPDIR)/src/share/native/java/io \ |
|
13702 | 166 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/io \ |
13164 | 167 |
$(JDK_TOPDIR)/src/share/native/java/nio \ |
168 |
$(JDK_TOPDIR)/src/share/native/java/security \ |
|
169 |
$(JDK_TOPDIR)/src/share/native/common \ |
|
170 |
$(JDK_TOPDIR)/src/share/native/sun/misc \ |
|
171 |
$(JDK_TOPDIR)/src/share/native/sun/reflect \ |
|
172 |
$(JDK_TOPDIR)/src/share/native/java/util \ |
|
173 |
$(JDK_TOPDIR)/src/share/native/java/util/concurrent/atomic \ |
|
13702 | 174 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/common \ |
14231 | 175 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/util |
176 |
||
13702 | 177 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
178 |
LIBJAVA_SRC_DIRS+=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/util/locale/provider |
|
179 |
else |
|
180 |
LIBJAVA_SRC_DIRS+=$(JDK_TOPDIR)/src/macosx/native/sun/util/locale/provider |
|
13164 | 181 |
endif |
182 |
||
14231 | 183 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
184 |
LIBJAVA_SRC_DIRS+=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/provider \ |
|
185 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/io |
|
186 |
endif |
|
187 |
||
13164 | 188 |
LIBJAVA_CFLAGS:=$(foreach dir,$(LIBJAVA_SRC_DIRS),-I$(dir)) \ |
189 |
-I$(JDK_TOPDIR)/src/share/native/java/lang/fdlibm/include \ |
|
13702 | 190 |
-DARCHPROPNAME='"$(OPENJDK_TARGET_CPU_OSARCH)"' |
13164 | 191 |
|
192 |
LIBJAVA_CFLAGS += -DJDK_MAJOR_VERSION='"$(JDK_MAJOR_VERSION)"' \ |
|
193 |
-DJDK_MINOR_VERSION='"$(JDK_MINOR_VERSION)"' \ |
|
194 |
-DJDK_MICRO_VERSION='"$(JDK_MICRO_VERSION)"' \ |
|
195 |
-DJDK_BUILD_NUMBER='"$(JDK_BUILD_NUMBER)"' |
|
196 |
||
197 |
ifneq (,$(JDK_UPDATE_VERSION)) |
|
198 |
LIBJAVA_CFLAGS += -DJDK_UPDATE_VERSION='"$(JDK_UPDATE_VERSION)"' |
|
199 |
endif |
|
200 |
||
201 |
LIBJAVA_EXCLUDE_FILES:=check_code.c check_format.c |
|
202 |
||
203 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
|
204 |
LIBJAVA_EXCLUDE_FILES += java_props_macosx.c |
|
205 |
else |
|
206 |
BUILD_LIBJAVA_java_props_md.c_CFLAGS:=-x objective-c |
|
207 |
endif |
|
208 |
||
209 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
|
210 |
LIBJAVA_EXCLUDE_FILES += \ |
|
211 |
UNIXProcess_md.c \ |
|
212 |
UnixFileSystem_md.c \ |
|
213 |
FileSystemPreferences.c |
|
214 |
else |
|
215 |
LIBJAVA_EXCLUDE_FILES += \ |
|
216 |
ProcessImpl_md.c \ |
|
217 |
WinNTFileSystem_md.c \ |
|
218 |
dirent_md.c \ |
|
219 |
WindowsPreferences.c \ |
|
220 |
sun/security/provider/WinCAPISeedGenerator.c \ |
|
221 |
sun/io/Win32ErrorMode.c |
|
222 |
endif |
|
223 |
||
224 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 225 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
226 |
LIBJAVA_REORDER:=$(JDK_TOPDIR)/makefiles/mapfiles/libjava/reorder-$(OPENJDK_TARGET_CPU) |
|
13164 | 227 |
endif |
228 |
endif |
|
229 |
||
230 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAVA,\ |
|
231 |
LIBRARY:=java,\ |
|
232 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
233 |
SRC:=$(LIBJAVA_SRC_DIRS),\ |
|
234 |
EXCLUDES:=fdlibm/src zip, \ |
|
235 |
EXCLUDE_FILES:=$(LIBJAVA_EXCLUDE_FILES), \ |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
236 |
LANG:=C,\ |
13164 | 237 |
OPTIMIZATION:=HIGH, \ |
238 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
239 |
$(LIBJAVA_CFLAGS),\ |
|
240 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjava/mapfile-vers, \ |
|
241 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
242 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
243 |
LDFLAGS_SUFFIX_posix:=-ljvm -lverify, \ |
|
14526
a9ff17998eb7
8003528: build-infra: Diffs in libjava and hotspot libs on solaris.
erikj
parents:
14525
diff
changeset
|
244 |
LDFLAGS_SUFFIX_solaris:=-lsocket -lnsl -lscf $(LIBDL) $(BUILD_LIBFDLIBM) -lc,\ |
13164 | 245 |
LDFLAGS_SUFFIX_linux:=$(LIBDL) $(BUILD_LIBFDLIBM),\ |
13702 | 246 |
LDFLAGS_SUFFIX_macosx:=-L$(JDK_OUTPUTDIR)/objs/ -lfdlibm \ |
13164 | 247 |
-framework CoreFoundation \ |
248 |
-framework Security -framework SystemConfiguration, \ |
|
14231 | 249 |
LDFLAGS_SUFFIX_windows:=-export:winFileHandleOpen -export:handleLseek \ |
250 |
jvm.lib $(BUILD_LIBFDLIBM) $(WIN_VERIFY_LIB) \ |
|
251 |
shell32.lib delayimp.lib -DELAYLOAD:shell32.dll \ |
|
252 |
advapi32.lib,\ |
|
13702 | 253 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
254 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 255 |
-D "JDK_FNAME=java.dll" \ |
256 |
-D "JDK_INTERNAL_NAME=java" \ |
|
257 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 258 |
REORDER:=$(LIBJAVA_REORDER), \ |
13702 | 259 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjava,\ |
260 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 261 |
|
262 |
BUILD_LIBRARIES += $(BUILD_LIBJAVA) |
|
263 |
||
264 |
$(BUILD_LIBJAVA) : $(LIBJLI_BINARY) |
|
265 |
||
266 |
$(BUILD_LIBJAVA) : $(BUILD_LIBVERIFY) |
|
267 |
||
268 |
$(BUILD_LIBJAVA) : $(BUILD_LIBFDLIBM) |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
269 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
270 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
271 |
|
13164 | 272 |
BUILD_LIBMLIB_SRC:=$(JDK_TOPDIR)/src/share/native/sun/awt/medialib |
273 |
BUILD_LIBMLIB_CFLAGS:=-D__USE_J2D_NAMES -D__MEDIALIB_OLD_NAMES \ |
|
12892 | 274 |
-I$(BUILD_LIBMLIB_SRC) \ |
13702 | 275 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/medialib |
13164 | 276 |
|
277 |
BUILD_LIBMLIB_LDLIBS:= |
|
278 |
BUILD_LIBMLIB_IMAGE_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libmlib_image/mapfile-vers |
|
279 |
||
13702 | 280 |
BUILD_LIBMLIB_CFLAGS += -DMLIB_NO_LIBSUNMATH |
281 |
||
282 |
ifeq ($(OPENJDK_TARGET_CPU_BITS), 64) |
|
12892 | 283 |
BUILD_LIBMLIB_CFLAGS += -DMLIB_OS64BIT |
284 |
endif |
|
285 |
||
13164 | 286 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
12892 | 287 |
BUILD_LIBMLIB_LDLIBS += $(LIBM) $(LIBDL) |
288 |
endif |
|
289 |
||
290 |
$(eval $(call SetupNativeCompilation,BUILD_LIBMLIB_IMAGE,\ |
|
13164 | 291 |
LIBRARY:=mlib_image,\ |
292 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
293 |
SRC:=$(BUILD_LIBMLIB_SRC),\ |
|
12892 | 294 |
EXCLUDE_FILES:=awt_ImagingLib.c mlib_c_ImageBlendTable.c,\ |
295 |
LANG:=C,\ |
|
13164 | 296 |
OPTIMIZATION:=HIGHEST, \ |
297 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 298 |
$(BUILD_LIBMLIB_CFLAGS),\ |
13164 | 299 |
MAPFILE:=$(BUILD_LIBMLIB_IMAGE_MAPFILE), \ |
12892 | 300 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
301 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 302 |
LDFLAGS_SUFFIX:=$(BUILD_LIBMLIB_LDLIBS) \ |
303 |
$(LDFLAGS_JDKLIB_SUFFIX),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
304 |
LDFLAGS_SUFFIX_solaris:=-lc, \ |
13702 | 305 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
306 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 307 |
-D "JDK_FNAME=mlib_image.dll" \ |
308 |
-D "JDK_INTERNAL_NAME=mlib_image" \ |
|
309 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 310 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libmlib_image,\ |
311 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 312 |
|
313 |
$(BUILD_LIBMLIB_IMAGE) : $(BUILD_LIBJAVA) |
|
314 |
||
315 |
BUILD_LIBRARIES += $(BUILD_LIBMLIB_IMAGE) |
|
12892 | 316 |
|
317 |
########################################################################################## |
|
318 |
||
13702 | 319 |
ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH),solaris-sparc) |
12892 | 320 |
|
13164 | 321 |
BUILD_LIBMLIB_IMAGE_V_FILES:=\ |
12892 | 322 |
mlib_v_ImageLookUp.c \ |
323 |
mlib_ImageCreate.c \ |
|
324 |
mlib_ImageAffine.c \ |
|
325 |
mlib_ImageConvMxN.c \ |
|
326 |
mlib_ImageConvKernelConvert.c \ |
|
327 |
mlib_sys.c \ |
|
328 |
mlib_ImageLookUp_64.c \ |
|
329 |
mlib_ImageLookUp_Bit.c \ |
|
330 |
mlib_ImageColorTrue2Index.c \ |
|
331 |
mlib_c_ImageThresh1_U8.c \ |
|
332 |
mlib_v_ImageLookUpS16S16Func.c \ |
|
333 |
mlib_v_ImageLookUpS16S32Func.c \ |
|
334 |
mlib_v_ImageLookUpS16U16Func.c \ |
|
335 |
mlib_v_ImageLookUpS16U8Func.c \ |
|
336 |
mlib_v_ImageLookUpS32S16Func.c \ |
|
337 |
mlib_v_ImageLookUpS32S32Func.c \ |
|
338 |
mlib_v_ImageLookUpS32U16Func.c \ |
|
339 |
mlib_v_ImageLookUpS32U8Func.c \ |
|
340 |
mlib_v_ImageLookUpSIS16S16Func.c \ |
|
341 |
mlib_v_ImageLookUpSIS16S32Func.c \ |
|
342 |
mlib_v_ImageLookUpSIS16U16Func.c \ |
|
343 |
mlib_v_ImageLookUpSIS16U8Func.c \ |
|
344 |
mlib_v_ImageLookUpSIS32S16Func.c \ |
|
345 |
mlib_v_ImageLookUpSIS32S32Func.c \ |
|
346 |
mlib_v_ImageLookUpSIS32U16Func.c \ |
|
347 |
mlib_v_ImageLookUpSIS32U8Func.c \ |
|
348 |
mlib_v_ImageLookUpSIU16S16Func.c \ |
|
349 |
mlib_v_ImageLookUpSIU16S32Func.c \ |
|
350 |
mlib_v_ImageLookUpSIU16U16Func.c \ |
|
351 |
mlib_v_ImageLookUpSIU16U8Func.c \ |
|
352 |
mlib_v_ImageLookUpSIU8S16Func.c \ |
|
353 |
mlib_v_ImageLookUpSIU8S32Func.c \ |
|
354 |
mlib_v_ImageLookUpSIU8U16Func.c \ |
|
355 |
mlib_v_ImageLookUpSIU8U8Func.c \ |
|
356 |
mlib_v_ImageLookUpU16S16Func.c \ |
|
357 |
mlib_v_ImageLookUpU16S32Func.c \ |
|
358 |
mlib_v_ImageLookUpU16U16Func.c \ |
|
359 |
mlib_v_ImageLookUpU16U8Func.c \ |
|
360 |
mlib_v_ImageLookUpU8S16Func.c \ |
|
361 |
mlib_v_ImageLookUpU8S32Func.c \ |
|
362 |
mlib_v_ImageLookUpU8U16Func.c \ |
|
363 |
mlib_v_ImageLookUpU8U8Func.c \ |
|
364 |
mlib_v_ImageAffineIndex_BC.c \ |
|
365 |
mlib_v_ImageAffine_BC.c \ |
|
366 |
mlib_v_ImageAffine_BC_S16.c \ |
|
367 |
mlib_v_ImageAffine_BC_U16.c \ |
|
368 |
mlib_v_ImageAffine_BL.c \ |
|
369 |
mlib_v_ImageAffine_BL_S16.c \ |
|
370 |
mlib_v_ImageAffine_BL_U16.c \ |
|
371 |
mlib_v_ImageAffine_NN.c \ |
|
372 |
mlib_v_ImageFilters.c \ |
|
373 |
mlib_ImageAffineEdge.c \ |
|
374 |
mlib_ImageAffine_BC_D64.c \ |
|
375 |
mlib_ImageAffine_BC_F32.c \ |
|
376 |
mlib_ImageAffine_BC_S32.c \ |
|
377 |
mlib_ImageAffine_BL_D64.c \ |
|
378 |
mlib_ImageAffine_BL_F32.c \ |
|
379 |
mlib_ImageAffine_BL_S32.c \ |
|
380 |
mlib_ImageAffine_NN.c \ |
|
381 |
mlib_ImageAffine_NN_Bit.c \ |
|
382 |
mlib_ImageFilters.c \ |
|
383 |
mlib_ImageScanPoly.c \ |
|
384 |
mlib_ImageConv_8nw.c \ |
|
385 |
mlib_ImageConv_8ext.c \ |
|
386 |
mlib_ImageConv_16nw.c \ |
|
387 |
mlib_ImageConv_16ext.c \ |
|
388 |
mlib_ImageConv_u16nw.c \ |
|
389 |
mlib_ImageConv_u16ext.c \ |
|
390 |
mlib_ImageConv_32nw.c \ |
|
391 |
mlib_ImageConv_F32nw.c \ |
|
392 |
mlib_ImageConvMxN_Fp.c \ |
|
393 |
mlib_ImageConvMxN_ext.c \ |
|
394 |
mlib_ImageConv_D64nw.c \ |
|
395 |
mlib_ImageClipping.c \ |
|
396 |
mlib_ImageConvCopyEdge_Bit.c \ |
|
397 |
mlib_ImageConvClearEdge_Bit.c \ |
|
398 |
mlib_ImageConv2x2_f.c \ |
|
399 |
mlib_ImageConvClearEdge_Fp.c \ |
|
400 |
mlib_v_ImageConvMxN_8.c \ |
|
401 |
mlib_v_ImageConvClearEdge.c \ |
|
402 |
mlib_v_ImageConvCopyEdge.c \ |
|
403 |
mlib_v_ImageConvMxN_8ext.c \ |
|
404 |
mlib_v_ImageConvVersion.c \ |
|
405 |
mlib_v_ImageConv_8nw.c \ |
|
406 |
mlib_ImageConvCopyEdge_Fp.c \ |
|
407 |
mlib_v_ImageChannelInsert_1.c \ |
|
408 |
mlib_v_ImageChannelExtract_43.c \ |
|
409 |
mlib_v_ImageChannelExtract_1.c \ |
|
410 |
mlib_ImageCopy_Bit.c \ |
|
411 |
mlib_v_ImageCopy_f.c \ |
|
412 |
mlib_ImageUtils.c \ |
|
413 |
mlib_ImageDivTables.c |
|
414 |
||
13164 | 415 |
BUILD_LIBMLIB_V_CFLAGS := $(filter-out -DMLIB_NO_LIBSUNMATH,$(BUILD_LIBMLIB_CFLAGS)) |
12892 | 416 |
|
417 |
$(eval $(call SetupNativeCompilation,BUILD_LIBMLIB_IMAGE_V,\ |
|
13164 | 418 |
LIBRARY:=mlib_image_v, \ |
419 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
420 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/awt/medialib \ |
|
12892 | 421 |
$(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib,\ |
422 |
LANG:=C,\ |
|
13164 | 423 |
INCLUDE_FILES:=$(BUILD_LIBMLIB_IMAGE_V_FILES),\ |
424 |
OPTIMIZATION:=HIGHEST, \ |
|
425 |
CFLAGS:=-xarch=sparcvis \ |
|
13702 | 426 |
$(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib/vis_$(OPENJDK_TARGET_CPU_BITS).il\ |
13164 | 427 |
$(BUILD_LIBMLIB_V_CFLAGS) \ |
428 |
$(CFLAGS_JDKLIB), \ |
|
429 |
MAPFILE:=$(BUILD_LIBMLIB_IMAGE_MAPFILE), \ |
|
12892 | 430 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
14231 | 431 |
$(BUILD_LIBMLIB_LDLIBS) -ljava -ljvm \ |
12892 | 432 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
433 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13164 | 434 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libmlib_image_v)) |
435 |
||
14231 | 436 |
$(BUILD_LIBMLIB_IMAGE_V): $(BUILD_LIBJAVA) |
437 |
||
13164 | 438 |
BUILD_LIBRARIES += $(BUILD_LIBMLIB_IMAGE_V) |
12892 | 439 |
|
440 |
endif |
|
441 |
||
442 |
########################################################################################## |
|
443 |
||
13164 | 444 |
LIBAWT_DIRS:=\ |
445 |
$(JDK_TOPDIR)/src/share/native/sun/awt \ |
|
13702 | 446 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt \ |
13164 | 447 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image \ |
448 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image/gif \ |
|
449 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
450 |
$(JDK_TOPDIR)/src/share/native/sun/awt/medialib \ |
|
451 |
$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
|
452 |
$(JDK_TOPDIR)/src/share/native/sun/awt/utility \ |
|
453 |
$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
13702 | 454 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \ |
13164 | 455 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
456 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
457 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image \ |
|
458 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \ |
|
13702 | 459 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/opengl \ |
14231 | 460 |
$(JDK_TOPDIR)/src/share/native/sun/font |
461 |
||
462 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
|
463 |
LIBAWT_DIRS+=\ |
|
13702 | 464 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/windows \ |
465 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/windows \ |
|
466 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/d3d |
|
14231 | 467 |
else |
468 |
LIBAWT_DIRS+=\ |
|
469 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/x11 |
|
470 |
endif |
|
13164 | 471 |
|
472 |
LIBAWT_CFLAGS:=-D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES \ |
|
473 |
$(X_CFLAGS) \ |
|
474 |
$(foreach dir,$(LIBAWT_DIRS),-I$(dir)) |
|
475 |
||
476 |
LIBAWT_FILES:=\ |
|
477 |
gifdecoder.c \ |
|
478 |
imageInitIDs.c \ |
|
479 |
img_globals.c \ |
|
480 |
SurfaceData.c \ |
|
481 |
Region.c \ |
|
482 |
BufImgSurfaceData.c \ |
|
483 |
Disposer.c \ |
|
484 |
Trace.c \ |
|
485 |
GraphicsPrimitiveMgr.c \ |
|
486 |
Blit.c \ |
|
487 |
BlitBg.c \ |
|
488 |
ScaledBlit.c \ |
|
489 |
FillRect.c \ |
|
490 |
FillSpans.c \ |
|
491 |
FillParallelogram.c \ |
|
492 |
DrawParallelogram.c \ |
|
493 |
DrawLine.c \ |
|
494 |
DrawRect.c \ |
|
495 |
DrawPolygons.c \ |
|
496 |
DrawPath.c \ |
|
497 |
FillPath.c \ |
|
498 |
ProcessPath.c \ |
|
499 |
MaskBlit.c \ |
|
500 |
MaskFill.c \ |
|
501 |
TransformHelper.c \ |
|
502 |
AlphaMath.c \ |
|
503 |
AlphaMacros.c \ |
|
504 |
AnyByte.c \ |
|
505 |
ByteBinary1Bit.c \ |
|
506 |
ByteBinary2Bit.c \ |
|
507 |
ByteBinary4Bit.c \ |
|
508 |
ByteIndexed.c \ |
|
509 |
ByteGray.c \ |
|
510 |
Index8Gray.c \ |
|
511 |
Index12Gray.c \ |
|
512 |
AnyShort.c \ |
|
513 |
Ushort555Rgb.c \ |
|
514 |
Ushort565Rgb.c \ |
|
515 |
Ushort4444Argb.c \ |
|
516 |
Ushort555Rgbx.c \ |
|
517 |
UshortGray.c \ |
|
518 |
UshortIndexed.c \ |
|
519 |
Any3Byte.c \ |
|
520 |
ThreeByteBgr.c \ |
|
521 |
AnyInt.c \ |
|
522 |
IntArgb.c \ |
|
523 |
IntArgbPre.c \ |
|
524 |
IntArgbBm.c \ |
|
525 |
IntRgb.c \ |
|
526 |
IntBgr.c \ |
|
527 |
IntRgbx.c \ |
|
528 |
Any4Byte.c \ |
|
529 |
FourByteAbgr.c \ |
|
530 |
FourByteAbgrPre.c \ |
|
531 |
BufferedMaskBlit.c \ |
|
532 |
BufferedRenderPipe.c \ |
|
533 |
ShapeSpanIterator.c \ |
|
534 |
SpanClipRenderer.c \ |
|
535 |
awt_ImageRep.c \ |
|
536 |
awt_ImagingLib.c \ |
|
537 |
awt_Mlib.c \ |
|
538 |
awt_parseImage.c \ |
|
539 |
DataBufferNative.c \ |
|
540 |
dither.c \ |
|
541 |
debug_assert.c \ |
|
542 |
debug_mem.c \ |
|
543 |
debug_trace.c \ |
|
544 |
debug_util.c |
|
545 |
||
13702 | 546 |
ifneq (,$(filter $(OPENJDK_TARGET_OS), solaris linux)) |
13164 | 547 |
LIBAWT_FILES += awt_LoadLibrary.c initIDs.c img_colors.c |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
548 |
endif |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
549 |
|
13164 | 550 |
ifeq ($(OPENJDK_TARGET_OS),macosx) |
13702 | 551 |
LIBAWT_FILES += awt_LoadLibrary.c img_colors.c |
13164 | 552 |
LIBAWT_DIRS += $(JDK_TOPDIR)/src/macosx/native/com/apple/resources |
553 |
LIBAWT_FILES += awt_LoadLibrary.c MacOSXResourceBundle.m |
|
554 |
LIBAWT_CFLAGS += -F/System/Library/Frameworks/JavaVM.framework/Frameworks |
|
555 |
||
556 |
LIBAWT_MacOSXResourceBundle.m_CFLAGS:=-O0 |
|
12892 | 557 |
endif |
558 |
||
13164 | 559 |
ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH), solaris-sparc) |
560 |
LIBAWT_CFLAGS += -DMLIB_ADD_SUFF |
|
561 |
LIBAWT_CFLAGS += -xarch=sparcvis |
|
13702 | 562 |
LIBAWT_CFLAGS += $(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib/vis_$(OPENJDK_TARGET_CPU_BITS).il |
13164 | 563 |
LIBAWT_CFLAGS += \ |
564 |
-I$(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib \ |
|
565 |
-I$(JDK_TOPDIR)/src/solaris/native/sun/java2d/medialib \ |
|
566 |
-I$(JDK_TOPDIR)/src/solaris/native/sun/java2d/loops |
|
567 |
||
568 |
LIBAWT_DIRS += $(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib \ |
|
569 |
$(JDK_TOPDIR)/src/solaris/native/sun/java2d/loops |
|
570 |
||
571 |
LIBAWT_FILES += \ |
|
572 |
vis_FuncArray.c \ |
|
573 |
java2d_Mlib.c \ |
|
574 |
mlib_ImageCreate.c \ |
|
575 |
mlib_ImageZoom_NN.c \ |
|
576 |
mlib_ImageCopy_Bit.c \ |
|
577 |
mlib_sys.c \ |
|
578 |
mlib_v_ImageClear.c \ |
|
579 |
mlib_v_ImageClear_f.c \ |
|
580 |
mlib_v_ImageConstXor.c \ |
|
581 |
mlib_v_ImageCopy.c \ |
|
582 |
mlib_v_ImageCopy_f.c \ |
|
583 |
mlib_v_ImageXor.c \ |
|
584 |
mlib_v_ImageZoom_NN_f.c \ |
|
585 |
vis_Interp.c \ |
|
586 |
vis_AlphaMacros.c \ |
|
587 |
vis_AlphaMaskBlit.c \ |
|
588 |
vis_AlphaMaskFill.c \ |
|
589 |
vis_ByteGray.c \ |
|
590 |
vis_ByteGray_FromRgb.c \ |
|
591 |
vis_ByteGray_Mask.c \ |
|
592 |
vis_ByteIndexed.c \ |
|
593 |
vis_DrawLine.c \ |
|
594 |
vis_FourByteAbgr.c \ |
|
595 |
vis_IntArgb.c \ |
|
596 |
vis_IntArgbPre.c \ |
|
597 |
vis_IntArgbPre_Mask.c \ |
|
598 |
vis_IntBgr.c \ |
|
599 |
vis_IntRgb.c \ |
|
600 |
vis_IntRgbx.c \ |
|
601 |
vis_SrcMaskFill.c \ |
|
602 |
vis_SrcOverMaskBlit.c \ |
|
603 |
vis_SrcOverMaskFill.c \ |
|
604 |
vis_FourByteAbgrPre.c \ |
|
605 |
vis_GlyphList.c \ |
|
606 |
vis_GlyphListXor.c \ |
|
607 |
vis_IntArgbBm.c \ |
|
608 |
vis_ThreeByteBgr.c \ |
|
609 |
vis_UshortGray.c \ |
|
610 |
vis_UshortGray_FromRgb.c \ |
|
611 |
vis_XorBlit.c \ |
|
612 |
mlib_v_ImageCopy_blk.s |
|
613 |
||
13702 | 614 |
ifeq ($(OPENJDK_TARGET_CPU),sparcv9) |
13164 | 615 |
LIBAWT_ASFLAGS=-P -xarch=v9a |
616 |
else |
|
617 |
LIBAWT_ASFLAGS=-P -xarch=v8plusa |
|
12892 | 618 |
endif |
619 |
else |
|
13164 | 620 |
LIBAWT_FILES += MapAccelFunc.c |
12892 | 621 |
endif |
622 |
||
13164 | 623 |
ifneq ($(OPENJDK_TARGET_OS),solaris) |
624 |
LIBAWT_CFLAGS += -DMLIB_NO_LIBSUNMATH |
|
12892 | 625 |
endif |
626 |
||
13164 | 627 |
LIBAWT_LANG:=C |
628 |
||
629 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
|
630 |
LIBAWT_FILES += AccelGlyphCache.c \ |
|
631 |
ShaderList.c \ |
|
632 |
CmdIDList.cpp \ |
|
633 |
Hashtable.cpp \ |
|
634 |
GDIHashtable.cpp \ |
|
635 |
Devices.cpp \ |
|
636 |
ObjectList.cpp \ |
|
637 |
GDIBlitLoops.cpp \ |
|
638 |
GDIRenderer.cpp \ |
|
639 |
GDIWindowSurfaceData.cpp \ |
|
640 |
WindowsFlags.cpp \ |
|
641 |
WPrinterJob.cpp \ |
|
642 |
awt_%.cpp \ |
|
643 |
D3DBlitLoops.cpp \ |
|
644 |
D3DBufImgOps.cpp \ |
|
645 |
D3DContext.cpp \ |
|
646 |
D3DGlyphCache.cpp \ |
|
647 |
D3DGraphicsDevice.cpp \ |
|
648 |
D3DMaskBlit.cpp \ |
|
649 |
D3DMaskCache.cpp \ |
|
650 |
D3DMaskFill.cpp \ |
|
651 |
D3DPipelineManager.cpp \ |
|
652 |
D3DPaints.cpp \ |
|
653 |
D3DRenderer.cpp \ |
|
654 |
D3DRenderQueue.cpp \ |
|
655 |
D3DResourceManager.cpp \ |
|
656 |
D3DSurfaceData.cpp \ |
|
657 |
D3DTextRenderer.cpp \ |
|
658 |
D3DVertexCacher.cpp \ |
|
659 |
ShellFolder2.cpp \ |
|
660 |
ThemeReader.cpp \ |
|
661 |
ComCtl32Util.cpp \ |
|
662 |
DllUtil.cpp \ |
|
663 |
initIDs.cpp \ |
|
664 |
MouseInfo.cpp \ |
|
14231 | 665 |
rect.c \ |
666 |
OGLBlitLoops.c \ |
|
667 |
OGLBufImgOps.c \ |
|
668 |
OGLContext.c \ |
|
669 |
OGLFuncs.c \ |
|
670 |
OGLMaskBlit.c \ |
|
671 |
OGLMaskFill.c \ |
|
672 |
OGLPaints.c \ |
|
673 |
OGLRenderQueue.c \ |
|
674 |
OGLRenderer.c \ |
|
675 |
OGLSurfaceData.c \ |
|
676 |
OGLTextRenderer.c \ |
|
677 |
OGLVertexCache.c \ |
|
678 |
WGLGraphicsConfig.c \ |
|
679 |
WGLSurfaceData.c |
|
13164 | 680 |
LIBAWT_LANG:=C++ |
13702 | 681 |
LIBAWT_CFLAGS += -EHsc -DUNICODE -D_UNICODE |
682 |
ifeq ($(OPENJDK_TARGET_CPU_BITS), 64) |
|
13164 | 683 |
LIBAWT_CFLAGS += -DMLIB_OS64BIT |
684 |
endif |
|
685 |
||
686 |
ifdef OPENJDK |
|
687 |
LIBAWT_RC_FLAGS:=-i "$(JDK_TOPDIR)/src/windows/resource/icons" |
|
688 |
else |
|
689 |
LIBAWT_RC_FLAGS:=-i "$(JDK_TOPDIR)/src/closed/windows/native/sun/windows" |
|
690 |
endif |
|
691 |
LIBAWT_VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/native/sun/windows/awt.rc |
|
12892 | 692 |
endif |
693 |
||
13164 | 694 |
ifeq ($(MILESTONE), internal) |
695 |
LIBAWT_CFLAGS += -DINTERNAL_BUILD |
|
12892 | 696 |
endif |
697 |
||
13164 | 698 |
LIBAWT_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libawt/mapfile-vers |
699 |
ifeq ($(OPENJDK_TARGET_OS),linux) |
|
700 |
LIBAWT_MAPFILE:= |
|
12892 | 701 |
endif |
702 |
||
13164 | 703 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT,\ |
704 |
LIBRARY:=awt,\ |
|
705 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
706 |
SRC:=$(LIBAWT_DIRS),\ |
|
707 |
INCLUDE_FILES:=$(LIBAWT_FILES),\ |
|
708 |
LANG:=$(LIBAWT_LANG),\ |
|
709 |
OPTIMIZATION:=LOW, \ |
|
710 |
CFLAGS:=$(CFLAGS_JDKLIB) $(LIBAWT_CFLAGS),\ |
|
711 |
ASFLAGS:=$(LIBAWT_ASFLAGS),\ |
|
712 |
MAPFILE:=$(LIBAWT_MAPFILE), \ |
|
713 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 714 |
LDFLAGS_solaris:=-R/usr/dt/lib$(OPENJDK_TARGET_CPU_ISADIR) -R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR),\ |
715 |
LDFLAGS_SUFFIX_linux:=-ljvm $(LIBM) $(LIBDL) -ljava,\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
716 |
LDFLAGS_SUFFIX_solaris:=-ljvm $(LIBM) $(LIBDL) -ljava -lc,\ |
13702 | 717 |
LDFLAGS_SUFFIX_macosx:=-lmlib_image -ljvm $(LIBM) \ |
718 |
-framework Cocoa \ |
|
719 |
-framework OpenGL \ |
|
720 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
721 |
-framework JavaNativeFoundation \ |
|
722 |
-framework JavaRuntimeSupport \ |
|
723 |
-framework ApplicationServices \ |
|
724 |
-framework AudioToolbox \ |
|
725 |
-ljava,\ |
|
14231 | 726 |
LDFLAGS_SUFFIX_windows:=kernel32.lib user32.lib gdi32.lib winspool.lib \ |
727 |
imm32.lib ole32.lib uuid.lib shell32.lib \ |
|
728 |
comdlg32.lib winmm.lib comctl32.lib shlwapi.lib \ |
|
729 |
delayimp.lib jvm.lib $(WIN_JAVA_LIB) advapi32.lib \ |
|
730 |
-DELAYLOAD:user32.dll -DELAYLOAD:gdi32.dll \ |
|
731 |
-DELAYLOAD:shell32.dll -DELAYLOAD:winmm.dll \ |
|
732 |
-DELAYLOAD:winspool.drv -DELAYLOAD:imm32.dll \ |
|
733 |
-DELAYLOAD:ole32.dll -DELAYLOAD:comdlg32.dll \ |
|
734 |
-DELAYLOAD:comctl32.dll -DELAYLOAD:shlwapi.dll,\ |
|
13164 | 735 |
VERSIONINFO_RESOURCE:=$(LIBAWT_VERSIONINFO_RESOURCE),\ |
736 |
RC_FLAGS:=$(RC_FLAGS) $(LIBAWT_RC_FLAGS) \ |
|
14231 | 737 |
-D "JDK_FNAME=awt.dll" \ |
738 |
-D "JDK_INTERNAL_NAME=awt" \ |
|
739 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 740 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt,\ |
741 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 742 |
|
743 |
$(BUILD_LIBAWT) : $(BUILD_LIBJAVA) |
|
744 |
||
745 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
746 |
$(BUILD_LIBAWT) : $(BUILD_LIBMLIB_IMAGE) |
|
747 |
endif |
|
748 |
||
749 |
BUILD_LIBRARIES += $(BUILD_LIBAWT) |
|
12892 | 750 |
|
751 |
########################################################################################## |
|
752 |
||
753 |
# TODO!! |
|
13164 | 754 |
# Even though this variable as a general name, it is |
755 |
# only used on macos, in fontpath.c, as prefix for where to find fonts. |
|
756 |
# |
|
757 |
# It's used for libawt_headless _and_ libawt_xawt |
|
758 |
# |
|
759 |
X11_PATH:=/usr/X11R6 |
|
760 |
||
761 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
|
12892 | 762 |
ifndef BUILD_HEADLESS_ONLY |
763 |
||
13164 | 764 |
LIBAWT_XAWT_DIRS:=\ |
12892 | 765 |
$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
766 |
$(JDK_TOPDIR)/src/share/native/sun/awt/utility \ |
|
767 |
$(JDK_TOPDIR)/src/share/native/sun/font \ |
|
13702 | 768 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/font \ |
12892 | 769 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \ |
13702 | 770 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt \ |
771 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/opengl \ |
|
772 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/x11 \ |
|
773 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/xawt \ |
|
13164 | 774 |
|
775 |
LIBAWT_XAWT_CFLAGS:=-DXAWT -DXAWT_HACK \ |
|
12892 | 776 |
-DX11_PATH=\"$(X11_PATH)\" -DPACKAGE_PATH=\"$(PACKAGE_PATH)\" \ |
777 |
$(CUPS_CFLAGS) \ |
|
778 |
$(foreach dir,$(LIBAWT_XAWT_DIRS),-I$(dir)) \ |
|
779 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
13702 | 780 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \ |
12892 | 781 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
782 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
783 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image \ |
|
784 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
785 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
|
13702 | 786 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/jdga |
13164 | 787 |
|
788 |
ifeq ($(OPENJDK_TARGET_OS),solaris) |
|
12892 | 789 |
LIBAWT_XAWT_CFLAGS += -DFUNCPROTO=15 |
790 |
endif |
|
791 |
||
792 |
ifeq ($(MILESTONE),internal) |
|
793 |
LIBAWT_XAWT_CFLAGS += -DINTERNAL_BUILD |
|
794 |
endif |
|
795 |
||
13164 | 796 |
LIBAWT_XAWT_FILES:=\ |
12892 | 797 |
XlibWrapper.c \ |
798 |
XWindow.c \ |
|
799 |
XToolkit.c \ |
|
800 |
X11Color.c \ |
|
801 |
X11SurfaceData.c \ |
|
802 |
awt_GraphicsEnv.c \ |
|
803 |
awt_InputMethod.c \ |
|
804 |
robot_common.c \ |
|
805 |
awt_Robot.c \ |
|
806 |
list.c \ |
|
807 |
multiVis.c \ |
|
808 |
initIDs.c \ |
|
809 |
awt_util.c \ |
|
810 |
awt_Desktop.c \ |
|
811 |
awt_UNIXToolkit.c \ |
|
812 |
X11FontScaler_md.c \ |
|
813 |
X11TextRenderer_md.c \ |
|
814 |
fontpath.c \ |
|
815 |
awt_Insets.c \ |
|
816 |
awt_Event.c \ |
|
817 |
X11Renderer.c \ |
|
818 |
X11PMBlitLoops.c \ |
|
819 |
OGLBlitLoops.c \ |
|
820 |
OGLBufImgOps.c \ |
|
821 |
OGLContext.c \ |
|
822 |
OGLFuncs.c \ |
|
823 |
OGLMaskBlit.c \ |
|
824 |
OGLMaskFill.c \ |
|
825 |
OGLPaints.c \ |
|
826 |
OGLRenderQueue.c \ |
|
827 |
OGLRenderer.c \ |
|
828 |
OGLSurfaceData.c \ |
|
829 |
OGLTextRenderer.c \ |
|
830 |
OGLVertexCache.c \ |
|
831 |
GLXGraphicsConfig.c \ |
|
832 |
GLXSurfaceData.c \ |
|
833 |
AccelGlyphCache.c \ |
|
834 |
awt_Font.c \ |
|
835 |
multi_font.c \ |
|
836 |
awt_AWTEvent.c \ |
|
837 |
awt_DrawingSurface.c \ |
|
838 |
jawt.c \ |
|
839 |
CUPSfuncs.c \ |
|
840 |
debug_assert.c \ |
|
841 |
debug_mem.c \ |
|
842 |
debug_trace.c \ |
|
843 |
debug_util.c \ |
|
844 |
awt_Plugin.c \ |
|
845 |
gtk2_interface.c \ |
|
846 |
swing_GTKEngine.c \ |
|
847 |
swing_GTKStyle.c \ |
|
848 |
rect.c \ |
|
849 |
sun_awt_X11_GtkFileDialogPeer.c \ |
|
850 |
XRSurfaceData.c \ |
|
851 |
XRBackendNative.c |
|
852 |
||
13164 | 853 |
LIBAWT_XAWT_LDFLAGS_SUFFIX:=$(LIBM) -lawt -lXext -lX11 -lXrender $(LIBDL) -lXtst -lXi -ljava -ljvm -lc |
854 |
||
855 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
13702 | 856 |
# To match old build, add this to LDFLAGS instead of suffix. |
857 |
LIBAWT_XAWT_LDFLAGS += -lpthread |
|
12892 | 858 |
endif |
859 |
||
13164 | 860 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
12892 | 861 |
LIBAWT_XAWT_LDFLAGS_SUFFIX += -lpthread |
862 |
endif |
|
863 |
||
13702 | 864 |
# On macosx, the shared library origin is set twice for this lib. |
12892 | 865 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_XAWT,\ |
13164 | 866 |
LIBRARY:=awt_xawt,\ |
867 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 868 |
SRC:=$(LIBAWT_XAWT_DIRS),\ |
13164 | 869 |
INCLUDE_FILES:=$(LIBAWT_XAWT_FILES),\ |
12892 | 870 |
LANG:=C,\ |
13164 | 871 |
OPTIMIZATION:=LOW, \ |
872 |
CFLAGS:=$(CFLAGS_JDKLIB) $(LIBAWT_XAWT_CFLAGS) \ |
|
12892 | 873 |
$(X_CFLAGS),\ |
13164 | 874 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libawt_xawt/mapfile-vers, \ |
12892 | 875 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
13702 | 876 |
$(X_LIBS) $(LIBAWT_XAWT_LDFLAGS),\ |
877 |
LDFLAGS_linux:=$(call SET_SHARED_LIBRARY_ORIGIN) \ |
|
878 |
$(call SET_SHARED_LIBRARY_ORIGIN,/..),\ |
|
879 |
LDFLAGS_solaris:=-L$(OPENWIN_HOME)/sfw/lib$(OPENJDK_TARGET_CPU_ISADIR) \ |
|
880 |
-L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) \ |
|
881 |
-R$(OPENWIN_HOME)/sfw/lib$(OPENJDK_TARGET_CPU_ISADIR) \ |
|
882 |
-R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) \ |
|
883 |
-R/usr/dt/lib$(OPENJDK_TARGET_CPU_ISADIR) \ |
|
884 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
|
885 |
$(call SET_SHARED_LIBRARY_ORIGIN,/..),\ |
|
886 |
LDFLAGS_macosx:=$(call SET_SHARED_LIBRARY_ORIGIN) \ |
|
887 |
$(call SET_SHARED_LIBRARY_ORIGIN). \ |
|
888 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
|
889 |
$(call SET_SHARED_LIBRARY_ORIGIN).,\ |
|
13164 | 890 |
LDFLAGS_SUFFIX:=$(LIBAWT_XAWT_LDFLAGS_SUFFIX),\ |
13702 | 891 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
892 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 893 |
-D "JDK_FNAME=xawt.dll" \ |
894 |
-D "JDK_INTERNAL_NAME=xawt" \ |
|
895 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 896 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt_xawt)) |
897 |
||
898 |
$(BUILD_LIBAWT_XAWT) : $(BUILD_LIBJAVA) |
|
899 |
||
900 |
$(BUILD_LIBAWT_XAWT) : $(BUILD_LIBAWT) |
|
901 |
||
902 |
BUILD_LIBRARIES += $(BUILD_LIBAWT_XAWT) |
|
903 |
||
904 |
endif |
|
905 |
endif |
|
906 |
||
907 |
########################################################################################## |
|
908 |
||
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
909 |
BUILD_LIBZIP_EXCLUDES := |
13164 | 910 |
ifeq ($(USE_EXTERNAL_LIBZ),true) |
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
911 |
LIBZ := -lz |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
912 |
LIBZIP_EXCLUDES += zlib-1.2.5 |
13164 | 913 |
else |
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
914 |
ZLIB_CPPFLAGS := -I$(JDK_TOPDIR)/src/share/native/java/util/zip/zlib-1.2.5 |
13164 | 915 |
endif |
916 |
||
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
917 |
BUILD_LIBZIP_REORDER := |
13164 | 918 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
13702 | 919 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
920 |
BUILD_LIBZIP_REORDER := $(JDK_TOPDIR)/makefiles/mapfiles/libzip/reorder-$(OPENJDK_TARGET_CPU) |
13164 | 921 |
endif |
922 |
endif |
|
923 |
||
924 |
ifeq ($(LIBZIP_CAN_USE_MMAP), true) |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
925 |
BUILD_LIBZIP_MMAP := -DUSE_MMAP |
13164 | 926 |
endif |
927 |
||
928 |
$(eval $(call SetupNativeCompilation,BUILD_LIBZIP,\ |
|
929 |
LIBRARY:=zip,\ |
|
930 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
931 |
LANG:=C,\ |
|
932 |
OPTIMIZATION:=LOW, \ |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
933 |
SRC:=$(JDK_TOPDIR)/src/share/native/java/util/zip,\ |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
934 |
EXCLUDES:=$(LIBZIP_EXCLUDES),\ |
13164 | 935 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
936 |
$(ZLIB_CPPFLAGS) \ |
13164 | 937 |
-I$(JDK_TOPDIR)/src/share/native/java/io \ |
13702 | 938 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/io,\ |
13164 | 939 |
CFLAGS_posix:=$(BUILD_LIBZIP_MMAP) -UDEBUG,\ |
940 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libzip/mapfile-vers, \ |
|
941 |
REORDER:=$(BUILD_LIBZIP_REORDER), \ |
|
942 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
13702 | 943 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
13164 | 944 |
$(EXPORT_ZIP_FUNCS), \ |
13702 | 945 |
LDFLAGS_windows:=-export:ZIP_Open -export:ZIP_Close -export:ZIP_FindEntry \ |
13164 | 946 |
-export:ZIP_ReadEntry -export:ZIP_GetNextEntry jvm.lib \ |
947 |
$(WIN_JAVA_LIB),\ |
|
13702 | 948 |
LDFLAGS_SUFFIX_linux:=-ljvm -ljava $(LIBZ),\ |
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
949 |
LDFLAGS_SUFFIX_solaris:=-ljvm -ljava $(LIBZ) -lc,\ |
13702 | 950 |
LDFLAGS_SUFFIX_macosx:=$(LIBZ) -ljava -ljvm,\ |
951 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
|
952 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 953 |
-D "JDK_FNAME=zip.dll" \ |
954 |
-D "JDK_INTERNAL_NAME=zip" \ |
|
955 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 956 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libzip,\ |
957 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 958 |
|
959 |
$(BUILD_LIBZIP) : $(BUILD_LIBJAVA) |
|
960 |
||
961 |
BUILD_LIBRARIES += $(BUILD_LIBZIP) |
|
962 |
||
963 |
########################################################################################## |
|
964 |
||
965 |
$(eval $(call SetupNativeCompilation,BUILD_LIBUNPACK,\ |
|
966 |
LIBRARY:=unpack, \ |
|
967 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
968 |
SRC:=$(JDK_TOPDIR)/src/share/native/com/sun/java/util/jar/pack,\ |
|
969 |
EXCLUDE_FILES:=main.cpp,\ |
|
970 |
LANG:=C++,\ |
|
971 |
OPTIMIZATION:=LOW, \ |
|
972 |
CFLAGS:=$(CXXFLAGS_JDKLIB) \ |
|
973 |
-DNO_ZLIB -DUNPACK_JNI -DFULL,\ |
|
974 |
CFLAGS_release:=-DPRODUCT,\ |
|
975 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libunpack/mapfile-vers, \ |
|
13702 | 976 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \ |
13164 | 977 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
14231 | 978 |
LDFLAGS_windows:=-map:$(JDK_OUTPUTDIR)/objs/unpack.map -debug \ |
13164 | 979 |
jvm.lib $(WIN_JAVA_LIB),\ |
13702 | 980 |
LDFLAGS_SUFFIX_posix:=-ljvm $(LIBCXX) -ljava -lc,\ |
13164 | 981 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libunpack,\ |
982 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
|
983 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 984 |
-D "JDK_FNAME=unpack.dll" \ |
985 |
-D "JDK_INTERNAL_NAME=unpack" \ |
|
986 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 987 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
13164 | 988 |
|
989 |
$(BUILD_LIBUNPACK) : $(BUILD_LIBJAVA) |
|
990 |
||
991 |
BUILD_LIBRARIES += $(BUILD_LIBUNPACK) |
|
992 |
||
13702 | 993 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
13164 | 994 |
$(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)unpack.map: $(BUILD_LIBUNPACK) |
995 |
$(ECHO) Copying $(@F) |
|
996 |
$(CP) $(patsubst %$(SHARED_LIBRARY_SUFFIX),%.map,$<) $@ |
|
997 |
||
998 |
$(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)unpack.pdb: $(BUILD_LIBUNPACK) |
|
999 |
$(ECHO) Copying $(@F) |
|
1000 |
$(CP) $(patsubst %$(SHARED_LIBRARY_SUFFIX),%.pdb,$<) $@ |
|
1001 |
endif |
|
1002 |
||
1003 |
########################################################################################## |
|
1004 |
||
1005 |
LIBATTACH_EXCLUDE_FILES:= |
|
1006 |
ifneq ($(OPENJDK_TARGET_OS),solaris) |
|
1007 |
LIBATTACH_EXCLUDE_FILES+=SolarisVirtualMachine.c |
|
1008 |
endif |
|
1009 |
ifneq ($(OPENJDK_TARGET_OS),linux) |
|
1010 |
LIBATTACH_EXCLUDE_FILES+=LinuxVirtualMachine.c |
|
1011 |
endif |
|
1012 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
|
1013 |
LIBATTACH_EXCLUDE_FILES+=BsdVirtualMachine.c |
|
1014 |
endif |
|
1015 |
||
1016 |
$(eval $(call SetupNativeCompilation,BUILD_LIBATTACH,\ |
|
1017 |
LIBRARY:=attach, \ |
|
1018 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1019 |
SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/tools/attach,\ |
13164 | 1020 |
EXCLUDE_FILES:=$(LIBATTACH_EXCLUDE_FILES),\ |
1021 |
LANG:=C,\ |
|
1022 |
OPTIMIZATION:=LOW, \ |
|
1023 |
CFLAGS:=$(CFLAGS_JDKLIB),\ |
|
1024 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libattach/mapfile-$(OPENJDK_TARGET_OS), \ |
|
13702 | 1025 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1026 |
RC_FLAGS:=$(RC_FLAGS) \ |
|
14231 | 1027 |
-D "JDK_FNAME=attach.dll" \ |
1028 |
-D "JDK_INTERNAL_NAME=attach" \ |
|
1029 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1030 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
1031 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1032 |
LDFLAGS_solaris:=-ldoor,\ |
|
1033 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
|
14231 | 1034 |
LDFLAGS_SUFFIX_windows:=$(WIN_JAVA_LIB) advapi32.lib psapi.lib,\ |
13164 | 1035 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libattach,\ |
1036 |
DEBUG_SYMBOLS:=true)) |
|
1037 |
||
1038 |
$(BUILD_LIBATTACH) : $(BUILD_LIBJAVA) |
|
1039 |
||
1040 |
BUILD_LIBRARIES += $(BUILD_LIBATTACH) |
|
1041 |
||
1042 |
########################################################################################## |
|
1043 |
||
1044 |
$(eval $(call SetupNativeCompilation,BUILD_LIBDT_SOCKET,\ |
|
1045 |
LIBRARY:=dt_socket,\ |
|
1046 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1047 |
SRC:=$(JDK_TOPDIR)/src/share/transport/socket \ |
|
13702 | 1048 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/transport/socket,\ |
13164 | 1049 |
LANG:=C,\ |
1050 |
OPTIMIZATION:=LOW, \ |
|
1051 |
CFLAGS:=$(CFLAGS_JDKLIB) -DUSE_MMAP \ |
|
1052 |
-I$(INCLUDEDIR) -I$(JDK_OUTPUTDIR)/include/$(OPENJDK_TARGET_OS) \ |
|
1053 |
-I$(JDK_TOPDIR)/src/share/transport/socket \ |
|
13702 | 1054 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/transport/socket \ |
13164 | 1055 |
-I$(JDK_TOPDIR)/src/share/back/export \ |
1056 |
-I$(JDK_TOPDIR)/src/share/back,\ |
|
1057 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libdt_socket/mapfile-vers, \ |
|
13702 | 1058 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
1059 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
1060 |
LDFLAGS_SUFFIX_linux:=-lpthread,\ |
|
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
1061 |
LDFLAGS_SUFFIX_solaris:=-lnsl -lsocket -lc,\ |
13702 | 1062 |
LDFLAGS_SUFFIX_windows:=$(LDFLAGS_JDKLIB_SUFFIX) -export:jdwpTransport_OnLoad ws2_32.lib,\ |
1063 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
|
1064 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1065 |
-D "JDK_FNAME=dt_socket.dll" \ |
1066 |
-D "JDK_INTERNAL_NAME=dt_socket" \ |
|
1067 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1068 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libdt_socket,\ |
1069 |
DEBUG_SYMBOLS:=true)) |
|
1070 |
||
1071 |
$(BUILD_LIBDT_SOCKET) : $(BUILD_LIBJAVA) |
|
1072 |
||
1073 |
BUILD_LIBRARIES += $(BUILD_LIBDT_SOCKET) |
|
1074 |
||
1075 |
########################################################################################## |
|
1076 |
||
13702 | 1077 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
13164 | 1078 |
|
1079 |
$(eval $(call SetupNativeCompilation,BUILD_LIBDT_SHMEM,\ |
|
1080 |
LIBRARY:=dt_shmem,\ |
|
1081 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1082 |
SRC:=$(JDK_TOPDIR)/src/share/native/com/sun/tools/jdi \ |
|
1083 |
$(JDK_TOPDIR)/src/share/transport/shmem \ |
|
13702 | 1084 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/transport/shmem,\ |
13164 | 1085 |
LANG:=C,\ |
1086 |
OPTIMIZATION:=LOW, \ |
|
1087 |
CFLAGS:=$(CFLAGS_JDKLIB) -DUSE_MMAP\ |
|
1088 |
-I$(INCLUDEDIR) -I$(JDK_OUTPUTDIR)/include/$(OPENJDK_TARGET_OS) \ |
|
1089 |
-I$(JDK_TOPDIR)/src/share/transport/shmem \ |
|
13702 | 1090 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/transport/shmem \ |
13164 | 1091 |
-I$(JDK_TOPDIR)/src/share/back/export, \ |
1092 |
LDFLAGS:=$(LDFLAGS_JDKLIB),\ |
|
13702 | 1093 |
LDFLAGS_windows:=-export:jdwpTransport_OnLoad,\ |
13164 | 1094 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
13702 | 1095 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1096 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1097 |
-D "JDK_FNAME=dt_shmem.dll" \ |
1098 |
-D "JDK_INTERNAL_NAME=dt_shmem" \ |
|
1099 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1100 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libdt_shmem,\ |
1101 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1102 |
|
1103 |
BUILD_LIBRARIES += $(BUILD_LIBDT_SHMEM) |
|
1104 |
||
1105 |
endif # OPENJDK_TARGET_OS |
|
1106 |
||
1107 |
########################################################################################## |
|
13702 | 1108 |
# JDWP_LOGGING causes log messages to be compiled into the library. |
13164 | 1109 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJDWP,\ |
1110 |
LIBRARY:=jdwp, \ |
|
1111 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1112 |
SRC:=$(JDK_TOPDIR)/src/share/back $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/back,\ |
13164 | 1113 |
LANG:=C,\ |
1114 |
OPTIMIZATION:=LOW, \ |
|
1115 |
CFLAGS:=$(CFLAGS_JDKLIB) -DJDWP_LOGGING\ |
|
1116 |
-I$(JDK_TOPDIR)/src/share/transport/export \ |
|
1117 |
-I$(JDK_TOPDIR)/src/share/back/export \ |
|
1118 |
-I$(JDK_TOPDIR)/src/share/npt \ |
|
13702 | 1119 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt \ |
13164 | 1120 |
-I$(JDK_TOPDIR)/src/share/back \ |
13702 | 1121 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/back \ |
13164 | 1122 |
-I$(JDK_OUTPUTDIR)/gensrc_jdwp_headers,\ |
1123 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjdwp/mapfile-vers, \ |
|
13702 | 1124 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
1125 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1126 |
LDFLAGS_SUFFIX_linux:=$(LIBDL),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1127 |
LDFLAGS_SUFFIX_solaris:=$(LIBDL) -lc,\ |
13164 | 1128 |
LDFLAGS_SUFFIX_windows:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
13702 | 1129 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1130 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1131 |
-D "JDK_FNAME=jdwp.dll" \ |
1132 |
-D "JDK_INTERNAL_NAME=jdwp" \ |
|
1133 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1134 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjdwp,\ |
1135 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1136 |
|
1137 |
$(BUILD_LIBJDWP) : $(BUILD_LIBJAVA) |
|
1138 |
||
1139 |
BUILD_LIBRARIES += $(BUILD_LIBJDWP) |
|
1140 |
||
1141 |
########################################################################################## |
|
1142 |
||
1143 |
LIBJAAS_MAPFILE:= |
|
1144 |
ifneq ($(OPENJDK_TARGET_OS),solaris) |
|
1145 |
LIBJAAS_EXCLUDE_FILES:=Solaris.c |
|
1146 |
else |
|
1147 |
# only on solaris...wonder why |
|
1148 |
LIBJAAS_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjaas/mapfile-vers |
|
1149 |
endif |
|
1150 |
||
1151 |
LIBJAAS_NAME:=jaas_unix |
|
1152 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
1153 |
LIBJAAS_NAME:=jaas_nt |
|
1154 |
endif |
|
1155 |
||
1156 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAAS,\ |
|
1157 |
LIBRARY:=$(LIBJAAS_NAME),\ |
|
1158 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1159 |
SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/com/sun/security/auth/module,\ |
13164 | 1160 |
LANG:=C,\ |
1161 |
OPTIMIZATION:=LOW, \ |
|
1162 |
CFLAGS:=$(CFLAGS_JDKLIB),\ |
|
1163 |
MAPFILE:=$(LIBJAAS_MAPFILE),\ |
|
1164 |
LDFLAGS:=$(filter-out -ljava,$(LDFLAGS_JDKLIB)) \ |
|
1165 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 1166 |
LDFLAGS_windows:=netapi32.lib user32.lib mpr.lib advapi32.lib,\ |
13164 | 1167 |
LDFLAGS_SUFFIX_windows:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1168 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13164 | 1169 |
EXCLUDE_FILES:=$(LIBJAAS_EXCLUDE_FILES),\ |
13702 | 1170 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1171 |
RC_FLAGS:=$(RC_FLAGS) \ |
|
14231 | 1172 |
-D "JDK_FNAME=$(LIBJAAS_NAME).dll" \ |
1173 |
-D "JDK_INTERNAL_NAME=$(LIBJAAS_NAME)" \ |
|
1174 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1175 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjaas,\ |
1176 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1177 |
|
1178 |
$(BUILD_LIBJAAS) : $(BUILD_LIBJAVA) |
|
1179 |
||
1180 |
BUILD_LIBRARIES += $(BUILD_LIBJAAS) |
|
1181 |
||
1182 |
########################################################################################## |
|
1183 |
||
1184 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJSDT,\ |
|
1185 |
LIBRARY:=jsdt,\ |
|
1186 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1187 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/tracing/dtrace\ |
|
13702 | 1188 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/tracing/dtrace,\ |
13164 | 1189 |
LANG:=C,\ |
1190 |
OPTIMIZATION:=LOW, \ |
|
1191 |
CFLAGS:=$(CFLAGS_JDKLIB)\ |
|
1192 |
-I$(JDK_TOPDIR)/src/share/native/sun/tracing/dtrace,\ |
|
1193 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjsdt/mapfile-vers, \ |
|
1194 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1195 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 1196 |
LDFLAGS_SUFFIX_linux:=$(LIBDL),\ |
1197 |
LDFLAGS_SUFFIX_windows:=$(LDFLAGS_JDKLIB_SUFFIX) $(LIBDL),\ |
|
13164 | 1198 |
LDFLAGS_SUFFIX_macosx:= $(LIBDL),\ |
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1199 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13702 | 1200 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1201 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1202 |
-D "JDK_FNAME=jsdt.dll" \ |
1203 |
-D "JDK_INTERNAL_NAME=jsdt" \ |
|
1204 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1205 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsdt, \ |
13702 | 1206 |
DEBUG_SYMBOLS:=true)) |
13164 | 1207 |
|
1208 |
$(BUILD_LIBJSDT) : $(BUILD_LIBJAVA) |
|
1209 |
||
1210 |
BUILD_LIBRARIES += $(BUILD_LIBJSDT) |
|
1211 |
||
1212 |
########################################################################################## |
|
1213 |
||
1214 |
ifdef OPENJDK |
|
1215 |
# TODO: Update awt lib path when awt is converted |
|
1216 |
$(eval $(call SetupNativeCompilation,BUILD_LIBLCMS,\ |
|
1217 |
LIBRARY:=lcms,\ |
|
1218 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
1219 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/java2d/cmm/lcms,\ |
13164 | 1220 |
LANG:=C,\ |
1221 |
OPTIMIZATION:=LOW, \ |
|
1222 |
CFLAGS:=$(filter-out -xc99=%none,$(CFLAGS_JDKLIB)) \ |
|
1223 |
$(SHARED_LIBRARY_FLAGS) \ |
|
1224 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
1225 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug,\ |
|
1226 |
CFLAGS_solaris:=-xc99=no_lib,\ |
|
13702 | 1227 |
CFLAGS_windows:=-DCMS_IS_WINDOWS_,\ |
13164 | 1228 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/liblcms/mapfile-vers, \ |
13702 | 1229 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
1230 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
1231 |
LDFLAGS_solaris:=/usr/lib$(OPENJDK_TARGET_CPU_ISADIR)/libm.so.2,\ |
|
1232 |
LDFLAGS_windows:=$(WIN_AWT_LIB) $(WIN_JAVA_LIB),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1233 |
LDFLAGS_SUFFIX_solaris:=-lawt -ljava -ljvm -lc,\ |
13702 | 1234 |
LDFLAGS_SUFFIX_macosx:=$(LIBM) -lawt -ljava -ljvm,\ |
1235 |
LDFLAGS_SUFFIX_linux:=-lm -lawt -ljava -ljvm,\ |
|
1236 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
|
1237 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1238 |
-D "JDK_FNAME=lcms.dll" \ |
1239 |
-D "JDK_INTERNAL_NAME=lcms" \ |
|
1240 |
-D "JDK_FTYPE=0x2L",\ |
|
1241 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/liblcms,\ |
|
1242 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1243 |
|
1244 |
BUILD_LIBRARIES += $(BUILD_LIBLCMS) |
|
1245 |
||
1246 |
$(BUILD_LIBLCMS) : $(BUILD_LIBAWT) |
|
1247 |
endif |
|
1248 |
||
1249 |
########################################################################################## |
|
1250 |
||
1251 |
ifdef OPENJDK |
|
1252 |
BUILD_LIBJPEG_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjpeg/mapfile-vers |
|
1253 |
else |
|
1254 |
BUILD_LIBJPEG_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjpeg/mapfile-vers-closed |
|
1255 |
BUILD_LIBJPEG_CLOSED_SRC:=$(JDK_TOPDIR)/src/closed/share/native/sun/awt/image/jpeg |
|
1256 |
BUILD_LIBJPEG_CLOSED_INCLUDES:=-I$(BUILD_LIBJPEG_CLOSED_SRC) |
|
1257 |
endif |
|
1258 |
||
1259 |
BUILD_LIBJPEG_REORDER:= |
|
1260 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 1261 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
1262 |
BUILD_LIBJPEG_REORDER:=$(JDK_TOPDIR)/makefiles/mapfiles/libjpeg/reorder-$(OPENJDK_TARGET_CPU) |
|
13164 | 1263 |
endif |
1264 |
endif |
|
1265 |
||
1266 |
# Suppress gcc warnings like "variable might be clobbered by 'longjmp' |
|
1267 |
# or 'vfork'": this warning indicates that some variable is placed to |
|
1268 |
# a register by optimized compiler and it's value might be lost on longjmp(). |
|
1269 |
# Recommended way to avoid such warning is to declare the variable as |
|
1270 |
# volatile to prevent the optimization. However, this approach does not |
|
1271 |
# work because we have to declare all variables as volatile in result. |
|
1272 |
#ifndef CROSS_COMPILE_ARCH |
|
1273 |
# CC_43_OR_NEWER:=\ |
|
1274 |
# $(shell $(EXPR) $(CC_MAJORVER) \> 4 \| \ |
|
1275 |
# \( $(CC_MAJORVER) = 4 \& $(CC_MINORVER) \>= 3 \) ) |
|
1276 |
# ifeq ($(CC_43_OR_NEWER),1) |
|
1277 |
# BUILD_LIBJPEG_CFLAGS_linux += -Wno-clobbered |
|
1278 |
# endif |
|
1279 |
#endif |
|
1280 |
||
1281 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJPEG,\ |
|
1282 |
LIBRARY:=jpeg, \ |
|
1283 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1284 |
SRC:=$(BUILD_LIBJPEG_CLOSED_SRC) \ |
|
1285 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg,\ |
|
1286 |
LANG:=C,\ |
|
1287 |
OPTIMIZATION:=HIGHEST, \ |
|
1288 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1289 |
$(BUILD_LIBJPEG_CLOSED_INCLUDES) \ |
|
1290 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg,\ |
|
1291 |
MAPFILE:=$(BUILD_LIBJPEG_MAPFILE), \ |
|
1292 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1293 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 1294 |
LDFLAGS_windows:=$(WIN_JAVA_LIB) jvm.lib,\ |
13164 | 1295 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
13702 | 1296 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1297 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1298 |
-D "JDK_FNAME=jpeg.dll" \ |
1299 |
-D "JDK_INTERNAL_NAME=jpeg" \ |
|
1300 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1301 |
REORDER:=$(BUILD_LIBJPEG_REORDER),\ |
13702 | 1302 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjpeg,\ |
1303 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1304 |
|
1305 |
$(BUILD_LIBJPEG) : $(BUILD_LIBJAVA) |
|
1306 |
||
1307 |
BUILD_LIBRARIES += $(BUILD_LIBJPEG) |
|
1308 |
||
1309 |
########################################################################################## |
|
1310 |
||
1311 |
ifndef OPENJDK |
|
14231 | 1312 |
FONT_HEADERS:=-I$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k |
13164 | 1313 |
BUILD_LIBFONTMANAGER_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libfontmanager/mapfile-vers |
1314 |
LIBFONTMANAGER_EXCLUDE_FILES += freetypeScaler.c |
|
1315 |
else |
|
1316 |
FONT_HEADERS:=$(FREETYPE2_CFLAGS) |
|
1317 |
BUILD_LIBFONTMANAGER_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libfontmanager/mapfile-vers.openjdk |
|
1318 |
BUILD_LIBFONTMANAGER_FONTLIB:=$(FREETYPE2_LIBS) |
|
1319 |
endif |
|
1320 |
||
1321 |
LIBFONTMANAGER_OPTIMIZATION:=HIGH |
|
1322 |
||
1323 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
|
1324 |
LIBFONTMANAGER_EXCLUDE_FILES += X11FontScaler.c \ |
|
1325 |
X11TextRenderer.c |
|
1326 |
LIBFONTMANAGER_OPTIMIZATION:=LOW |
|
1327 |
else |
|
1328 |
LIBFONTMANAGER_EXCLUDE_FILES += fontpath.c \ |
|
1329 |
lcdglyph.c |
|
1330 |
endif |
|
1331 |
||
1332 |
BUILD_LIBFONTMANAGER_CFLAGS_COMMON:=\ |
|
1333 |
$(X_CFLAGS) \ |
|
1334 |
-DLE_STANDALONE -DHEADLESS \ |
|
1335 |
$(FONT_HEADERS) \ |
|
1336 |
-I$(JDK_TOPDIR)/src/share/native/sun/font \ |
|
1337 |
-I$(JDK_TOPDIR)/src/share/native/sun/font/layout \ |
|
1338 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
13702 | 1339 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt \ |
13164 | 1340 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
1341 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
|
1342 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
13702 | 1343 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \ |
13164 | 1344 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d |
1345 |
||
1346 |
# Turn off aliasing with GCC for ExtensionSubtables.cpp |
|
1347 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
1348 |
BUILD_LIBFONTMANAGER_ExtensionSubtables.cpp_CXXFLAGS:=-fno-strict-aliasing |
|
1349 |
endif |
|
1350 |
||
1351 |
$(eval $(call SetupNativeCompilation,BUILD_LIBFONTMANAGER,\ |
|
1352 |
LIBRARY:=fontmanager, \ |
|
1353 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1354 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/font\ |
|
13702 | 1355 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/font,\ |
13164 | 1356 |
EXCLUDE_FILES:=$(LIBFONTMANAGER_EXCLUDE_FILES) \ |
1357 |
AccelGlyphCache.c,\ |
|
1358 |
LANG:=C++,\ |
|
1359 |
CFLAGS:=$(CFLAGS_JDKLIB) $(BUILD_LIBFONTMANAGER_CFLAGS_COMMON),\ |
|
1360 |
CXXFLAGS:=$(CXXFLAGS_JDKLIB) $(BUILD_LIBFONTMANAGER_CFLAGS_COMMON),\ |
|
1361 |
OPTIMIZATION:=$(LIBFONTMANAGER_OPTIMIZATION), \ |
|
13702 | 1362 |
CFLAGS_windows= -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/windows \ |
13164 | 1363 |
-DCC_NOEX, \ |
1364 |
MAPFILE:=$(BUILD_LIBFONTMANAGER_MAPFILE), \ |
|
13702 | 1365 |
LDFLAGS:=$(subst -Xlinker -z -Xlinker defs,,$(LDFLAGS_JDKLIB)) $(LDFLAGS_CXX_JDK) \ |
13164 | 1366 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
13702 | 1367 |
LDFLAGS_SUFFIX:=$(BUILD_LIBFONTMANAGER_FONTLIB),\ |
1368 |
LDFLAGS_SUFFIX_linux:=-lawt $(LIBM) $(LIBCXX) -ljava -ljvm -lc,\ |
|
1369 |
LDFLAGS_SUFFIX_solaris:=-lawt -lawt_xawt -lc $(LIBM) $(LIBCXX) -ljava -ljvm,\ |
|
14231 | 1370 |
LDFLAGS_SUFFIX_macosx:=-lawt $(LIBM) $(LIBCXX) -undefined dynamic_lookup \ |
1371 |
-ljava -ljvm,\ |
|
1372 |
LDFLAGS_SUFFIX_windows:=$(WIN_JAVA_LIB) advapi32.lib user32.lib gdi32.lib \ |
|
1373 |
$(WIN_AWT_LIB),\ |
|
13702 | 1374 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1375 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1376 |
-D "JDK_FNAME=fontmanager.dll" \ |
1377 |
-D "JDK_INTERNAL_NAME=fontmanager" \ |
|
1378 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1379 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libfontmanager,\ |
1380 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1381 |
|
1382 |
$(BUILD_LIBFONTMANAGER) : $(BUILD_LIBAWT) |
|
1383 |
||
1384 |
ifneq (,$(findstring $(OPENJDK_TARGET_OS),solaris macosx)) |
|
1385 |
$(BUILD_LIBFONTMANAGER) : $(BUILD_LIBAWT_XAWT) |
|
1386 |
endif |
|
1387 |
||
1388 |
BUILD_LIBRARIES += $(BUILD_LIBFONTMANAGER) |
|
1389 |
||
1390 |
########################################################################################## |
|
1391 |
||
1392 |
ifndef OPENJDK |
|
1393 |
||
1394 |
# ifeq ($(OPENJDK_TARGET_OS), linux) |
|
1395 |
# ifeq ("$(CC_VER_MAJOR)", "3") |
|
1396 |
# OTHER_LDLIBS += -Wl,-Bstatic -lgcc_eh -Wl,-Bdynamic |
|
1397 |
# endif |
|
1398 |
# endif |
|
1399 |
# |
|
1400 |
# The resulting size of the t2k lib file is (at least on linux) dependant on the order of |
|
1401 |
# the input .o files. Because of this the new build will differ in size to the old build. |
|
1402 |
BUILD_LIBT2K_CFLAGS_COMMON:=-I$(JDK_TOPDIR)/src/share/native/sun/font \ |
|
1403 |
-I$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k \ |
|
1404 |
-I$(JDK_TOPDIR)/src/closed/share/native/sun/font \ |
|
1405 |
-I$(JDK_TOPDIR)/src/share/share/native/sun/font \ |
|
13702 | 1406 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/font \ |
13164 | 1407 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
1408 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
13702 | 1409 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \ |
13164 | 1410 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d |
1411 |
||
1412 |
$(eval $(call SetupNativeCompilation,BUILD_LIBT2K,\ |
|
1413 |
LIBRARY:=t2k, \ |
|
1414 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1415 |
SRC:=$(JDK_TOPDIR)/src/closed/share/native/sun/font \ |
|
1416 |
$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k \ |
|
1417 |
$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k/ttHints,\ |
|
1418 |
EXCLUDE_FILES:=orion.c,\ |
|
1419 |
LANG:=C++,\ |
|
1420 |
OPTIMIZATION:=HIGH, \ |
|
1421 |
CFLAGS:=$(CFLAGS_JDKLIB) $(BUILD_LIBT2K_CFLAGS_COMMON),\ |
|
1422 |
CXXFLAGS:=$(CXXFLAGS_JDKLIB) $(BUILD_LIBT2K_CFLAGS_COMMON),\ |
|
1423 |
CFLAGS_windows=-DCC_NOEX, \ |
|
1424 |
CXXFLAGS_windows=-DCC_NOEX, \ |
|
1425 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libt2k/mapfile-vers, \ |
|
13702 | 1426 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \ |
13164 | 1427 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
1428 |
LDFLAGS_windows:=user32.lib $(JDK_OUTPUTDIR)/objs/libfontmanager/fontmanager.lib,\ |
|
13702 | 1429 |
LDFLAGS_SUFFIX_posix:=$(LIBM) $(LIBCXX) -lfontmanager -ljava -ljvm -lc,\ |
1430 |
LDFLAGS_SUFFIX_solaris:=-lawt -lawt_xawt,\ |
|
1431 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
|
1432 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1433 |
-D "JDK_FNAME=t2k.dll" \ |
1434 |
-D "JDK_INTERNAL_NAME=t2k" \ |
|
1435 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1436 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libt2k,\ |
1437 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1438 |
|
1439 |
# t2k is linked against fontmanager |
|
1440 |
$(BUILD_LIBT2K) : $(BUILD_LIBFONTMANAGER) |
|
1441 |
||
1442 |
BUILD_LIBRARIES += $(BUILD_LIBT2K) |
|
1443 |
endif |
|
1444 |
||
1445 |
########################################################################################## |
|
1446 |
||
1447 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
13702 | 1448 |
ifeq ($(OPENJDK_TARGET_CPU), x86) |
13164 | 1449 |
KERNEL32_LIB:=kernel32.lib |
1450 |
endif |
|
1451 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAWT,\ |
|
1452 |
LIBRARY:=jawt, \ |
|
1453 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1454 |
SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/windows,\ |
13164 | 1455 |
INCLUDE_FILES:=jawt.cpp,\ |
1456 |
LANG:=C++,\ |
|
1457 |
OPTIMIZATION:=LOW, \ |
|
1458 |
CFLAGS:=$(CXXFLAGS_JDKLIB) \ |
|
1459 |
-EHsc -DUNICODE -D_UNICODE \ |
|
13702 | 1460 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/windows \ |
13164 | 1461 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
1462 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
1463 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
13702 | 1464 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/windows, \ |
1465 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(KERNEL32_LIB) $(LDFLAGS_CXX_JDK) \ |
|
13164 | 1466 |
advapi32.lib $(WIN_AWT_LIB),\ |
1467 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
|
13702 | 1468 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1469 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1470 |
-D "JDK_FNAME=jawt.dll" \ |
1471 |
-D "JDK_INTERNAL_NAME=jawt" \ |
|
1472 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1473 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjawt,\ |
1474 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1475 |
|
1476 |
$(BUILD_LIBJAWT) : $(BUILD_LIBAWT) |
|
1477 |
||
1478 |
$(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX): $(BUILD_LIBJAWT) |
|
1479 |
$(ECHO) Copying $(@F) |
|
13702 | 1480 |
$(CP) $(JDK_OUTPUTDIR)/objs/libjawt/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX) $@ |
13164 | 1481 |
|
1482 |
BUILD_LIBRARIES += $(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX) |
|
1483 |
||
1484 |
else # OPENJDK_TARGET_OS not windows |
|
1485 |
||
1486 |
JAWT_LIBS:= |
|
1487 |
ifneq ($(OPENJDK_TARGET_OS), solaris) |
|
1488 |
JAWT_LIBS += -lawt |
|
1489 |
endif |
|
1490 |
||
1491 |
ifndef BUILD_HEADLESS_ONLY |
|
1492 |
JAWT_LIBS += -lawt_xawt |
|
1493 |
else |
|
1494 |
JAWT_LIBS += -lawt_headless |
|
1495 |
HEADLESS_CFLAG += -DHEADLESS |
|
1496 |
endif |
|
1497 |
||
1498 |
JAWT_FILES:=jawt.c |
|
1499 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
1500 |
JAWT_FILES:=jawt.m |
|
1501 |
JAWT_LIBS:=-lawt_lwawt |
|
1502 |
endif |
|
1503 |
||
1504 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAWT,\ |
|
1505 |
LIBRARY:=jawt, \ |
|
1506 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1507 |
SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt \ |
13164 | 1508 |
$(JDK_TOPDIR)/src/macosx/native/sun/awt,\ |
1509 |
INCLUDE_FILES:=$(JAWT_FILES),\ |
|
1510 |
LANG:=C,\ |
|
1511 |
OPTIMIZATION:=LOW, \ |
|
1512 |
CFLAGS:=$(CFLAGS_JDKLIB), \ |
|
1513 |
CFLAGS_linux:=$(HEADLESS_CFLAG),\ |
|
1514 |
CFLAGS_macosx:=-I$(JDK_TOPDIR)/src/solaris/native/sun/awt ,\ |
|
1515 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjawt/mapfile-vers, \ |
|
1516 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1517 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 1518 |
LDFLAGS_solaris:=-L$(OPENWIN_HOME)/sfw/lib$(OPENJDK_TARGET_CPU_ISADIR) -L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR),\ |
1519 |
LDFLAGS_SUFFIX_linux:=$(JAWT_LIBS) $(LDFLAGS_JDKLIB_SUFFIX),\ |
|
1520 |
LDFLAGS_SUFFIX_solaris:=$(JAWT_LIBS) $(LDFLAGS_JDKLIB_SUFFIX) -lXrender,\ |
|
1521 |
LDFLAGS_SUFFIX_macosx:=-Xlinker -rpath -Xlinker @loader_path $(JAWT_LIBS) \ |
|
1522 |
-framework Cocoa $(LDFLAGS_JDKLIB_SUFFIX),\ |
|
13164 | 1523 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjawt)) |
1524 |
||
1525 |
ifndef BUILD_HEADLESS_ONLY |
|
1526 |
$(BUILD_LIBJAWT) : $(BUILD_LIBAWT_XAWT) |
|
1527 |
else |
|
1528 |
$(BUILD_LIBJAWT) : $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)awt_headless$(SHARED_LIBRARY_SUFFIX) |
|
1529 |
endif |
|
1530 |
||
1531 |
ifeq ($(OPENJDK_TARGET_OS),macosx) |
|
1532 |
$(BUILD_LIBJAWT) : $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)awt_lwawt$(SHARED_LIBRARY_SUFFIX) |
|
1533 |
endif |
|
1534 |
||
1535 |
endif # OPENJDK_TARGET_OS |
|
1536 |
||
1537 |
BUILD_LIBRARIES += $(BUILD_LIBJAWT) |
|
1538 |
||
1539 |
########################################################################################## |
|
1540 |
||
13702 | 1541 |
LIBINSTRUMENT_SRC :=$(JDK_TOPDIR)/src/share/instrument \ |
1542 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/io \ |
|
1543 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/instrument |
|
1544 |
||
1545 |
LIBINSTRUMENT_FILES :=\ |
|
13164 | 1546 |
EncodingSupport.c \ |
1547 |
EncodingSupport_md.c \ |
|
1548 |
FileSystemSupport_md.c \ |
|
1549 |
InstrumentationImplNativeMethods.c \ |
|
1550 |
InvocationAdapter.c \ |
|
1551 |
JarFacade.c \ |
|
1552 |
JPLISAgent.c \ |
|
1553 |
JPLISAssert.c \ |
|
1554 |
JavaExceptions.c \ |
|
1555 |
PathCharsValidator.c \ |
|
1556 |
Reentrancy.c \ |
|
1557 |
Utilities.c \ |
|
1558 |
canonicalize_md.c |
|
1559 |
||
13702 | 1560 |
LIBINSTRUMENT_DIR :=$(JDK_OUTPUTDIR)/objs/libinstrument |
1561 |
LIBINSTRUMENT_CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1562 |
-I$(JDK_TOPDIR)/src/share/instrument \ |
|
1563 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/instrument \ |
|
1564 |
-I$(JDK_TOPDIR)/src/share/bin |
|
1565 |
||
1566 |
LIBINSTRUMENT_LDFLAGS:= |
|
1567 |
LIBINSTRUMENT_LDFLAGS_SUFFIX:= |
|
13164 | 1568 |
|
1569 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
13702 | 1570 |
LIBINSTRUMENT_LDFLAGS += $(JDK_OUTPUTDIR)/objs/jli_static.lib $(WIN_JAVA_LIB) \ |
1571 |
-export:Agent_OnAttach advapi32.lib |
|
1572 |
# Statically link the C runtime so that there are not dependencies on modules |
|
1573 |
# not on the search patch when invoked from the Windows system directory |
|
1574 |
# (or elsewhere). |
|
1575 |
LIBINSTRUMENT_CFLAGS := $(filter-out -MD,$(LIBINSTRUMENT_CFLAGS)) |
|
1576 |
# equivalent of strcasecmp is stricmp on Windows |
|
1577 |
LIBINSTRUMENT_CFLAGS += -Dstrcasecmp=stricmp |
|
13164 | 1578 |
endif |
1579 |
||
1580 |
$(eval $(call SetupNativeCompilation,BUILD_LIBINSTRUMENT,\ |
|
1581 |
LIBRARY:=instrument, \ |
|
1582 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1583 |
SRC:=$(LIBINSTRUMENT_SRC),\ |
1584 |
INCLUDE_FILES:=$(LIBINSTRUMENT_FILES),\ |
|
13164 | 1585 |
LANG:=C,\ |
1586 |
OPTIMIZATION:=LOW, \ |
|
13702 | 1587 |
CFLAGS:=$(LIBINSTRUMENT_CFLAGS),\ |
13164 | 1588 |
CFLAGS_debug:=-DJPLIS_LOGGING,\ |
1589 |
CFLAGS_release:=-DNO_JPLIS_LOGGING,\ |
|
1590 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libinstrument/mapfile-vers, \ |
|
13702 | 1591 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
1592 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
|
1593 |
$(LIBINSTRUMENT_LDFLAGS),\ |
|
1594 |
LDFLAGS_linux:=$(call SET_SHARED_LIBRARY_ORIGIN,/jli),\ |
|
1595 |
LDFLAGS_solaris:= $(call SET_SHARED_LIBRARY_ORIGIN,/jli),\ |
|
1596 |
LDFLAGS_macosx:=-Xlinker -all_load $(JDK_OUTPUTDIR)/objs/libjli_static.a \ |
|
1597 |
-framework Cocoa -framework Security -framework ApplicationServices,\ |
|
1598 |
LDFLAGS_SUFFIX:=$(LIBINSTRUMENT_LDFLAGS_SUFFIX),\ |
|
1599 |
LDFLAGS_SUFFIX_macosx:=-liconv $(LIBZ),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1600 |
LDFLAGS_SUFFIX_solaris:=$(LIBZ) -L $(INSTALL_LIBRARIES_HERE)/jli -ljli $(LIBDL) -lc,\ |
13702 | 1601 |
LDFLAGS_SUFFIX_linux:=$(LIBZ) -L $(INSTALL_LIBRARIES_HERE)/jli -ljli $(LIBDL),\ |
1602 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
|
1603 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1604 |
-D "JDK_FNAME=instrument.dll" \ |
1605 |
-D "JDK_INTERNAL_NAME=instrument" \ |
|
1606 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1607 |
OBJECT_DIR:=$(LIBINSTRUMENT_DIR),\ |
13164 | 1608 |
DEBUG_SYMBOLS:=true)) |
1609 |
||
1610 |
ifneq (,$(findstring $(OPENJDK_TARGET_OS), macosx windows)) |
|
1611 |
$(BUILD_LIBINSTRUMENT) : $(JDK_OUTPUTDIR)/objs/$(LIBRARY_PREFIX)jli_static$(STATIC_LIBRARY_SUFFIX) |
|
1612 |
else |
|
1613 |
$(BUILD_LIBINSTRUMENT) : $(INSTALL_LIBRARIES_HERE)/jli/$(LIBRARY_PREFIX)jli$(SHARED_LIBRARY_SUFFIX) |
|
1614 |
endif |
|
1615 |
$(BUILD_LIBINSTRUMENT) : $(BUILD_LIBJAVA) |
|
1616 |
||
1617 |
BUILD_LIBRARIES += $(BUILD_LIBINSTRUMENT) |
|
1618 |
||
1619 |
########################################################################################## |
|
1620 |
||
1621 |
BUILD_LIBMANAGEMENT_SRC:=$(JDK_TOPDIR)/src/share/native/sun/management \ |
|
13702 | 1622 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/management \ |
1623 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/com/sun/management |
|
13164 | 1624 |
|
1625 |
BUILD_LIBMANAGEMENT_EXCLUDES:= |
|
1626 |
||
1627 |
BUILD_LIBMANAGEMENT_CFLAGS:=-I$(JDK_TOPDIR)/src/share/native/sun/management |
|
1628 |
||
1629 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
|
1630 |
BUILD_LIBMANAGEMENT_EXCLUDES += OperatingSystem_md.c |
|
1631 |
else |
|
1632 |
BUILD_LIBMANAGEMENT_EXCLUDES += UnixOperatingSystem_md.c |
|
1633 |
endif |
|
1634 |
||
1635 |
ifneq ($(OPENJDK_TARGET_OS),solaris) |
|
1636 |
BUILD_LIBMANAGEMENT_EXCLUDES += SolarisOperatingSystem.c |
|
1637 |
endif |
|
1638 |
||
1639 |
ifneq ($(OPENJDK_TARGET_OS),linux) |
|
1640 |
BUILD_LIBMANAGEMENT_EXCLUDES += LinuxOperatingSystem.c |
|
1641 |
endif |
|
1642 |
||
1643 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
|
1644 |
BUILD_LIBMANAGEMENT_EXCLUDES += MacosxOperatingSystem.c |
|
1645 |
endif |
|
1646 |
||
13702 | 1647 |
LIBMANAGEMENT_OPTIMIZATION:=HIGH |
1648 |
ifneq ($(findstring $(OPENJDK_TARGET_OS),solaris linux),) |
|
14707
511b222f99b2
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14706
diff
changeset
|
1649 |
ifeq ($(ENABLE_DEBUG_SYMBOLS), true) |
13702 | 1650 |
LIBMANAGEMENT_OPTIMIZATION:=LOW |
1651 |
endif |
|
1652 |
endif |
|
13164 | 1653 |
|
1654 |
$(eval $(call SetupNativeCompilation,BUILD_LIBMANAGEMENT,\ |
|
1655 |
LIBRARY:=management,\ |
|
1656 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1657 |
SRC:=$(BUILD_LIBMANAGEMENT_SRC),\ |
|
1658 |
EXCLUDE_FILES:=$(BUILD_LIBMANAGEMENT_EXCLUDES),\ |
|
1659 |
LANG:=C,\ |
|
13702 | 1660 |
OPTIMIZATION:=$(LIBMANAGEMENT_OPTIMIZATION), \ |
13164 | 1661 |
CFLAGS:=$(CFLAGS_JDKLIB) $(BUILD_LIBMANAGEMENT_CFLAGS),\ |
1662 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libmanagement/mapfile-vers, \ |
|
1663 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1664 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1665 |
LDFLAGS_solaris:=-lkstat,\ |
|
1666 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
|
14231 | 1667 |
LDFLAGS_SUFFIX_windows:=jvm.lib psapi.lib $(WIN_JAVA_LIB) advapi32.lib,\ |
13702 | 1668 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1669 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1670 |
-D "JDK_FNAME=management.dll" \ |
1671 |
-D "JDK_INTERNAL_NAME=management" \ |
|
1672 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1673 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libmanagement,\ |
1674 |
DEBUG_SYMBOLS:=true)) |
|
1675 |
||
1676 |
$(BUILD_LIBMANAGEMENT) : $(BUILD_LIBJAVA) |
|
1677 |
||
1678 |
BUILD_LIBRARIES += $(BUILD_LIBMANAGEMENT) |
|
1679 |
||
1680 |
########################################################################################## |
|
1681 |
||
13702 | 1682 |
BUILD_LIBHPROF_SRC:=$(JDK_TOPDIR)/src/share/demo/jvmti/hprof $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/demo/jvmti/hprof |
13164 | 1683 |
BUILD_LIBHPROF_CFLAGS:=-I$(JDK_TOPDIR)/src/share/demo/jvmti/hprof \ |
1684 |
-I$(JDK_TOPDIR)/src/share/npt \ |
|
13702 | 1685 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt \ |
13164 | 1686 |
-I$(JDK_TOPDIR)/src/share/demo/jvmti/java_crw_demo |
1687 |
||
1688 |
BUILD_LIBHPROF_LDFLAGS:= |
|
1689 |
||
13702 | 1690 |
LIBHPROF_OPTIMIZATION:=HIGHEST |
1691 |
ifneq ($(findstring $(OPENJDK_TARGET_OS),solaris linux),) |
|
14707
511b222f99b2
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14706
diff
changeset
|
1692 |
ifeq ($(ENABLE_DEBUG_SYMBOLS), true) |
13702 | 1693 |
LIBHPROF_OPTIMIZATION:=LOW |
1694 |
endif |
|
1695 |
endif |
|
1696 |
||
13164 | 1697 |
$(eval $(call SetupNativeCompilation,BUILD_LIBHPROF,\ |
1698 |
LIBRARY:=hprof, \ |
|
1699 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1700 |
SRC:=$(BUILD_LIBHPROF_SRC),\ |
|
1701 |
LANG:=C,\ |
|
13702 | 1702 |
OPTIMIZATION:=$(LIBHPROF_OPTIMIZATION), \ |
13164 | 1703 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
1704 |
$(BUILD_LIBHPROF_CFLAGS),\ |
|
1705 |
CFLAGS_debug:=-DHPROF_LOGGING,\ |
|
1706 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libhprof/mapfile-vers, \ |
|
1707 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1708 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1709 |
LDFLAGS_windows:=wsock32.lib winmm.lib advapi32.lib,\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1710 |
LDFLAGS_SUFFIX_linux:=$(LIBDL),\ |
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1711 |
LDFLAGS_SUFFIX_macosx:=$(LIBDL),\ |
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1712 |
LDFLAGS_SUFFIX_solaris:=-lsocket -lnsl $(LIBDL) -lc,\ |
13702 | 1713 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1714 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1715 |
-D "JDK_FNAME=hprof.dll" \ |
1716 |
-D "JDK_INTERNAL_NAME=hprof" \ |
|
1717 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1718 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libhprof_jvmti,\ |
1719 |
DEBUG_SYMBOLS:=true)) |
|
1720 |
||
1721 |
BUILD_LIBRARIES += $(BUILD_LIBHPROF) |
|
1722 |
||
1723 |
########################################################################################## |
|
1724 |
||
1725 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAVA_CRW_DEMO,\ |
|
1726 |
LIBRARY:=java_crw_demo, \ |
|
1727 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1728 |
SRC:=$(JDK_TOPDIR)/src/share/demo/jvmti/java_crw_demo,\ |
|
1729 |
LANG:=C,\ |
|
1730 |
OPTIMIZATION:=LOW, \ |
|
1731 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1732 |
-I$(JDK_TOPDIR)/src/share/demo/jvmti/java_crw_demo,\ |
|
1733 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjava_crw_demo/mapfile-vers, \ |
|
1734 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1735 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1736 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13702 | 1737 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1738 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1739 |
-D "JDK_FNAME=java_crw_demo.dll" \ |
1740 |
-D "JDK_INTERNAL_NAME=java_crw_demo" \ |
|
1741 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1742 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjava_crw_demo,\ |
1743 |
DEBUG_SYMBOLS:=true)) |
|
1744 |
||
1745 |
BUILD_LIBRARIES += $(BUILD_LIBJAVA_CRW_DEMO) |
|
1746 |
||
1747 |
########################################################################################## |
|
1748 |
||
1749 |
$(eval $(call SetupNativeCompilation,BUILD_LIBNPT,\ |
|
1750 |
LIBRARY:=npt, \ |
|
1751 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1752 |
SRC:=$(JDK_TOPDIR)/src/share/npt $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt,\ |
13164 | 1753 |
LANG:=C,\ |
1754 |
OPTIMIZATION:=LOW, \ |
|
1755 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1756 |
-I$(JDK_TOPDIR)/src/share/npt \ |
|
13702 | 1757 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt,\ |
13164 | 1758 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnpt/mapfile-vers, \ |
1759 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1760 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1761 |
LDFLAGS_macosx:=-liconv,\ |
|
1762 |
LDFLAGS_SUFFIX_windows:=-export:nptInitialize -export:nptTerminate,\ |
|
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
1763 |
LDFLAGS_SUFFIX_solaris:=-lc, \ |
13702 | 1764 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1765 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1766 |
-D "JDK_FNAME=npt.dll" \ |
1767 |
-D "JDK_INTERNAL_NAME=npt" \ |
|
1768 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1769 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libnpt,\ |
1770 |
DEBUG_SYMBOLS:=true)) |
|
1771 |
||
1772 |
BUILD_LIBRARIES += $(BUILD_LIBNPT) |
|
1773 |
||
1774 |
########################################################################################## |
|
1775 |
||
1776 |
LIBNET_SRC_DIRS:=$(JDK_TOPDIR)/src/share/native/java/net \ |
|
13702 | 1777 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/net \ |
1778 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/net/dns \ |
|
1779 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/net/spi |
|
13164 | 1780 |
|
14231 | 1781 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
1782 |
LIBNET_SRC_DIRS+=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/net/www/protocol/http/ntlm |
|
1783 |
else |
|
1784 |
LIBNET_SRC_DIRS+=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/net/sdp |
|
1785 |
endif |
|
1786 |
||
13164 | 1787 |
LIBNET_CFLAGS:=$(foreach dir,$(LIBNET_SRC_DIRS),-I$(dir)) |
1788 |
||
1789 |
LIBNET_EXCLUDE_FILES:= |
|
1790 |
ifneq ($(OPENJDK_TARGET_OS),linux) |
|
1791 |
LIBNET_EXCLUDE_FILES += linux_close.c |
|
1792 |
endif |
|
1793 |
||
1794 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
|
1795 |
LIBNET_EXCLUDE_FILES += bsd_close.c |
|
1796 |
endif |
|
1797 |
||
1798 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
|
1799 |
LIBNET_EXCLUDE_FILES += PlainSocketImpl.c PlainDatagramSocketImpl.c SdpSupport.c |
|
1800 |
else |
|
1801 |
LIBNET_EXCLUDE_FILES += TwoStacksPlainSocketImpl.c DualStackPlainSocketImpl.c \ |
|
1802 |
TwoStacksPlainDatagramSocketImpl.c DualStackPlainDatagramSocketImpl.c \ |
|
1803 |
NTLMAuthSequence.c NetworkInterface_winXP.c |
|
1804 |
endif |
|
1805 |
||
1806 |
$(eval $(call SetupNativeCompilation,BUILD_LIBNET,\ |
|
1807 |
LIBRARY:=net,\ |
|
1808 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1809 |
SRC:=$(LIBNET_SRC_DIRS),\ |
|
1810 |
EXCLUDE_FILES:=$(LIBNET_EXCLUDE_FILES), \ |
|
1811 |
LANG:=C,\ |
|
1812 |
OPTIMIZATION:=LOW, \ |
|
1813 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1814 |
$(LIBNET_CFLAGS),\ |
|
1815 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnet/mapfile-vers, \ |
|
1816 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1817 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 1818 |
LDFLAGS_SUFFIX_macosx:=-ljvm -ljava,\ |
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
1819 |
LDFLAGS_SUFFIX_solaris:=-ljvm -ljava -lnsl -lsocket $(LIBDL) -lc ,\ |
13702 | 1820 |
LDFLAGS_SUFFIX_linux:=$(LIBDL) -ljvm -lpthread -ljava,\ |
14231 | 1821 |
LDFLAGS_SUFFIX_windows:=ws2_32.lib jvm.lib secur32.lib iphlpapi.lib \ |
1822 |
delayimp.lib $(WIN_JAVA_LIB) advapi32.lib \ |
|
1823 |
-DELAYLOAD:secur32.dll -DELAYLOAD:iphlpapi.dll, \ |
|
13702 | 1824 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1825 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1826 |
-D "JDK_FNAME=net.dll" \ |
1827 |
-D "JDK_INTERNAL_NAME=net" \ |
|
1828 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1829 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libnet,\ |
1830 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1831 |
|
1832 |
$(BUILD_LIBNET) : $(BUILD_LIBJAVA) |
|
1833 |
||
1834 |
BUILD_LIBRARIES += $(BUILD_LIBNET) |
|
1835 |
||
1836 |
$(JDK_OUTPUTDIR)/lib/net.properties: $(JDK_TOPDIR)/src/share/lib/net.properties |
|
14231 | 1837 |
$(ECHO) $(LOG_INFO) Copying $(@F) |
13164 | 1838 |
$(MKDIR) -p $(@D) |
1839 |
$(CP) $< $@ |
|
1840 |
||
1841 |
COPY_FILES += $(JDK_OUTPUTDIR)/lib/net.properties |
|
1842 |
||
1843 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 1844 |
$(JDK_OUTPUTDIR)/lib/sdp/sdp.conf.template : $(JDK_TOPDIR)/src/${OPENJDK_TARGET_OS_API_DIR}/lib/sdp/sdp.conf.template |
14231 | 1845 |
$(ECHO) $(LOG_INFO) Copying $(@F) |
13164 | 1846 |
$(MKDIR) -p $(@D) |
1847 |
$(CP) $< $@ |
|
1848 |
||
1849 |
COPY_FILES += $(JDK_OUTPUTDIR)/lib/sdp/sdp.conf.template |
|
1850 |
endif |
|
1851 |
||
1852 |
########################################################################################## |
|
1853 |
||
1854 |
BUILD_LIBNIO_SRC:=\ |
|
13702 | 1855 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/nio \ |
1856 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch \ |
|
1857 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/fs |
|
13164 | 1858 |
|
1859 |
BUILD_LIBNIO_CFLAGS:=\ |
|
1860 |
-I$(JDK_TOPDIR)/src/share/native/sun/nio/ch \ |
|
1861 |
-I$(JDK_TOPDIR)/src/share/native/java/io \ |
|
1862 |
-I$(JDK_TOPDIR)/src/share/native/java/net \ |
|
13702 | 1863 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/net |
13164 | 1864 |
|
1865 |
BUILD_LIBNIO_FILES:=\ |
|
1866 |
DatagramChannelImpl.c \ |
|
1867 |
DatagramDispatcher.c \ |
|
1868 |
FileChannelImpl.c \ |
|
1869 |
FileDispatcherImpl.c \ |
|
1870 |
FileKey.c \ |
|
1871 |
IOUtil.c \ |
|
1872 |
MappedByteBuffer.c \ |
|
1873 |
Net.c \ |
|
1874 |
ServerSocketChannelImpl.c \ |
|
1875 |
SocketChannelImpl.c \ |
|
1876 |
SocketDispatcher.c |
|
1877 |
||
1878 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
1879 |
BUILD_LIBNIO_FILES += \ |
|
1880 |
Iocp.c \ |
|
1881 |
RegistryFileTypeDetector.c \ |
|
1882 |
WindowsAsynchronousFileChannelImpl.c \ |
|
1883 |
WindowsAsynchronousServerSocketChannelImpl.c \ |
|
1884 |
WindowsAsynchronousSocketChannelImpl.c \ |
|
1885 |
WindowsNativeDispatcher.c \ |
|
1886 |
WindowsSelectorImpl.c |
|
1887 |
endif |
|
1888 |
||
1889 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
13702 | 1890 |
BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS) |
13164 | 1891 |
BUILD_LIBNIO_FILES += \ |
1892 |
EPoll.c \ |
|
1893 |
EPollArrayWrapper.c \ |
|
1894 |
EPollPort.c \ |
|
1895 |
InheritedChannel.c \ |
|
1896 |
NativeThread.c \ |
|
13702 | 1897 |
PollArrayWrapper.c \ |
13164 | 1898 |
UnixAsynchronousServerSocketChannelImpl.c \ |
1899 |
UnixAsynchronousSocketChannelImpl.c \ |
|
1900 |
GnomeFileTypeDetector.c \ |
|
14702
111342b28e67
7142921: (fs) Files.probeContentType reports a MIME type of "text/plain" on Ubuntu 11.04
dxu
parents:
14526
diff
changeset
|
1901 |
MagicFileTypeDetector.c \ |
13164 | 1902 |
LinuxNativeDispatcher.c \ |
1903 |
LinuxWatchService.c \ |
|
1904 |
UnixCopyFile.c \ |
|
1905 |
UnixNativeDispatcher.c |
|
1906 |
endif |
|
1907 |
||
1908 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
13702 | 1909 |
BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS) |
13164 | 1910 |
BUILD_LIBNIO_SRC += $(JDK_TOPDIR)/src/macosx/native/sun/nio/ch |
1911 |
BUILD_LIBNIO_FILES += \ |
|
1912 |
InheritedChannel.c \ |
|
1913 |
NativeThread.c \ |
|
1914 |
PollArrayWrapper.c \ |
|
1915 |
UnixAsynchronousServerSocketChannelImpl.c \ |
|
1916 |
UnixAsynchronousSocketChannelImpl.c \ |
|
1917 |
BsdNativeDispatcher.c \ |
|
13702 | 1918 |
MacOSXNativeDispatcher.c \ |
13164 | 1919 |
UnixCopyFile.c \ |
1920 |
UnixNativeDispatcher.c \ |
|
1921 |
KQueue.c \ |
|
1922 |
KQueuePort.c \ |
|
1923 |
KQueueArrayWrapper.c |
|
1924 |
endif |
|
1925 |
||
1926 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 1927 |
BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS) |
13164 | 1928 |
BUILD_LIBNIO_FILES += \ |
1929 |
DevPollArrayWrapper.c \ |
|
1930 |
InheritedChannel.c \ |
|
1931 |
NativeThread.c \ |
|
1932 |
PollArrayWrapper.c \ |
|
1933 |
SolarisEventPort.c \ |
|
1934 |
UnixAsynchronousServerSocketChannelImpl.c \ |
|
1935 |
UnixAsynchronousSocketChannelImpl.c \ |
|
1936 |
GnomeFileTypeDetector.c \ |
|
1937 |
SolarisNativeDispatcher.c \ |
|
1938 |
SolarisWatchService.c \ |
|
1939 |
UnixCopyFile.c \ |
|
1940 |
UnixNativeDispatcher.c |
|
1941 |
endif |
|
1942 |
||
1943 |
$(eval $(call SetupNativeCompilation,BUILD_LIBNIO,\ |
|
1944 |
LIBRARY:=nio,\ |
|
1945 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1946 |
SRC:=$(BUILD_LIBNIO_SRC),\ |
|
1947 |
INCLUDE_FILES:=$(BUILD_LIBNIO_FILES), \ |
|
1948 |
LANG:=C,\ |
|
1949 |
OPTIMIZATION:=HIGH, \ |
|
1950 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1951 |
$(BUILD_LIBNIO_CFLAGS),\ |
|
1952 |
MAPFILE:=$(BUILD_LIBNIO_MAPFILE), \ |
|
1953 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(BUILD_LIBNIO_LDFLAGS) \ |
|
1954 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1955 |
LDFLAGS_SUFFIX_linux:=-ljava -lnet -lpthread $(LIBDL),\ |
|
13702 | 1956 |
LDFLAGS_SUFFIX_solaris:=-ljvm -lsocket -lposix4 $(LIBDL) \ |
1957 |
-lsendfile -ljava -lnet -lc,\ |
|
14231 | 1958 |
LDFLAGS_SUFFIX_windows:=jvm.lib ws2_32.lib $(WIN_JAVA_LIB) \ |
1959 |
$(JDK_OUTPUTDIR)/objs/libnet/net.lib \ |
|
1960 |
advapi32.lib,\ |
|
13702 | 1961 |
LDFLAGS_SUFFIX_macosx:=-ljava -lnet -pthread -framework CoreFoundation,\ |
13164 | 1962 |
LDFLAGS_SUFFIX:=,\ |
13702 | 1963 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1964 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1965 |
-D "JDK_FNAME=nio.dll" \ |
1966 |
-D "JDK_INTERNAL_NAME=nio" \ |
|
1967 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1968 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libnio,\ |
1969 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1970 |
|
1971 |
BUILD_LIBRARIES += $(BUILD_LIBNIO) |
|
1972 |
||
1973 |
$(BUILD_LIBNIO) : $(BUILD_LIBNET) |
|
1974 |
||
1975 |
########################################################################################## |
|
1976 |
||
1977 |
ifeq ($(OPENJDK_TARGET_OS_API),posix) |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
1978 |
|
13164 | 1979 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
1980 |
||
1981 |
SCTP_WERROR := -Werror |
|
1982 |
ifeq ($(OPENJDK_TARGET_CPU_ARCH), ppc) |
|
1983 |
SCTP_WERROR := |
|
1984 |
endif |
|
1985 |
||
1986 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSCTP,\ |
|
1987 |
LIBRARY:=sctp,\ |
|
1988 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1989 |
SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch/sctp,\ |
13164 | 1990 |
LANG:=C,\ |
1991 |
OPTIMIZATION:=LOW, \ |
|
1992 |
CFLAGS:=$(CFLAGS_JDKLIB)\ |
|
1993 |
-I$(JDK_TOPDIR)/src/share/native/sun/nio/ch \ |
|
1994 |
-I$(JDK_TOPDIR)/src/share/native/sun/nio/ch/sctp \ |
|
1995 |
-I$(JDK_TOPDIR)/src/share/native/java/net \ |
|
13702 | 1996 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch \ |
1997 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/net,\ |
|
13164 | 1998 |
CFLAGS_linux:=$(SCTP_WERROR),\ |
1999 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libsctp/mapfile-vers, \ |
|
2000 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2001 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2002 |
LDFLAGS_SUFFIX_linux:=-lpthread $(LIBDL) -ljava -ljvm,\ |
13164 | 2003 |
LDFLAGS_SUFFIX_posix:=-lnio -lnet,\ |
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
2004 |
LDFLAGS_SUFFIX_solaris:=-lsocket -ljava -ljvm -lc,\ |
13702 | 2005 |
LDFLAGS_SUFFIX_macosx:=-ljava -ljvm,\ |
13164 | 2006 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsctp)) |
2007 |
||
2008 |
BUILD_LIBRARIES += $(BUILD_LIBSCTP) |
|
2009 |
||
2010 |
$(BUILD_LIBSCTP) : $(BUILD_LIBNIO) |
|
2011 |
endif |
|
2012 |
endif |
|
2013 |
||
2014 |
########################################################################################## |
|
2015 |
||
13702 | 2016 |
BUILD_LIBJLI_SRC_DIRS:=$(JDK_TOPDIR)/src/share/bin $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin |
2017 |
LIBJLI_CFLAGS:=$(CFLAGS_JDKLIB) $(foreach dir,$(BUILD_LIBJLI_SRC_DIRS),-I$(dir)) |
|
13164 | 2018 |
|
2019 |
BUILD_LIBJLI_FILES:=\ |
|
2020 |
java.c \ |
|
2021 |
splashscreen_stubs.c \ |
|
2022 |
parse_manifest.c \ |
|
2023 |
version_comp.c \ |
|
2024 |
wildcard.c \ |
|
2025 |
jli_util.c |
|
2026 |
||
2027 |
ifeq ($(JVM_VARIANT_ZERO), true) |
|
2028 |
ERGO_FAMILY:=zero |
|
13702 | 2029 |
else |
2030 |
ifeq ($(OPENJDK_TARGET_CPU_ARCH), x86) |
|
13164 | 2031 |
ERGO_FAMILY:=i586 |
13702 | 2032 |
else |
2033 |
ERGO_FAMILY:=$(OPENJDK_TARGET_CPU_ARCH) |
|
2034 |
endif |
|
2035 |
endif |
|
13164 | 2036 |
|
2037 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
13702 | 2038 |
LIBJLI_CFLAGS += -I$(JDK_TOPDIR)/src/macosx/bin |
13164 | 2039 |
BUILD_LIBJLI_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/bin |
2040 |
BUILD_LIBJLI_FILES += java_md_common.c java_md_macosx.c |
|
2041 |
||
2042 |
BUILD_LIBJLI_java_md_macosx.c_CFLAGS:=-x objective-c |
|
2043 |
BUILD_LIBJLI_STATIC_java_md_macosx.c_CFLAGS:=-x objective-c |
|
2044 |
endif |
|
2045 |
||
2046 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
13702 | 2047 |
BUILD_LIBJLI_FILES += java_md.c \ |
2048 |
cmdtoargs.c |
|
2049 |
# Staticically link with c runtime on windows. |
|
2050 |
LIBJLI_CFLAGS:=$(filter-out -MD,$(LIBJLI_CFLAGS)) |
|
13164 | 2051 |
else ifneq ($(OPENJDK_TARGET_OS), macosx) |
2052 |
||
2053 |
BUILD_LIBJLI_FILES += java_md_common.c |
|
2054 |
BUILD_LIBJLI_FILES += java_md_solinux.c ergo.c |
|
2055 |
||
2056 |
ERGO_ARCH_FILE = ergo_$(ERGO_FAMILY).c |
|
2057 |
||
2058 |
# if the architecture specific ergo file exists then |
|
2059 |
# use it, else use the generic definitions from ergo.c |
|
13702 | 2060 |
ifneq ($(wildcard $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/$(ERGO_ARCH_FILE)),) |
13164 | 2061 |
BUILD_LIBJLI_FILES += $(ERGO_ARCH_FILE) |
2062 |
else # !ERGO_ARCH_FILE |
|
13702 | 2063 |
LIBJLI_CFLAGS += -DUSE_GENERIC_ERGO |
13164 | 2064 |
endif # ERGO_ARCH_FILE |
2065 |
endif #WINDOWS |
|
2066 |
||
13702 | 2067 |
# Append defines depending on target platform |
2068 |
LIBJLI_CFLAGS += $(OPENJDK_TARGET_CPU_JLI_CFLAGS) |
|
13164 | 2069 |
|
2070 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
13702 | 2071 |
LIBJLI_CFLAGS += -DPACKAGE_PATH=\"$(PACKAGE_PATH)\" |
13164 | 2072 |
endif |
2073 |
||
2074 |
ifneq ($(USE_EXTERNAL_LIBZ),true) |
|
2075 |
BUILD_LIBJLI_SRC_DIRS += $(JDK_TOPDIR)/src/share/native/java/util/zip/zlib-1.2.5 |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2076 |
LIBJLI_CFLAGS += $(ZLIB_CPPFLAGS) |
13164 | 2077 |
BUILD_LIBJLI_FILES += \ |
2078 |
inflate.c \ |
|
2079 |
inftrees.c \ |
|
2080 |
inffast.c \ |
|
2081 |
zadler32.c \ |
|
2082 |
zcrc32.c \ |
|
2083 |
zutil.c |
|
2084 |
endif |
|
2085 |
||
2086 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
2087 |
LIBJLI_OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE) |
|
2088 |
else |
|
2089 |
LIBJLI_OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE)/jli |
|
2090 |
endif |
|
2091 |
||
2092 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJLI,\ |
|
2093 |
LIBRARY:=jli,\ |
|
2094 |
OUTPUT_DIR:=$(LIBJLI_OUTPUT_DIR),\ |
|
2095 |
SRC:=$(BUILD_LIBJLI_SRC_DIRS),\ |
|
2096 |
INCLUDE_FILES:=$(BUILD_LIBJLI_FILES),\ |
|
2097 |
LANG:=C,\ |
|
2098 |
OPTIMIZATION:=HIGH, \ |
|
13702 | 2099 |
CFLAGS:=$(LIBJLI_CFLAGS),\ |
13164 | 2100 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjli/mapfile-vers, \ |
2101 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2102 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2103 |
LDFLAGS_linux:=$(call SET_SHARED_LIBRARY_ORIGIN,/..),\ |
2104 |
LDFLAGS_solaris:=$(call SET_SHARED_LIBRARY_ORIGIN,/..),\ |
|
2105 |
LDFLAGS_macosx:=-framework Cocoa -framework Security -framework ApplicationServices,\ |
|
2106 |
LDFLAGS_SUFFIX_solaris:=$(LIBZ) $(LIBDL) -lc,\ |
|
2107 |
LDFLAGS_SUFFIX_linux:=$(LIBZ) $(LIBDL) -lc -lpthread,\ |
|
2108 |
LDFLAGS_SUFFIX_macosx:=$(LIBZ),\ |
|
13164 | 2109 |
LDFLAGS_SUFFIX_windows:=\ |
2110 |
-export:JLI_Launch \ |
|
2111 |
-export:JLI_ManifestIterate \ |
|
2112 |
-export:JLI_SetTraceLauncher \ |
|
2113 |
-export:JLI_ReportErrorMessage \ |
|
2114 |
-export:JLI_ReportErrorMessageSys \ |
|
2115 |
-export:JLI_ReportMessage \ |
|
2116 |
-export:JLI_ReportExceptionDescription \ |
|
13702 | 2117 |
-export:JLI_MemAlloc \ |
2118 |
-export:JLI_CmdToArgs \ |
|
2119 |
-export:JLI_GetStdArgc \ |
|
2120 |
-export:JLI_GetStdArgs \ |
|
13164 | 2121 |
advapi32.lib \ |
2122 |
comctl32.lib \ |
|
2123 |
user32.lib,\ |
|
13702 | 2124 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2125 |
RC_FLAGS:=$(RC_FLAGS) \ |
|
14231 | 2126 |
-D "JDK_FNAME=jli.dll" \ |
2127 |
-D "JDK_INTERNAL_NAME=jli" \ |
|
2128 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2129 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjli,\ |
2130 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2131 |
|
2132 |
BUILD_LIBRARIES += $(BUILD_LIBJLI) |
|
2133 |
||
2134 |
# On windows, the static library has the same suffix as the import library created by |
|
2135 |
# with the shared library, so the static library is given a different name. No harm |
|
2136 |
# in doing it for all platform to reduce complexity. |
|
2137 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
2138 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJLI_STATIC,\ |
|
2139 |
STATIC_LIBRARY:=jli_static,\ |
|
2140 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs,\ |
|
2141 |
SRC:=$(BUILD_LIBJLI_SRC_DIRS),\ |
|
2142 |
INCLUDE_FILES:=$(BUILD_LIBJLI_FILES),\ |
|
2143 |
LANG:=C,\ |
|
2144 |
OPTIMIZATION:=HIGH, \ |
|
13702 | 2145 |
CFLAGS:=$(STATIC_LIBRARY_FLAGS) $(LIBJLI_CFLAGS),\ |
13164 | 2146 |
ARFLAGS:=$(ARFLAGS),\ |
2147 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjli_static)) |
|
2148 |
||
2149 |
BUILD_LIBRARIES += $(BUILD_LIBJLI_STATIC) |
|
2150 |
||
2151 |
else ifeq ($(OPENJDK_TARGET_OS),macosx) |
|
2152 |
# |
|
2153 |
# On macosx they do partial (incremental) linking of libjli_static.a |
|
2154 |
# code it here...rather than add support to NativeCompilation |
|
2155 |
# as this is first time I see it |
|
2156 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJLI_STATIC,\ |
|
2157 |
LIBRARY:=jli_static, \ |
|
2158 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs,\ |
|
2159 |
SRC:=$(BUILD_LIBJLI_SRC_DIRS),\ |
|
2160 |
INCLUDE_FILES:=$(BUILD_LIBJLI_FILES),\ |
|
2161 |
LANG:=C,\ |
|
2162 |
OPTIMIZATION:=HIGH, \ |
|
13702 | 2163 |
CFLAGS:=$(CFLAGS_JDKLIB) $(LIBJLI_CFLAGS),\ |
13164 | 2164 |
LDFLAGS:=-nostdlib -r,\ |
2165 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjli_static)) |
|
2166 |
||
2167 |
$(JDK_OUTPUTDIR)/objs/libjli_static.a : $(BUILD_LIBJLI_STATIC) |
|
2168 |
$(CP) -a $< $@ |
|
2169 |
||
2170 |
BUILD_LIBRARIES += $(JDK_OUTPUTDIR)/objs/libjli_static.a |
|
2171 |
endif |
|
2172 |
||
2173 |
########################################################################################## |
|
2174 |
||
14231 | 2175 |
ifndef OPENJDK |
13164 | 2176 |
ifeq ($(ENABLE_JFR), true) |
2177 |
||
2178 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJFR,\ |
|
2179 |
LIBRARY:=jfr,\ |
|
2180 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
2181 |
SRC:=$(JDK_TOPDIR)/src/closed/share/native/oracle/jfr,\ |
|
2182 |
LANG:=C,\ |
|
2183 |
OPTIMIZATION:=LOW, \ |
|
2184 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
2185 |
-I$(JDK_TOPDIR)/src/closed/share/javavm/export, \ |
|
2186 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjfr/mapfile-vers, \ |
|
2187 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2188 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
15676
291a66e841c2
8008294: build-infra: Build-infra closed fails on solaris 11.1
erikj
parents:
15334
diff
changeset
|
2189 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13702 | 2190 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2191 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2192 |
-D "JDK_FNAME=jfr.dll" \ |
2193 |
-D "JDK_INTERNAL_NAME=jfr" \ |
|
2194 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2195 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjfr,\ |
2196 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2197 |
|
2198 |
BUILD_LIBRARIES += $(BUILD_LIBJFR) |
|
2199 |
||
2200 |
endif |
|
14231 | 2201 |
endif |
13164 | 2202 |
|
2203 |
########################################################################################## |
|
2204 |
||
2205 |
ifndef OPENJDK |
|
2206 |
||
2207 |
BUILD_LIBKCMS_EXCLUDE_FILES:= |
|
2208 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
|
2209 |
BUILD_LIBKCMS_EXCLUDE_FILES += ukcpmgr.c unixmem.c |
|
2210 |
else |
|
2211 |
BUILD_LIBKCMS_EXCLUDE_FILES += cmmdll.c registry.c spxffile.c sysinfo.c winmem.c wkcpmgr.c |
|
2212 |
endif |
|
2213 |
||
2214 |
BUILD_LIBKCMS_FLAGS:=$(CFLAGS_JDKLIB) |
|
2215 |
||
2216 |
ifeq ($(OPENJDK_TARGET_OS),solaris) |
|
2217 |
# This particular library uses a feature called PIC_CODE_SMALL (on solaris) |
|
2218 |
# implement it like this...since it's only used here |
|
2219 |
BUILD_LIBKCMS_FLAGS:=$(patsubst -KPIC,-Kpic,$(BUILD_LIBKCMS_FLAGS)) |
|
2220 |
else ifeq ($(OPENJDK_TARGET_CPU_ARCH), ppc) |
|
2221 |
BUILD_LIBKCMS_FLAGS:=$(patsubst -fPIC,-fpic,$(BUILD_LIBKCMS_FLAGS)) |
|
2222 |
endif |
|
2223 |
||
2224 |
$(eval $(call SetupNativeCompilation,BUILD_LIBKCMS,\ |
|
2225 |
LIBRARY:=kcms,\ |
|
2226 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
2227 |
SRC:=$(JDK_TOPDIR)/src/closed/share/native/sun/java2d/cmm/kcms,\ |
|
2228 |
LANG:=C,\ |
|
2229 |
EXCLUDE_FILES:=$(BUILD_LIBKCMS_EXCLUDE_FILES),\ |
|
2230 |
OPTIMIZATION:=LOW, \ |
|
2231 |
CFLAGS:=$(BUILD_LIBKCMS_FLAGS) \ |
|
2232 |
-DJAVACMM -DFUT_CALC_EX -DNO_FUT_GCONST,\ |
|
2233 |
CFLAGS_linux:=-Wno-missing-field-initializers,\ |
|
2234 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libkcms/mapfile-vers, \ |
|
2235 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2236 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2237 |
LDFLAGS_SUFFIX_linux:=-lc -lpthread,\ |
15676
291a66e841c2
8008294: build-infra: Build-infra closed fails on solaris 11.1
erikj
parents:
15334
diff
changeset
|
2238 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13164 | 2239 |
LDFLAGS_SUFFIX_windows:=$(WIN_JAVA_LIB) advapi32.lib user32.lib version.lib, \ |
14706 | 2240 |
LDFLAGS_SUFFIX_posix:=-lm -ljava -ljvm,\ |
13164 | 2241 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/closed/share/native/sun/java2d/cmm/kcms/cmm.rc,\ |
13702 | 2242 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/closed/share/native/sun/java2d/cmm/kcms/cmm.rc,\ |
2243 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2244 |
-D "JDK_FNAME=kcms.dll" \ |
2245 |
-D "JDK_INTERNAL_NAME=kcms" \ |
|
2246 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2247 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libkcms,\ |
2248 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2249 |
|
2250 |
$(BUILD_LIBKCMS) : $(BUILD_LIBJAVA) |
|
2251 |
||
2252 |
BUILD_LIBRARIES += $(BUILD_LIBKCMS) |
|
2253 |
||
2254 |
endif |
|
2255 |
||
2256 |
########################################################################################## |
|
2257 |
||
2258 |
ifndef OPENJDK |
|
2259 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 2260 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
13164 | 2261 |
|
2262 |
ifeq ($(shell if test "$(OS_VERSION_MAJOR)" -eq 5 -a "$(OS_VERSION_MINOR)" -le 10; then $(ECHO) ok; fi), ok) |
|
2263 |
||
2264 |
SUNWJDGA_MAPFILE:= |
|
13702 | 2265 |
ifeq ($(OPENJDK_TARGET_CPU_ARCH), sparc) |
13164 | 2266 |
SUNWJDGA_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjdga/mapfile-vers |
2267 |
endif |
|
2268 |
||
2269 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSUNWJDGA, \ |
|
2270 |
LIBRARY:=sunwjdga,\ |
|
2271 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
2272 |
SRC:=$(JDK_TOPDIR)/src/solaris/native/sun/jdga, \ |
|
2273 |
LANG:=C, \ |
|
2274 |
OPTIMIZATION:=LOW, \ |
|
2275 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
2276 |
-I$(JDK_TOPDIR)/src/share/javavm/export \ |
|
13702 | 2277 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/javavm/export \ |
13164 | 2278 |
-I$(OPENWIN_HOME)/include, \ |
2279 |
MAPFILE:=$(SUNWJDGA_MAPFILE), \ |
|
2280 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2281 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
13702 | 2282 |
LDFLAGS_SUFFIX:=-L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -ldga -lX11 $(LIBDL) -lc, \ |
13164 | 2283 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsunwjdga)) |
2284 |
||
2285 |
BUILD_LIBRARIES += $(BUILD_LIBSUNWJDGA) |
|
2286 |
||
2287 |
endif |
|
2288 |
endif |
|
2289 |
endif |
|
2290 |
endif |
|
2291 |
||
2292 |
########################################################################################## |
|
2293 |
||
2294 |
ifeq ($(BUILD_HEADLESS), true) |
|
2295 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
|
2296 |
||
2297 |
LIBAWT_HEADLESS_DIRS:=$(JDK_TOPDIR)/src/share/native/sun/font \ |
|
2298 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \ |
|
2299 |
$(JDK_TOPDIR)/src/solaris/native/sun/font \ |
|
2300 |
$(JDK_TOPDIR)/src/solaris/native/sun/awt \ |
|
2301 |
$(JDK_TOPDIR)/src/solaris/native/sun/java2d/opengl \ |
|
2302 |
$(JDK_TOPDIR)/src/solaris/native/sun/java2d/x11 |
|
2303 |
||
2304 |
LIBAWT_HEADLESS_CFLAGS:=-DHEADLESS=true \ |
|
2305 |
-DX11_PATH=\"$(X11_PATH)\" -DPACKAGE_PATH=\"$(PACKAGE_PATH)\" \ |
|
2306 |
$(CUPS_CFLAGS) \ |
|
2307 |
$(X_CFLAGS) \ |
|
2308 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
13702 | 2309 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \ |
13164 | 2310 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
2311 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
2312 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image \ |
|
2313 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
2314 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
|
13702 | 2315 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/jdga \ |
13164 | 2316 |
$(foreach dir,$(LIBAWT_HEADLESS_DIRS),-I$(dir)) |
2317 |
||
2318 |
LIBAWT_HEADLESS_FILES:=\ |
|
2319 |
awt_Font.c \ |
|
2320 |
HeadlessToolkit.c \ |
|
2321 |
fontpath.c \ |
|
2322 |
VDrawingArea.c \ |
|
2323 |
X11Color.c \ |
|
2324 |
X11Renderer.c \ |
|
2325 |
X11PMBlitLoops.c \ |
|
2326 |
X11SurfaceData.c \ |
|
2327 |
X11FontScaler_md.c \ |
|
2328 |
X11TextRenderer_md.c \ |
|
2329 |
OGLBlitLoops.c \ |
|
2330 |
OGLBufImgOps.c \ |
|
2331 |
OGLContext.c \ |
|
2332 |
OGLFuncs.c \ |
|
2333 |
OGLMaskBlit.c \ |
|
2334 |
OGLMaskFill.c \ |
|
2335 |
OGLPaints.c \ |
|
2336 |
OGLRenderQueue.c \ |
|
2337 |
OGLRenderer.c \ |
|
2338 |
OGLSurfaceData.c \ |
|
2339 |
OGLTextRenderer.c \ |
|
2340 |
OGLVertexCache.c \ |
|
2341 |
GLXGraphicsConfig.c \ |
|
2342 |
GLXSurfaceData.c \ |
|
2343 |
AccelGlyphCache.c \ |
|
2344 |
CUPSfuncs.c |
|
2345 |
||
2346 |
LIBAWT_HEADLESS_REORDER:= |
|
2347 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 2348 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
2349 |
LIBAWT_HEADLESS_REORDER:=$(JDK_TOPDIR)/makefiles/mapfiles/libawt_headless/reorder-$(OPENJDK_TARGET_CPU) |
|
13164 | 2350 |
endif |
2351 |
endif |
|
2352 |
||
2353 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_HEADLESS,\ |
|
2354 |
LIBRARY:=awt_headless,\ |
|
2355 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
2356 |
SRC:=$(LIBAWT_HEADLESS_DIRS),\ |
|
2357 |
INCLUDE_FILES:=$(LIBAWT_HEADLESS_FILES),\ |
|
2358 |
LANG:=C,\ |
|
2359 |
OPTIMIZATION:=LOW, \ |
|
2360 |
CFLAGS:=$(CFLAGS_JDKLIB) $(LIBAWT_HEADLESS_CFLAGS),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2361 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libawt_headless/mapfile-vers,\ |
13164 | 2362 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
2363 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2364 |
LDFLAGS_linux:=$(call SET_SHARED_LIBRARY_ORIGIN,/..),\ |
2365 |
LDFLAGS_solaris:=$(call SET_SHARED_LIBRARY_ORIGIN,/..) \ |
|
2366 |
-R/usr/dt/lib$(OPENJDK_TARGET_CPU_ISADIR) \ |
|
2367 |
-R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR),\ |
|
2368 |
LDFLAGS_macosx:=$(call SET_SHARED_LIBRARY_ORIGIN).,\ |
|
13164 | 2369 |
REORDER:=$(LIBAWT_HEADLESS_REORDER), \ |
13702 | 2370 |
LDFLAGS_SUFFIX_linux:=-ljvm -lawt -lm $(LIBDL) -ljava,\ |
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2371 |
LDFLAGS_SUFFIX_solaris:=$(LIBDL) -ljvm -lawt -lm -ljava $(LIBCXX) -lc,\ |
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2372 |
LDFLAGS_SUFFIX_macosx:=-ljvm $(LIBCXX) -lawt $(LIBDL) -ljava,\ |
13164 | 2373 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt_headless)) |
2374 |
||
2375 |
$(BUILD_LIBAWT_HEADLESS) : $(BUILD_LIBAWT) |
|
2376 |
||
2377 |
BUILD_LIBRARIES += $(BUILD_LIBAWT_HEADLESS) |
|
12892 | 2378 |
|
2379 |
endif |
|
2380 |
endif |
|
2381 |
||
2382 |
########################################################################################## |
|
2383 |
||
2384 |
ifndef BUILD_HEADLESS_ONLY |
|
13164 | 2385 |
LIBSPLASHSCREEN_DIRS:=\ |
12892 | 2386 |
$(JDK_TOPDIR)/src/share/native/sun/awt/giflib \ |
2387 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg \ |
|
2388 |
$(JDK_TOPDIR)/src/share/native/sun/awt/libpng \ |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2389 |
$(JDK_TOPDIR)/src/share/native/sun/awt/splashscreen |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2390 |
|
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2391 |
ifneq ($(OPENJDK_TARGET_OS), macosx) |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2392 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/splashscreen |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2393 |
else |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2394 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/macosx/native/sun/awt/splashscreen |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2395 |
endif |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2396 |
|
13164 | 2397 |
|
2398 |
LIBSPLASHSCREEN_CFLAGS:=-DSPLASHSCREEN -DPNG_NO_MMX_CODE \ |
|
12892 | 2399 |
$(foreach dir,$(LIBSPLASHSCREEN_DIRS),-I$(dir)) |
2400 |
||
13164 | 2401 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
2402 |
LIBSPLASHSCREEN_CFLAGS:=-I$(JDK_TOPDIR)/src/macosx/native/sun/awt/splashscreen \ |
|
12892 | 2403 |
$(LIBSPLASHSCREEN_CFLAGS) \ |
2404 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks |
|
2405 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_MACOSX |
|
2406 |
LIBSPLASHSCREEN_CFLAGS += -I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp |
|
2407 |
||
13164 | 2408 |
LIBSPLASHSCREEN_java_awt_SplashScreen.c_CFLAGS:=-x objective-c -O0 |
2409 |
LIBSPLASHSCREEN_splashscreen_gfx_impl.c_CFLAGS:=-x objective-c -O0 |
|
2410 |
LIBSPLASHSCREEN_splashscreen_gif.c_CFLAGS:=-x objective-c -O0 |
|
2411 |
LIBSPLASHSCREEN_splashscreen_impl.c_CFLAGS:=-x objective-c -O0 |
|
2412 |
LIBSPLASHSCREEN_splashscreen_jpeg.c_CFLAGS:=-x objective-c -O0 |
|
2413 |
LIBSPLASHSCREEN_splashscreen_png.c_CFLAGS:=-x objective-c -O0 |
|
2414 |
LIBSPLASHSCREEN_splashscreen_sys.m_CFLAGS:=-O0 |
|
2415 |
||
2416 |
else ifneq ($(OPENJDK_TARGET_OS), windows) |
|
12892 | 2417 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_X11 -I$(OPENWIN_HOME)/include -I$(OPENWIN_HOME)/include/X11/extensions |
2418 |
else |
|
2419 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_WIN32 |
|
2420 |
endif |
|
2421 |
||
13164 | 2422 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX:= |
12892 | 2423 |
|
2424 |
ifneq ($(USE_EXTERNAL_LIBZ),true) |
|
2425 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/share/native/java/util/zip/zlib-1.2.5 |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2426 |
LIBSPLASHSCREEN_CFLAGS += $(ZLIB_CPPFLAGS) |
12892 | 2427 |
endif |
2428 |
||
13164 | 2429 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
12892 | 2430 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX += $(LIBM) -lpthread -liconv -losxapp \ |
2431 |
-framework ApplicationServices \ |
|
2432 |
-framework Foundation \ |
|
2433 |
-framework Cocoa \ |
|
2434 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
2435 |
-framework JavaNativeFoundation |
|
13164 | 2436 |
else ifneq ($(OPENJDK_TARGET_OS), windows) |
13702 | 2437 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX += -L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -lX11 -lXext $(LIBM) -lpthread |
13164 | 2438 |
else # OPENJDK_TARGET_OS |
14231 | 2439 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX += kernel32.lib user32.lib gdi32.lib delayimp.lib -DELAYLOAD:user32.dll |
13164 | 2440 |
endif # OPENJDK_TARGET_OS |
12892 | 2441 |
|
2442 |
$(eval $(call SetupNativeCompilation,LIBSPLASHSCREEN,\ |
|
13164 | 2443 |
LIBRARY:=splashscreen,\ |
2444 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2445 |
SRC:=$(LIBSPLASHSCREEN_DIRS),\ |
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2446 |
EXCLUDE_FILES:=imageioJPEG.c jpegdecoder.c pngtest.c,\ |
12892 | 2447 |
LANG:=C,\ |
13164 | 2448 |
OPTIMIZATION:=LOW, \ |
2449 |
CFLAGS:=$(LIBSPLASHSCREEN_CFLAGS) $(CFLAGS_JDKLIB),\ |
|
2450 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libsplashscreen/mapfile-vers, \ |
|
2451 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
12892 | 2452 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
13164 | 2453 |
LDFLAGS_SUFFIX:=$(LIBSPLASHSCREEN_LDFLAGS_SUFFIX) $(LIBZ),\ |
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2454 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13702 | 2455 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2456 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2457 |
-D "JDK_FNAME=splashscreen.dll" \ |
2458 |
-D "JDK_INTERNAL_NAME=splashscreen" \ |
|
2459 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2460 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsplashscreen,\ |
2461 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2462 |
|
2463 |
BUILD_LIBRARIES += $(LIBSPLASHSCREEN) |
|
2464 |
||
2465 |
ifeq ($(OPENJDK_TARGET_OS),macosx) |
|
2466 |
$(LIBSPLASHSCREEN) : $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)osxapp$(SHARED_LIBRARY_SUFFIX) |
|
12892 | 2467 |
endif |
2468 |
||
2469 |
endif |
|
2470 |
||
2471 |
########################################################################################## |
|
2472 |
||
2473 |
ifndef OPENJDK |
|
2474 |
||
13164 | 2475 |
LIBDCPR_SRC_DIRS:=\ |
12892 | 2476 |
$(JDK_TOPDIR)/src/closed/share/native/sun/dc/doe \ |
2477 |
$(JDK_TOPDIR)/src/closed/share/native/sun/dc/path \ |
|
2478 |
$(JDK_TOPDIR)/src/closed/share/native/sun/dc/pr \ |
|
2479 |
$(JDK_TOPDIR)/src/closed/share/native/sun/dc/util |
|
2480 |
||
13164 | 2481 |
LIBDCPR_CFLAGS:=$(foreach dir,$(LIBDCPR_SRC_DIRS),-I$(dir)) \ |
12892 | 2482 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe |
2483 |
||
2484 |
$(eval $(call SetupNativeCompilation,BUILD_LIBDCPR,\ |
|
13164 | 2485 |
LIBRARY:=dcpr,\ |
2486 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2487 |
SRC:=$(LIBDCPR_SRC_DIRS),\ |
2488 |
LANG:=C,\ |
|
13164 | 2489 |
OPTIMIZATION:=LOW, \ |
2490 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2491 |
$(LIBDCPR_CFLAGS), \ |
13164 | 2492 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libdcpr/mapfile-vers, \ |
13702 | 2493 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
12892 | 2494 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
13702 | 2495 |
LDFLAGS_SUFFIX:=$(LIBM) $(LDFLAGS_JDKLIB_SUFFIX),\ |
13164 | 2496 |
LDFLAGS_SUFFIX_posix:=-lm,\ |
13702 | 2497 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2498 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2499 |
-D "JDK_FNAME=dcpr.dll" \ |
2500 |
-D "JDK_INTERNAL_NAME=dcpr" \ |
|
2501 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2502 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libdcpr,\ |
2503 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2504 |
|
2505 |
$(BUILD_LIBDCPR) : $(BUILD_LIBJAVA) |
|
2506 |
||
2507 |
BUILD_LIBRARIES += $(BUILD_LIBDCPR) |
|
12892 | 2508 |
|
2509 |
endif |
|
2510 |
||
2511 |
########################################################################################## |
|
2512 |
||
2513 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2PCSC,\ |
|
13164 | 2514 |
LIBRARY:=j2pcsc,\ |
2515 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2516 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/smartcardio \ |
13702 | 2517 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/smartcardio,\ |
12892 | 2518 |
LANG:=C,\ |
13164 | 2519 |
CFLAGS_posix:=-D__sun_jdk,\ |
2520 |
OPTIMIZATION:=LOW, \ |
|
2521 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2522 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/smartcardio \ |
13702 | 2523 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/smartcardio\ |
2524 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/smartcardio/MUSCLE,\ |
|
13164 | 2525 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2pcsc/mapfile-vers, \ |
12892 | 2526 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
2527 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13164 | 2528 |
LDFLAGS_SUFFIX_posix:=$(LIBDL), \ |
2529 |
LDFLAGS_SUFFIX_windows:=winscard.lib,\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2530 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13702 | 2531 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2532 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2533 |
-D "JDK_FNAME=j2pcsc.dll" \ |
2534 |
-D "JDK_INTERNAL_NAME=j2pcsc" \ |
|
2535 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2536 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2pcsc,\ |
2537 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2538 |
|
2539 |
BUILD_LIBRARIES += $(BUILD_LIBJ2PCSC) |
|
12892 | 2540 |
|
2541 |
########################################################################################## |
|
2542 |
||
13164 | 2543 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
14780 | 2544 |
ifneq ($(OPENJDK_TARGET_OS), macosx) |
12892 | 2545 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2GSS,\ |
13164 | 2546 |
LIBRARY:=j2gss,\ |
2547 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2548 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/jgss/wrapper \ |
13702 | 2549 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/jgss/wrapper,\ |
12892 | 2550 |
LANG:=C,\ |
13164 | 2551 |
OPTIMIZATION:=LOW, \ |
2552 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2553 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/jgss/wrapper \ |
13702 | 2554 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/jgss/wrapper,\ |
13164 | 2555 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2gss/mapfile-vers, \ |
12892 | 2556 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
2557 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2558 |
LDFLAGS_SUFFIX:=$(LIBDL),\ |
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2559 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13164 | 2560 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2gss)) |
2561 |
||
2562 |
BUILD_LIBRARIES += $(BUILD_LIBJ2GSS) |
|
12892 | 2563 |
endif |
14780 | 2564 |
endif |
12892 | 2565 |
|
2566 |
########################################################################################## |
|
2567 |
||
13164 | 2568 |
BUILD_LIBKRB5_NAME:= |
2569 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
2570 |
BUILD_LIBKRB5_NAME:=w2k_lsa_auth |
|
13702 | 2571 |
BUILD_LIBKRB5_SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/krb5 |
14231 | 2572 |
BUILD_LIBKRB5_LIBS:=advapi32.lib Secur32.lib netapi32.lib kernel32.lib user32.lib \ |
2573 |
gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib \ |
|
2574 |
ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib |
|
13164 | 2575 |
else ifeq ($(OPENJDK_TARGET_OS), macosx) |
2576 |
BUILD_LIBKRB5_NAME:=osxkrb5 |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2577 |
BUILD_LIBKRB5_SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/krb5 |
13164 | 2578 |
BUILD_LIBKRB5_LIBS:=-framework Kerberos |
12892 | 2579 |
endif |
2580 |
||
2581 |
ifneq ($(BUILD_LIBKRB5_NAME),) |
|
2582 |
$(eval $(call SetupNativeCompilation,BUILD_LIBKRB5,\ |
|
13164 | 2583 |
LIBRARY:=$(BUILD_LIBKRB5_NAME),\ |
2584 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2585 |
SRC:=$(BUILD_LIBKRB5_SRC),\ |
12892 | 2586 |
LANG:=C,\ |
13164 | 2587 |
OPTIMIZATION:=LOW, \ |
2588 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2589 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/krb5 \ |
13702 | 2590 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/krb5 ,\ |
12892 | 2591 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
2592 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13164 | 2593 |
LDFLAGS_SUFFIX:=$(BUILD_LIBKRB5_LIBS) ,\ |
13702 | 2594 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2595 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2596 |
-D "JDK_FNAME=$(BUILD_LIBKRB5_NAME).dll" \ |
2597 |
-D "JDK_INTERNAL_NAME=$(BUILD_LIBKRB5_NAME)" \ |
|
2598 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2599 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libkrb5,\ |
2600 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2601 |
|
2602 |
BUILD_LIBRARIES += $(BUILD_LIBKRB5) |
|
12892 | 2603 |
endif |
2604 |
||
2605 |
########################################################################################## |
|
2606 |
||
13164 | 2607 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
12892 | 2608 |
|
2609 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSUNMSCAPI,\ |
|
13164 | 2610 |
LIBRARY:=sunmscapi,\ |
2611 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
14231 | 2612 |
SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/mscapi,\ |
12892 | 2613 |
LANG:=C++,\ |
13164 | 2614 |
OPTIMIZATION:=LOW, \ |
2615 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
13702 | 2616 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/mscapi ,\ |
2617 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \ |
|
12892 | 2618 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
13164 | 2619 |
LDFLAGS_SUFFIX:=Crypt32.Lib advapi32.lib,\ |
13702 | 2620 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2621 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2622 |
-D "JDK_FNAME=sunmscapi.dll" \ |
2623 |
-D "JDK_INTERNAL_NAME=sunmscapi" \ |
|
2624 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2625 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsunmscapi,\ |
2626 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2627 |
|
2628 |
BUILD_LIBRARIES += $(BUILD_LIBSUNMSCAPI) |
|
12892 | 2629 |
endif |
2630 |
||
2631 |
########################################################################################## |
|
2632 |
||
2633 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2PKCS11,\ |
|
13164 | 2634 |
LIBRARY:=j2pkcs11,\ |
2635 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2636 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11 \ |
13702 | 2637 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11 \ |
12892 | 2638 |
$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11/wrapper \ |
13702 | 2639 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11/wrapper,\ |
12892 | 2640 |
LANG:=C,\ |
13164 | 2641 |
OPTIMIZATION:=LOW, \ |
2642 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2643 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11 \ |
13702 | 2644 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11 \ |
12892 | 2645 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11/wrapper \ |
13702 | 2646 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11/wrapper,\ |
13164 | 2647 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2pkcs11/mapfile-vers, \ |
12892 | 2648 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
2649 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2650 |
LDFLAGS_SUFFIX_posix:=$(LIBDL),\ |
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2651 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13702 | 2652 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2653 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2654 |
-D "JDK_FNAME=j2pkcs11.dll" \ |
2655 |
-D "JDK_INTERNAL_NAME=j2pkcs11" \ |
|
2656 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2657 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2pkcs11,\ |
2658 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2659 |
|
2660 |
BUILD_LIBRARIES += $(BUILD_LIBJ2PKCS11) |
|
12892 | 2661 |
|
2662 |
########################################################################################## |
|
2663 |
||
2664 |
ifndef DISABLE_INTREE_EC |
|
2665 |
# |
|
2666 |
# TODO Set DISABLE_INTREE_EC in configure if src/share/native/sun/security/ec/impl |
|
2667 |
# is not present |
|
2668 |
# |
|
13164 | 2669 |
BUILD_LIBSUNEC_FLAGS:= -I$(JDK_TOPDIR)/src/share/native/sun/security/ec \ |
2670 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/ec/impl |
|
2671 |
||
2672 |
# |
|
2673 |
# On sol-sparc...all libraries are compiled with -xregs=no%appl |
|
2674 |
# (set in CFLAGS_REQUIRED_sparc) |
|
2675 |
# |
|
2676 |
# except!!! libsunec.so |
|
2677 |
# |
|
2678 |
ECC_JNI_SOLSPARC_FILTER:= |
|
2679 |
ifeq ($(OPENJDK_TARGET_CPU_ARCH), sparc) |
|
2680 |
ECC_JNI_SOLSPARC_FILTER:=-xregs=no%appl |
|
2681 |
endif |
|
12892 | 2682 |
|
2683 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSUNEC,\ |
|
13164 | 2684 |
LIBRARY:=sunec,\ |
2685 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2686 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/ec \ |
2687 |
$(JDK_TOPDIR)/src/share/native/sun/security/ec/impl, \ |
|
13164 | 2688 |
LANG:=C++, \ |
2689 |
OPTIMIZATION:=LOW, \ |
|
2690 |
CFLAGS:=$(filter-out $(ECC_JNI_SOLSPARC_FILTER), $(CFLAGS_JDKLIB))\ |
|
2691 |
$(BUILD_LIBSUNEC_FLAGS) \ |
|
2692 |
-DMP_API_COMPATIBLE -DNSS_ECC_MORE_THAN_SUITE_B,\ |
|
2693 |
CXXFLAGS:=$(filter-out $(ECC_JNI_SOLSPARC_FILTER), $(CXXFLAGS_JDKLIB)) \ |
|
2694 |
$(BUILD_LIBSUNEC_FLAGS),\ |
|
2695 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libsunec/mapfile-vers, \ |
|
13702 | 2696 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK),\ |
2697 |
LDFLAGS_macosx:=$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13164 | 2698 |
LDFLAGS_SUFFIX:=$(LIBCXX),\ |
13702 | 2699 |
LDFLAGS_SUFFIX_linux:=-lc ,\ |
13164 | 2700 |
LDFLAGS_SUFFIX_solaris:=-lc ,\ |
13702 | 2701 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2702 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2703 |
-D "JDK_FNAME=sunec.dll" \ |
2704 |
-D "JDK_INTERNAL_NAME=sunec" \ |
|
2705 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2706 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsunec,\ |
2707 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2708 |
|
2709 |
BUILD_LIBRARIES += $(BUILD_LIBSUNEC) |
|
12892 | 2710 |
endif |
2711 |
||
2712 |
########################################################################################## |
|
2713 |
||
13164 | 2714 |
LIBJSOUND_SRC_DIRS:=\ |
12892 | 2715 |
$(JDK_TOPDIR)/src/share/native/com/sun/media/sound \ |
13702 | 2716 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/com/sun/media/sound |
13164 | 2717 |
|
2718 |
LIBJSOUND_SRC_FILES:=Utilities.c Platform.c |
|
2719 |
||
2720 |
LIBJSOUND_LANG:=C |
|
2721 |
LIBJSOUND_CFLAGS:=$(foreach dir,$(LIBJSOUND_SRC_DIRS),-I$(dir)) |
|
2722 |
||
2723 |
EXTRA_SOUND_JNI_LIBS:= |
|
2724 |
||
2725 |
LIBJSOUND_MIDIFILES:=\ |
|
12892 | 2726 |
MidiInDevice.c \ |
2727 |
MidiInDeviceProvider.c \ |
|
2728 |
MidiOutDevice.c \ |
|
2729 |
MidiOutDeviceProvider.c \ |
|
2730 |
PlatformMidi.c |
|
2731 |
||
2732 |
# files needed for ports |
|
13164 | 2733 |
LIBJSOUND_PORTFILES:=\ |
12892 | 2734 |
PortMixerProvider.c \ |
2735 |
PortMixer.c |
|
2736 |
||
2737 |
# files needed for direct audio |
|
13164 | 2738 |
LIBJSOUND_DAUDIOFILES:=\ |
12892 | 2739 |
DirectAudioDeviceProvider.c \ |
2740 |
DirectAudioDevice.c |
|
2741 |
||
13164 | 2742 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
12892 | 2743 |
EXTRA_SOUND_JNI_LIBS += jsoundds |
2744 |
LIBJSOUND_CFLAGS += -DX_PLATFORM=X_WINDOWS \ |
|
2745 |
-DUSE_PLATFORM_MIDI_OUT=TRUE \ |
|
2746 |
-DUSE_PLATFORM_MIDI_IN=TRUE \ |
|
2747 |
-DUSE_PORTS=TRUE |
|
2748 |
LIBJSOUND_SRC_FILES += \ |
|
2749 |
PLATFORM_API_WinOS_MidiIn.cpp \ |
|
2750 |
PLATFORM_API_WinOS_MidiOut.c \ |
|
2751 |
PLATFORM_API_WinOS_Util.c \ |
|
2752 |
PLATFORM_API_WinOS_Ports.c |
|
2753 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES) |
|
2754 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES) |
|
13164 | 2755 |
endif # OPENJDK_TARGET_OS windows |
2756 |
||
2757 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
12892 | 2758 |
EXTRA_SOUND_JNI_LIBS += jsoundalsa |
2759 |
LIBJSOUND_CFLAGS += -DX_PLATFORM=X_LINUX |
|
13164 | 2760 |
endif # OPENJDK_TARGET_OS linux |
2761 |
||
2762 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
2763 |
LIBJSOUND_LANG:=C++ |
|
12892 | 2764 |
LIBJSOUND_CFLAGS += -DX_PLATFORM=X_MACOSX \ |
2765 |
-DUSE_PORTS=TRUE \ |
|
2766 |
-DUSE_DAUDIO=TRUE \ |
|
2767 |
-DUSE_PLATFORM_MIDI_OUT=TRUE \ |
|
2768 |
-DUSE_PLATFORM_MIDI_IN=TRUE |
|
2769 |
LIBJSOUND_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/native/com/sun/media/sound |
|
2770 |
LIBJSOUND_SRC_FILES += \ |
|
2771 |
PLATFORM_API_MacOSX_Utils.cpp \ |
|
2772 |
PLATFORM_API_MacOSX_PCM.cpp \ |
|
2773 |
PLATFORM_API_MacOSX_Ports.cpp \ |
|
2774 |
PLATFORM_API_MacOSX_MidiIn.c \ |
|
2775 |
PLATFORM_API_MacOSX_MidiOut.c \ |
|
2776 |
PLATFORM_API_MacOSX_MidiUtils.c |
|
2777 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES) |
|
2778 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES) |
|
2779 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_DAUDIOFILES) |
|
13164 | 2780 |
endif # OPENJDK_TARGET_OS macosx |
2781 |
||
2782 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
12892 | 2783 |
LIBJSOUND_CFLAGS += -DX_PLATFORM=X_SOLARIS \ |
2784 |
-DUSE_PORTS=TRUE \ |
|
2785 |
-DUSE_DAUDIO=TRUE |
|
2786 |
LIBJSOUND_SRC_FILES += \ |
|
2787 |
PLATFORM_API_SolarisOS_Utils.c \ |
|
2788 |
PLATFORM_API_SolarisOS_Ports.c \ |
|
2789 |
PLATFORM_API_SolarisOS_PCM.c |
|
2790 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES) |
|
2791 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES) |
|
2792 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_DAUDIOFILES) |
|
13164 | 2793 |
endif # OPENJDK_TARGET_OS solaris |
12892 | 2794 |
|
2795 |
||
2796 |
ifeq ($(JVM_VARIANT_ZERO), true) |
|
2797 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_ZERO |
|
2798 |
else |
|
13702 | 2799 |
ifeq ($(OPENJDK_TARGET_CPU), x86) |
12892 | 2800 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_I586 |
13702 | 2801 |
endif |
2802 |
||
2803 |
ifeq ($(OPENJDK_TARGET_CPU), sparc) |
|
12892 | 2804 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_SPARC |
13702 | 2805 |
endif |
2806 |
||
2807 |
ifeq ($(OPENJDK_TARGET_CPU), sparcv9) |
|
12892 | 2808 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_SPARCV9 |
13702 | 2809 |
endif |
2810 |
||
2811 |
ifeq ($(OPENJDK_TARGET_CPU), x86_64) |
|
12892 | 2812 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_AMD64 |
13702 | 2813 |
endif |
2814 |
||
2815 |
ifeq ($(OPENJDK_TARGET_CPU), arm) |
|
12892 | 2816 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_ARM |
13702 | 2817 |
endif |
2818 |
||
2819 |
ifeq ($(OPENJDK_TARGET_CPU), ppc) |
|
12892 | 2820 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_PPC |
13702 | 2821 |
endif |
12892 | 2822 |
endif |
2823 |
||
2824 |
LIBJSOUND_CFLAGS += -DEXTRA_SOUND_JNI_LIBS='"$(EXTRA_SOUND_JNI_LIBS)"' |
|
2825 |
||
2826 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJSOUND,\ |
|
13164 | 2827 |
LIBRARY:=jsound,\ |
2828 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2829 |
SRC:=$(LIBJSOUND_SRC_DIRS),\ |
13164 | 2830 |
INCLUDE_FILES:=$(LIBJSOUND_SRC_FILES),\ |
12892 | 2831 |
LANG:=$(LIBJSOUND_LANG),\ |
13164 | 2832 |
OPTIMIZATION:=LOW, \ |
13702 | 2833 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
2834 |
$(LIBJSOUND_CFLAGS), \ |
|
13164 | 2835 |
CXXFLAGS:=$(CXXFLAGS_JDKLIB) $(LIBJSOUND_CFLAGS), \ |
2836 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjsound/mapfile-vers, \ |
|
12892 | 2837 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
2838 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2839 |
LDFLAGS_macosx:=-framework CoreAudio -framework CoreFoundation \ |
2840 |
-framework CoreServices -framework AudioUnit $(LIBCXX) \ |
|
2841 |
-framework CoreMIDI -framework AudioToolbox,\ |
|
13164 | 2842 |
LDFLAGS_windows:=$(WIN_JAVA_LIB) advapi32.lib winmm.lib,\ |
14231 | 2843 |
LDFLAGS_SUFFIX_posix:=-ljava -ljvm,\ |
12892 | 2844 |
LDFLAGS_SUFFIX_solaris:=-lc ,\ |
13702 | 2845 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2846 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2847 |
-D "JDK_FNAME=jsound.dll" \ |
2848 |
-D "JDK_INTERNAL_NAME=jsound" \ |
|
2849 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2850 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsound,\ |
2851 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2852 |
|
2853 |
$(BUILD_LIBJSOUND) : $(BUILD_LIBJAVA) |
|
2854 |
||
2855 |
BUILD_LIBRARIES += $(BUILD_LIBJSOUND) |
|
12892 | 2856 |
|
2857 |
########################################################################################## |
|
2858 |
||
2859 |
ifneq ($(filter jsoundalsa, $(EXTRA_SOUND_JNI_LIBS)),) |
|
2860 |
||
2861 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJSOUNDALSA,\ |
|
13164 | 2862 |
LIBRARY:=jsoundalsa,\ |
2863 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2864 |
SRC:=$(LIBJSOUND_SRC_DIRS),\ |
13164 | 2865 |
INCLUDE_FILES:=Utilities.c $(LIBJSOUND_MIDIFILES) $(LIBJSOUND_PORTFILES) \ |
12892 | 2866 |
$(LIBJSOUND_DAUDIOFILES) \ |
2867 |
PLATFORM_API_LinuxOS_ALSA_CommonUtils.c \ |
|
2868 |
PLATFORM_API_LinuxOS_ALSA_PCM.c \ |
|
2869 |
PLATFORM_API_LinuxOS_ALSA_PCMUtils.c \ |
|
2870 |
PLATFORM_API_LinuxOS_ALSA_MidiIn.c \ |
|
2871 |
PLATFORM_API_LinuxOS_ALSA_MidiOut.c \ |
|
2872 |
PLATFORM_API_LinuxOS_ALSA_MidiUtils.c \ |
|
2873 |
PLATFORM_API_LinuxOS_ALSA_Ports.c,\ |
|
13164 | 2874 |
LANG:=C,\ |
2875 |
OPTIMIZATION:=LOW, \ |
|
2876 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2877 |
$(LIBJSOUND_CFLAGS) \ |
2878 |
-DUSE_DAUDIO=TRUE \ |
|
2879 |
-DUSE_PORTS=TRUE \ |
|
2880 |
-DUSE_PLATFORM_MIDI_OUT=TRUE \ |
|
2881 |
-DUSE_PLATFORM_MIDI_IN=TRUE, \ |
|
13164 | 2882 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjsoundalsa/mapfile-vers, \ |
12892 | 2883 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
2884 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2885 |
LDFLAGS_SUFFIX:=-lasound -ljava -ljvm,\ |
13164 | 2886 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsoundalsa)) |
2887 |
||
2888 |
$(BUILD_LIBJSOUNDALSA) : $(BUILD_LIBJAVA) |
|
2889 |
||
2890 |
BUILD_LIBRARIES += $(BUILD_LIBJSOUNDALSA) |
|
12892 | 2891 |
|
2892 |
endif |
|
2893 |
||
2894 |
########################################################################################## |
|
2895 |
||
2896 |
ifneq ($(filter jsoundds, $(EXTRA_SOUND_JNI_LIBS)),) |
|
2897 |
||
2898 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJSOUNDDS,\ |
|
13164 | 2899 |
LIBRARY:=jsoundds,\ |
2900 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2901 |
SRC:=$(LIBJSOUND_SRC_DIRS),\ |
13164 | 2902 |
INCLUDE_FILES:=Utilities.c $(LIBJSOUND_DAUDIOFILES) \ |
12892 | 2903 |
PLATFORM_API_WinOS_DirectSound.cpp, \ |
13164 | 2904 |
LANG:=C++,\ |
2905 |
OPTIMIZATION:=LOW, \ |
|
2906 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2907 |
$(LIBJSOUND_CFLAGS) \ |
2908 |
-DUSE_DAUDIO=TRUE, \ |
|
13702 | 2909 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \ |
12892 | 2910 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
2911 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX) dsound.lib winmm.lib user32.lib ole32.lib,\ |
|
13702 | 2912 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2913 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2914 |
-D "JDK_FNAME=jsoundds.dll" \ |
2915 |
-D "JDK_INTERNAL_NAME=jsoundds" \ |
|
2916 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2917 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsoundds,\ |
2918 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2919 |
|
2920 |
$(BUILD_LIBJSOUNDDS) : $(BUILD_LIBJAVA) |
|
2921 |
||
2922 |
BUILD_LIBRARIES += $(BUILD_LIBJSOUNDDS) |
|
12892 | 2923 |
|
2924 |
endif |
|
2925 |
||
2926 |
########################################################################################## |
|
2927 |
||
13164 | 2928 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
12892 | 2929 |
ifndef OPENJDK |
2930 |
||
2931 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2UCRYPTO,\ |
|
13164 | 2932 |
LIBRARY:=j2ucrypto,\ |
2933 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2934 |
SRC:=$(JDK_TOPDIR)/src/closed/solaris/native/com/oracle/security/ucrypto,\ |
13164 | 2935 |
LANG:=C,\ |
2936 |
OPTIMIZATION:=LOW, \ |
|
2937 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2938 |
-I$(JDK_TOPDIR)/src/closed/solaris/native/com/oracle/security/ucrypto ,\ |
13164 | 2939 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2ucrypto/mapfile-vers, \ |
13702 | 2940 |
LDFLAGS:=$(LDFLAGS_JDKLIB),\ |
12892 | 2941 |
LDFLAGS_SUFFIX:=$(LIBDL),\ |
15676
291a66e841c2
8008294: build-infra: Build-infra closed fails on solaris 11.1
erikj
parents:
15334
diff
changeset
|
2942 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13164 | 2943 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2ucrypto)) |
2944 |
||
2945 |
$(BUILD_LIBJ2UCRYPTO) : $(BUILD_LIBJAVA) |
|
2946 |
||
2947 |
BUILD_LIBRARIES += $(BUILD_LIBJ2UCRYPTO) |
|
12892 | 2948 |
|
2949 |
endif |
|
2950 |
endif |
|
2951 |
||
2952 |
########################################################################################## |
|
2953 |
||
13164 | 2954 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
2955 |
||
12892 | 2956 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAPPLESCRIPTENGINE,\ |
13164 | 2957 |
LIBRARY:=AppleScriptEngine,\ |
2958 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2959 |
SRC:=$(JDK_TOPDIR)/src/macosx/native/apple/applescript,\ |
13164 | 2960 |
LANG:=C,\ |
2961 |
OPTIMIZATION:=LOW, \ |
|
2962 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2963 |
-I$(JDK_TOPDIR)/src/macosx/native/apple/applescript \ |
2964 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
2965 |
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks, \ |
|
2966 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
2967 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
13702 | 2968 |
LDFLAGS_SUFFIX:=-framework Cocoa \ |
2969 |
-framework Carbon \ |
|
2970 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
2971 |
-framework JavaNativeFoundation \ |
|
2972 |
$(LDFLAGS_JDKLIB_SUFFIX),\ |
|
13164 | 2973 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libAppleScriptEngine)) |
2974 |
||
2975 |
$(BUILD_LIBAPPLESCRIPTENGINE) : $(BUILD_LIBJAVA) |
|
2976 |
||
2977 |
BUILD_LIBRARIES += $(BUILD_LIBAPPLESCRIPTENGINE) |
|
12892 | 2978 |
|
2979 |
endif |
|
2980 |
||
2981 |
########################################################################################## |
|
2982 |
||
13164 | 2983 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
2984 |
||
12892 | 2985 |
$(eval $(call SetupNativeCompilation,BUILD_LIBOSXAPP,\ |
13164 | 2986 |
LIBRARY:=osxapp,\ |
2987 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2988 |
SRC:=$(JDK_TOPDIR)/src/macosx/native/sun/osxapp,\ |
13164 | 2989 |
LANG:=C,\ |
2990 |
OPTIMIZATION:=LOW, \ |
|
2991 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2992 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \ |
14231 | 2993 |
-I$(JDK_OUTPUTDIR)/gensrc/sun/osxapp \ |
12892 | 2994 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
2995 |
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks,\ |
|
2996 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
2997 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
13164 | 2998 |
LDFLAGS_SUFFIX_macosx:=\ |
12892 | 2999 |
-framework Accelerate \ |
3000 |
-framework ApplicationServices \ |
|
3001 |
-framework AudioToolbox \ |
|
3002 |
-framework Carbon \ |
|
3003 |
-framework Cocoa \ |
|
3004 |
-framework Security \ |
|
3005 |
-framework ExceptionHandling \ |
|
3006 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3007 |
-framework JavaNativeFoundation \ |
|
3008 |
-framework JavaRuntimeSupport \ |
|
3009 |
-framework OpenGL \ |
|
3010 |
-framework IOSurface \ |
|
3011 |
-framework QuartzCore, \ |
|
13164 | 3012 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosxapp)) |
3013 |
||
3014 |
BUILD_LIBRARIES += $(BUILD_LIBOSXAPP) |
|
12892 | 3015 |
|
3016 |
endif |
|
3017 |
||
3018 |
########################################################################################## |
|
3019 |
||
13164 | 3020 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
3021 |
||
3022 |
LIBOSX_DIRS:=\ |
|
12892 | 3023 |
$(JDK_TOPDIR)/src/macosx/native/com/apple/concurrent \ |
3024 |
$(JDK_TOPDIR)/src/macosx/native/java/util \ |
|
3025 |
$(JDK_TOPDIR)/src/macosx/native/com/apple/eio \ |
|
3026 |
$(JDK_TOPDIR)/src/macosx/native/apple/security \ |
|
3027 |
$(JDK_TOPDIR)/src/macosx/native/apple/launcher |
|
3028 |
||
3029 |
$(eval $(call SetupNativeCompilation,BUILD_LIBOSX,\ |
|
13164 | 3030 |
LIBRARY:=osx,\ |
3031 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 3032 |
SRC:=$(LIBOSX_DIRS),\ |
13164 | 3033 |
LANG:=C,\ |
3034 |
OPTIMIZATION:=LOW, \ |
|
3035 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 3036 |
$(foreach dir,$(LIBOSX_DIRS),-I$(dir)) \ |
3037 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \ |
|
3038 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3039 |
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks,\ |
|
3040 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
3041 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
13164 | 3042 |
LDFLAGS_SUFFIX_macosx:=\ |
12892 | 3043 |
-losxapp \ |
3044 |
-framework Cocoa \ |
|
3045 |
-framework ApplicationServices \ |
|
3046 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3047 |
-framework JavaNativeFoundation \ |
|
3048 |
-framework JavaRuntimeSupport \ |
|
3049 |
-framework Security \ |
|
3050 |
-framework SystemConfiguration \ |
|
3051 |
$(LDFLAGS_JDKLIB_SUFFIX), \ |
|
13164 | 3052 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosx)) |
3053 |
||
3054 |
BUILD_LIBRARIES += $(BUILD_LIBOSX) |
|
3055 |
||
3056 |
$(BUILD_LIBOSX) : $(BUILD_LIBOSXAPP) |
|
3057 |
||
3058 |
$(BUILD_LIBOSX) : $(BUILD_LIBJAVA) |
|
12892 | 3059 |
|
3060 |
endif |
|
3061 |
||
3062 |
########################################################################################## |
|
3063 |
||
13164 | 3064 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
3065 |
||
3066 |
LIBAWT_LWAWT_FILES:=\ |
|
12892 | 3067 |
awt.m \ |
3068 |
ApplicationDelegate.m \ |
|
3069 |
CFRetainedResource.m \ |
|
3070 |
CGLGraphicsConfig.m \ |
|
3071 |
CGLSurfaceData.m \ |
|
3072 |
CGLLayer.m \ |
|
3073 |
CGraphicsConfig.m \ |
|
3074 |
CGraphicsDevice.m \ |
|
3075 |
CGraphicsEnv.m \ |
|
3076 |
CCharToGlyphMapper.m \ |
|
3077 |
CSystemColors.m \ |
|
3078 |
AWTFont.m \ |
|
3079 |
CGGlyphOutlines.m \ |
|
3080 |
CGGlyphImages.m \ |
|
3081 |
CoreTextSupport.m \ |
|
3082 |
AWTStrike.m \ |
|
3083 |
InitIDs.m \ |
|
3084 |
AWTEvent.m \ |
|
3085 |
AWTView.m \ |
|
3086 |
AWTWindow.m \ |
|
3087 |
AWTSurfaceLayers.m \ |
|
3088 |
CCursorManager.m \ |
|
3089 |
CClipboard.m \ |
|
3090 |
CDataTransferer.m \ |
|
3091 |
CDragSource.m \ |
|
3092 |
CDragSourceContextPeer.m \ |
|
3093 |
CDropTarget.m \ |
|
3094 |
CDropTargetContextPeer.m \ |
|
3095 |
CInputMethod.m \ |
|
3096 |
CDesktopPeer.m \ |
|
3097 |
OSVersion.m \ |
|
3098 |
DnDUtilities.m \ |
|
3099 |
CFileDialog.m \ |
|
3100 |
CImage.m \ |
|
3101 |
CMenu.m \ |
|
3102 |
CMenuBar.m \ |
|
3103 |
CMenuComponent.m \ |
|
3104 |
CMenuItem.m \ |
|
3105 |
CPopupMenu.m \ |
|
3106 |
CRobot.m \ |
|
3107 |
CTrayIcon.m \ |
|
3108 |
CWrapper.m \ |
|
3109 |
JavaAccessibilityAction.m \ |
|
3110 |
JavaAccessibilityUtilities.m \ |
|
3111 |
JavaComponentAccessibility.m \ |
|
3112 |
JavaTextAccessibility.m \ |
|
3113 |
LWCToolkit.m \ |
|
3114 |
GeomUtilities.m \ |
|
3115 |
CPrinterJob.m \ |
|
3116 |
PrintModel.m \ |
|
3117 |
PrinterSurfaceData.m \ |
|
3118 |
PrinterView.m \ |
|
3119 |
QuartzSurfaceData.m \ |
|
3120 |
QuartzRenderer.m \ |
|
3121 |
CTextPipe.m \ |
|
3122 |
ImageSurfaceData.m \ |
|
3123 |
awt_DrawingSurface.m \ |
|
3124 |
\ |
|
3125 |
OGLBlitLoops.c \ |
|
3126 |
OGLBufImgOps.c \ |
|
3127 |
OGLContext.c \ |
|
3128 |
OGLFuncs.c \ |
|
3129 |
OGLMaskBlit.c \ |
|
3130 |
OGLMaskFill.c \ |
|
3131 |
OGLPaints.c \ |
|
3132 |
OGLRenderQueue.c \ |
|
3133 |
OGLRenderer.c \ |
|
3134 |
OGLSurfaceData.c \ |
|
3135 |
OGLTextRenderer.c \ |
|
3136 |
OGLVertexCache.c \ |
|
3137 |
AccelGlyphCache.c \ |
|
3138 |
CUPSfuncs.c |
|
3139 |
||
3140 |
||
13164 | 3141 |
LIBAWT_LWAWT_DIRS:=\ |
12892 | 3142 |
$(JDK_TOPDIR)/src/macosx/native/sun/awt \ |
3143 |
$(JDK_TOPDIR)/src/macosx/native/sun/font \ |
|
3144 |
$(JDK_TOPDIR)/src/macosx/native/sun/java2d/opengl \ |
|
3145 |
$(JDK_TOPDIR)/src/solaris/native/sun/awt \ |
|
3146 |
$(JDK_TOPDIR)/src/share/native/sun/font \ |
|
3147 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \ |
|
3148 |
||
3149 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_LWAWT,\ |
|
13164 | 3150 |
LIBRARY:=awt_lwawt,\ |
3151 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 3152 |
SRC:=$(LIBAWT_LWAWT_DIRS),\ |
13164 | 3153 |
LANG:=C,\ |
12892 | 3154 |
INCLUDE_FILES:=$(LIBAWT_LWAWT_FILES),\ |
13164 | 3155 |
OPTIMIZATION:=LOW, \ |
3156 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
14233
18fda1299ea9
8001891: build-infra: Adding X_CFLAGS and X_LIBS to lwawt and sizer compilation
ohrstrom
parents:
14231
diff
changeset
|
3157 |
$(X_CFLAGS) \ |
18fda1299ea9
8001891: build-infra: Adding X_CFLAGS and X_LIBS to lwawt and sizer compilation
ohrstrom
parents:
14231
diff
changeset
|
3158 |
$(X_LIBS) \ |
12892 | 3159 |
$(foreach dir,$(LIBAWT_LWAWT_DIRS),-I$(dir)) \ |
3160 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \ |
|
3161 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
3162 |
-I$(JDK_TOPDIR)/src/solaris/native/sun/java2d \ |
|
3163 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image \ |
|
3164 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
3165 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
|
3166 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
3167 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
|
3168 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3169 |
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks,\ |
|
3170 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
3171 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
13702 | 3172 |
LDFLAGS_SUFFIX_macosx:=-lawt -lmlib_image -losxapp -ljvm $(LIBM) \ |
3173 |
-framework Accelerate \ |
|
3174 |
-framework ApplicationServices \ |
|
3175 |
-framework AudioToolbox \ |
|
3176 |
-framework Carbon \ |
|
3177 |
-framework Cocoa \ |
|
3178 |
-framework Security \ |
|
3179 |
-framework ExceptionHandling \ |
|
3180 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3181 |
-framework JavaNativeFoundation \ |
|
3182 |
-framework JavaRuntimeSupport \ |
|
3183 |
-framework OpenGL \ |
|
3184 |
-framework QuartzCore -ljava,\ |
|
13164 | 3185 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt_lwawt)) |
3186 |
||
3187 |
BUILD_LIBRARIES += $(BUILD_LIBAWT_LWAWT) |
|
3188 |
||
3189 |
$(BUILD_LIBAWT_LWAWT) : $(BUILD_LIBAWT) |
|
3190 |
||
3191 |
$(BUILD_LIBAWT_LWAWT) : $(BUILD_LIBMLIB_IMAGE) |
|
3192 |
||
3193 |
$(BUILD_LIBAWT_LWAWT) : $(BUILD_LIBOSXAPP) |
|
3194 |
||
3195 |
$(BUILD_LIBAWT_LWAWT) : $(BUILD_LIBJAVA) |
|
12892 | 3196 |
|
3197 |
endif |
|
3198 |
||
3199 |
########################################################################################## |
|
3200 |
||
13164 | 3201 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
3202 |
||
12892 | 3203 |
$(eval $(call SetupNativeCompilation,BUILD_LIBOSXUI,\ |
13164 | 3204 |
LIBRARY:=osxui,\ |
3205 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 3206 |
SRC:=$(JDK_TOPDIR)/src/macosx/native/com/apple/laf,\ |
13164 | 3207 |
LANG:=C,\ |
3208 |
OPTIMIZATION:=LOW, \ |
|
3209 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 3210 |
-I$(JDK_TOPDIR)/src/macosx/native/com/apple/laf \ |
3211 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \ |
|
3212 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/awt \ |
|
3213 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks, \ |
|
3214 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
13702 | 3215 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
3216 |
-Xlinker -rpath -Xlinker @loader_path,\ |
|
3217 |
LDFLAGS_SUFFIX_macosx:=-lawt -losxapp -lawt_lwawt \ |
|
3218 |
-framework Cocoa \ |
|
3219 |
-framework Carbon \ |
|
3220 |
-framework ApplicationServices \ |
|
3221 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3222 |
-framework JavaNativeFoundation \ |
|
3223 |
-framework JavaRuntimeSupport \ |
|
3224 |
-ljava -ljvm,\ |
|
13164 | 3225 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosxui)) |
3226 |
||
3227 |
BUILD_LIBRARIES += $(BUILD_LIBOSXUI) |
|
3228 |
||
3229 |
$(BUILD_LIBOSXUI) : $(BUILD_LIBAWT) |
|
3230 |
||
3231 |
$(BUILD_LIBOSXUI) : $(BUILD_LIBOSXAPP) |
|
3232 |
||
3233 |
$(BUILD_LIBOSXUI) : $(BUILD_LIBAWT_LWAWT) |
|
3234 |
||
3235 |
#$(BUILD_LIBOSXUI) : $(BUILD_LIBJAVA) |
|
3236 |
||
3237 |
endif |
|
3238 |
||
3239 |
########################################################################################## |
|
3240 |
||
3241 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
3242 |
||
13702 | 3243 |
# Ugly hack to mimic behaviour in old build where this is built as an xcode project. |
3244 |
SET_SHARED_LIBRARY_NAME=-Xlinker -install_name -Xlinker /usr/local/lib/libJObjC.dylib |
|
3245 |
||
3246 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJOBJC32,\ |
|
13164 | 3247 |
LIBRARY:=JObjC,\ |
13702 | 3248 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc32,\ |
3249 |
SRC:=$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/native \ |
|
3250 |
$(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/native ,\ |
|
3251 |
LANG:=C,\ |
|
3252 |
OPTIMIZATION:=LOW, \ |
|
3253 |
CFLAGS:=-fpascal-strings \ |
|
3254 |
-fobjc-gc \ |
|
3255 |
-gdwarf-2 \ |
|
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
3256 |
$(CFLAGS_JDKLIB) -I$(JDK_OUTPUTDIR)/gensrc_headers_jobjc \ |
13702 | 3257 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
3258 |
-m32,\ |
|
3259 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
3260 |
-m32, \ |
|
3261 |
LDFLAGS_SUFFIX:=-framework Foundation -framework JavaVM \ |
|
3262 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3263 |
-framework JavaNativeFoundation \ |
|
3264 |
-lffi, \ |
|
3265 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc32)) |
|
3266 |
||
3267 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJOBJC64,\ |
|
3268 |
LIBRARY:=JObjC,\ |
|
3269 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc64,\ |
|
13164 | 3270 |
SRC:=$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/native \ |
3271 |
$(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/native ,\ |
|
3272 |
LANG:=C,\ |
|
3273 |
OPTIMIZATION:=LOW, \ |
|
3274 |
CFLAGS:=-fpascal-strings \ |
|
3275 |
-fobjc-gc \ |
|
3276 |
-gdwarf-2 \ |
|
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
3277 |
$(CFLAGS_JDKLIB) -I$(JDK_OUTPUTDIR)/gensrc_headers_jobjc \ |
13164 | 3278 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
3279 |
, \ |
|
3280 |
LDFLAGS:=-fpascal-strings \ |
|
3281 |
-fobjc-gc \ |
|
3282 |
-gdwarf-2 \ |
|
3283 |
$(LDFLAGS_JDKLIB)\ |
|
3284 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
3285 |
LDFLAGS_SUFFIX:=-framework Foundation -framework JavaVM \ |
|
3286 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3287 |
-framework JavaNativeFoundation \ |
|
3288 |
-lffi, \ |
|
13702 | 3289 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc64)) |
3290 |
||
3291 |
$(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)JObjC$(SHARED_LIBRARY_SUFFIX): $(BUILD_LIBJOBJC32) $(BUILD_LIBJOBJC64) |
|
3292 |
$(LIPO) -create -output $@ $(BUILD_LIBJOBJC32) $(BUILD_LIBJOBJC64) |
|
3293 |
||
3294 |
BUILD_LIBRARIES += $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)JObjC$(SHARED_LIBRARY_SUFFIX) |
|
12892 | 3295 |
|
3296 |
endif |
|
3297 |
||
3298 |
########################################################################################## |
|
3299 |
||
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3300 |
ifndef OPENJDK |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3301 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3302 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3303 |
ACCESSBRIDGE_SRCDIR:=$(JDK_TOPDIR)/src/closed/windows/native/sun/bridge |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3304 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3305 |
define SetupAccessBridge |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3306 |
# Parameter 1 Suffix |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3307 |
# Parameter 2 Machine |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3308 |
# Parameter 3 ACCESSBRIDGE_ARCH_ suffix |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3309 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3310 |
$(call SetupNativeCompilation,BUILD_JAWTACCESSBRIDGE$1,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3311 |
LIBRARY=JAWTAccessBridge$1,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3312 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3313 |
SRC:=$(ACCESSBRIDGE_SRCDIR),\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3314 |
INCLUDE_FILES:=JAWTAccessBridge.cpp,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3315 |
LANG:=C++,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3316 |
OPTIMIZATION:=LOW,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3317 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3318 |
-DACCESSBRIDGE_ARCH_$3,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3319 |
LDFLAGS:=$(LDFLAGS_JDKLIB) kernel32.lib user32.lib gdi32.lib \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3320 |
winspool.lib jawt.lib comdlg32.lib advapi32.lib shell32.lib \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3321 |
ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3322 |
-subsystem:windows -machine:$2 \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3323 |
-def:$(ACCESSBRIDGE_SRCDIR)/JAWTAccessBridge.DEF,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3324 |
VERSIONINFO_RESOURCE:=$(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3325 |
RC_FLAGS:=$(RC_FLAGS),\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3326 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjawtaccessbridge$1,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3327 |
DEBUG_SYMBOLS:=true) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3328 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3329 |
$$(BUILD_JAWTACCESSBRIDGE$1): $(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3330 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3331 |
$(call SetupNativeCompilation,BUILD_JAVAACCESSBRIDGE$1,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3332 |
LIBRARY=JavaAccessBridge$1,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3333 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3334 |
SRC:=$(ACCESSBRIDGE_SRCDIR),\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3335 |
INCLUDE_FILES:=AccessBridgeATInstance.cpp AccessBridgeDebug.cpp \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3336 |
AccessBridgeJavaEntryPoints.cpp \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3337 |
AccessBridgeMessages.cpp JavaAccessBridge.cpp,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3338 |
LANG:=C++,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3339 |
OPTIMIZATION:=LOW,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3340 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3341 |
-DACCESSBRIDGE_ARCH_$3,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3342 |
LDFLAGS:=$(LDFLAGS_JDKLIB) kernel32.lib user32.lib gdi32.lib \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3343 |
winspool.lib comdlg32.lib advapi32.lib shell32.lib \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3344 |
ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3345 |
-subsystem:windows -machine:$2 \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3346 |
-def:$(ACCESSBRIDGE_SRCDIR)/JavaAccessBridge.DEF,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3347 |
VERSIONINFO_RESOURCE:=$(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3348 |
RC_FLAGS:=$(RC_FLAGS),\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3349 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjavaaccessbridge$1,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3350 |
DEBUG_SYMBOLS:=true) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3351 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3352 |
$(call SetupNativeCompilation,BUILD_WINDOWSACCESSBRIDGE$1,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3353 |
LIBRARY=WindowsAccessBridge$1,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3354 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3355 |
SRC:=$(ACCESSBRIDGE_SRCDIR),\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3356 |
INCLUDE_FILES:=AccessBridgeJavaVMInstance.cpp AccessBridgeMessageQueue.cpp \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3357 |
AccessBridgeMessages.cpp AccessBridgeWindowsEntryPoints.cpp \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3358 |
WinAccessBridge.cpp AccessBridgeDebug.cpp \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3359 |
AccessBridgeEventHandler.cpp,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3360 |
LANG:=C++,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3361 |
OPTIMIZATION:=LOW,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3362 |
CFLAGS:=$(filter-out -MD,$(CFLAGS_JDKLIB)) -MT \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3363 |
-DACCESSBRIDGE_ARCH_$3,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3364 |
LDFLAGS:=$(LDFLAGS_JDKLIB) kernel32.lib user32.lib gdi32.lib \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3365 |
winspool.lib comdlg32.lib advapi32.lib shell32.lib \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3366 |
ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3367 |
-subsystem:windows -machine:$2 \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3368 |
-def:$(ACCESSBRIDGE_SRCDIR)/WinAccessBridge.DEF,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3369 |
VERSIONINFO_RESOURCE:=$(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3370 |
RC_FLAGS:=$(RC_FLAGS),\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3371 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libwindowsaccessbridge$1,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3372 |
DEBUG_SYMBOLS:=true) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3373 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3374 |
BUILD_LIBRARIES += $$(BUILD_JAWTACCESSBRIDGE$1) $$(BUILD_JAVAACCESSBRIDGE$1) \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3375 |
$$(BUILD_WINDOWSACCESSBRIDGE$1) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3376 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3377 |
endef |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3378 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3379 |
ifeq ($(OPENJDK_TARGET_CPU_BITS),32) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3380 |
$(eval $(call SetupAccessBridge,-32,I386,32)) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3381 |
$(eval $(call SetupAccessBridge,,I386,LEGACY)) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3382 |
else |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3383 |
$(eval $(call SetupAccessBridge,-64,X64,64)) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3384 |
endif |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3385 |
endif |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3386 |
endif |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3387 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3388 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3389 |
########################################################################################## |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3390 |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
3391 |
all: $(COPY_FILES) $(BUILD_LIBRARIES) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
3392 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
3393 |
.PHONY: all |