author | valeriep |
Mon, 07 Jan 2013 11:11:54 -0800 | |
changeset 15008 | 6a494f8ba5b5 |
parent 14342 | 8435a30053c1 |
permissions | -rw-r--r-- |
12047 | 1 |
# |
14342
8435a30053c1
7197491: update copyright year to match last edit in jdk8 jdk repository
alanb
parents:
13992
diff
changeset
|
2 |
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
12047 | 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 |
BUILDDIR = ../.. |
|
27 |
LIBRARY = osxapp |
|
28 |
PRODUCT = sun |
|
29 |
include $(BUILDDIR)/common/Defs.gmk |
|
30 |
||
13992
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
31 |
GEN_DIR=$(GENSRCDIR)/sun/osxapp |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
32 |
ICON_DATA = $(GEN_DIR)/AWTIconData.h |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
33 |
|
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
34 |
CLASSES_INIT += $(ICON_DATA) |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
35 |
|
12047 | 36 |
# |
37 |
# Files |
|
38 |
# |
|
39 |
FILES_objc = \ |
|
40 |
NSApplicationAWT.m \ |
|
41 |
QueuingApplicationDelegate.m \ |
|
42 |
PropertiesUtilities.m \ |
|
43 |
ThreadUtilities.m |
|
44 |
||
45 |
# |
|
46 |
# Rules. |
|
47 |
# |
|
48 |
include $(BUILDDIR)/common/Library.gmk |
|
49 |
||
50 |
# |
|
51 |
# Add to the ambient vpath to pick up files in subdirectories |
|
52 |
# |
|
53 |
vpath %.m $(call NativeSrcDirList,,native/sun/osxapp) |
|
54 |
||
55 |
# TODO: perhaps not all of the below frameworks are required |
|
56 |
OTHER_LDLIBS += \ |
|
57 |
-framework Accelerate \ |
|
58 |
-framework ApplicationServices \ |
|
59 |
-framework AudioToolbox \ |
|
60 |
-framework Carbon \ |
|
61 |
-framework Cocoa \ |
|
62 |
-framework Security \ |
|
63 |
-framework ExceptionHandling \ |
|
64 |
-framework JavaNativeFoundation \ |
|
65 |
-framework JavaRuntimeSupport \ |
|
66 |
-framework OpenGL \ |
|
67 |
-framework IOSurface \ |
|
68 |
-framework QuartzCore |
|
69 |
||
70 |
CPPFLAGS += \ |
|
13992
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
71 |
-I$(GEN_DIR) \ |
12047 | 72 |
$(call NativeSrcDirList,-I,/native/sun/osxapp) |
73 |
||
74 |
||
75 |
ifeq ($(MILESTONE), internal) |
|
76 |
CPPFLAGS += -DINTERNAL_BUILD |
|
77 |
endif |
|
78 |
||
13992
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
79 |
TEMPDIR_CLASSES = $(TEMPDIR)/classes |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
80 |
|
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
81 |
$(TEMPDIR_CLASSES)/sun/osxapp/ToBin.class: ToBin.java |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
82 |
@$(prep-target) |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
83 |
$(BOOT_JAVAC_CMD) -d $(TEMPDIR_CLASSES) $< |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
84 |
|
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
85 |
ifdef OPENJDK |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
86 |
ICONS_PATH_PREFIX=$(PLATFORM_SRC_MACOS) |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
87 |
else |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
88 |
ICONS_PATH_PREFIX=$(CLOSED_SRC)/macosx |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
89 |
endif |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
90 |
|
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
91 |
generated.clean: |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
92 |
$(RM) -r $(GEN_DIR)/*.h |
12047 | 93 |
|
13992
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
94 |
ICONPATH=$(ICONS_PATH_PREFIX)/native/sun/osxapp/resource/icons |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
95 |
ICON = $(ICONPATH)/JavaApp.icns |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
96 |
|
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
97 |
$(GEN_DIR)/AWTIconData.h: $(TEMPDIR_CLASSES)/sun/osxapp/ToBin.class $(ICON) |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
98 |
$(prep-target) |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
99 |
$(RM) $(ICON_DATA) |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
100 |
$(ECHO) "static unsigned char sAWTIconData[] = { " >> $(ICON_DATA); \ |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
101 |
$(CAT) $(ICON) | \ |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
102 |
$(BOOT_JAVA_CMD) -cp $(TEMPDIR_CLASSES) -Djava.awt.headless=true \ |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
103 |
sun.osxapp.ToBin >> $(ICON_DATA); \ |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
104 |
$(ECHO) "};" >> $(ICON_DATA); |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
105 |
|
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
106 |
|
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
107 |
clean clobber:: generated.clean |
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
108 |
|
d1b65c4e924c
7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents:
12047
diff
changeset
|
109 |
.PHONY: generated.clean |