author | vromero |
Thu, 31 Mar 2016 17:25:58 -0400 | |
changeset 36776 | 5e260fa5208a |
parent 36412 | bf90c6348632 |
permissions | -rw-r--r-- |
25859 | 1 |
# |
29374
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
27565
diff
changeset
|
2 |
# Copyright (c) 2011, 2015, 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 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
27 |
||
28 |
################################################################################ |
|
29 |
||
36412
bf90c6348632
8148187: Remove OS X-specific com.apple.concurrent package
bchristi
parents:
35276
diff
changeset
|
30 |
LIBOSX_DIRS := $(JDK_TOPDIR)/src/java.desktop/macosx/native/libosx |
25859 | 31 |
LIBOSX_CFLAGS := -I$(LIBOSX_DIRS) \ |
32 |
-I$(JDK_TOPDIR)/src/java.desktop/macosx/native/libosxapp \ |
|
33 |
$(LIBJAVA_HEADER_FLAGS) \ |
|
27565 | 34 |
-I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \ |
25859 | 35 |
# |
36 |
||
37 |
$(eval $(call SetupNativeCompilation,BUILD_LIBOSX, \ |
|
38 |
LIBRARY := osx, \ |
|
39 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
40 |
SRC := $(LIBOSX_DIRS), \ |
|
41 |
OPTIMIZATION := LOW, \ |
|
42 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
43 |
$(LIBOSX_CFLAGS), \ |
|
29374
f031a666744a
8074096: Disable (most) native warnings in JDK on a per-library basis
ihse
parents:
27565
diff
changeset
|
44 |
DISABLED_WARNINGS_clang := deprecated-declarations, \ |
25859 | 45 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
27565 | 46 |
-L$(SUPPORT_OUTPUTDIR)/modules_libs/java.desktop \ |
25859 | 47 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
33406 | 48 |
LIBS := \ |
25859 | 49 |
-losxapp \ |
50 |
-framework Cocoa \ |
|
51 |
-framework ApplicationServices \ |
|
52 |
-framework JavaNativeFoundation \ |
|
53 |
-framework JavaRuntimeSupport \ |
|
54 |
-framework SystemConfiguration \ |
|
33406 | 55 |
$(JDKLIB_LIBS), \ |
27565 | 56 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libosx, \ |
35276 | 57 |
)) |
25859 | 58 |
|
27565 | 59 |
TARGETS += $(BUILD_LIBOSX) |
25859 | 60 |
|
27565 | 61 |
$(BUILD_LIBOSX): $(call FindLib, java.desktop, osxapp) |
25859 | 62 |
|
27565 | 63 |
$(BUILD_LIBOSX): $(call FindLib, java.base, java) |
25859 | 64 |
|
65 |
################################################################################ |
|
66 |
||
67 |
endif |