ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2011, 2012, 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 | |
| 26 | default: all |
| 27 | |
| 28 | include $(SPEC) |
| 29 | include MakeBase.gmk |
| 30 | include JavaCompilation.gmk |
| 31 | |
| 32 | # Setup the java compilers for the JDK build. |
| 33 | include Setup.gmk |
| 34 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 35 | JARS := |
| 36 | EXFILES := |
| 37 | EXCLUDES := |
| 38 | |
| 39 | ########################################################################################## |
| 40 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 41 | EXCLUDES += com/sun/pept \ |
| 42 | com/sun/tools/example/trace \ |
| 43 | com/sun/tools/example/debug/bdi \ |
| 44 | com/sun/tools/example/debug/event \ |
| 45 | com/sun/tools/example/debug/gui |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 46 | |
| 47 | ifdef OPENJDK |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 48 | EXCLUDES += sun/dc \ |
| 49 | com/sun/jmx/snmp \ |
| 50 | sun/management/snmp \ |
| 51 | com/sun/script |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 52 | endif |
| 53 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 54 | ifndef OPENJDK |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 55 | # There exists two versions of this file... |
| 56 | EXFILES := $(JDK_TOPDIR)/src/share/classes/javax/crypto/JarVerifier.java |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 57 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 58 | ifeq ($(OPENJDK_TARGET_OS), windows) |
| 59 | # This gets built on unix platforms implicitly in the old build even though |
| 60 | # it's excluded in the closed build. |
| 61 | EXCLUDES += sun/java2d/pisces |
raginip | 450da98 | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 62 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 63 | # AccessBridge is compiled separately below. |
| 64 | EXFILES += AccessBridge.java \ |
| 65 | AccessBridgeLoader.java \ |
| 66 | com/sun/java/accessibility/util/java/awt/ChoiceTranslator.java |
| 67 | # This seems to never be built |
| 68 | EXCLUDES += com/sun/java/accessibility/extensions |
| 69 | endif |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 70 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 71 | endif |
| 72 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 73 | ifneq ($(OPENJDK_TARGET_OS), solaris) |
| 74 | # Exclude Solaris nio and two security related files in src/share/classes |
| 75 | EXFILES += SolarisAclFileAttributeView.java \ |
| 76 | SolarisFileStore.java \ |
| 77 | SolarisFileSystem.java \ |
| 78 | SolarisFileSystemProvider.java \ |
| 79 | SolarisNativeDispatcher.java \ |
| 80 | SolarisUserDefinedFileAttributeView.java \ |
| 81 | SolarisWatchService.java \ |
| 82 | SolarisAclFileAttributeView.java \ |
| 83 | SolarisLoginModule.java \ |
| 84 | SolarisSystem.java \ |
| 85 | sun/nio/ch/DevPollArrayWrapper.java \ |
| 86 | sun/nio/ch/DevPollSelectorImpl.java \ |
| 87 | sun/nio/ch/DevPollSelectorProvider.java \ |
| 88 | sun/nio/ch/EventPortSelectorImpl.java \ |
| 89 | sun/nio/ch/EventPortSelectorProvider.java \ |
| 90 | sun/nio/ch/EventPortWrapper.java \ |
| 91 | sun/nio/ch/SolarisAsynchronousChannelProvider.java \ |
| 92 | sun/nio/ch/SolarisEventPort.java \ |
| 93 | sun/tools/attach/SolarisAttachProvider.java \ |
| 94 | sun/tools/attach/SolarisVirtualMachine.java |
erikj | 2762cda | 2013-01-02 15:35:12 +0100 | [diff] [blame] | 95 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 96 | EXCLUDES += com/oracle/security |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 97 | endif |
| 98 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 99 | # In the old build, this isn't excluded on macosx, even though it probably |
| 100 | # should be. |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 101 | ifneq ($(OPENJDK_TARGET_OS), macosx) |
| 102 | EXFILES += WrapperGenerator.java |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 103 | endif |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 104 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 105 | ifneq ($(OPENJDK_TARGET_OS), windows) |
| 106 | # Exclude Window security related files in src/share/classes |
| 107 | EXFILES += NTLoginModule.java \ |
| 108 | NTSystem.java |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 109 | else |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 110 | EXFILES += UnixLoginModule.java \ |
| 111 | UnixSystem.java |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 112 | endif |
| 113 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 114 | ifeq ($(OPENJDK_TARGET_OS), windows) |
| 115 | # Don't build GTK L&F on Windows |
| 116 | EXCLUDES += com/sun/java/swing/plaf/gtk |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 117 | endif |
| 118 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 119 | ifneq ($(OPENJDK_TARGET_OS), linux) |
| 120 | EXFILES += sun/tools/attach/LinuxAttachProvider.java \ |
| 121 | sun/tools/attach/LinuxVirtualMachine.java \ |
| 122 | sun/nio/ch/EPoll.java \ |
| 123 | sun/nio/ch/EPollArrayWrapper.java \ |
| 124 | sun/nio/ch/EPollPort.java \ |
| 125 | sun/nio/ch/EPollSelectorImpl.java \ |
| 126 | sun/nio/ch/EPollSelectorProvider.java \ |
| 127 | sun/nio/ch/LinuxAsynchronousChannelProvider.java \ |
| 128 | sun/nio/fs/LinuxDosFileAttributeView.java \ |
| 129 | sun/nio/fs/LinuxFileStore.java \ |
| 130 | sun/nio/fs/LinuxFileSystem.java \ |
| 131 | sun/nio/fs/LinuxFileSystemProvider.java \ |
| 132 | sun/nio/fs/MagicFileTypeDetector.java \ |
| 133 | sun/nio/fs/LinuxNativeDispatcher.java \ |
| 134 | sun/nio/fs/LinuxUserDefinedFileAttributeView.java \ |
| 135 | sun/nio/fs/LinuxWatchService.java |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 136 | endif |
| 137 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 138 | ifneq ($(OPENJDK_TARGET_OS), macosx) |
| 139 | EXFILES += sun/nio/ch/BsdAsynchronousChannelProvider.java \ |
| 140 | sun/nio/ch/KQueue.java \ |
| 141 | sun/nio/ch/KQueuePort.java \ |
| 142 | sun/nio/fs/BsdFileStore.java \ |
| 143 | sun/nio/fs/BsdFileSystem.java \ |
| 144 | sun/nio/fs/BsdFileSystemProvider.java \ |
| 145 | sun/nio/fs/BsdNativeDispatcher.java \ |
| 146 | sun/nio/fs/MacOSXFileSystemProvider.java \ |
| 147 | sun/nio/fs/MacOSXFileSystem.java \ |
| 148 | sun/nio/fs/MacOSXNativeDispatcher.java \ |
| 149 | sun/tools/attach/BsdAttachProvider.java \ |
| 150 | sun/tools/attach/BsdVirtualMachine.java |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 151 | endif |
| 152 | |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 153 | # Exclude BreakIterator classes that are just used in compile process to generate |
| 154 | # data files and shouldn't go in the product |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 155 | EXFILES += sun/text/resources/BreakIteratorRules.java \ |
| 156 | sun/text/resources/BreakIteratorRules_th.java |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 157 | |
| 158 | # TODO: Add BUILD_HEADLESS_ONLY to configure? |
| 159 | ifdef BUILD_HEADLESS_ONLY |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 160 | EXCLUDES += sun/applet |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 161 | endif |
| 162 | |
| 163 | ifdef OPENJDK |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 164 | EXCLUDES += sun/java2d/cmm/kcms |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 165 | endif |
| 166 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 167 | # Used on windows and macosx |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 168 | ifeq (, $(filter $(OPENJDK_TARGET_OS), windows macosx)) |
| 169 | EXFILES += sun/awt/AWTCharset.java |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 170 | endif |
| 171 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 172 | ifneq ($(OPENJDK_TARGET_OS), macosx) |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 173 | EXFILES += sun/awt/X11/ScreenFormat.java \ |
| 174 | sun/awt/X11/XArc.java \ |
| 175 | sun/awt/X11/XChar2b.java \ |
| 176 | sun/awt/X11/XCharStruct.java \ |
| 177 | sun/awt/X11/XClassHint.java \ |
| 178 | sun/awt/X11/XComposeStatus.java \ |
| 179 | sun/awt/X11/XExtCodes.java \ |
| 180 | sun/awt/X11/XFontProp.java \ |
| 181 | sun/awt/X11/XFontSetExtents.java \ |
| 182 | sun/awt/X11/XFontStruct.java \ |
| 183 | sun/awt/X11/XGCValues.java \ |
| 184 | sun/awt/X11/XHostAddress.java \ |
| 185 | sun/awt/X11/XIMCallback.java \ |
| 186 | sun/awt/X11/XIMHotKeyTrigger.java \ |
| 187 | sun/awt/X11/XIMHotKeyTriggers.java \ |
| 188 | sun/awt/X11/XIMPreeditCaretCallbackStruct.java \ |
| 189 | sun/awt/X11/XIMPreeditDrawCallbackStruct.java \ |
| 190 | sun/awt/X11/XIMPreeditStateNotifyCallbackStruct.java \ |
| 191 | sun/awt/X11/XIMStatusDrawCallbackStruct.java \ |
| 192 | sun/awt/X11/XIMStringConversionCallbackStruct.java \ |
| 193 | sun/awt/X11/XIMStringConversionText.java \ |
| 194 | sun/awt/X11/XIMStyles.java \ |
| 195 | sun/awt/X11/XIMText.java \ |
| 196 | sun/awt/X11/XIMValuesList.java \ |
| 197 | sun/awt/X11/XImage.java \ |
| 198 | sun/awt/X11/XKeyboardControl.java \ |
| 199 | sun/awt/X11/XKeyboardState.java \ |
| 200 | sun/awt/X11/XOMCharSetList.java \ |
| 201 | sun/awt/X11/XOMFontInfo.java \ |
| 202 | sun/awt/X11/XOMOrientation.java \ |
| 203 | sun/awt/X11/XPoint.java \ |
| 204 | sun/awt/X11/XRectangle.java \ |
| 205 | sun/awt/X11/XSegment.java \ |
| 206 | sun/awt/X11/XStandardColormap.java \ |
| 207 | sun/awt/X11/XTextItem.java \ |
| 208 | sun/awt/X11/XTextItem16.java \ |
| 209 | sun/awt/X11/XTextProperty.java \ |
| 210 | sun/awt/X11/XTimeCoord.java \ |
| 211 | sun/awt/X11/XWindowChanges.java \ |
| 212 | sun/awt/X11/XdbeSwapInfo.java \ |
| 213 | sun/awt/X11/XmbTextItem.java \ |
| 214 | sun/awt/X11/XwcTextItem.java |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 215 | endif |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 216 | |
| 217 | # Exclude another implicitly not included file. |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 218 | EXFILES += sun/util/locale/AsciiUtil.java |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 219 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 220 | ifeq (, $(filter $(OPENJDK_TARGET_OS), solaris macosx)) |
| 221 | # |
| 222 | # only solaris and macosx |
| 223 | # |
| 224 | EXFILES += sun/nio/fs/PollingWatchService.java |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 225 | endif |
| 226 | |
| 227 | # TODO: Fix when converting NIO |
| 228 | # Exclude *-linux-arm.java and *-linux-ppc.java from closed. |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 229 | EXFILES += -linux-arm.java \ |
| 230 | -linux-ppc.java |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 231 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 232 | ifeq ($(OPENJDK_TARGET_OS), windows) |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 233 | EXFILES += sun/nio/ch/AbstractPollSelectorImpl.java \ |
| 234 | sun/nio/ch/PollSelectorProvider.java \ |
| 235 | sun/nio/ch/SimpleAsynchronousFileChannelImpl.java |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 236 | endif |
| 237 | |
erikj | f08e4b1 | 2013-01-04 16:54:41 +0100 | [diff] [blame] | 238 | # These files do not appear in the build result of the old build. This |
| 239 | # is because they are generated sources, but the AUTO_JAVA_FILES won't |
mduigou | 645aeab | 2013-09-27 10:21:04 -0700 | [diff] [blame] | 240 | # pick them up since they aren't generated when the source dirs are |
erikj | f08e4b1 | 2013-01-04 16:54:41 +0100 | [diff] [blame] | 241 | # searched and they aren't referenced by any other classes so they won't |
| 242 | # be picked up by implicit compilation. On a rebuild, they are picked up |
mduigou | 645aeab | 2013-09-27 10:21:04 -0700 | [diff] [blame] | 243 | # and compiled. Exclude them here to produce the same rt.jar as the old |
erikj | f08e4b1 | 2013-01-04 16:54:41 +0100 | [diff] [blame] | 244 | # build does when building just once. |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 245 | EXFILES += javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \ |
| 246 | javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \ |
| 247 | javax/swing/plaf/nimbus/ScrollBarPainter.java \ |
| 248 | javax/swing/plaf/nimbus/SliderPainter.java \ |
| 249 | javax/swing/plaf/nimbus/SpinnerPainter.java \ |
| 250 | javax/swing/plaf/nimbus/SplitPanePainter.java \ |
| 251 | javax/swing/plaf/nimbus/TabbedPanePainter.java |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 252 | |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 253 | # Acquire a list of files that should be copied straight over to the classes. |
| 254 | include CopyIntoClasses.gmk |
| 255 | # Now we have COPY_PATTERNS, COPY_FILES and COPY_EXTRA |
| 256 | |
| 257 | ifndef OPENJDK |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 258 | CLOSED_SRC_DIRS := $(JDK_TOPDIR)/src/closed/share/classes \ |
| 259 | $(JDK_TOPDIR)/src/closed/$(OPENJDK_TARGET_OS_API_DIR)/classes |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 260 | endif |
| 261 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 262 | MACOSX_SRC_DIRS := |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 263 | ifeq ($(OPENJDK_TARGET_OS), macosx) |
| 264 | MACOSX_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/classes |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 265 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 266 | # this files are duplicated in MACOSX_SRC_DIRS |
| 267 | EXFILES += $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/DefaultSelectorProvider.java \ |
| 268 | $(JDK_TOPDIR)/src/solaris/classes/sun/java2d/BackBufferCapsProvider.java \ |
| 269 | $(JDK_TOPDIR)/src/solaris/classes/java/net/DefaultInterface.java \ |
| 270 | $(JDK_TOPDIR)/src/solaris/classes/java/lang/ClassLoaderHelper.java \ |
| 271 | $(JDK_TOPDIR)/src/solaris/classes/sun/util/locale/provider/HostLocaleProviderAdapterImpl.java \ |
lana | 0954385 | 2013-10-17 15:04:55 -0700 | [diff] [blame^] | 272 | $(JDK_TOPDIR)/src/solaris/classes/sun/nio/fs/GnomeFileTypeDetector.java \ |
| 273 | $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/SctpChannelImpl.java \ |
| 274 | $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/SctpMultiChannelImpl.java \ |
| 275 | $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/SctpServerChannelImpl.java |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 276 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 277 | # JObjC.jar contains 1.5 byte-code...so skip it here :-( |
| 278 | # MACOSX_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/native/jobjc/src |
| 279 | # EXCLUDES += tests/java/com/apple/jobjc |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 280 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 281 | EXCLUDES += com/apple/jobjc |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 282 | endif |
| 283 | |
| 284 | # The exception handling of swing beaninfo |
| 285 | # These resources violates the convention of having code and resources together under |
| 286 | # $(JDK_TOPDIR)/src/.../classes directories |
| 287 | $(JDK_OUTPUTDIR)/classes/javax/swing/beaninfo/images/%.gif: $(JDK_TOPDIR)/make/tools/swing-beans/beaninfo/images/%.gif |
erikj | 10d96fb | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 288 | $(call install-file) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 289 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 290 | # The JDK_USER_DEFINED_FILTER is a poor man's incremental build: by specifying |
| 291 | # JDK_FILTER at the make command line, only a subset of the JDK java files will |
| 292 | # be recompiled. If multiple paths are separated by comma, convert that into a |
| 293 | # space separated list. |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 294 | JDK_USER_DEFINED_FILTER := $(strip $(subst $(COMMA),$(SPACE), $(JDK_FILTER))) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 295 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 296 | $(eval $(call SetupJavaCompilation,BUILD_JDK, \ |
| 297 | SETUP := GENERATE_JDKBYTECODE, \ |
| 298 | SRC := $(JDK_TOPDIR)/src/share/classes \ |
| 299 | $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes \ |
| 300 | $(MACOSX_SRC_DIRS) \ |
| 301 | $(JDK_OUTPUTDIR)/gensrc \ |
| 302 | $(JDK_OUTPUTDIR)/gensrc_no_srczip \ |
| 303 | $(CLOSED_SRC_DIRS), \ |
| 304 | INCLUDES := $(JDK_USER_DEFINED_FILTER), \ |
| 305 | EXCLUDES := $(EXCLUDES), \ |
| 306 | EXCLUDE_FILES := $(EXFILES), \ |
| 307 | BIN := $(JDK_OUTPUTDIR)/classes, \ |
| 308 | COPY := $(COPY_PATTERNS), \ |
| 309 | COPY_FILES := $(COPY_FILES), \ |
| 310 | HEADERS := $(JDK_OUTPUTDIR)/gensrc_headers)) |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 311 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 312 | ########################################################################################## |
raginip | 450da98 | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 313 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 314 | $(JDK_OUTPUTDIR)/classes/META-INF/services/com.sun.tools.xjc.Plugin: |
| 315 | $(MKDIR) -p $(@D) |
| 316 | $(TOUCH) $@ |
| 317 | |
| 318 | ########################################################################################## |
| 319 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 320 | ifeq ($(OPENJDK_TARGET_OS), macosx) |
| 321 | # |
| 322 | # JObjC.jar is compiled with BOOT_JAVAC which (may) not support the "-h" flag. |
| 323 | # so we first compile classes with BOOT_JAVAC and then with JDK_JAVAC :-( |
| 324 | # |
| 325 | $(eval $(call SetupJavaCompiler,GENERATE_15BYTECODE, \ |
| 326 | JAVAC := $(JAVAC), \ |
| 327 | FLAGS := -source 1.5 -target 1.5 -g -bootclasspath $(BOOT_RTJAR) -cp $(JDK_OUTPUTDIR)/../langtools/dist/lib/classes.jar $(DISABLE_WARNINGS), \ |
| 328 | SERVER_DIR := $(SJAVAC_SERVER_DIR), \ |
| 329 | SERVER_JVM := $(SJAVAC_SERVER_JAVA))) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 330 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 331 | $(eval $(call SetupJavaCompilation,BUILD_JOBJC, \ |
| 332 | SETUP := GENERATE_15BYTECODE, \ |
| 333 | DISABLE_SJAVAC := true, \ |
| 334 | SRC := $(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/java \ |
| 335 | $(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/java \ |
| 336 | $(JDK_OUTPUTDIR)/gensrc_jobjc/src, \ |
| 337 | INCLUDES := com/apple/jobjc, \ |
| 338 | EXCLUDES := tests/java/com/apple/jobjc, \ |
| 339 | BIN := $(JDK_OUTPUTDIR)/jobjc_classes, \ |
| 340 | JAR := $(JDK_OUTPUTDIR)/lib/JObjC.jar, \ |
| 341 | JARINDEX := true)) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 342 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 343 | $(BUILD_JOBJC): $(BUILD_JDK) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 344 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 345 | $(eval $(call SetupJavaCompilation,BUILD_JOBJC_HEADERS, \ |
| 346 | SETUP := GENERATE_JDKBYTECODE, \ |
| 347 | SRC := $(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/java \ |
| 348 | $(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/java \ |
| 349 | $(JDK_OUTPUTDIR)/gensrc_jobjc/src, \ |
| 350 | INCLUDES := com/apple/jobjc, \ |
| 351 | EXCLUDES := tests/java/com/apple/jobjc, \ |
| 352 | BIN := $(JDK_OUTPUTDIR)/jobjc_classes_headers, \ |
| 353 | HEADERS := $(JDK_OUTPUTDIR)/gensrc_headers_jobjc)) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 354 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 355 | $(BUILD_JOBJC_HEADERS): $(BUILD_JDK) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 356 | |
| 357 | endif |
| 358 | |
| 359 | ########################################################################################## |
| 360 | |
raginip | 450da98 | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 361 | ifndef OPENJDK |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 362 | ifeq ($(OPENJDK_TARGET_OS), windows) |
| 363 | ifeq ($(OPENJDK_TARGET_CPU_BITS), 32) |
| 364 | $(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_32, \ |
| 365 | SETUP := GENERATE_JDKBYTECODE, \ |
| 366 | JAVAC_FLAGS := -cp $(JDK_OUTPUTDIR)/classes, \ |
| 367 | SRC := $(JDK_OUTPUTDIR)/gensrc_ab/32bit, \ |
| 368 | BIN := $(JDK_OUTPUTDIR)/classes_ab/32bit)) |
raginip | 450da98 | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 369 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 370 | $(BUILD_ACCESSBRIDGE_32): $(BUILD_JDK) |
raginip | 450da98 | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 371 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 372 | $(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_LEGACY, \ |
| 373 | SETUP := GENERATE_JDKBYTECODE, \ |
| 374 | JAVAC_FLAGS := -cp $(JDK_OUTPUTDIR)/classes, \ |
| 375 | SRC := $(JDK_OUTPUTDIR)/gensrc_ab/legacy, \ |
| 376 | BIN := $(JDK_OUTPUTDIR)/classes_ab/legacy)) |
raginip | 450da98 | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 377 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 378 | $(BUILD_ACCESSBRIDGE_LEGACY): $(BUILD_JDK) |
raginip | 450da98 | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 379 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 380 | else |
raginip | 450da98 | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 381 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 382 | $(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_64, \ |
| 383 | SETUP := GENERATE_JDKBYTECODE, \ |
| 384 | JAVAC_FLAGS := -cp $(JDK_OUTPUTDIR)/classes, \ |
| 385 | SRC := $(JDK_OUTPUTDIR)/gensrc_ab/64bit, \ |
| 386 | BIN := $(JDK_OUTPUTDIR)/classes_ab/64bit)) |
raginip | 450da98 | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 387 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 388 | $(BUILD_ACCESSBRIDGE_64): $(BUILD_JDK) |
raginip | 450da98 | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 389 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 390 | endif |
| 391 | endif |
raginip | 450da98 | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 392 | endif |
| 393 | |
| 394 | ########################################################################################## |
| 395 | |
mduigou | 645aeab | 2013-09-27 10:21:04 -0700 | [diff] [blame] | 396 | all: $(BUILD_JDK) $(BUILD_JOBJC) $(BUILD_JOBJC_HEADERS) $(COPY_EXTRA) \ |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 397 | $(JDK_OUTPUTDIR)/classes/META-INF/services/com.sun.tools.xjc.Plugin \ |
| 398 | $(BUILD_ACCESSBRIDGE_32) $(BUILD_ACCESSBRIDGE_64) \ |
| 399 | $(BUILD_ACCESSBRIDGE_LEGACY) |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 400 | |
| 401 | .PHONY: all |