erikj | e78df74 | 2012-06-07 20:40:50 -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 | include $(SPEC) |
| 27 | include MakeBase.gmk |
| 28 | include JavaCompilation.gmk |
| 29 | include Setup.gmk |
| 30 | |
| 31 | default: all |
| 32 | |
| 33 | include Tools.gmk |
| 34 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 35 | # |
| 36 | # This makefile...so that altering will trigger rebuilding include/exclude-lists => jars |
| 37 | # |
| 38 | MAKEFILE=$(JDK_TOPDIR)/makefiles/CreateJars.gmk |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 39 | |
| 40 | MAINMANIFEST := $(JDK_TOPDIR)/make/tools/manifest.mf |
| 41 | BEANMANIFEST := $(JDK_TOPDIR)/make/javax/swing/beaninfo/manifest |
| 42 | |
| 43 | JARS:= |
| 44 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 45 | $(eval $(call MakeDir,$(IMAGES_OUTPUTDIR)/lib)) |
| 46 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 47 | ########################################################################################## |
| 48 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 49 | $(eval $(call SetupArchive,BUILD_JCONSOLE_JAR,,\ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 50 | SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 51 | SUFFIXES:=.class .gif .png .properties,\ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 52 | INCLUDES:=sun/tools/jconsole com/sun/tools/jconsole,\ |
| 53 | JARMAIN:=sun.tools.jconsole.JConsole,\ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 54 | JAR:=$(IMAGES_OUTPUTDIR)/lib/jconsole.jar,\ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 55 | SKIP_METAINF:=true)) |
| 56 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 57 | JARS+=$(IMAGES_OUTPUTDIR)/lib/jconsole.jar |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 58 | |
| 59 | ########################################################################################## |
| 60 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 61 | $(eval $(call SetupArchive,BUILD_DNS_JAR,,\ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 62 | SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
| 63 | INCLUDES:=sun/net/spi/nameservice/dns,\ |
| 64 | EXTRA_FILES:=META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor,\ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 65 | JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/dnsns.jar,\ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 66 | SKIP_METAINF:=true)) |
| 67 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 68 | JARS+=$(IMAGES_OUTPUTDIR)/lib/ext/dnsns.jar |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 69 | |
| 70 | ########################################################################################## |
| 71 | |
naoto | 85d2c71 | 2012-10-31 11:33:36 -0700 | [diff] [blame] | 72 | LOCALEDATA_INCLUDE_LOCALES := ar be bg ca cs da de el es et fi fr ga hi hr hu in is it \ |
| 73 | iw ja ko lt lv mk ms mt nl no pl pt ro ru sk sl sq sr sv \ |
| 74 | th tr uk vi zh |
| 75 | |
naoto | c378ffc | 2012-08-21 11:00:30 -0700 | [diff] [blame] | 76 | LOCALEDATA_INCLUDES := $(addprefix sun/text/resources/,$(LOCALEDATA_INCLUDE_LOCALES)) \ |
| 77 | $(addprefix sun/util/resources/,$(LOCALEDATA_INCLUDE_LOCALES)) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 78 | |
naoto | 85d2c71 | 2012-10-31 11:33:36 -0700 | [diff] [blame] | 79 | # For non-US English locale data |
| 80 | |
| 81 | LOCALEDATA_INCLUDES += \ |
| 82 | sun/text/resources/en/FormatData_en_AU.class \ |
| 83 | sun/text/resources/en/FormatData_en_CA.class \ |
| 84 | sun/text/resources/en/FormatData_en_GB.class \ |
| 85 | sun/text/resources/en/FormatData_en_IE.class \ |
| 86 | sun/text/resources/en/FormatData_en_IN.class \ |
| 87 | sun/text/resources/en/FormatData_en_MT.class \ |
| 88 | sun/text/resources/en/FormatData_en_NZ.class \ |
| 89 | sun/text/resources/en/FormatData_en_PH.class \ |
| 90 | sun/text/resources/en/FormatData_en_SG.class \ |
| 91 | sun/text/resources/en/FormatData_en_ZA.class \ |
| 92 | sun/util/resources/en/CalendarData_en_GB.class \ |
| 93 | sun/util/resources/en/CalendarData_en_IE.class \ |
| 94 | sun/util/resources/en/CalendarData_en_MT.class \ |
| 95 | sun/util/resources/en/CurrencyNames_en_AU.class \ |
| 96 | sun/util/resources/en/CurrencyNames_en_CA.class \ |
| 97 | sun/util/resources/en/CurrencyNames_en_GB.class \ |
| 98 | sun/util/resources/en/CurrencyNames_en_IE.class \ |
| 99 | sun/util/resources/en/CurrencyNames_en_IN.class \ |
| 100 | sun/util/resources/en/CurrencyNames_en_MT.class \ |
| 101 | sun/util/resources/en/CurrencyNames_en_NZ.class \ |
| 102 | sun/util/resources/en/CurrencyNames_en_PH.class \ |
| 103 | sun/util/resources/en/CurrencyNames_en_SG.class \ |
| 104 | sun/util/resources/en/CurrencyNames_en_ZA.class \ |
| 105 | sun/util/resources/en/LocaleNames_en_MT.class \ |
| 106 | sun/util/resources/en/LocaleNames_en_PH.class \ |
| 107 | sun/util/resources/en/LocaleNames_en_SG.class \ |
| 108 | sun/util/resources/en/TimeZoneNames_en_CA.class \ |
| 109 | sun/util/resources/en/TimeZoneNames_en_GB.class \ |
| 110 | sun/util/resources/en/TimeZoneNames_en_IE.class |
| 111 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 112 | $(eval $(call SetupArchive,BUILD_LOCALEDATA_JAR,,\ |
| 113 | SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
| 114 | SUFFIXES:=.class _dict _th,\ |
| 115 | INCLUDES:=$(LOCALEDATA_INCLUDES),\ |
naoto | c378ffc | 2012-08-21 11:00:30 -0700 | [diff] [blame] | 116 | EXCLUDES:=sun/text/resources/th/BreakIteratorRules_th.class,\ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 117 | JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/localedata.jar,\ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 118 | SKIP_METAINF:=true)) |
| 119 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 120 | JARS+=$(IMAGES_OUTPUTDIR)/lib/ext/localedata.jar |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 121 | |
| 122 | ########################################################################################## |
| 123 | # rt.jar and resources.jar are being built in the same way as in the old build. They require |
| 124 | # the files to be in a certain order and converting that is not easy and will not be needed |
| 125 | # in jigsaw anyway. |
| 126 | |
| 127 | # Exclude list for rt.jar and resources.jar |
| 128 | RT_JAR_EXCLUDES := \ |
| 129 | com/sun/javadoc \ |
| 130 | com/sun/jdi \ |
| 131 | com/sun/jarsigner \ |
| 132 | com/sun/source \ |
| 133 | com/sun/istack/internal/tools \ |
| 134 | META-INF/services/com.sun.jdi.connect.Connector \ |
| 135 | META-INF/services/com.sun.jdi.connect.spi.TransportService \ |
| 136 | META-INF/services/com.sun.tools.xjc.Plugin \ |
| 137 | com/sun/tools \ |
| 138 | sun/jvmstat \ |
| 139 | sun/nio/cs/ext \ |
| 140 | sun/awt/HKSCS.class \ |
| 141 | sun/awt/motif/X11GB2312\$$$$Decoder.class \ |
| 142 | sun/awt/motif/X11GB2312\$$$$Encoder.class \ |
| 143 | sun/awt/motif/X11GB2312.class \ |
| 144 | sun/awt/motif/X11GBK\$$$$Encoder.class \ |
| 145 | sun/awt/motif/X11GBK.class \ |
| 146 | sun/awt/motif/X11KSC5601\$$$$Decoder.class \ |
| 147 | sun/awt/motif/X11KSC5601\$$$$Encoder.class \ |
| 148 | sun/awt/motif/X11KSC5601.class \ |
| 149 | META-INF/services/java.nio.charset.spi.CharsetProvider \ |
| 150 | sun/rmi/rmic \ |
| 151 | sun/tools/asm \ |
| 152 | sun/tools/java \ |
| 153 | sun/tools/javac \ |
| 154 | com/sun/tools/classfile \ |
| 155 | com/sun/tools/javap \ |
| 156 | sun/tools/jcmd \ |
| 157 | sun/tools/jconsole \ |
| 158 | sun/tools/jps \ |
| 159 | sun/tools/jstat \ |
| 160 | sun/tools/jstatd \ |
| 161 | sun/tools/native2ascii \ |
| 162 | sun/tools/serialver \ |
| 163 | sun/tools/tree \ |
| 164 | sun/tools/util \ |
erikj | 4f66f2d | 2012-11-03 16:27:01 -0700 | [diff] [blame] | 165 | sun/security/tools/jarsigner \ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 166 | sun/security/provider/Sun.class \ |
| 167 | sun/security/rsa/SunRsaSign.class \ |
| 168 | sun/security/ssl \ |
| 169 | sun/security/ec/ECDHKeyAgreement.class \ |
| 170 | sun/security/ec/ECDSASignature\$$$$Raw.class \ |
| 171 | sun/security/ec/ECDSASignature\$$$$SHA1.class \ |
| 172 | sun/security/ec/ECDSASignature\$$$$SHA224.class \ |
| 173 | sun/security/ec/ECDSASignature\$$$$SHA256.class \ |
| 174 | sun/security/ec/ECDSASignature\$$$$SHA384.class \ |
| 175 | sun/security/ec/ECDSASignature\$$$$SHA512.class \ |
| 176 | sun/security/ec/ECDSASignature.class \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 177 | sun/security/ec/ECKeyFactory.class \ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 178 | sun/security/ec/ECKeyPairGenerator.class \ |
| 179 | sun/security/ec/SunEC\$$$$1.class \ |
| 180 | sun/security/ec/SunEC.class \ |
| 181 | sun/security/ec/SunECEntries.class \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 182 | sun/security/mscapi \ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 183 | sun/security/pkcs11 \ |
| 184 | com/sun/net/ssl/internal/ssl \ |
| 185 | javax/crypto \ |
| 186 | sun/security/internal \ |
| 187 | com/sun/crypto/provider \ |
| 188 | META-INF/services/com.sun.tools.attach.spi.AttachProvider \ |
| 189 | com/sun/tools/attach \ |
| 190 | org/relaxng/datatype \ |
| 191 | com/sun/codemodel \ |
| 192 | com/sun/xml/internal/dtdparser \ |
| 193 | com/sun/xml/internal/rngom \ |
| 194 | com/sun/xml/internal/xsom \ |
| 195 | com/sun/tools/script/shell \ |
| 196 | sun/tools/attach \ |
| 197 | sun/tools/jstack \ |
| 198 | sun/tools/jinfo \ |
| 199 | sun/tools/jmap \ |
| 200 | sun/net/spi/nameservice/dns \ |
| 201 | META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor \ |
| 202 | javax/swing/beaninfo \ |
| 203 | javax/swing/AbstractButtonBeanInfo.class \ |
| 204 | javax/swing/BoxBeanInfo.class \ |
| 205 | javax/swing/JAppletBeanInfo.class \ |
| 206 | javax/swing/JButtonBeanInfo.class \ |
| 207 | javax/swing/JCheckBoxBeanInfo.class \ |
| 208 | javax/swing/JCheckBoxMenuItemBeanInfo.class \ |
| 209 | javax/swing/JColorChooserBeanInfo.class \ |
| 210 | javax/swing/JComboBoxBeanInfo.class \ |
| 211 | javax/swing/JComponentBeanInfo.class \ |
| 212 | javax/swing/JDesktopPaneBeanInfo.class \ |
| 213 | javax/swing/JDialogBeanInfo.class \ |
| 214 | javax/swing/JEditorPaneBeanInfo.class \ |
| 215 | javax/swing/JFileChooserBeanInfo.class \ |
| 216 | javax/swing/JFormattedTextFieldBeanInfo.class \ |
| 217 | javax/swing/JFrameBeanInfo.class \ |
| 218 | javax/swing/JInternalFrameBeanInfo.class \ |
| 219 | javax/swing/JLabelBeanInfo.class \ |
| 220 | javax/swing/JLayeredPaneBeanInfo.class \ |
| 221 | javax/swing/JListBeanInfo.class \ |
| 222 | javax/swing/JMenuBarBeanInfo.class \ |
| 223 | javax/swing/JMenuBeanInfo.class \ |
| 224 | javax/swing/JMenuItemBeanInfo.class \ |
| 225 | javax/swing/JOptionPaneBeanInfo.class \ |
| 226 | javax/swing/JPanelBeanInfo.class \ |
| 227 | javax/swing/JPasswordFieldBeanInfo.class \ |
| 228 | javax/swing/JPopupMenuBeanInfo.class \ |
| 229 | javax/swing/JProgressBarBeanInfo.class \ |
| 230 | javax/swing/JRadioButtonBeanInfo.class \ |
| 231 | javax/swing/JRadioButtonMenuItemBeanInfo.class \ |
| 232 | javax/swing/JScrollBarBeanInfo.class \ |
| 233 | javax/swing/JScrollPaneBeanInfo.class \ |
| 234 | javax/swing/JSeparatorBeanInfo.class \ |
| 235 | javax/swing/JSliderBeanInfo.class \ |
| 236 | javax/swing/JSpinnerBeanInfo.class \ |
| 237 | javax/swing/JSplitPaneBeanInfo.class \ |
| 238 | javax/swing/JTabbedPaneBeanInfo.class \ |
| 239 | javax/swing/JTableBeanInfo.class \ |
| 240 | javax/swing/JTextAreaBeanInfo.class \ |
| 241 | javax/swing/JTextFieldBeanInfo.class \ |
| 242 | javax/swing/JTextPaneBeanInfo.class \ |
| 243 | javax/swing/JToggleButtonBeanInfo.class \ |
| 244 | javax/swing/JToolBarBeanInfo.class \ |
| 245 | javax/swing/JTreeBeanInfo.class \ |
| 246 | javax/swing/JWindowBeanInfo.class \ |
| 247 | javax/swing/SwingBeanInfoBase.class \ |
| 248 | javax/swing/text/JTextComponentBeanInfo.class \ |
| 249 | sun/swing/BeanInfoUtils.class \ |
naoto | c378ffc | 2012-08-21 11:00:30 -0700 | [diff] [blame] | 250 | $(LOCALEDATA_INCLUDES) \ |
| 251 | sun/text/resources/cldr \ |
| 252 | sun/util/resources/cldr \ |
| 253 | sun/util/cldr/CLDRLocaleDataMetaInfo.class |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 254 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 255 | # These files should never be put into rt.jar |
| 256 | # but due to a misstake...some are put there if embedded |
| 257 | # |
| 258 | ifneq ($(JAVASE_EMBEDDED), true) |
| 259 | # normal (correct) case |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 260 | RT_JAR_EXCLUDES += \ |
| 261 | com/oracle/jrockit/jfr \ |
| 262 | oracle/jrockit/jfr |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 263 | else |
| 264 | # embedded (broken) case |
| 265 | RT_JAR_EXCLUDES += \ |
| 266 | oracle/jrockit/jfr/parser \ |
| 267 | oracle/jrockit/jfr/tools \ |
| 268 | oracle/jrockit/jfr/NativeOptions.class \ |
| 269 | oracle/jrockit/jfr/RepositoryChunkHandler.class |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 270 | endif |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 271 | |
| 272 | ifeq ($(OPENJDK_TARGET_OS), macosx) |
| 273 | RT_JAR_EXCLUDES += com/sun/nio/sctp \ |
ohrstrom | 70c3453 | 2012-11-08 12:25:15 +0100 | [diff] [blame^] | 274 | sun/nio/ch/sctp |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 275 | endif |
| 276 | |
| 277 | # Find all files in the classes dir to use as dependencies. This could be more fine granular. |
| 278 | ALL_FILES_IN_CLASSES := $(shell $(FIND) $(JDK_OUTPUTDIR)/classes -type f \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 279 | | $(GREP) -v -e '/_the\.*' -e '^_the\.*' -e 'javac_state') |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 280 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 281 | RT_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib/_the.rt.jar_manifest |
| 282 | RESOURCE_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib/_the.resources.jar_manifest |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 283 | |
| 284 | $(RT_JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST) |
| 285 | $(MKDIR) -p $(@D) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 286 | $(RM) $@ $@.tmp |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 287 | $(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \ |
| 288 | -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 289 | $(MAINMANIFEST) >> $@.tmp |
| 290 | $(ECHO) >> $@.tmp |
| 291 | $(CAT) $(BEANMANIFEST) >> $@.tmp |
| 292 | $(MV) $@.tmp $@ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 293 | |
| 294 | $(RESOURCE_JAR_MANIFEST_FILE): $(MAINMANIFEST) |
| 295 | $(MKDIR) -p $(@D) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 296 | $(RM) $@ $@.tmp |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 297 | $(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \ |
| 298 | -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 299 | $(MAINMANIFEST) >> $@.tmp |
| 300 | $(MV) $@.tmp $@ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 301 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 302 | $(IMAGES_OUTPUTDIR)/lib/_the.jars.exclude: $(MAKEFILE) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 303 | $(MKDIR) -p $(@D) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 304 | $(RM) $@ $@.tmp |
| 305 | $(call ListPathsSafely,RT_JAR_EXCLUDES,\n, >> $@.tmp) |
| 306 | $(MV) $@.tmp $@ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 307 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 308 | $(IMAGES_OUTPUTDIR)/lib/classlist : $(JDK_TOPDIR)/make/tools/sharing/classlist.$(OPENJDK_TARGET_OS) \ |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 309 | $(MAKEFILE) |
| 310 | $(MKDIR) -p $(@D) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 311 | $(RM) $@ $@.tmp |
| 312 | $(TOOL_ADDJSUM) $< $@.tmp |
| 313 | $(MV) $@.tmp $@ |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 314 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 315 | $(IMAGES_OUTPUTDIR)/lib/_the.jars.contents: $(BUILD_TOOLS) $(IMAGES_OUTPUTDIR)/lib/_the.jars.exclude \ |
| 316 | $(ALL_FILES_IN_CLASSES) $(IMAGES_OUTPUTDIR)/lib/classlist |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 317 | $(MKDIR) -p $(@D) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 318 | $(RM) $@ $@.tmp |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 319 | ($(CD) $(JDK_OUTPUTDIR)/classes && \ |
| 320 | $(TOOL_JARREORDER) \ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 321 | -o $@.tmp $(IMAGES_OUTPUTDIR)/lib/classlist $(IMAGES_OUTPUTDIR)/lib/_the.jars.exclude . ) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 322 | $(MV) $@.tmp $@ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 323 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 324 | $(IMAGES_OUTPUTDIR)/lib/_the.rt.jar.contents: $(IMAGES_OUTPUTDIR)/lib/_the.jars.contents |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 325 | $(MKDIR) -p $(@D) |
| 326 | $(RM) $@ $@.tmp |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 327 | $(GREP) -e '\.class$$' $(IMAGES_OUTPUTDIR)/lib/_the.jars.contents > $@.tmp |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 328 | $(MV) $@.tmp $@ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 329 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 330 | $(IMAGES_OUTPUTDIR)/lib/_the.resources.jar.contents: $(IMAGES_OUTPUTDIR)/lib/_the.jars.contents |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 331 | $(MKDIR) -p $(@D) |
| 332 | $(RM) $@ $@.tmp |
| 333 | $(GREP) -v -e '\.class$$' \ |
| 334 | -e '/_the\.*' -e '^_the\.*' -e '\\_the\.*' -e 'javac_state' \ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 335 | $(IMAGES_OUTPUTDIR)/lib/_the.jars.contents > $@.tmp |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 336 | $(MV) $@.tmp $@ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 337 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 338 | RT_JAR_CREATE_OPTIONS := c0fm |
| 339 | ifeq ($(COMPRESS_JARS), true) |
| 340 | RT_JAR_CREATE_OPTIONS := cfm |
| 341 | endif |
| 342 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 343 | $(IMAGES_OUTPUTDIR)/lib/rt.jar: $(IMAGES_OUTPUTDIR)/lib/_the.rt.jar.contents $(RT_JAR_MANIFEST_FILE) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 344 | $(ECHO) Creating rt.jar |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 345 | $(MKDIR) -p $(@D) |
| 346 | $(RM) $@ $@.tmp |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 347 | $(CD) $(JDK_OUTPUTDIR)/classes && \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 348 | $(JAR) $(RT_JAR_CREATE_OPTIONS) $@.tmp $(RT_JAR_MANIFEST_FILE) \ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 349 | @$(IMAGES_OUTPUTDIR)/lib/_the.rt.jar.contents |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 350 | $(MV) $@.tmp $@ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 351 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 352 | $(IMAGES_OUTPUTDIR)/lib/resources.jar: $(IMAGES_OUTPUTDIR)/lib/_the.resources.jar.contents \ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 353 | $(RESOURCE_JAR_MANIFEST_FILE) |
| 354 | $(ECHO) Creating resources.jar |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 355 | $(MKDIR) -p $(@D) |
| 356 | $(RM) $@ $@.tmp |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 357 | $(CD) $(JDK_OUTPUTDIR)/classes && \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 358 | $(JAR) $(RT_JAR_CREATE_OPTIONS) $@.tmp $(RESOURCE_JAR_MANIFEST_FILE) \ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 359 | @$(IMAGES_OUTPUTDIR)/lib/_the.resources.jar.contents |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 360 | $(MV) $@.tmp $@ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 361 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 362 | JARS+=$(IMAGES_OUTPUTDIR)/lib/rt.jar $(IMAGES_OUTPUTDIR)/lib/resources.jar |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 363 | |
| 364 | ########################################################################################## |
| 365 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 366 | ifneq ($(OPENJDK_TARGET_OS), windows) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 367 | CHARSETS_EXTRA_FILES:=sun/awt/motif/X11GBK.class \ |
| 368 | sun/awt/motif/X11GB2312\$$$$Decoder.class \ |
| 369 | sun/awt/motif/X11GB2312.class \ |
| 370 | sun/awt/motif/X11KSC5601\$$$$Decoder.class \ |
| 371 | sun/awt/motif/X11KSC5601\$$$$Encoder.class \ |
| 372 | sun/awt/motif/X11GB2312\$$$$Encoder.class \ |
| 373 | sun/awt/motif/X11GBK\$$$$Encoder.class \ |
| 374 | sun/awt/motif/X11KSC5601.class |
| 375 | endif |
| 376 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 377 | $(eval $(call SetupArchive,BUILD_CHARSETS_JAR,,\ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 378 | SRCS:=$(JDK_OUTPUTDIR)/classes, \ |
| 379 | SUFFIXES:=.class .dat,\ |
| 380 | INCLUDES:=sun/nio/cs/ext,\ |
| 381 | EXTRA_FILES := sun/awt/HKSCS.class \ |
| 382 | $(CHARSETS_EXTRA_FILES) \ |
| 383 | META-INF/services/java.nio.charset.spi.CharsetProvider, \ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 384 | JAR:=$(IMAGES_OUTPUTDIR)/lib/charsets.jar, \ |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 385 | SKIP_METAINF := true, \ |
| 386 | CHECK_COMPRESS_JAR:=true)) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 387 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 388 | JARS+=$(IMAGES_OUTPUTDIR)/lib/charsets.jar |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 389 | |
| 390 | ########################################################################################## |
| 391 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 392 | ifndef OPENJDK |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 393 | ifeq ($(ENABLE_JFR), true) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 394 | $(eval $(call SetupArchive,BUILD_JFR_JAR,,\ |
| 395 | SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
| 396 | INCLUDES:=com/oracle/jrockit/jfr \ |
| 397 | oracle/jrockit/jfr,\ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 398 | JAR:=$(IMAGES_OUTPUTDIR)/lib/jfr.jar,\ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 399 | SKIP_METAINF:=true,\ |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 400 | MANIFEST:=$(MAINMANIFEST), \ |
| 401 | CHECK_COMPRESS_JAR:=true)) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 402 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 403 | JARS+=$(IMAGES_OUTPUTDIR)/lib/jfr.jar |
| 404 | endif |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 405 | endif |
| 406 | |
| 407 | ########################################################################################## |
| 408 | |
| 409 | $(eval $(call SetupArchive,BUILD_JSSE_JAR,,\ |
| 410 | SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
| 411 | INCLUDES:=sun/security/provider/Sun.class \ |
| 412 | sun/security/rsa/SunRsaSign.class \ |
| 413 | sun/security/ssl \ |
| 414 | com/sun/net/ssl/internal/ssl,\ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 415 | JAR:=$(IMAGES_OUTPUTDIR)/lib/jsse.jar,\ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 416 | SKIP_METAINF:=true,\ |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 417 | MANIFEST:=$(MAINMANIFEST), \ |
| 418 | CHECK_COMPRESS_JAR:=true)) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 419 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 420 | JARS+=$(IMAGES_OUTPUTDIR)/lib/jsse.jar |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 421 | |
| 422 | ########################################################################################## |
| 423 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 424 | SUNPKCS11_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunpkcs11.jar |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 425 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 426 | ifndef OPENJDK |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 427 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 428 | SUNPKCS11_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/pkcs11/sunpkcs11.jar |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 429 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 430 | $(SUNPKCS11_JAR_DST) : $(SUNPKCS11_JAR_SRC) |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 431 | @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunPKCS11 provider..." |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 432 | $(MKDIR) -p $(@D) |
| 433 | $(RM) $@ |
| 434 | $(CP) $< $@ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 435 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 436 | else |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 437 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 438 | $(eval $(call SetupArchive,BUILD_SUNPKCS11_JAR,,\ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 439 | SRCS:=$(JDK_OUTPUTDIR)/classes, \ |
| 440 | SUFFIXES:=.class,\ |
| 441 | INCLUDES:=sun/security/pkcs11,\ |
| 442 | JAR:=$(SUNPKCS11_JAR_DST), \ |
| 443 | SKIP_METAINF := true)) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 444 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 445 | endif |
| 446 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 447 | JARS += $(SUNPKCS11_JAR_DST) |
| 448 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 449 | ########################################################################################## |
| 450 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 451 | SUNEC_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunec.jar |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 452 | |
| 453 | ifndef OPENJDK |
| 454 | |
| 455 | SUNEC_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ec/sunec.jar |
| 456 | |
| 457 | $(SUNEC_JAR_DST) : $(SUNEC_JAR_SRC) |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 458 | @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunEC provider..." |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 459 | $(MKDIR) -p $(@D) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 460 | $(RM) $@ |
| 461 | $(CP) $< $@ |
| 462 | |
| 463 | else |
| 464 | |
| 465 | $(eval $(call SetupArchive,BUILD_SUNEC_JAR,,\ |
| 466 | SRCS:=$(JDK_OUTPUTDIR)/classes, \ |
| 467 | SUFFIXES:=.class,\ |
| 468 | INCLUDES:=sun/security/ec,\ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 469 | JAR:=$(SUNEC_JAR_DST), \ |
| 470 | SKIP_METAINF := true)) |
| 471 | |
| 472 | endif |
| 473 | |
| 474 | JARS += $(SUNEC_JAR_DST) |
| 475 | |
| 476 | ########################################################################################## |
| 477 | |
| 478 | $(eval $(call SetupArchive,BUILD_SWINGBEANS_JAR,,\ |
| 479 | SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
| 480 | SUFFIXES:=BeanInfo.class .gif,\ |
| 481 | INCLUDES:=javax/swing sun/swing,\ |
| 482 | EXCLUDES:=javax/swing/plaf,\ |
| 483 | EXTRA_FILES:=javax/swing/SwingBeanInfoBase.class sun/swing/BeanInfoUtils.class,\ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 484 | JAR:=$(IMAGES_OUTPUTDIR)/lib/dt.jar,\ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 485 | SKIP_METAINF:=true)) |
| 486 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 487 | JARS+=$(IMAGES_OUTPUTDIR)/lib/dt.jar |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 488 | |
| 489 | ########################################################################################## |
| 490 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 491 | SUNJCE_PROVIDER_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunjce_provider.jar |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 492 | |
| 493 | ifndef OPENJDK |
| 494 | SUNJCE_PROVIDER_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/sunjce_provider.jar |
| 495 | |
| 496 | $(SUNJCE_PROVIDER_JAR_DST) : $(SUNJCE_PROVIDER_JAR_SRC) |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 497 | @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunJCE provider..." |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 498 | $(MKDIR) -p $(@D) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 499 | $(RM) $@ |
| 500 | $(CP) $< $@ |
| 501 | else |
| 502 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 503 | $(eval $(call SetupArchive,BUILD_SUNJCE_PROVIDER_JAR,,\ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 504 | SRCS:=$(JDK_OUTPUTDIR)/classes, \ |
| 505 | SUFFIXES:=.class,\ |
| 506 | INCLUDES:= com/sun/crypto/provider,\ |
| 507 | JAR:=$(SUNJCE_PROVIDER_JAR_DST), \ |
| 508 | MANIFEST := $(JDK_TOPDIR)/make/tools/manifest.mf, \ |
| 509 | EXTRA_MANIFEST_ATTR := Extension-Name: javax.crypto\nImplementation-Vendor-Id: com.sun, \ |
| 510 | SKIP_METAINF := true)) |
| 511 | endif |
| 512 | |
| 513 | JARS += $(SUNJCE_PROVIDER_JAR_DST) |
| 514 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 515 | JCE_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/jce.jar |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 516 | |
| 517 | ifndef OPENJDK |
| 518 | |
| 519 | JCE_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/jce.jar |
| 520 | |
| 521 | $(JCE_JAR_DST) : $(JCE_JAR_SRC) |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 522 | @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt jce.jar..." |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 523 | $(MKDIR) -p $(@D) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 524 | $(RM) $@ |
| 525 | $(CP) $< $@ |
| 526 | |
| 527 | else |
| 528 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 529 | $(eval $(call SetupArchive,BUILD_JCE_JAR,,\ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 530 | SRCS:=$(JDK_OUTPUTDIR)/classes, \ |
| 531 | SUFFIXES:=.class,\ |
| 532 | INCLUDES:= javax/crypto sun/security/internal,\ |
| 533 | JAR:=$(JCE_JAR_DST), \ |
| 534 | MANIFEST := $(JDK_TOPDIR)/make/tools/manifest.mf, \ |
| 535 | EXTRA_MANIFEST_ATTR := Extension-Name: javax.crypto\nImplementation-Vendor-Id: com.sun, \ |
| 536 | SKIP_METAINF := true)) |
| 537 | endif |
| 538 | |
| 539 | JARS += $(JCE_JAR_DST) |
| 540 | |
| 541 | ########################################################################################## |
| 542 | |
| 543 | ifdef OPENJDK |
| 544 | |
| 545 | # |
| 546 | # TODO fix so that SetupArchive does not write files into SRCS |
| 547 | # then we don't need this extra copying |
| 548 | # |
erikj | ffb0d24 | 2012-10-29 13:55:47 -0700 | [diff] [blame] | 549 | # NOTE: We currently do not place restrictions on our limited export |
| 550 | # policy. This was not a typo. |
| 551 | # |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 552 | US_EXPORT_POLICY_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/security/US_export_policy.jar |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 553 | US_EXPORT_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/unlimited |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 554 | US_EXPORT_POLICY_JAR_TMP := $(IMAGES_OUTPUTDIR)/US_export_policy_jar.tmp |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 555 | |
| 556 | $(US_EXPORT_POLICY_JAR_TMP)/% : $(US_EXPORT_POLICY_JAR_SRC_DIR)/% |
| 557 | $(MKDIR) -p $(@D) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 558 | $(RM) $@ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 559 | $(CP) $< $@ |
| 560 | |
| 561 | US_EXPORT_POLICY_JAR_DEPS := $(US_EXPORT_POLICY_JAR_TMP)/default_US_export.policy |
| 562 | |
| 563 | $(eval $(call SetupArchive,BUILD_US_EXPORT_POLICY_JAR,$(US_EXPORT_POLICY_JAR_DEPS),\ |
| 564 | SRCS:=$(US_EXPORT_POLICY_JAR_TMP), \ |
| 565 | SUFFIXES:= .policy,\ |
| 566 | JAR:=$(US_EXPORT_POLICY_JAR_DST), \ |
| 567 | EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \ |
| 568 | SKIP_METAINF := true)) |
| 569 | |
| 570 | JARS += $(US_EXPORT_POLICY_JAR_DST) |
| 571 | |
| 572 | endif |
| 573 | |
| 574 | ########################################################################################## |
| 575 | |
| 576 | |
| 577 | ifdef OPENJDK |
| 578 | |
| 579 | # |
| 580 | # TODO fix so that SetupArchive does not write files into SRCS |
| 581 | # then we don't need this extra copying |
| 582 | # |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 583 | LOCAL_POLICY_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/security/local_policy.jar |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 584 | LOCAL_POLICY_JAR_TMP := $(IMAGES_OUTPUTDIR)/local_policy_jar.tmp |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 585 | |
erikj | ffb0d24 | 2012-10-29 13:55:47 -0700 | [diff] [blame] | 586 | ifeq ($(UNLIMITED_CRYPTO), true) |
| 587 | LOCAL_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/unlimited |
| 588 | LOCAL_POLICY_JAR_DEPS := $(LOCAL_POLICY_JAR_TMP)/default_local.policy |
| 589 | LOCAL_POLICY_JAR_ATTR := Crypto-Strength: unlimited |
| 590 | else |
| 591 | LOCAL_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/limited |
| 592 | LOCAL_POLICY_JAR_DEPS := $(LOCAL_POLICY_JAR_TMP)/exempt_local.policy \ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 593 | $(LOCAL_POLICY_JAR_TMP)/default_local.policy |
erikj | ffb0d24 | 2012-10-29 13:55:47 -0700 | [diff] [blame] | 594 | LOCAL_POLICY_JAR_ATTR := Crypto-Strength: limited |
| 595 | endif |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 596 | |
| 597 | $(LOCAL_POLICY_JAR_TMP)/% : $(LOCAL_POLICY_JAR_SRC_DIR)/% |
| 598 | $(MKDIR) -p $(@D) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 599 | $(RM) $@ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 600 | $(CP) $< $@ |
| 601 | |
| 602 | $(eval $(call SetupArchive,BUILD_LOCAL_POLICY_JAR,$(LOCAL_POLICY_JAR_DEPS),\ |
| 603 | SRCS:=$(LOCAL_POLICY_JAR_TMP),\ |
| 604 | SUFFIXES:= .policy,\ |
| 605 | JAR:=$(LOCAL_POLICY_JAR_DST), \ |
erikj | ffb0d24 | 2012-10-29 13:55:47 -0700 | [diff] [blame] | 606 | EXTRA_MANIFEST_ATTR := $(LOCAL_POLICY_JAR_ATTR), \ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 607 | SKIP_METAINF := true)) |
| 608 | |
| 609 | JARS += $(LOCAL_POLICY_JAR_DST) |
| 610 | |
| 611 | endif |
| 612 | |
| 613 | ########################################################################################## |
| 614 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 615 | ifeq ($(OPENJDK_TARGET_OS),windows) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 616 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 617 | SUNMSCAPI_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunmscapi.jar |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 618 | |
| 619 | ifndef OPENJDK |
| 620 | SUNMSCAPI_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/mscapi/sunmscapi.jar |
| 621 | |
| 622 | $(SUNMSCAPI_JAR_DST) : $(SUNMSCAPI_JAR_SRC) |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 623 | @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunMSCAPI provider..." |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 624 | $(MKDIR) -p $(@D) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 625 | $(RM) $@ |
| 626 | $(CP) $< $@ |
| 627 | |
| 628 | else |
| 629 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 630 | $(eval $(call SetupArchive,BUILD_SUNMSCAPI_JAR,,\ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 631 | SRCS:=$(JDK_OUTPUTDIR)/classes, \ |
| 632 | SUFFIXES:=.class,\ |
| 633 | INCLUDES:= sun/security/mscapi,\ |
| 634 | JAR:=$(SUNMSCAPI_JAR_DST), \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 635 | SKIP_METAINF:=true)) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 636 | endif |
| 637 | |
| 638 | JARS += $(SUNMSCAPI_JAR_DST) |
| 639 | |
| 640 | endif |
| 641 | |
| 642 | ########################################################################################## |
| 643 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 644 | ifeq ($(OPENJDK_TARGET_OS),solaris) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 645 | ifndef OPENJDK |
| 646 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 647 | UCRYPTO_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/ucrypto.jar |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 648 | UCRYPTO_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ucrypto/ucrypto.jar |
| 649 | |
| 650 | $(UCRYPTO_JAR_DST) : $(UCRYPTO_JAR_SRC) |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 651 | @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt OracleUcrypto provider..." |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 652 | $(MKDIR) -p $(@D) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 653 | $(RM) $@ |
| 654 | $(CP) $< $@ |
| 655 | |
| 656 | JARS += $(UCRYPTO_JAR_DST) |
| 657 | |
| 658 | endif |
| 659 | endif |
| 660 | |
| 661 | ########################################################################################## |
| 662 | |
naoto | c378ffc | 2012-08-21 11:00:30 -0700 | [diff] [blame] | 663 | # Get the CLDRVERSION |
| 664 | include GensrcCLDR.gmk |
| 665 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 666 | CLDRDATA_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/cldrdata.jar |
naoto | c378ffc | 2012-08-21 11:00:30 -0700 | [diff] [blame] | 667 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 668 | $(eval $(call SetupArchive,BUILD_CLDRDATA_JAR,,\ |
naoto | c378ffc | 2012-08-21 11:00:30 -0700 | [diff] [blame] | 669 | SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
| 670 | SUFFIXES:=.class,\ |
| 671 | INCLUDES:=sun/text/resources/cldr \ |
| 672 | sun/util/cldr \ |
| 673 | sun/util/resources/cldr,\ |
| 674 | EXCLUDES:=sun/util/cldr/CLDRLocaleProviderAdapter,\ |
| 675 | JAR:=$(CLDRDATA_JAR_DST),\ |
| 676 | EXTRA_MANIFEST_ATTR:=CLDR-Version: $(CLDRVERSION),\ |
| 677 | SKIP_METAINF:=true)) |
| 678 | |
| 679 | JARS += $(CLDRDATA_JAR_DST) |
| 680 | |
| 681 | ########################################################################################## |
| 682 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 683 | TOOLS_JAR_INCLUDES := \ |
| 684 | sun/tools/asm \ |
| 685 | sun/tools/jar \ |
| 686 | sun/tools/java \ |
| 687 | sun/tools/javac \ |
| 688 | sun/tools/jcmd \ |
| 689 | sun/tools/jps \ |
| 690 | sun/tools/jstat \ |
| 691 | sun/tools/jstatd \ |
| 692 | sun/tools/native2ascii \ |
| 693 | sun/tools/serialver \ |
| 694 | sun/tools/tree \ |
| 695 | sun/tools/util \ |
erikj | 4f66f2d | 2012-11-03 16:27:01 -0700 | [diff] [blame] | 696 | sun/security/tools/jarsigner \ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 697 | sun/rmi/rmic \ |
| 698 | sun/applet \ |
| 699 | sun/jvmstat \ |
| 700 | com/sun/javadoc \ |
| 701 | com/sun/jdi \ |
| 702 | com/sun/jarsigner \ |
| 703 | com/sun/source \ |
| 704 | com/sun/tools/classfile \ |
| 705 | com/sun/tools/doclets \ |
| 706 | com/sun/tools/example/debug/expr \ |
| 707 | com/sun/tools/example/debug/tty \ |
| 708 | com/sun/tools/extcheck \ |
| 709 | com/sun/tools/hat \ |
| 710 | com/sun/tools/javac \ |
| 711 | com/sun/tools/javadoc \ |
| 712 | com/sun/tools/javah \ |
| 713 | com/sun/tools/javap \ |
| 714 | com/sun/tools/corba \ |
| 715 | com/sun/tools/internal/xjc \ |
| 716 | com/sun/tools/internal/ws \ |
| 717 | com/sun/istack/internal/tools \ |
| 718 | com/sun/tools/internal/jxc/ap \ |
| 719 | com/sun/tools/internal/ws/wscompile/plugin/at_generated \ |
| 720 | com/sun/codemodel \ |
| 721 | com/sun/tools/internal/jxc \ |
| 722 | com/sun/xml/internal/rngom \ |
| 723 | com/sun/xml/internal/xsom \ |
| 724 | org/relaxng/datatype \ |
| 725 | com/sun/xml/internal/dtdparser \ |
| 726 | com/sun/tools/jdi \ |
| 727 | com/sun/tools/script/shell \ |
| 728 | com/sun/tools/attach \ |
| 729 | sun/tools/attach \ |
| 730 | sun/tools/jstack \ |
| 731 | sun/tools/jinfo \ |
| 732 | sun/tools/jmap |
| 733 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 734 | # The sjavac tools is not ready for public consumption. |
| 735 | TOOLS_JAR_EXCLUDES=com/sun/tools/sjavac |
| 736 | |
| 737 | $(eval $(call SetupArchive,BUILD_TOOLS_JAR,,\ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 738 | SRCS:=$(JDK_OUTPUTDIR)/classes,\ |
| 739 | SUFFIXES:=.class .prp .gif .properties .xml .css .xsd .js .html .txt .java \ |
| 740 | Tool aliasmap options,\ |
| 741 | INCLUDES:=$(TOOLS_JAR_INCLUDES),\ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 742 | EXCLUDES:=$(TOOLS_JAR_EXCLUDES),\ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 743 | EXTRA_FILES:=META-INF/services/com.sun.jdi.connect.Connector \ |
| 744 | META-INF/services/com.sun.jdi.connect.spi.TransportService \ |
| 745 | META-INF/services/com.sun.tools.attach.spi.AttachProvider \ |
| 746 | META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin \ |
| 747 | META-INF/services/com.sun.tools.internal.xjc.Plugin,\ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 748 | JAR:=$(IMAGES_OUTPUTDIR)/lib/tools.jar,\ |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 749 | SKIP_METAINF:=true, \ |
| 750 | CHECK_COMPRESS_JAR:=true)) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 751 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 752 | JARS+=$(IMAGES_OUTPUTDIR)/lib/tools.jar |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 753 | |
| 754 | ########################################################################################## |
| 755 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 756 | include javadoc/CORE_PKGS.gmk |
| 757 | include javadoc/NON_CORE_PKGS.gmk |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 758 | |
| 759 | # The compiler should not issue a "Proprietary" warning when compiling |
| 760 | # classes in the com.sun.java.swing.plaf packages, since we've always |
| 761 | # allowed, and even advocated, extending them (see bug 6476749). |
| 762 | # |
| 763 | # This approach is NOT to be used as a general purpose way to avoid such |
| 764 | # compiler warnings for non-core packages. The correct way is to document |
| 765 | # the packages in NON_CORE_PKGS.gmk, and include them in the NON_CORE_PKGS |
| 766 | # definition. |
| 767 | # |
| 768 | # Swing has taken this approach only as a temporary measure to avoid |
| 769 | # the compiler warnings until we can properly document these packages. |
| 770 | # This is covered under 6491853. |
| 771 | EXCLUDE_PROPWARN_PKGS = com.sun.java.swing.plaf.windows \ |
| 772 | com.sun.java.swing.plaf.motif \ |
| 773 | com.sun.java.swing.plaf.gtk |
| 774 | |
| 775 | # |
| 776 | # Include the exported private packages in ct.sym. |
| 777 | # This is an interim solution until the ct.sym is replaced |
| 778 | # with a new module system (being discussed for JDK 8). |
| 779 | # |
| 780 | EXPORTED_PRIVATE_PKGS = com.sun.servicetag \ |
| 781 | com.oracle.net \ |
| 782 | com.oracle.nio |
| 783 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 784 | $(IMAGES_OUTPUTDIR)/symbols/_the.symbols: $(IMAGES_OUTPUTDIR)/lib/rt.jar |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 785 | $(RM) -r $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 786 | $(MKDIR) -p $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym |
| 787 | $(JAVA) \ |
| 788 | -Xbootclasspath/a:$(JDK_OUTPUTDIR)/classes \ |
| 789 | $(JAVAC_JARS) \ |
| 790 | -XDprocess.packages -proc:only \ |
| 791 | -processor com.sun.tools.javac.sym.CreateSymbols \ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 792 | -Acom.sun.tools.javac.sym.Jar=$(IMAGES_OUTPUTDIR)/lib/rt.jar \ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 793 | -Acom.sun.tools.javac.sym.Dest=$(IMAGES_OUTPUTDIR)/symbols/META-INF/sym/rt.jar \ |
| 794 | $(CORE_PKGS) $(NON_CORE_PKGS) $(EXCLUDE_PROPWARN_PKGS) $(EXPORTED_PRIVATE_PKGS) |
| 795 | $(TOUCH) $@ |
| 796 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 797 | $(shell $(MKDIR) -p $(IMAGES_OUTPUTDIR)/symbols) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 798 | $(eval $(call SetupArchive,BUILD_CT_SYM,$(IMAGES_OUTPUTDIR)/symbols/_the.symbols,\ |
| 799 | SRCS:=$(IMAGES_OUTPUTDIR)/symbols,\ |
| 800 | INCLUDES:=META-INF/sym,\ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 801 | JAR:=$(IMAGES_OUTPUTDIR)/lib/ct.sym, \ |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 802 | CHECK_COMPRESS_JAR:=true)) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 803 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 804 | JARS+=$(IMAGES_OUTPUTDIR)/lib/ct.sym |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 805 | |
| 806 | ########################################################################################## |
| 807 | |
| 808 | SRC_ZIP_INCLUDES = \ |
| 809 | java/applet \ |
| 810 | java/awt \ |
| 811 | java/beans \ |
| 812 | java/io \ |
| 813 | java/lang \ |
| 814 | java/math \ |
| 815 | java/net \ |
| 816 | java/nio \ |
| 817 | java/rmi \ |
| 818 | java/security \ |
| 819 | java/sql \ |
| 820 | java/text \ |
| 821 | java/util \ |
| 822 | com/sun/corba \ |
| 823 | com/sun/image/codec/jpeg \ |
| 824 | com/sun/imageio \ |
| 825 | com/sun/java/swing \ |
| 826 | com/sun/javadoc \ |
| 827 | com/sun/jmx \ |
| 828 | com/sun/source \ |
| 829 | com/sun/naming \ |
| 830 | com/sun/security/auth \ |
| 831 | com/sun/security/jgss \ |
| 832 | javax/accessibility \ |
| 833 | javax/annotation \ |
| 834 | javax/script \ |
| 835 | javax/imageio \ |
| 836 | javax/lang \ |
| 837 | javax/management \ |
| 838 | javax/naming \ |
| 839 | javax/print \ |
| 840 | javax/rmi \ |
| 841 | javax/security \ |
| 842 | javax/sound \ |
| 843 | javax/sql \ |
| 844 | javax/swing \ |
| 845 | javax/tools \ |
| 846 | javax/xml \ |
| 847 | com/sun/org/apache \ |
| 848 | com/sun/java_cup \ |
| 849 | com/sun/jlex \ |
| 850 | org/ietf \ |
| 851 | org/omg \ |
| 852 | org/w3c/dom \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 853 | org/xml/sax \ |
| 854 | sunw |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 855 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 856 | SRC_ZIP_SRCS = $(JDK_TOPDIR)/src/share/classes $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 857 | SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/gensrc |
| 858 | SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/impsrc |
| 859 | SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/gendocsrc_rmic |
| 860 | ifndef OPENJDK |
| 861 | SRC_ZIP_SRCS += $(JDK_TOPDIR)/src/closed/share/classes |
| 862 | endif |
| 863 | |
| 864 | # Need to copy launcher src files into desired directory structure |
| 865 | # before zipping the sources. |
| 866 | LAUNCHER_SRC_FILES := $(wildcard $(JDK_TOPDIR)/src/share/bin/*) \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 867 | $(wildcard $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/java_md*) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 868 | LAUNCHER_ZIP_SRC := $(patsubst $(JDK_TOPDIR)/src/share/bin/%,$(IMAGES_OUTPUTDIR)/src/launcher/%,\ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 869 | $(patsubst $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/%,$(IMAGES_OUTPUTDIR)/src/launcher/%,\ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 870 | $(LAUNCHER_SRC_FILES))) |
| 871 | |
| 872 | $(IMAGES_OUTPUTDIR)/src/launcher/%: $(JDK_TOPDIR)/src/share/bin/% |
| 873 | $(MKDIR) -p $(@D) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 874 | $(RM) $@ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 875 | $(CP) $< $@ |
| 876 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 877 | $(IMAGES_OUTPUTDIR)/src/launcher/%: $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/% |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 878 | $(MKDIR) -p $(@D) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 879 | $(RM) $@ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 880 | $(CP) $< $@ |
| 881 | |
| 882 | $(IMAGES_OUTPUTDIR)/src.zip: $(LAUNCHER_ZIP_SRC) |
| 883 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 884 | # This dir needs to exist before macro is evaluated to avoid warning from find. |
| 885 | $(eval $(call MakeDir,$(IMAGES_OUTPUTDIR)/src)) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 886 | $(eval $(call SetupZipArchive,BUILD_SRC_ZIP,\ |
| 887 | SRC:=$(SRC_ZIP_SRCS) $(IMAGES_OUTPUTDIR)/src,\ |
| 888 | INCLUDES:=$(SRC_ZIP_INCLUDES) launcher,\ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 889 | EXCLUDES:=javax/swing/beaninfo,\ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 890 | SUFFIXES:=.java .c .h,\ |
| 891 | ZIP:=$(IMAGES_OUTPUTDIR)/src.zip,\ |
| 892 | EXTRA_DEPS:=$(LAUNCHER_ZIP_SRC))) |
| 893 | |
| 894 | JARS+=$(IMAGES_OUTPUTDIR)/src.zip |
| 895 | |
| 896 | ########################################################################################## |
| 897 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 898 | -include $(CUSTOM_MAKE_DIR)/CreateJars.gmk |
| 899 | |
| 900 | ########################################################################################## |
| 901 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 902 | all: $(JARS) |
| 903 | |
| 904 | .PHONY: default all |