jdk
153 строки · 6.0 Кб
1#
2# Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
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
26DISABLED_WARNINGS_java += dangling-doc-comments lossy-conversions this-escape
27DOCLINT += -Xdoclint:all/protected \
28'-Xdoclint/package:java.*,javax.*'
29COPY += .gif .png .wav .txt .xml .css .pf
30CLEAN += iio-plugin.properties cursors.properties
31
32EXCLUDES += \
33java/awt/doc-files \
34javax/swing/doc-files \
35javax/swing/text/doc-files \
36javax/swing/plaf/synth/doc-files \
37javax/swing/undo/doc-files \
38sun/awt/X11/doc-files \
39#
40
41EXCLUDE_FILES += \
42javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
43javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \
44javax/swing/plaf/nimbus/ScrollBarPainter.java \
45javax/swing/plaf/nimbus/SliderPainter.java \
46javax/swing/plaf/nimbus/SpinnerPainter.java \
47javax/swing/plaf/nimbus/SplitPanePainter.java \
48javax/swing/plaf/nimbus/TabbedPanePainter.java \
49sun/awt/resources/security-icon-bw16.png \
50sun/awt/resources/security-icon-bw24.png \
51sun/awt/resources/security-icon-bw32.png \
52sun/awt/resources/security-icon-bw48.png \
53sun/awt/resources/security-icon-interim16.png \
54sun/awt/resources/security-icon-interim24.png \
55sun/awt/resources/security-icon-interim32.png \
56sun/awt/resources/security-icon-interim48.png \
57sun/awt/resources/security-icon-yellow16.png \
58sun/awt/resources/security-icon-yellow24.png \
59sun/awt/resources/security-icon-yellow32.png \
60sun/awt/resources/security-icon-yellow48.png \
61sun/awt/X11/java-icon16.png \
62sun/awt/X11/java-icon24.png \
63sun/awt/X11/java-icon32.png \
64sun/awt/X11/java-icon48.png \
65.template \
66#
67
68ifeq ($(call isTargetOs, macosx), true)
69# exclude all X11 on Mac.
70EXCLUDES += \
71sun/awt/screencast \
72sun/awt/X11 \
73sun/java2d/x11 \
74sun/java2d/jules \
75sun/java2d/xr \
76com/sun/java/swing/plaf/gtk \
77#
78EXCLUDE_FILES += \
79$(wildcard $(TOPDIR)/src/java.desktop/unix/classes/sun/java2d/*.java) \
80$(wildcard $(TOPDIR)/src/java.desktop/unix/classes/sun/java2d/opengl/*.java) \
81$(wildcard $(TOPDIR)/src/java.desktop/unix/classes/sun/awt/*.java) \
82$(wildcard $(TOPDIR)/src/java.desktop/unix/classes/sun/font/*.java) \
83#
84else
85# TBD: figure out how to eliminate this long list
86EXCLUDE_FILES += \
87sun/awt/X11/ScreenFormat.java \
88sun/awt/X11/XArc.java \
89sun/awt/X11/XChar2b.java \
90sun/awt/X11/XCharStruct.java \
91sun/awt/X11/XClassHint.java \
92sun/awt/X11/XComposeStatus.java \
93sun/awt/X11/XExtCodes.java \
94sun/awt/X11/XFontProp.java \
95sun/awt/X11/XFontSetExtents.java \
96sun/awt/X11/XFontStruct.java \
97sun/awt/X11/XGCValues.java \
98sun/awt/X11/XHostAddress.java \
99sun/awt/X11/XIMCallback.java \
100sun/awt/X11/XIMHotKeyTrigger.java \
101sun/awt/X11/XIMHotKeyTriggers.java \
102sun/awt/X11/XIMPreeditCaretCallbackStruct.java \
103sun/awt/X11/XIMPreeditDrawCallbackStruct.java \
104sun/awt/X11/XIMPreeditStateNotifyCallbackStruct.java \
105sun/awt/X11/XIMStatusDrawCallbackStruct.java \
106sun/awt/X11/XIMStringConversionCallbackStruct.java \
107sun/awt/X11/XIMStringConversionText.java \
108sun/awt/X11/XIMStyles.java \
109sun/awt/X11/XIMText.java \
110sun/awt/X11/XIMValuesList.java \
111sun/awt/X11/XImage.java \
112sun/awt/X11/XKeyboardControl.java \
113sun/awt/X11/XKeyboardState.java \
114sun/awt/X11/XOMCharSetList.java \
115sun/awt/X11/XOMFontInfo.java \
116sun/awt/X11/XOMOrientation.java \
117sun/awt/X11/XPoint.java \
118sun/awt/X11/XRectangle.java \
119sun/awt/X11/XSegment.java \
120sun/awt/X11/XStandardColormap.java \
121sun/awt/X11/XTextItem.java \
122sun/awt/X11/XTextItem16.java \
123sun/awt/X11/XTextProperty.java \
124sun/awt/X11/XTimeCoord.java \
125sun/awt/X11/XWindowChanges.java \
126sun/awt/X11/XdbeSwapInfo.java \
127sun/awt/X11/XmbTextItem.java \
128sun/awt/X11/XwcTextItem.java
129endif
130
131ifeq ($(call isTargetOs, windows), true)
132EXCLUDES += com/sun/java/swing/plaf/gtk
133endif
134
135ifeq ($(call isTargetOs, windows macosx), false)
136EXCLUDE_FILES += sun/awt/AWTCharset.java
137endif
138
139# These files do not appear in the build result of the old build. This
140# is because they are generated sources, but the AUTO_JAVA_FILES won't
141# pick them up since they aren't generated when the source dirs are
142# searched and they aren't referenced by any other classes so they won't
143# be picked up by implicit compilation. On a rebuild, they are picked up
144# and compiled.
145EXCLUDE_FILES += \
146javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
147javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \
148javax/swing/plaf/nimbus/ScrollBarPainter.java \
149javax/swing/plaf/nimbus/SliderPainter.java \
150javax/swing/plaf/nimbus/SpinnerPainter.java \
151javax/swing/plaf/nimbus/SplitPanePainter.java \
152javax/swing/plaf/nimbus/TabbedPanePainter.java \
153#
154