author | ihse |
Thu, 15 Mar 2018 19:30:58 +0100 | |
changeset 49252 | 6628683fde28 |
parent 47336 | 6694369ed3f9 |
child 49439 | bf53d82a51e5 |
permissions | -rw-r--r-- |
25859 | 1 |
# |
49252 | 2 |
# Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. |
25859 | 3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
|
5 |
# This code is free software; you can redistribute it and/or modify it |
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
|
7 |
# published by the Free Software Foundation. Oracle designates this |
|
8 |
# particular file as subject to the "Classpath" exception as provided |
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
|
10 |
# |
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
# accompanied this code). |
|
16 |
# |
|
17 |
# You should have received a copy of the GNU General Public License version |
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
# |
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 |
# or visit www.oracle.com if you need additional information or have any |
|
23 |
# questions. |
|
24 |
# |
|
25 |
||
26 |
include LibCommon.gmk |
|
27 |
||
47336
6694369ed3f9
8189229: Remove references to $(TOPDIR)/src/*/$(MODULE)
ihse
parents:
47217
diff
changeset
|
28 |
# Hook to include the corresponding custom file, if present. |
6694369ed3f9
8189229: Remove references to $(TOPDIR)/src/*/$(MODULE)
ihse
parents:
47217
diff
changeset
|
29 |
$(eval $(call IncludeCustomExtension, lib/Lib-java.desktop.gmk)) |
6694369ed3f9
8189229: Remove references to $(TOPDIR)/src/*/$(MODULE)
ihse
parents:
47217
diff
changeset
|
30 |
|
26192
33b90e93e3bf
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
25859
diff
changeset
|
31 |
# Prepare the find cache. |
47336
6694369ed3f9
8189229: Remove references to $(TOPDIR)/src/*/$(MODULE)
ihse
parents:
47217
diff
changeset
|
32 |
LIB_java.desktop_SRC_DIRS += $(TOPDIR)/src/java.desktop/*/native |
6694369ed3f9
8189229: Remove references to $(TOPDIR)/src/*/$(MODULE)
ihse
parents:
47217
diff
changeset
|
33 |
|
6694369ed3f9
8189229: Remove references to $(TOPDIR)/src/*/$(MODULE)
ihse
parents:
47217
diff
changeset
|
34 |
$(eval $(call FillCacheFind, $(wildcard $(LIB_java.desktop_SRC_DIRS)))) |
26192
33b90e93e3bf
8055095: Improve "do nothing" incremental build performance after modularized source code integration
erikj
parents:
25859
diff
changeset
|
35 |
|
49252 | 36 |
################################################################################ |
37 |
# Create the AWT/2D and sound libraries |
|
38 |
||
25859 | 39 |
include Awt2dLibraries.gmk |
40 |
include SoundLibraries.gmk |
|
49252 | 41 |
|
42 |
################################################################################ |
|
43 |
# Create the macosx specific osxapp and osx libraries |
|
44 |
||
45 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
46 |
LIBOSXAPP_SRC := $(TOPDIR)/src/java.desktop/macosx/native/libosxapp |
|
47 |
||
48 |
$(eval $(call SetupJdkLibrary, BUILD_LIBOSXAPP, \ |
|
49 |
NAME := osxapp, \ |
|
50 |
SRC := $(LIBOSXAPP_SRC), \ |
|
51 |
OPTIMIZATION := LOW, \ |
|
52 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
53 |
$(addprefix -I, $(LIBOSXAPP_SRC)) \ |
|
54 |
-I$(SUPPORT_OUTPUTDIR)/headers/java.desktop, \ |
|
55 |
DISABLED_WARNINGS_clang := objc-method-access objc-root-class, \ |
|
56 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
|
57 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
58 |
LIBS := \ |
|
59 |
-framework Accelerate \ |
|
60 |
-framework ApplicationServices \ |
|
61 |
-framework AudioToolbox \ |
|
62 |
-framework Carbon \ |
|
63 |
-framework Cocoa \ |
|
64 |
-framework Security \ |
|
65 |
-framework ExceptionHandling \ |
|
66 |
-framework JavaNativeFoundation \ |
|
67 |
-framework JavaRuntimeSupport \ |
|
68 |
-framework OpenGL \ |
|
69 |
-framework IOSurface \ |
|
70 |
-framework QuartzCore, \ |
|
71 |
)) |
|
72 |
||
73 |
TARGETS += $(BUILD_LIBOSXAPP) |
|
74 |
||
75 |
############################################################################## |
|
76 |
||
77 |
LIBOSX_DIRS := $(TOPDIR)/src/java.desktop/macosx/native/libosx |
|
78 |
LIBOSX_CFLAGS := -I$(LIBOSX_DIRS) \ |
|
79 |
-I$(TOPDIR)/src/java.desktop/macosx/native/libosxapp \ |
|
80 |
$(LIBJAVA_HEADER_FLAGS) \ |
|
81 |
-I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \ |
|
82 |
# |
|
83 |
||
84 |
$(eval $(call SetupJdkLibrary, BUILD_LIBOSX, \ |
|
85 |
NAME := osx, \ |
|
86 |
SRC := $(LIBOSX_DIRS), \ |
|
87 |
OPTIMIZATION := LOW, \ |
|
88 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
89 |
$(LIBOSX_CFLAGS), \ |
|
90 |
DISABLED_WARNINGS_clang := deprecated-declarations, \ |
|
91 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
|
92 |
-L$(SUPPORT_OUTPUTDIR)/modules_libs/java.desktop \ |
|
93 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
94 |
LIBS := \ |
|
95 |
-losxapp \ |
|
96 |
-framework Cocoa \ |
|
97 |
-framework ApplicationServices \ |
|
98 |
-framework JavaNativeFoundation \ |
|
99 |
-framework JavaRuntimeSupport \ |
|
100 |
-framework SystemConfiguration \ |
|
101 |
$(JDKLIB_LIBS), \ |
|
102 |
)) |
|
103 |
||
104 |
TARGETS += $(BUILD_LIBOSX) |
|
105 |
||
106 |
$(BUILD_LIBOSX): $(call FindLib, java.desktop, osxapp) |
|
107 |
||
108 |
$(BUILD_LIBOSX): $(call FindLib, java.base, java) |
|
109 |
||
110 |
endif |
|
111 |