annotate make/CreateJars.gmk @ 11311:c942132c5014

Added tag jdk8u71-b01 for changeset e8b5e10a19d6
author asaha
date Tue, 22 Sep 2015 13:39:46 -0700
parents 12a94014eaba
children 5eb47c73c343
rev   line source
erikj@5507 1 #
ptbrunet@10583 2 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
erikj@5507 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
erikj@5507 4 #
erikj@5507 5 # This code is free software; you can redistribute it and/or modify it
erikj@5507 6 # under the terms of the GNU General Public License version 2 only, as
erikj@5507 7 # published by the Free Software Foundation. Oracle designates this
erikj@5507 8 # particular file as subject to the "Classpath" exception as provided
erikj@5507 9 # by Oracle in the LICENSE file that accompanied this code.
erikj@5507 10 #
erikj@5507 11 # This code is distributed in the hope that it will be useful, but WITHOUT
erikj@5507 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
erikj@5507 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
erikj@5507 14 # version 2 for more details (a copy is included in the LICENSE file that
erikj@5507 15 # accompanied this code).
erikj@5507 16 #
erikj@5507 17 # You should have received a copy of the GNU General Public License version
erikj@5507 18 # 2 along with this work; if not, write to the Free Software Foundation,
erikj@5507 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
erikj@5507 20 #
erikj@5507 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
erikj@5507 22 # or visit www.oracle.com if you need additional information or have any
erikj@5507 23 # questions.
erikj@5507 24 #
erikj@5507 25
erikj@5507 26 include $(SPEC)
erikj@5507 27 include MakeBase.gmk
erikj@5507 28 include JavaCompilation.gmk
erikj@5507 29 include Setup.gmk
erikj@5507 30
erikj@5507 31 default: all
erikj@5507 32
erikj@6354 33 # Prepare the find cache. Only used if running on windows.
ihse@8330 34 $(eval $(call FillCacheFind, $(JDK_OUTPUTDIR)/classes))
erikj@6354 35
erikj@5507 36 include Tools.gmk
erikj@5507 37
dholmes@6571 38 include Profiles.gmk
dholmes@6571 39
erikj@5596 40 #
erikj@5596 41 # This makefile...so that altering will trigger rebuilding include/exclude-lists => jars
erikj@5596 42 #
ihse@8845 43 MAKEFILE = $(JDK_TOPDIR)/make/CreateJars.gmk
dholmes@6571 44 #
dholmes@6571 45 # And similarly for the Profiles
ihse@8845 46 PROFILE_MAKEFILES = $(JDK_TOPDIR)/make/Profiles.gmk $(JDK_TOPDIR)/make/profile-rtjar-includes.txt
erikj@5507 47
ihse@8845 48 MAINMANIFEST := $(JDK_TOPDIR)/make/data/mainmanifest/manifest.mf
ihse@8845 49 BEANMANIFEST := $(JDK_TOPDIR)/make/data/swingbeaninfo/manifest.mf
erikj@5507 50
ihse@8330 51 $(eval $(call MakeDir, $(IMAGES_OUTPUTDIR)/lib))
ohair@6025 52
erikj@5507 53 ##########################################################################################
erikj@5507 54
ihse@8330 55 $(eval $(call SetupArchive,BUILD_JCONSOLE_JAR, , \
ihse@8330 56 SRCS := $(JDK_OUTPUTDIR)/classes, \
ihse@8330 57 SUFFIXES := .class .gif .png .properties, \
ihse@8330 58 INCLUDES := sun/tools/jconsole com/sun/tools/jconsole, \
ihse@8330 59 JARMAIN := sun.tools.jconsole.JConsole, \
ihse@8330 60 JAR := $(IMAGES_OUTPUTDIR)/lib/jconsole.jar, \
ihse@8330 61 SKIP_METAINF := true))
erikj@5507 62
erikj@5507 63
erikj@5507 64 ##########################################################################################
erikj@5507 65
ihse@8330 66 $(eval $(call SetupArchive,BUILD_DNS_JAR, , \
ihse@8330 67 SRCS := $(JDK_OUTPUTDIR)/classes, \
ihse@8330 68 INCLUDES := sun/net/spi/nameservice/dns, \
ihse@8330 69 EXTRA_FILES := META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor, \
ihse@8330 70 JAR := $(IMAGES_OUTPUTDIR)/lib/ext/dnsns.jar, \
ihse@8330 71 SKIP_METAINF := true))
erikj@5507 72
erikj@5507 73
erikj@5507 74 ##########################################################################################
erikj@5507 75
naoto@6065 76 LOCALEDATA_INCLUDE_LOCALES := ar be bg ca cs da de el es et fi fr ga hi hr hu in is it \
ihse@8330 77 iw ja ko lt lv mk ms mt nl no pl pt ro ru sk sl sq sr sv \
ihse@8330 78 th tr uk vi zh
naoto@6065 79
ihse@8330 80 LOCALEDATA_INCLUDES := $(addprefix sun/text/resources/, $(LOCALEDATA_INCLUDE_LOCALES)) \
ihse@8330 81 $(addprefix sun/util/resources/, $(LOCALEDATA_INCLUDE_LOCALES))
erikj@5507 82
ihse@8330 83 $(eval $(call SetupArchive,BUILD_LOCALEDATA_JAR, , \
ihse@8330 84 SRCS := $(JDK_OUTPUTDIR)/classes, \
ihse@8330 85 SUFFIXES := .class _dict _th, \
ihse@8330 86 INCLUDES := $(LOCALEDATA_INCLUDES), \
ihse@8330 87 EXCLUDES := sun/text/resources/th/BreakIteratorRules_th.class, \
ihse@8330 88 JAR := $(IMAGES_OUTPUTDIR)/lib/ext/localedata.jar, \
ihse@8330 89 SKIP_METAINF := true))
erikj@5507 90
dholmes@6571 91 ##########################################################################################
dholmes@6571 92 #
dholmes@6571 93 # Different variants of rt.jar are built based on the current profile. The output
dholmes@6571 94 # directory is augmented with the profile name so that the final jar file and all the
dholmes@6571 95 # intermediary list files will be in directory. This has the form lib$PROFILE rather than
dholmes@6571 96 # lib/$PROFILE so that it won't get copied as part of the image generation process.
dholmes@6571 97 # Each profile customizes the RT_JAR_EXCLUDES variable.
dholmes@6571 98 #
dholmes@6571 99 ##########################################################################################
erikj@5507 100
dholmes@6571 101 # Full JRE exclude list for rt.jar and resources.jar
sla@7571 102 # This value should exclude types destined for jars other than rt.jar and resources.jar.
dholmes@6571 103 # When building a Profile this value augments the profile specific exclusions
dholmes@6571 104 RT_JAR_EXCLUDES += \
ihse@8330 105 com/sun/codemodel \
ihse@8330 106 com/sun/crypto/provider \
ihse@8330 107 com/sun/istack/internal/tools \
ihse@8330 108 com/sun/jarsigner \
ihse@8330 109 com/sun/java/accessibility \
ihse@8330 110 com/sun/javadoc \
ihse@8330 111 com/sun/jdi \
ihse@8330 112 com/sun/net/ssl/internal/ssl \
ihse@8330 113 com/sun/source \
ihse@8330 114 com/sun/tools \
ihse@8330 115 com/sun/xml/internal/dtdparser \
ihse@8330 116 com/sun/xml/internal/rngom \
ihse@8330 117 com/sun/xml/internal/xsom \
ihse@8330 118 javax/crypto \
ihse@8330 119 javax/swing/AbstractButtonBeanInfo.class \
ihse@8330 120 javax/swing/beaninfo \
ihse@8330 121 javax/swing/BoxBeanInfo.class \
ihse@8330 122 javax/swing/JAppletBeanInfo.class \
ihse@8330 123 javax/swing/JButtonBeanInfo.class \
ihse@8330 124 javax/swing/JCheckBoxBeanInfo.class \
ihse@8330 125 javax/swing/JCheckBoxMenuItemBeanInfo.class \
ihse@8330 126 javax/swing/JColorChooserBeanInfo.class \
ihse@8330 127 javax/swing/JComboBoxBeanInfo.class \
ihse@8330 128 javax/swing/JComponentBeanInfo.class \
ihse@8330 129 javax/swing/JDesktopPaneBeanInfo.class \
ihse@8330 130 javax/swing/JDialogBeanInfo.class \
ihse@8330 131 javax/swing/JEditorPaneBeanInfo.class \
ihse@8330 132 javax/swing/JFileChooserBeanInfo.class \
ihse@8330 133 javax/swing/JFormattedTextFieldBeanInfo.class \
ihse@8330 134 javax/swing/JFrameBeanInfo.class \
ihse@8330 135 javax/swing/JInternalFrameBeanInfo.class \
ihse@8330 136 javax/swing/JLabelBeanInfo.class \
ihse@8330 137 javax/swing/JLayeredPaneBeanInfo.class \
ihse@8330 138 javax/swing/JListBeanInfo.class \
ihse@8330 139 javax/swing/JMenuBarBeanInfo.class \
ihse@8330 140 javax/swing/JMenuBeanInfo.class \
ihse@8330 141 javax/swing/JMenuItemBeanInfo.class \
ihse@8330 142 javax/swing/JOptionPaneBeanInfo.class \
ihse@8330 143 javax/swing/JPanelBeanInfo.class \
ihse@8330 144 javax/swing/JPasswordFieldBeanInfo.class \
ihse@8330 145 javax/swing/JPopupMenuBeanInfo.class \
ihse@8330 146 javax/swing/JProgressBarBeanInfo.class \
ihse@8330 147 javax/swing/JRadioButtonBeanInfo.class \
ihse@8330 148 javax/swing/JRadioButtonMenuItemBeanInfo.class \
ihse@8330 149 javax/swing/JScrollBarBeanInfo.class \
ihse@8330 150 javax/swing/JScrollPaneBeanInfo.class \
ihse@8330 151 javax/swing/JSeparatorBeanInfo.class \
ihse@8330 152 javax/swing/JSliderBeanInfo.class \
ihse@8330 153 javax/swing/JSpinnerBeanInfo.class \
ihse@8330 154 javax/swing/JSplitPaneBeanInfo.class \
ihse@8330 155 javax/swing/JTabbedPaneBeanInfo.class \
ihse@8330 156 javax/swing/JTableBeanInfo.class \
ihse@8330 157 javax/swing/JTextAreaBeanInfo.class \
ihse@8330 158 javax/swing/JTextFieldBeanInfo.class \
ihse@8330 159 javax/swing/JTextPaneBeanInfo.class \
ihse@8330 160 javax/swing/JToggleButtonBeanInfo.class \
ihse@8330 161 javax/swing/JToolBarBeanInfo.class \
ihse@8330 162 javax/swing/JTreeBeanInfo.class \
ihse@8330 163 javax/swing/JWindowBeanInfo.class \
ihse@8330 164 javax/swing/SwingBeanInfoBase.class \
ihse@8330 165 javax/swing/text/JTextComponentBeanInfo.class \
ihse@8330 166 META-INF/services/com.sun.jdi.connect.Connector \
ihse@8330 167 META-INF/services/com.sun.jdi.connect.spi.TransportService \
ihse@8330 168 META-INF/services/com.sun.tools.attach.spi.AttachProvider \
ihse@8330 169 META-INF/services/com.sun.tools.xjc.Plugin \
ihse@8330 170 META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor \
ihse@8330 171 org/relaxng/datatype \
ihse@8330 172 sun/awt/HKSCS.class \
ihse@8330 173 sun/awt/motif/X11GB2312.class \
ihse@8330 174 sun/awt/motif/X11GB2312\$$$$Decoder.class \
ihse@8330 175 sun/awt/motif/X11GB2312\$$$$Encoder.class \
ihse@8330 176 sun/awt/motif/X11GBK.class \
ihse@8330 177 sun/awt/motif/X11GBK\$$$$Encoder.class \
ihse@8330 178 sun/awt/motif/X11KSC5601.class \
ihse@8330 179 sun/awt/motif/X11KSC5601\$$$$Decoder.class \
ihse@8330 180 sun/awt/motif/X11KSC5601\$$$$Encoder.class \
ihse@8330 181 sun/jvmstat \
ihse@8330 182 sun/net/spi/nameservice/dns \
ihse@8330 183 sun/nio/cs/ext \
ihse@8330 184 sun/rmi/rmic \
ihse@8330 185 sun/security/ec \
ihse@8330 186 sun/security/internal \
ihse@8330 187 sun/security/mscapi \
ihse@8330 188 sun/security/pkcs11 \
ihse@8330 189 sun/security/provider/Sun.class \
ihse@8330 190 sun/security/rsa/SunRsaSign.class \
ihse@8330 191 sun/security/ssl \
ihse@8330 192 sun/security/tools/jarsigner \
ihse@8330 193 sun/swing/BeanInfoUtils.class \
ihse@8330 194 sun/text/resources/cldr \
ihse@8330 195 sun/tools/asm \
ihse@8330 196 sun/tools/attach \
ihse@8330 197 sun/tools/java \
ihse@8330 198 sun/tools/javac \
ihse@8330 199 sun/tools/jcmd \
ihse@8330 200 sun/tools/jconsole \
ihse@8330 201 sun/tools/jinfo \
ihse@8330 202 sun/tools/jmap \
ihse@8330 203 sun/tools/jps \
ihse@8330 204 sun/tools/jstack \
ihse@8330 205 sun/tools/jstat \
ihse@8330 206 sun/tools/jstatd \
ihse@8330 207 sun/tools/native2ascii \
ihse@8330 208 sun/tools/serialver \
ihse@8330 209 sun/tools/tree \
ihse@8330 210 sun/tools/util \
ihse@8330 211 sun/util/cldr/CLDRLocaleDataMetaInfo.class \
ihse@8330 212 sun/util/resources/cldr \
ihse@8330 213 $(LOCALEDATA_INCLUDES) \
ihse@8330 214 com/oracle/jrockit/jfr \
ihse@8330 215 oracle/jrockit/jfr \
ihse@8330 216 jdk/jfr
erikj@5596 217
erikj@5507 218 # Find all files in the classes dir to use as dependencies. This could be more fine granular.
ihse@8330 219 ALL_FILES_IN_CLASSES := $(call not-containing, _the., $(filter-out %javac_state, \
ihse@8330 220 $(call CacheFind, $(JDK_OUTPUTDIR)/classes)))
erikj@5507 221
dholmes@6571 222 RT_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar_manifest
dholmes@6571 223 RESOURCE_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar_manifest
erikj@5507 224
erikj@5507 225 $(RT_JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST)
erikj@5507 226 $(MKDIR) -p $(@D)
ohair@5819 227 $(RM) $@ $@.tmp
ihse@8330 228 $(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \
ihse@8330 229 -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
ihse@8330 230 $(MAINMANIFEST) >> $@.tmp
ohair@5819 231 $(ECHO) >> $@.tmp
ohair@5819 232 $(CAT) $(BEANMANIFEST) >> $@.tmp
ohair@5819 233 $(MV) $@.tmp $@
erikj@5507 234
erikj@5507 235 $(RESOURCE_JAR_MANIFEST_FILE): $(MAINMANIFEST)
erikj@5507 236 $(MKDIR) -p $(@D)
ohair@5819 237 $(RM) $@ $@.tmp
ihse@8330 238 $(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \
ihse@8330 239 -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
ihse@8330 240 $(MAINMANIFEST) >> $@.tmp
ohair@5819 241 $(MV) $@.tmp $@
erikj@5507 242
dholmes@6571 243 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.exclude: $(MAKEFILE) $(PROFILE_MAKEFILES)
erikj@5507 244 $(MKDIR) -p $(@D)
ohair@5819 245 $(RM) $@ $@.tmp
ohair@5819 246 $(call ListPathsSafely,RT_JAR_EXCLUDES,\n, >> $@.tmp)
ohair@5819 247 $(MV) $@.tmp $@
erikj@5507 248
ihse@8845 249 $(IMAGES_OUTPUTDIR)/lib/classlist: $(JDK_TOPDIR)/make/data/classlist/classlist.$(OPENJDK_TARGET_OS) \
ihse@8330 250 $(MAKEFILE)
erikj@5596 251 $(MKDIR) -p $(@D)
ohair@5819 252 $(RM) $@ $@.tmp
ohair@5819 253 $(TOOL_ADDJSUM) $< $@.tmp
ohair@5819 254 $(MV) $@.tmp $@
erikj@5596 255
dholmes@6571 256 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents: $(BUILD_TOOLS) $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.exclude \
ihse@8330 257 $(ALL_FILES_IN_CLASSES) $(IMAGES_OUTPUTDIR)/lib/classlist
erikj@5507 258 $(MKDIR) -p $(@D)
ohair@5819 259 $(RM) $@ $@.tmp
erikj@5507 260 ($(CD) $(JDK_OUTPUTDIR)/classes && \
ihse@8330 261 $(TOOL_JARREORDER) \
ihse@8330 262 -o $@.tmp $(IMAGES_OUTPUTDIR)/lib/classlist $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.exclude . )
ohair@5819 263 $(MV) $@.tmp $@
erikj@5507 264
dholmes@6571 265 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar.contents: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents
ohair@5819 266 $(MKDIR) -p $(@D)
ohair@5819 267 $(RM) $@ $@.tmp
dholmes@6571 268 $(GREP) -e '\.class$$' $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents > $@.tmp
ihse@8330 269 ifneq ($(PROFILE), )
dholmes@10332 270 ifneq ($(strip $(RT_JAR_INCLUDE_TYPES)), )
dholmes@10332 271 # Add back classes from excluded packages (fixing the $ substitution in the process)
dholmes@10332 272 for type in $(subst \$$,\, $(RT_JAR_INCLUDE_TYPES)) ; do \
dholmes@10332 273 $(ECHO) $$type >> $@.tmp ; \
dholmes@10332 274 done
dholmes@10332 275 endif
ihse@8330 276 endif
ohair@5819 277 $(MV) $@.tmp $@
erikj@5507 278
dholmes@6571 279 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents
ohair@5819 280 $(MKDIR) -p $(@D)
ohair@5819 281 $(RM) $@ $@.tmp
ohair@5819 282 $(GREP) -v -e '\.class$$' \
ohair@5819 283 -e '/_the\.*' -e '^_the\.*' -e '\\_the\.*' -e 'javac_state' \
dholmes@6571 284 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents > $@.tmp
ihse@8330 285 ifneq ($(PROFILE), )
dholmes@10867 286 # Strip out all META-INF/services/ entries
dholmes@10867 287 $(GREP) -v -e 'META-INF/services/' $@.tmp > $@.tmp2
dholmes@10332 288 ifneq ($(strip $(PROFILE_INCLUDE_METAINF_SERVICES)), )
dholmes@10332 289 # Add back the required services
dholmes@10332 290 for service in $(PROFILE_INCLUDE_METAINF_SERVICES) ; do \
dholmes@10332 291 $(ECHO) $$service >> $@.tmp2; \
dholmes@10332 292 done
dholmes@10332 293 endif
dholmes@10867 294 $(MV) $@.tmp2 $@.tmp
ihse@8330 295 endif
ohair@5819 296 $(MV) $@.tmp $@
erikj@5507 297
dholmes@6571 298 # This is a hack but I don't know how to make this fit into the existing scheme
ihse@8330 299 $(PROFILE_VERSION_CLASS_TARGETS): $(PROFILE_VERSION_JAVA_TARGETS)
dholmes@6571 300 @$(JAVAC) -d $(@D)/../../ $(@D)/$(VERSION_JAVA_FILE)
dholmes@6571 301
dholmes@6571 302
dholmes@6571 303 # Support for removing the addPropertyChangeListener and removePropertyChangeListener
sla@7571 304 # methods from classes that only go into the profile builds.
dholmes@6571 305 BEANLESS_CLASSES = $(IMAGES_OUTPUTDIR)/beanless
dholmes@6571 306
dholmes@6787 307 # When there are $ characters in filenames we have some very subtle interactions between
dholmes@6787 308 # make expansion and shell expansion. In this particular case $< will contain a single $ while
dholmes@6787 309 # $@ will contain \$. So we have to pass $< in single-quotes to avoid shell expansion
dholmes@6571 310 $(BEANLESS_CLASSES)/%: $(JDK_OUTPUTDIR)/classes/%
dholmes@6571 311 $(MKDIR) -p $(@D)
dholmes@6787 312 $(TOOL_REMOVEMETHODS) '$<' $@ addPropertyChangeListener removePropertyChangeListener
dholmes@6571 313
dholmes@10332 314 # Code these targets explicitly because the target "%" expansion does
dholmes@10332 315 # not work with the inline "$" in the file name.
dholmes@10332 316 $(BEANLESS_CLASSES)/java/util/jar/Pack200\$$Packer.class: $(JDK_OUTPUTDIR)/classes/java/util/jar/Pack200$$Packer.class
dholmes@10332 317 $(MKDIR) -p $(@D)
dholmes@10332 318 $(TOOL_REMOVEMETHODS) '$<' $@ addPropertyChangeListener removePropertyChangeListener
dholmes@10332 319 $(BEANLESS_CLASSES)/java/util/jar/Pack200\$$Unpacker.class: $(JDK_OUTPUTDIR)/classes/java/util/jar/Pack200$$Unpacker.class
dholmes@10332 320 $(MKDIR) -p $(@D)
dholmes@10332 321 $(TOOL_REMOVEMETHODS) '$<' $@ addPropertyChangeListener removePropertyChangeListener
dholmes@10332 322
dholmes@6571 323 CLASSES_TO_DEBEAN = \
dholmes@6571 324 java/util/logging/LogManager.class \
dholmes@6787 325 java/util/jar/Pack200\$$Packer.class \
dholmes@6787 326 java/util/jar/Pack200\$$Unpacker.class \
dholmes@6571 327 com/sun/java/util/jar/pack/PackerImpl.class \
sla@7571 328 com/sun/java/util/jar/pack/UnpackerImpl.class
dholmes@6571 329
ihse@8330 330 ifneq ($(PROFILE), )
ihse@8330 331 BEANLESS_CLASSES_TARGETS := $(addprefix $(BEANLESS_CLASSES)/, $(CLASSES_TO_DEBEAN))
dholmes@6571 332 endif
dholmes@6571 333
dholmes@6571 334
erikj@5596 335 RT_JAR_CREATE_OPTIONS := c0fm
dholmes@6571 336 RT_JAR_UPDATE_OPTIONS := u0f
erikj@5596 337 ifeq ($(COMPRESS_JARS), true)
ihse@8330 338 RT_JAR_CREATE_OPTIONS := cfm
ihse@8330 339 RT_JAR_UPDATE_OPTIONS := uf
erikj@5596 340 endif
erikj@5596 341
dholmes@6571 342 # This defines a target-specific variables to make the shell logic easier to see.
dholmes@6571 343 # We need to find the Version.class file for the profile currently being built
dholmes@6571 344 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/rt.jar: \
ihse@8330 345 CLASS_FILE = $(if $(PROFILE), $(strip $(foreach class, $(PROFILE_VERSION_CLASS_TARGETS), $(if $(findstring $(PROFILE), $(class)), $(class)))), NO_SUCH_FILE)
dholmes@6571 346 # This is the real target
dholmes@6571 347 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/rt.jar: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar.contents $(RT_JAR_MANIFEST_FILE) $(PROFILE_VERSION_CLASS_TARGETS) $(BEANLESS_CLASSES_TARGETS)
dholmes@6571 348 $(ECHO) Creating rt.jar $(PROFILE) Compressed=$(COMPRESS_JARS)
ohair@5819 349 $(MKDIR) -p $(@D)
ohair@5819 350 $(RM) $@ $@.tmp
erikj@5507 351 $(CD) $(JDK_OUTPUTDIR)/classes && \
ihse@8330 352 $(JAR) $(RT_JAR_CREATE_OPTIONS) $@.tmp $(RT_JAR_MANIFEST_FILE) \
ihse@8330 353 @$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar.contents && \
ihse@8330 354 if [ -f $(CLASS_FILE) ]; then \
ihse@8330 355 $(ECHO) Updating rt.jar $(PROFILE) && \
ihse@8330 356 $(CD) $(patsubst %$(VERSION_CLASS_PATH), %, $(CLASS_FILE)) && \
ihse@8330 357 $(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(VERSION_CLASS_PATH); \
ihse@8330 358 $(CD) $(BEANLESS_CLASSES) && \
ihse@8330 359 $(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(CLASSES_TO_DEBEAN); \
ihse@8330 360 fi
ohair@5819 361 $(MV) $@.tmp $@
erikj@5507 362
dholmes@6571 363 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/resources.jar: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents \
ihse@8330 364 $(RESOURCE_JAR_MANIFEST_FILE)
erikj@5507 365 $(ECHO) Creating resources.jar
ohair@5819 366 $(MKDIR) -p $(@D)
ohair@5819 367 $(RM) $@ $@.tmp
erikj@5507 368 $(CD) $(JDK_OUTPUTDIR)/classes && \
ihse@8330 369 $(JAR) $(RT_JAR_CREATE_OPTIONS) $@.tmp $(RESOURCE_JAR_MANIFEST_FILE) \
ihse@8330 370 @$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents
ohair@5819 371 $(MV) $@.tmp $@
erikj@5507 372
erikj@5507 373 ##########################################################################################
erikj@5507 374
erikj@5596 375 ifneq ($(OPENJDK_TARGET_OS), windows)
ihse@8330 376 CHARSETS_EXTRA_FILES := sun/awt/motif/X11GBK.class \
ihse@8330 377 sun/awt/motif/X11GB2312\$$$$Decoder.class \
ihse@8330 378 sun/awt/motif/X11GB2312.class \
ihse@8330 379 sun/awt/motif/X11KSC5601\$$$$Decoder.class \
ihse@8330 380 sun/awt/motif/X11KSC5601\$$$$Encoder.class \
ihse@8330 381 sun/awt/motif/X11GB2312\$$$$Encoder.class \
ihse@8330 382 sun/awt/motif/X11GBK\$$$$Encoder.class \
ihse@8330 383 sun/awt/motif/X11KSC5601.class
erikj@5507 384 endif
erikj@5507 385
ihse@8330 386 $(eval $(call SetupArchive,BUILD_CHARSETS_JAR, , \
ihse@8330 387 SRCS := $(JDK_OUTPUTDIR)/classes, \
ihse@8330 388 SUFFIXES := .class .dat, \
ihse@8330 389 INCLUDES := sun/nio/cs/ext, \
ihse@8330 390 EXTRA_FILES := sun/awt/HKSCS.class \
ihse@8330 391 $(CHARSETS_EXTRA_FILES), \
ihse@8330 392 JAR := $(IMAGES_OUTPUTDIR)/lib/charsets.jar, \
ihse@8330 393 SKIP_METAINF := true, \
ihse@8330 394 CHECK_COMPRESS_JAR := true))
erikj@5507 395
erikj@5507 396 ##########################################################################################
erikj@5507 397
ohair@6025 398 ifndef OPENJDK
ihse@8330 399 ifeq ($(ENABLE_JFR), true)
ihse@8330 400 $(eval $(call SetupArchive,BUILD_JFR_JAR, , \
ihse@8330 401 SRCS := $(JDK_OUTPUTDIR)/classes, \
ihse@8330 402 SUFFIXES := .class .jfc .xsd, \
ihse@8330 403 INCLUDES := com/oracle/jrockit/jfr \
ihse@8330 404 oracle/jrockit/jfr \
ihse@8330 405 jdk/jfr, \
ihse@8330 406 JAR := $(IMAGES_OUTPUTDIR)/lib/jfr.jar, \
ihse@8330 407 SKIP_METAINF := true, \
ihse@8330 408 MANIFEST := $(MAINMANIFEST), \
ihse@8330 409 CHECK_COMPRESS_JAR := true))
erikj@5507 410
ihse@8330 411 endif
erikj@5507 412 endif
erikj@5507 413
erikj@5507 414 ##########################################################################################
erikj@5507 415
ihse@8330 416 $(eval $(call SetupArchive,BUILD_JSSE_JAR, , \
ihse@8330 417 SRCS := $(JDK_OUTPUTDIR)/classes, \
ihse@8330 418 INCLUDES := sun/security/provider/Sun.class \
ihse@8330 419 sun/security/rsa/SunRsaSign.class \
ihse@8330 420 sun/security/ssl \
ihse@8330 421 com/sun/net/ssl/internal/ssl, \
ihse@8330 422 JAR := $(IMAGES_OUTPUTDIR)/lib/jsse.jar, \
ihse@8330 423 SKIP_METAINF := true, \
ihse@8330 424 MANIFEST := $(MAINMANIFEST), \
ihse@8330 425 CHECK_COMPRESS_JAR := true))
erikj@5507 426
erikj@5507 427 ##########################################################################################
erikj@5507 428
ihse@8330 429 $(eval $(call SetupArchive,BUILD_SWINGBEANS_JAR, , \
ihse@8330 430 SRCS := $(JDK_OUTPUTDIR)/classes, \
ihse@8330 431 SUFFIXES := BeanInfo.class .gif, \
ihse@8330 432 INCLUDES := javax/swing sun/swing, \
ihse@8330 433 EXCLUDES := javax/swing/plaf, \
ihse@8330 434 EXTRA_FILES := javax/swing/SwingBeanInfoBase.class sun/swing/BeanInfoUtils.class, \
ihse@8330 435 JAR := $(IMAGES_OUTPUTDIR)/lib/dt.jar, \
ihse@8330 436 SKIP_METAINF := true))
erikj@5507 437
erikj@5507 438 ##########################################################################################
erikj@5507 439
naoto@5747 440 # Get the CLDRVERSION
ihse@8332 441 include gensrc/GensrcCLDR.gmk
naoto@5747 442
ohair@6025 443 CLDRDATA_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/cldrdata.jar
naoto@5747 444
ihse@8330 445 $(eval $(call SetupArchive,BUILD_CLDRDATA_JAR, , \
ihse@8330 446 SRCS := $(JDK_OUTPUTDIR)/classes, \
ihse@8330 447 SUFFIXES := .class, \
ihse@8330 448 INCLUDES := sun/text/resources/cldr \
ihse@8330 449 sun/util/cldr \
ihse@8330 450 sun/util/resources/cldr, \
ihse@8330 451 EXCLUDES := sun/util/cldr/CLDRLocaleProviderAdapter, \
ihse@8330 452 JAR := $(CLDRDATA_JAR_DST), \
ihse@8330 453 EXTRA_MANIFEST_ATTR := CLDR-Version: $(CLDRVERSION), \
ihse@8330 454 SKIP_METAINF := true))
naoto@5747 455
naoto@5747 456 ##########################################################################################
naoto@5747 457
erikj@5507 458 TOOLS_JAR_INCLUDES := \
ihse@8330 459 com/sun/codemodel \
ihse@8330 460 com/sun/istack/internal/tools \
ihse@8330 461 com/sun/jarsigner \
ihse@8330 462 com/sun/javadoc \
ihse@8330 463 com/sun/jdi \
ihse@8330 464 com/sun/source \
ihse@8330 465 com/sun/tools/attach \
ihse@8330 466 com/sun/tools/classfile \
ihse@8330 467 com/sun/tools/corba \
ihse@8330 468 com/sun/tools/doclets \
ihse@8330 469 com/sun/tools/doclint \
ihse@8330 470 com/sun/tools/example/debug/expr \
ihse@8330 471 com/sun/tools/example/debug/tty \
ihse@8330 472 com/sun/tools/extcheck \
ihse@8330 473 com/sun/tools/hat \
ihse@8330 474 com/sun/tools/internal/jxc \
ihse@8330 475 com/sun/tools/internal/jxc/ap \
ihse@8330 476 com/sun/tools/internal/ws \
ihse@8330 477 com/sun/tools/internal/ws/wscompile/plugin/at_generated \
ihse@8330 478 com/sun/tools/internal/xjc \
ihse@8330 479 com/sun/tools/javac \
ihse@8330 480 com/sun/tools/javadoc \
ihse@8330 481 com/sun/tools/javah \
ihse@8330 482 com/sun/tools/javap \
ihse@8330 483 com/sun/tools/jdeps \
ihse@8330 484 com/sun/tools/jdi \
ihse@8330 485 com/sun/tools/script/shell \
ihse@8330 486 com/sun/xml/internal/dtdparser \
ihse@8330 487 com/sun/xml/internal/rngom \
ihse@8330 488 com/sun/xml/internal/xsom \
ihse@8330 489 org/relaxng/datatype \
ihse@8330 490 sun/applet \
ihse@8330 491 sun/jvmstat \
ihse@8330 492 sun/rmi/rmic \
ihse@8330 493 sun/security/tools/jarsigner \
ihse@8330 494 sun/tools/asm \
ihse@8330 495 sun/tools/attach \
ihse@8330 496 sun/tools/jar \
ihse@8330 497 sun/tools/java \
ihse@8330 498 sun/tools/javac \
ihse@8330 499 sun/tools/jcmd \
ihse@8330 500 sun/tools/jinfo \
ihse@8330 501 sun/tools/jmap \
ihse@8330 502 sun/tools/jps \
ihse@8330 503 sun/tools/jstack \
ihse@8330 504 sun/tools/jstat \
ihse@8330 505 sun/tools/jstatd \
ihse@8330 506 sun/tools/native2ascii \
ihse@8330 507 sun/tools/serialver \
ihse@8330 508 sun/tools/tree \
ihse@8330 509 sun/tools/util
erikj@5507 510
ohair@6025 511 # The sjavac tools is not ready for public consumption.
ihse@8330 512 TOOLS_JAR_EXCLUDES = com/sun/tools/sjavac
ohair@6025 513
ihse@8330 514 $(eval $(call SetupArchive,BUILD_TOOLS_JAR, , \
ihse@8330 515 SRCS := $(JDK_OUTPUTDIR)/classes, \
ihse@8330 516 SUFFIXES := .class .prp .gif .properties .xml .css .xsd .js .html .txt .java \
ihse@8330 517 Tool aliasmap options, \
ihse@8330 518 INCLUDES := $(TOOLS_JAR_INCLUDES), \
ihse@8330 519 EXCLUDES := $(TOOLS_JAR_EXCLUDES), \
ihse@8330 520 EXTRA_FILES := META-INF/services/com.sun.jdi.connect.Connector \
ihse@8330 521 META-INF/services/com.sun.jdi.connect.spi.TransportService \
ihse@8330 522 META-INF/services/com.sun.tools.attach.spi.AttachProvider \
ihse@8330 523 META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin \
ihse@8330 524 META-INF/services/com.sun.tools.internal.xjc.Plugin, \
ihse@8330 525 JAR := $(IMAGES_OUTPUTDIR)/lib/tools.jar, \
ihse@8330 526 SKIP_METAINF := true, \
ihse@8330 527 CHECK_COMPRESS_JAR := true))
erikj@5507 528
erikj@5507 529
erikj@5507 530 ##########################################################################################
erikj@5507 531
ihse@8845 532 include CORE_PKGS.gmk
ihse@8845 533 include NON_CORE_PKGS.gmk
erikj@5507 534
erikj@5507 535 # The compiler should not issue a "Proprietary" warning when compiling
erikj@5507 536 # classes in the com.sun.java.swing.plaf packages, since we've always
erikj@5507 537 # allowed, and even advocated, extending them (see bug 6476749).
erikj@5507 538 #
erikj@5507 539 # This approach is NOT to be used as a general purpose way to avoid such
erikj@5507 540 # compiler warnings for non-core packages. The correct way is to document
erikj@5507 541 # the packages in NON_CORE_PKGS.gmk, and include them in the NON_CORE_PKGS
erikj@5507 542 # definition.
erikj@5507 543 #
erikj@5507 544 # Swing has taken this approach only as a temporary measure to avoid
erikj@5507 545 # the compiler warnings until we can properly document these packages.
erikj@5507 546 # This is covered under 6491853.
ihse@8330 547 EXCLUDE_PROPWARN_PKGS = com.sun.java.swing.plaf.windows \
ihse@8330 548 com.sun.java.swing.plaf.motif \
ihse@8330 549 com.sun.java.swing.plaf.gtk
erikj@5507 550
erikj@5507 551 #
erikj@5507 552 # Include the exported private packages in ct.sym.
erikj@5507 553 # This is an interim solution until the ct.sym is replaced
erikj@5507 554 # with a new module system (being discussed for JDK 8).
erikj@5507 555 #
mchung@6816 556 EXPORTED_PRIVATE_PKGS = com.oracle.net \
ihse@8330 557 com.oracle.nio
erikj@5507 558
ohair@6025 559 $(IMAGES_OUTPUTDIR)/symbols/_the.symbols: $(IMAGES_OUTPUTDIR)/lib/rt.jar
ohair@5819 560 $(RM) -r $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym
erikj@5507 561 $(MKDIR) -p $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym
ohrstrom@6472 562 $(JAVA) $(NEW_JAVAC) \
erikj@6256 563 -bootclasspath $(JDK_OUTPUTDIR)/classes \
erikj@5507 564 -XDprocess.packages -proc:only \
erikj@5507 565 -processor com.sun.tools.javac.sym.CreateSymbols \
ohair@6025 566 -Acom.sun.tools.javac.sym.Jar=$(IMAGES_OUTPUTDIR)/lib/rt.jar \
erikj@5507 567 -Acom.sun.tools.javac.sym.Dest=$(IMAGES_OUTPUTDIR)/symbols/META-INF/sym/rt.jar \
dholmes@6571 568 -Acom.sun.tools.javac.sym.Profiles=profile-rtjar-includes.txt \
erikj@5507 569 $(CORE_PKGS) $(NON_CORE_PKGS) $(EXCLUDE_PROPWARN_PKGS) $(EXPORTED_PRIVATE_PKGS)
erikj@5507 570 $(TOUCH) $@
erikj@5507 571
ihse@8330 572 $(eval $(call MakeDir, $(IMAGES_OUTPUTDIR)/symbols))
ihse@8330 573 $(eval $(call SetupArchive,BUILD_CT_SYM, $(IMAGES_OUTPUTDIR)/symbols/_the.symbols, \
ihse@8330 574 SRCS := $(IMAGES_OUTPUTDIR)/symbols, \
ihse@8330 575 INCLUDES := META-INF/sym, \
ihse@8330 576 JAR := $(IMAGES_OUTPUTDIR)/lib/ct.sym, \
ihse@8330 577 CHECK_COMPRESS_JAR := true))
erikj@5507 578
erikj@5507 579
erikj@5507 580 ##########################################################################################
erikj@5507 581
erikj@5507 582 SRC_ZIP_INCLUDES = \
ihse@8330 583 com/sun/corba \
ihse@8330 584 com/sun/image/codec/jpeg \
ihse@8330 585 com/sun/imageio \
ihse@8330 586 com/sun/java_cup \
ihse@8330 587 com/sun/javadoc \
ihse@8330 588 com/sun/java/swing \
ihse@8330 589 com/sun/jmx \
ihse@8330 590 com/sun/naming \
ihse@8330 591 com/sun/org/apache \
ihse@8330 592 com/sun/security/auth \
ihse@8330 593 com/sun/security/jgss \
ihse@8330 594 com/sun/source \
ihse@8330 595 java \
ihse@8330 596 javax/accessibility \
ihse@8330 597 javax/annotation \
ihse@8330 598 javax/imageio \
ihse@8330 599 javax/lang \
ihse@8330 600 javax/management \
ihse@8330 601 javax/naming \
ihse@8330 602 javax/print \
ihse@8330 603 javax/rmi \
ihse@8330 604 javax/script \
ihse@8330 605 javax/security \
ihse@8330 606 javax/sound \
ihse@8330 607 javax/sql \
ihse@8330 608 javax/swing \
ihse@8330 609 javax/tools \
ihse@8330 610 javax/xml \
ihse@8330 611 org/ietf \
ihse@8330 612 org/omg \
ihse@8330 613 org/w3c/dom \
ihse@8330 614 org/xml/sax \
ihse@8330 615 #
erikj@5507 616
ohair@5819 617 SRC_ZIP_SRCS = $(JDK_TOPDIR)/src/share/classes $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes
erikj@5507 618 SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/gensrc
erikj@5507 619 SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/impsrc
erikj@5507 620 SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/gendocsrc_rmic
erikj@5507 621 ifndef OPENJDK
erikj@5507 622 SRC_ZIP_SRCS += $(JDK_TOPDIR)/src/closed/share/classes
erikj@5507 623 endif
erikj@5507 624
erikj@5507 625 # Need to copy launcher src files into desired directory structure
erikj@5507 626 # before zipping the sources.
erikj@5507 627 LAUNCHER_SRC_FILES := $(wildcard $(JDK_TOPDIR)/src/share/bin/*) \
ihse@8330 628 $(wildcard $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/java_md*)
ihse@8330 629 LAUNCHER_ZIP_SRC := $(patsubst $(JDK_TOPDIR)/src/share/bin/%, $(IMAGES_OUTPUTDIR)/src/launcher/%, \
ihse@8330 630 $(patsubst $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/%, $(IMAGES_OUTPUTDIR)/src/launcher/%, \
ihse@8330 631 $(LAUNCHER_SRC_FILES)))
erikj@5507 632
erikj@5507 633 $(IMAGES_OUTPUTDIR)/src/launcher/%: $(JDK_TOPDIR)/src/share/bin/%
erikj@6145 634 $(install-file)
erikj@5507 635
ohair@5819 636 $(IMAGES_OUTPUTDIR)/src/launcher/%: $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/%
erikj@6145 637 $(install-file)
erikj@5507 638
erikj@5507 639 $(IMAGES_OUTPUTDIR)/src.zip: $(LAUNCHER_ZIP_SRC)
erikj@5507 640
ohair@6025 641 # This dir needs to exist before macro is evaluated to avoid warning from find.
ihse@8330 642 $(eval $(call MakeDir, $(IMAGES_OUTPUTDIR)/src))
ihse@8330 643 $(eval $(call SetupZipArchive,BUILD_SRC_ZIP, \
ihse@8330 644 SRC := $(SRC_ZIP_SRCS) $(IMAGES_OUTPUTDIR)/src, \
ihse@8330 645 INCLUDES := $(SRC_ZIP_INCLUDES) launcher, \
ihse@8330 646 EXCLUDES := javax/swing/beaninfo, \
ihse@8330 647 SUFFIXES := .java .c .h, \
ihse@8330 648 ZIP := $(IMAGES_OUTPUTDIR)/src.zip, \
ihse@8330 649 EXTRA_DEPS := $(LAUNCHER_ZIP_SRC)))
erikj@5507 650
erikj@5507 651 ##########################################################################################
erikj@5507 652
ptbrunet@10783 653 ifeq ($(OPENJDK_TARGET_OS), windows)
ptbrunet@10783 654 ifeq ($(OPENJDK_TARGET_CPU_BITS), 32)
ihse@8330 655 $(eval $(call SetupArchive,BUILD_ACCESSBRIDGE_32_JAR, , \
ihse@8330 656 SRCS := $(JDK_OUTPUTDIR)/classes_ab/32bit, \
ihse@8330 657 INCLUDES := com/sun/java/accessibility, \
ihse@8330 658 JAR := $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-32.jar, \
ihse@8330 659 SKIP_METAINF := true))
raginip@6453 660
ihse@8330 661 $(eval $(call SetupArchive,BUILD_ACCESSBRIDGE_LEGACY_JAR, , \
ihse@8330 662 SRCS := $(JDK_OUTPUTDIR)/classes_ab/legacy, \
ihse@8330 663 INCLUDES := com/sun/java/accessibility, \
ihse@8330 664 JAR := $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge.jar, \
ihse@8330 665 SKIP_METAINF := true))
raginip@6453 666
ihse@8330 667 JARS += $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-32.jar \
ihse@8330 668 $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge.jar
ptbrunet@10783 669 else
ihse@8330 670 $(eval $(call SetupArchive,BUILD_ACCESSBRIDGE_64_JAR, , \
ihse@8330 671 SRCS := $(JDK_OUTPUTDIR)/classes_ab/64bit, \
ihse@8330 672 INCLUDES := com/sun/java/accessibility, \
ihse@8330 673 JAR := $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-64.jar, \
ihse@8330 674 SKIP_METAINF := true))
raginip@6453 675
ihse@8330 676 JARS += $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-64.jar
ihse@8330 677 endif
ptbrunet@10783 678 endif
ptbrunet@10783 679
ptbrunet@10783 680 $(eval $(call SetupArchive,BUILD_JACCESS_JAR, , \
ptbrunet@10783 681 SRCS := $(JDK_OUTPUTDIR)/classes, \
ptbrunet@10783 682 INCLUDES := com/sun/java/accessibility/util, \
ptbrunet@10783 683 JAR := $(IMAGES_OUTPUTDIR)/lib/ext/jaccess.jar, \
ptbrunet@10783 684 SKIP_METAINF := true))
ptbrunet@10783 685
ptbrunet@10783 686 JARS += $(IMAGES_OUTPUTDIR)/lib/ext/jaccess.jar
raginip@6453 687
raginip@6453 688 ##########################################################################################
raginip@6453 689
erikj@6145 690 #
erikj@6145 691 # This is an empty jar (only contains manifest) and fits poorly into framework...
ihse@8330 692 # create simple rule instead
erikj@6145 693 #
ihse@8330 694 $(IMAGES_OUTPUTDIR)/lib/management-agent.jar: $(JDK_TOPDIR)/src/share/classes/sun/management/manifest
erikj@6145 695 $(JAR) cfm $@ $<
erikj@6145 696
erikj@6145 697 ##########################################################################################
erikj@6145 698
ihse@8330 699 $(IMAGES_OUTPUTDIR)/lib/ext/zipfs.jar: $(JDK_OUTPUTDIR)/demo/nio/zipfs/zipfs.jar
erikj@6145 700 $(install-file)
erikj@6145 701
erikj@6145 702 ##########################################################################################
erikj@6145 703
erikj@6145 704 # This file is imported from hotspot in Import.gmk. Copying it into images/lib so that
erikj@6145 705 # all jars can be found in one place when creating images in Images.gmk. It needs to be
erikj@6145 706 # done here so that clean targets can be simple and accurate.
erikj@6145 707 $(IMAGES_OUTPUTDIR)/lib/sa-jdi.jar: $(JDK_OUTPUTDIR)/lib/sa-jdi.jar
erikj@6145 708 $(install-file)
erikj@6145 709
erikj@6145 710 ##########################################################################################
erikj@6359 711 #
erikj@6360 712 # sec-bin.zip is used by builds where the corresponding sources are not available
erikj@6360 713 #
ihse@8330 714 $(eval $(call SetupZipArchive,BUILD_SEC_BIN_ZIP, \
ihse@8330 715 SRC := $(JDK_OUTPUTDIR), \
ihse@8330 716 INCLUDES := classes/javax/net \
ihse@8330 717 classes/javax/security/cert \
ihse@8330 718 classes/com/sun/net/ssl \
ihse@8330 719 classes/com/sun/security/cert \
ihse@8330 720 classes/sun/net/www/protocol/https \
ihse@8330 721 classes/sun/security/pkcs12 \
ihse@8330 722 classes/sun/security/ssl \
ihse@8330 723 classes/sun/security/krb5 \
ihse@8330 724 classes/sun/security/krb5/internal \
ihse@8330 725 classes/sun/security/krb5/internal/ccache \
ihse@8330 726 classes/sun/security/krb5/internal/crypto \
ihse@8330 727 classes/sun/security/krb5/internal/ktab \
ihse@8330 728 classes/sun/security/krb5/internal/rcache \
ihse@8330 729 classes/sun/security/krb5/internal/util, \
ihse@8330 730 INCLUDE_FILES := classes/sun/security/jgss/spi/GSSContextSpi.class, \
ihse@8330 731 EXCLUDES := classes/sun/security/krb5/internal/tools, \
ihse@8330 732 ZIP := $(IMAGES_OUTPUTDIR)/sec-bin.zip))
erikj@6359 733
erikj@6359 734 JARS += $(IMAGES_OUTPUTDIR)/sec-bin.zip
erikj@6359 735
erikj@6359 736 ##########################################################################################
erikj@6360 737 #
erikj@6360 738 # Windows specific binary security packages.
erikj@6360 739 #
ihse@8330 740 ifeq ($(OPENJDK_TARGET_OS), windows)
ihse@8330 741 # sec-windows-bin.zip is used by builds where the corresponding sources are not available
ihse@8330 742 $(eval $(call SetupZipArchive,BUILD_SEC_WINDOWS_BIN_ZIP, \
ihse@8330 743 SRC := $(JDK_OUTPUTDIR), \
ihse@8330 744 INCLUDES := classes/sun/security/krb5/internal/tools, \
ihse@8330 745 ZIP := $(IMAGES_OUTPUTDIR)/sec-windows-bin.zip))
erikj@6360 746
ihse@8330 747 JARS += $(IMAGES_OUTPUTDIR)/sec-windows-bin.zip
erikj@6360 748
ihse@8330 749 # JGSS files contain the native Kerberos library
ihse@8330 750 ifeq ($(OPENJDK_TARGET_CPU), x86_64)
ihse@8330 751 JGSS_ZIP_NAME = jgss-windows-x64-bin.zip
ihse@8330 752 else
ihse@8330 753 JGSS_ZIP_NAME = jgss-windows-i586-bin.zip
ihse@8330 754 endif
erikj@6360 755
ihse@8330 756 $(eval $(call SetupZipArchive,BUILD_JGSS_BIN_ZIP, \
ihse@8330 757 SRC := $(JDK_OUTPUTDIR), \
ihse@8330 758 INCLUDE_FILES := bin/w2k_lsa_auth.dll \
ihse@8330 759 bin/w2k_lsa_auth.map \
ihse@8330 760 bin/w2k_lsa_auth.pdb, \
ihse@8330 761 ZIP := $(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME)))
erikj@6360 762
ihse@8330 763 JARS += $(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME)
erikj@6360 764 endif
erikj@6360 765
erikj@6360 766 ##########################################################################################
erikj@6145 767
erikj@8498 768 # This rule copies all jars from jdk/lib/... to images/lib/... to avoid having to track
erikj@8498 769 # which jars are where
erikj@8498 770 $(IMAGES_OUTPUTDIR)/lib/%: $(JDK_OUTPUTDIR)/lib/%
erikj@8498 771 $(install-file)
erikj@8498 772
erikj@8498 773 ##########################################################################################
erikj@8498 774
jjg@6667 775 # Import nashorn.jar from nashorn dist dir.
jjg@6667 776 $(IMAGES_OUTPUTDIR)/lib/ext/nashorn.jar: $(NASHORN_DIST)/nashorn.jar
jjg@6667 777 $(install-file)
jjg@6667 778
jjg@6667 779 ##########################################################################################
jjg@6667 780
ohair@5819 781 -include $(CUSTOM_MAKE_DIR)/CreateJars.gmk
ohair@5819 782
ohair@5819 783 ##########################################################################################
ohair@5819 784
erikj@5507 785 all: $(JARS)
erikj@5507 786
erikj@5507 787 .PHONY: default all