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