author | aph |
Thu, 13 Nov 2014 15:45:45 -0800 (2014-11-13) | |
changeset 29233 | 01de3b4395f1 |
parent 25859 | 3317bb8137f4 |
child 27565 | 729f9700483a |
permissions | -rw-r--r-- |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
1 |
# |
23607
e019220f8ee8
8032443: Java Access Bridge version strings need to be fixed
ptbrunet
parents:
22957
diff
changeset
|
2 |
# Copyright (c) 2011, 2014, 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 |
|
13164 | 26 |
########################################################################################## |
27 |
||
28 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
29 |
||
25859 | 30 |
LIBOSXAPP_SRC := $(JDK_TOPDIR)/src/java.desktop/macosx/native/libosxapp |
31 |
||
20547 | 32 |
$(eval $(call SetupNativeCompilation,BUILD_LIBOSXAPP, \ |
33 |
LIBRARY := osxapp, \ |
|
34 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
25859 | 35 |
SRC := $(LIBOSXAPP_SRC), \ |
20547 | 36 |
LANG := C, \ |
37 |
OPTIMIZATION := LOW, \ |
|
38 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
25859 | 39 |
$(addprefix -I, $(LIBOSXAPP_SRC)) \ |
25086
f5f41ed620d5
8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents:
24699
diff
changeset
|
40 |
-I$(JDK_OUTPUTDIR)/gensrc_headers_icons, \ |
20547 | 41 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
42 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
43 |
LDFLAGS_SUFFIX_macosx := \ |
|
44 |
-framework Accelerate \ |
|
45 |
-framework ApplicationServices \ |
|
46 |
-framework AudioToolbox \ |
|
47 |
-framework Carbon \ |
|
48 |
-framework Cocoa \ |
|
49 |
-framework Security \ |
|
50 |
-framework ExceptionHandling \ |
|
51 |
-framework JavaNativeFoundation \ |
|
52 |
-framework JavaRuntimeSupport \ |
|
53 |
-framework OpenGL \ |
|
54 |
-framework IOSurface \ |
|
55 |
-framework QuartzCore, \ |
|
56 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libosxapp, \ |
|
57 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
58 |
||
25859 | 59 |
DESKTOP_LIBRARIES += $(BUILD_LIBOSXAPP) |
20547 | 60 |
|
61 |
endif |
|
62 |