annotate makefiles/CreateJars.gmk @ 10504:3565c755c49f

Merge
author jlaskey
date Fri, 15 Mar 2013 11:51:02 -0300
parents 41289b4a1819 364e0871f7a3
children 8c223a4f906a
rev   line source
erikj@5670 1 #
dholmes@7501 2 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
erikj@5670 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
erikj@5670 4 #
erikj@5670 5 # This code is free software; you can redistribute it and/or modify it
erikj@5670 6 # under the terms of the GNU General Public License version 2 only, as
erikj@5670 7 # published by the Free Software Foundation. Oracle designates this
erikj@5670 8 # particular file as subject to the "Classpath" exception as provided
erikj@5670 9 # by Oracle in the LICENSE file that accompanied this code.
erikj@5670 10 #
erikj@5670 11 # This code is distributed in the hope that it will be useful, but WITHOUT
erikj@5670 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
erikj@5670 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
erikj@5670 14 # version 2 for more details (a copy is included in the LICENSE file that
erikj@5670 15 # accompanied this code).
erikj@5670 16 #
erikj@5670 17 # You should have received a copy of the GNU General Public License version
erikj@5670 18 # 2 along with this work; if not, write to the Free Software Foundation,
erikj@5670 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
erikj@5670 20 #
erikj@5670 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
erikj@5670 22 # or visit www.oracle.com if you need additional information or have any
erikj@5670 23 # questions.
erikj@5670 24 #
erikj@5670 25
erikj@5670 26 include $(SPEC)
erikj@5670 27 include MakeBase.gmk
erikj@5670 28 include JavaCompilation.gmk
erikj@5670 29 include Setup.gmk
erikj@5670 30
erikj@5670 31 default: all
erikj@5670 32
erikj@7113 33 # Prepare the find cache. Only used if running on windows.
erikj@7113 34 $(eval $(call FillCacheFind,$(JDK_OUTPUTDIR)/classes))
erikj@7113 35
erikj@5670 36 include Tools.gmk
erikj@5670 37
dholmes@7501 38 include Profiles.gmk
dholmes@7501 39
erikj@5759 40 #
erikj@5759 41 # This makefile...so that altering will trigger rebuilding include/exclude-lists => jars
erikj@5759 42 #
erikj@5759 43 MAKEFILE=$(JDK_TOPDIR)/makefiles/CreateJars.gmk
dholmes@7501 44 #
dholmes@7501 45 # And similarly for the Profiles
dholmes@7501 46 PROFILE_MAKEFILES=$(JDK_TOPDIR)/makefiles/Profiles.gmk $(JDK_TOPDIR)/makefiles/profile-rtjar-includes.txt
erikj@5670 47
erikj@5670 48 MAINMANIFEST := $(JDK_TOPDIR)/make/tools/manifest.mf
erikj@5670 49 BEANMANIFEST := $(JDK_TOPDIR)/make/javax/swing/beaninfo/manifest
erikj@5670 50
ohair@6533 51 $(eval $(call MakeDir,$(IMAGES_OUTPUTDIR)/lib))
ohair@6533 52
erikj@5670 53 ##########################################################################################
erikj@5670 54
ohair@6533 55 $(eval $(call SetupArchive,BUILD_JCONSOLE_JAR,,\
erikj@5670 56 SRCS:=$(JDK_OUTPUTDIR)/classes,\
erikj@5759 57 SUFFIXES:=.class .gif .png .properties,\
erikj@5670 58 INCLUDES:=sun/tools/jconsole com/sun/tools/jconsole,\
erikj@5670 59 JARMAIN:=sun.tools.jconsole.JConsole,\
ohair@6533 60 JAR:=$(IMAGES_OUTPUTDIR)/lib/jconsole.jar,\
erikj@5670 61 SKIP_METAINF:=true))
erikj@5670 62
erikj@5670 63
erikj@5670 64 ##########################################################################################
erikj@5670 65
ohair@6533 66 $(eval $(call SetupArchive,BUILD_DNS_JAR,,\
erikj@5670 67 SRCS:=$(JDK_OUTPUTDIR)/classes,\
erikj@5670 68 INCLUDES:=sun/net/spi/nameservice/dns,\
erikj@5670 69 EXTRA_FILES:=META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor,\
ohair@6533 70 JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/dnsns.jar,\
erikj@5670 71 SKIP_METAINF:=true))
erikj@5670 72
erikj@5670 73
erikj@5670 74 ##########################################################################################
erikj@5670 75
sherman@7232 76 $(IMAGES_OUTPUTDIR)/lib/tzdb.jar: $(JDK_OUTPUTDIR)/lib/tzdb.jar
sherman@7232 77 $(install-file)
sherman@7232 78
sherman@7232 79 JARS += $(IMAGES_OUTPUTDIR)/lib/tzdb.jar
sherman@7232 80
sherman@7232 81 ##########################################################################################
sherman@7232 82
naoto@6573 83 LOCALEDATA_INCLUDE_LOCALES := ar be bg ca cs da de el es et fi fr ga hi hr hu in is it \
naoto@6573 84 iw ja ko lt lv mk ms mt nl no pl pt ro ru sk sl sq sr sv \
naoto@6573 85 th tr uk vi zh
naoto@6573 86
naoto@6130 87 LOCALEDATA_INCLUDES := $(addprefix sun/text/resources/,$(LOCALEDATA_INCLUDE_LOCALES)) \
naoto@6130 88 $(addprefix sun/util/resources/,$(LOCALEDATA_INCLUDE_LOCALES))
erikj@5670 89
naoto@6573 90 # For non-US English locale data
naoto@6573 91
naoto@6573 92 LOCALEDATA_INCLUDES += \
naoto@6573 93 sun/text/resources/en/FormatData_en_AU.class \
naoto@6573 94 sun/text/resources/en/FormatData_en_CA.class \
naoto@6573 95 sun/text/resources/en/FormatData_en_GB.class \
naoto@6573 96 sun/text/resources/en/FormatData_en_IE.class \
naoto@6573 97 sun/text/resources/en/FormatData_en_IN.class \
naoto@6573 98 sun/text/resources/en/FormatData_en_MT.class \
naoto@6573 99 sun/text/resources/en/FormatData_en_NZ.class \
naoto@6573 100 sun/text/resources/en/FormatData_en_PH.class \
naoto@6573 101 sun/text/resources/en/FormatData_en_SG.class \
naoto@6573 102 sun/text/resources/en/FormatData_en_ZA.class \
naoto@6573 103 sun/util/resources/en/CalendarData_en_GB.class \
naoto@6573 104 sun/util/resources/en/CalendarData_en_IE.class \
naoto@6573 105 sun/util/resources/en/CalendarData_en_MT.class \
naoto@6573 106 sun/util/resources/en/CurrencyNames_en_AU.class \
naoto@6573 107 sun/util/resources/en/CurrencyNames_en_CA.class \
naoto@6573 108 sun/util/resources/en/CurrencyNames_en_GB.class \
naoto@6573 109 sun/util/resources/en/CurrencyNames_en_IE.class \
naoto@6573 110 sun/util/resources/en/CurrencyNames_en_IN.class \
naoto@6573 111 sun/util/resources/en/CurrencyNames_en_MT.class \
naoto@6573 112 sun/util/resources/en/CurrencyNames_en_NZ.class \
naoto@6573 113 sun/util/resources/en/CurrencyNames_en_PH.class \
naoto@6573 114 sun/util/resources/en/CurrencyNames_en_SG.class \
naoto@6573 115 sun/util/resources/en/CurrencyNames_en_ZA.class \
naoto@6573 116 sun/util/resources/en/LocaleNames_en_MT.class \
naoto@6573 117 sun/util/resources/en/LocaleNames_en_PH.class \
naoto@6573 118 sun/util/resources/en/LocaleNames_en_SG.class \
naoto@6573 119 sun/util/resources/en/TimeZoneNames_en_CA.class \
naoto@6573 120 sun/util/resources/en/TimeZoneNames_en_GB.class \
naoto@6573 121 sun/util/resources/en/TimeZoneNames_en_IE.class
naoto@6573 122
erikj@5670 123 $(eval $(call SetupArchive,BUILD_LOCALEDATA_JAR,,\
erikj@5670 124 SRCS:=$(JDK_OUTPUTDIR)/classes,\
erikj@5670 125 SUFFIXES:=.class _dict _th,\
erikj@5670 126 INCLUDES:=$(LOCALEDATA_INCLUDES),\
naoto@6130 127 EXCLUDES:=sun/text/resources/th/BreakIteratorRules_th.class,\
ohair@6533 128 JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/localedata.jar,\
erikj@5670 129 SKIP_METAINF:=true))
erikj@5670 130
dholmes@7501 131 ##########################################################################################
dholmes@7501 132 #
dholmes@7501 133 # Different variants of rt.jar are built based on the current profile. The output
dholmes@7501 134 # directory is augmented with the profile name so that the final jar file and all the
dholmes@7501 135 # intermediary list files will be in directory. This has the form lib$PROFILE rather than
dholmes@7501 136 # lib/$PROFILE so that it won't get copied as part of the image generation process.
dholmes@7501 137 # Each profile customizes the RT_JAR_EXCLUDES variable.
dholmes@7501 138 #
dholmes@7501 139 ##########################################################################################
erikj@5670 140
dholmes@7501 141 # Full JRE exclude list for rt.jar and resources.jar
dholmes@7501 142 # This value should exclude types destined for jars other than rt.jar and resources.jar.
dholmes@7501 143 # When building a Profile this value augments the profile specific exclusions
dholmes@7501 144 RT_JAR_EXCLUDES += \
erikj@7115 145 com/oracle/security \
erikj@7117 146 com/sun/codemodel \
erikj@7117 147 com/sun/crypto/provider \
erikj@7117 148 com/sun/istack/internal/tools \
erikj@7117 149 com/sun/jarsigner \
raginip@7375 150 com/sun/java/accessibility \
erikj@5670 151 com/sun/javadoc \
erikj@5670 152 com/sun/jdi \
erikj@7117 153 com/sun/net/ssl/internal/ssl \
erikj@5670 154 com/sun/source \
erikj@5670 155 com/sun/tools \
erikj@5670 156 com/sun/xml/internal/dtdparser \
erikj@5670 157 com/sun/xml/internal/rngom \
erikj@5670 158 com/sun/xml/internal/xsom \
erikj@7117 159 javax/crypto \
erikj@7117 160 javax/swing/AbstractButtonBeanInfo.class \
erikj@5670 161 javax/swing/beaninfo \
erikj@5670 162 javax/swing/BoxBeanInfo.class \
erikj@5670 163 javax/swing/JAppletBeanInfo.class \
erikj@5670 164 javax/swing/JButtonBeanInfo.class \
erikj@5670 165 javax/swing/JCheckBoxBeanInfo.class \
erikj@5670 166 javax/swing/JCheckBoxMenuItemBeanInfo.class \
erikj@5670 167 javax/swing/JColorChooserBeanInfo.class \
erikj@5670 168 javax/swing/JComboBoxBeanInfo.class \
erikj@5670 169 javax/swing/JComponentBeanInfo.class \
erikj@5670 170 javax/swing/JDesktopPaneBeanInfo.class \
erikj@5670 171 javax/swing/JDialogBeanInfo.class \
erikj@5670 172 javax/swing/JEditorPaneBeanInfo.class \
erikj@5670 173 javax/swing/JFileChooserBeanInfo.class \
erikj@5670 174 javax/swing/JFormattedTextFieldBeanInfo.class \
erikj@5670 175 javax/swing/JFrameBeanInfo.class \
erikj@5670 176 javax/swing/JInternalFrameBeanInfo.class \
erikj@5670 177 javax/swing/JLabelBeanInfo.class \
erikj@5670 178 javax/swing/JLayeredPaneBeanInfo.class \
erikj@5670 179 javax/swing/JListBeanInfo.class \
erikj@5670 180 javax/swing/JMenuBarBeanInfo.class \
erikj@5670 181 javax/swing/JMenuBeanInfo.class \
erikj@5670 182 javax/swing/JMenuItemBeanInfo.class \
erikj@5670 183 javax/swing/JOptionPaneBeanInfo.class \
erikj@5670 184 javax/swing/JPanelBeanInfo.class \
erikj@5670 185 javax/swing/JPasswordFieldBeanInfo.class \
erikj@5670 186 javax/swing/JPopupMenuBeanInfo.class \
erikj@5670 187 javax/swing/JProgressBarBeanInfo.class \
erikj@5670 188 javax/swing/JRadioButtonBeanInfo.class \
erikj@5670 189 javax/swing/JRadioButtonMenuItemBeanInfo.class \
erikj@5670 190 javax/swing/JScrollBarBeanInfo.class \
erikj@5670 191 javax/swing/JScrollPaneBeanInfo.class \
erikj@5670 192 javax/swing/JSeparatorBeanInfo.class \
erikj@5670 193 javax/swing/JSliderBeanInfo.class \
erikj@5670 194 javax/swing/JSpinnerBeanInfo.class \
erikj@5670 195 javax/swing/JSplitPaneBeanInfo.class \
erikj@5670 196 javax/swing/JTabbedPaneBeanInfo.class \
erikj@5670 197 javax/swing/JTableBeanInfo.class \
erikj@5670 198 javax/swing/JTextAreaBeanInfo.class \
erikj@5670 199 javax/swing/JTextFieldBeanInfo.class \
erikj@5670 200 javax/swing/JTextPaneBeanInfo.class \
erikj@5670 201 javax/swing/JToggleButtonBeanInfo.class \
erikj@5670 202 javax/swing/JToolBarBeanInfo.class \
erikj@5670 203 javax/swing/JTreeBeanInfo.class \
erikj@5670 204 javax/swing/JWindowBeanInfo.class \
erikj@5670 205 javax/swing/SwingBeanInfoBase.class \
erikj@5670 206 javax/swing/text/JTextComponentBeanInfo.class \
erikj@7117 207 META-INF/services/com.sun.jdi.connect.Connector \
erikj@7117 208 META-INF/services/com.sun.jdi.connect.spi.TransportService \
erikj@7117 209 META-INF/services/com.sun.tools.attach.spi.AttachProvider \
erikj@7117 210 META-INF/services/com.sun.tools.xjc.Plugin \
erikj@7117 211 META-INF/services/java.nio.charset.spi.CharsetProvider \
erikj@7117 212 META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor \
erikj@7117 213 org/relaxng/datatype \
erikj@7117 214 sun/awt/HKSCS.class \
erikj@7117 215 sun/awt/motif/X11GB2312.class \
dholmes@8035 216 sun/awt/motif/X11GB2312\$$$$Decoder.class \
dholmes@8035 217 sun/awt/motif/X11GB2312\$$$$Encoder.class \
erikj@7117 218 sun/awt/motif/X11GBK.class \
dholmes@8035 219 sun/awt/motif/X11GBK\$$$$Encoder.class \
erikj@7117 220 sun/awt/motif/X11KSC5601.class \
dholmes@8035 221 sun/awt/motif/X11KSC5601\$$$$Decoder.class \
dholmes@8035 222 sun/awt/motif/X11KSC5601\$$$$Encoder.class \
erikj@7117 223 sun/jvmstat \
erikj@7117 224 sun/net/spi/nameservice/dns \
erikj@7117 225 sun/nio/cs/ext \
erikj@7117 226 sun/rmi/rmic \
erikj@7117 227 sun/security/ec/ECDHKeyAgreement.class \
erikj@7117 228 sun/security/ec/ECDSASignature.class \
dholmes@8035 229 sun/security/ec/ECDSASignature\$$$$Raw.class \
dholmes@8035 230 sun/security/ec/ECDSASignature\$$$$SHA1.class \
dholmes@8035 231 sun/security/ec/ECDSASignature\$$$$SHA224.class \
dholmes@8035 232 sun/security/ec/ECDSASignature\$$$$SHA256.class \
dholmes@8035 233 sun/security/ec/ECDSASignature\$$$$SHA384.class \
dholmes@8035 234 sun/security/ec/ECDSASignature\$$$$SHA512.class \
erikj@7117 235 sun/security/ec/ECKeyFactory.class \
erikj@7117 236 sun/security/ec/ECKeyPairGenerator.class \
dholmes@8035 237 sun/security/ec/SunEC\$$$$1.class \
erikj@7117 238 sun/security/ec/SunEC.class \
erikj@7117 239 sun/security/ec/SunECEntries.class \
erikj@7117 240 sun/security/internal \
erikj@7117 241 sun/security/mscapi \
erikj@7117 242 sun/security/pkcs11 \
erikj@7117 243 sun/security/provider/Sun.class \
erikj@7117 244 sun/security/rsa/SunRsaSign.class \
erikj@7117 245 sun/security/ssl \
erikj@7117 246 sun/security/tools/jarsigner \
erikj@5670 247 sun/swing/BeanInfoUtils.class \
naoto@6130 248 sun/text/resources/cldr \
erikj@7117 249 sun/tools/asm \
erikj@7117 250 sun/tools/attach \
erikj@7117 251 sun/tools/java \
erikj@7117 252 sun/tools/javac \
erikj@7117 253 sun/tools/jcmd \
erikj@7117 254 sun/tools/jconsole \
erikj@7117 255 sun/tools/jinfo \
erikj@7117 256 sun/tools/jmap \
erikj@7117 257 sun/tools/jps \
erikj@7117 258 sun/tools/jstack \
erikj@7117 259 sun/tools/jstat \
erikj@7117 260 sun/tools/jstatd \
erikj@7117 261 sun/tools/native2ascii \
erikj@7117 262 sun/tools/serialver \
erikj@7117 263 sun/tools/tree \
erikj@7117 264 sun/tools/util \
erikj@7117 265 sun/util/cldr/CLDRLocaleDataMetaInfo.class \
naoto@6130 266 sun/util/resources/cldr \
dholmes@7501 267 $(LOCALEDATA_INCLUDES) \
erikj@5670 268 com/oracle/jrockit/jfr \
erikj@5670 269 oracle/jrockit/jfr
erikj@5759 270
erikj@5759 271 ifeq ($(OPENJDK_TARGET_OS), macosx)
erikj@5759 272 RT_JAR_EXCLUDES += com/sun/nio/sctp \
ohrstrom@6610 273 sun/nio/ch/sctp
erikj@5670 274 endif
erikj@5670 275
erikj@5670 276 # Find all files in the classes dir to use as dependencies. This could be more fine granular.
erikj@7113 277 ALL_FILES_IN_CLASSES := $(call not-containing,_the.,$(filter-out %javac_state,\
erikj@7113 278 $(call CacheFind,$(JDK_OUTPUTDIR)/classes)))
erikj@5670 279
dholmes@7501 280 RT_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar_manifest
dholmes@7501 281 RESOURCE_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar_manifest
erikj@5670 282
erikj@5670 283 $(RT_JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST)
erikj@5670 284 $(MKDIR) -p $(@D)
ohair@6202 285 $(RM) $@ $@.tmp
erikj@5670 286 $(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \
erikj@5670 287 -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
ohair@6202 288 $(MAINMANIFEST) >> $@.tmp
ohair@6202 289 $(ECHO) >> $@.tmp
ohair@6202 290 $(CAT) $(BEANMANIFEST) >> $@.tmp
ohair@6202 291 $(MV) $@.tmp $@
erikj@5670 292
erikj@5670 293 $(RESOURCE_JAR_MANIFEST_FILE): $(MAINMANIFEST)
erikj@5670 294 $(MKDIR) -p $(@D)
ohair@6202 295 $(RM) $@ $@.tmp
erikj@5670 296 $(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \
erikj@5670 297 -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
ohair@6202 298 $(MAINMANIFEST) >> $@.tmp
ohair@6202 299 $(MV) $@.tmp $@
erikj@5670 300
dholmes@7501 301 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.exclude: $(MAKEFILE) $(PROFILE_MAKEFILES)
erikj@5670 302 $(MKDIR) -p $(@D)
ohair@6202 303 $(RM) $@ $@.tmp
ohair@6202 304 $(call ListPathsSafely,RT_JAR_EXCLUDES,\n, >> $@.tmp)
ohair@6202 305 $(MV) $@.tmp $@
erikj@5670 306
ohair@6533 307 $(IMAGES_OUTPUTDIR)/lib/classlist : $(JDK_TOPDIR)/make/tools/sharing/classlist.$(OPENJDK_TARGET_OS) \
erikj@5759 308 $(MAKEFILE)
erikj@5759 309 $(MKDIR) -p $(@D)
ohair@6202 310 $(RM) $@ $@.tmp
ohair@6202 311 $(TOOL_ADDJSUM) $< $@.tmp
ohair@6202 312 $(MV) $@.tmp $@
erikj@5759 313
dholmes@7501 314 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents: $(BUILD_TOOLS) $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.exclude \
ohair@6533 315 $(ALL_FILES_IN_CLASSES) $(IMAGES_OUTPUTDIR)/lib/classlist
erikj@5670 316 $(MKDIR) -p $(@D)
ohair@6202 317 $(RM) $@ $@.tmp
erikj@5670 318 ($(CD) $(JDK_OUTPUTDIR)/classes && \
erikj@5670 319 $(TOOL_JARREORDER) \
dholmes@7501 320 -o $@.tmp $(IMAGES_OUTPUTDIR)/lib/classlist $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.exclude . )
ohair@6202 321 $(MV) $@.tmp $@
erikj@5670 322
dholmes@7501 323 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar.contents: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents
ohair@6202 324 $(MKDIR) -p $(@D)
ohair@6202 325 $(RM) $@ $@.tmp
dholmes@7501 326 $(GREP) -e '\.class$$' $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents > $@.tmp
dholmes@7501 327 ifneq ($(PROFILE),)
dholmes@7501 328 # # Add back classes from excluded packages (fixing the $ substitution in the process)
dholmes@7501 329 for type in $(subst \$$,\, $(RT_JAR_INCLUDE_TYPES)) ; do \
dholmes@7501 330 $(ECHO) $$type >> $@.tmp ; \
dholmes@7501 331 done
dholmes@7501 332 endif
ohair@6202 333 $(MV) $@.tmp $@
erikj@5670 334
dholmes@7501 335 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents
ohair@6202 336 $(MKDIR) -p $(@D)
ohair@6202 337 $(RM) $@ $@.tmp
ohair@6202 338 $(GREP) -v -e '\.class$$' \
ohair@6202 339 -e '/_the\.*' -e '^_the\.*' -e '\\_the\.*' -e 'javac_state' \
dholmes@7501 340 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents > $@.tmp
dholmes@7501 341 ifneq ($(PROFILE),)
dholmes@7501 342 # # Strip out all META-INF/services/ entries
dholmes@7501 343 $(GREP) -v -e 'META-INF/services/' $@.tmp > $@.tmp2
dholmes@7501 344 # # Add back the required services
dholmes@7501 345 # # FIXME: On Solaris if PROFILE_INCLUDE_METAINF_SERVICES is not defined
dholmes@7501 346 # # we get a syntax error from sh. That doesn't happen on linux
dholmes@7501 347 for service in $(PROFILE_INCLUDE_METAINF_SERVICES) ; do \
dholmes@7501 348 $(ECHO) $$service >> $@.tmp2; \
dholmes@7501 349 done
dholmes@7501 350 $(MV) $@.tmp2 $@.tmp
dholmes@7501 351 endif
ohair@6202 352 $(MV) $@.tmp $@
erikj@5670 353
dholmes@7501 354 # This is a hack but I don't know how to make this fit into the existing scheme
dholmes@7501 355 $(PROFILE_VERSION_CLASS_TARGETS) : $(PROFILE_VERSION_JAVA_TARGETS)
dholmes@7501 356 @$(JAVAC) -d $(@D)/../../ $(@D)/$(VERSION_JAVA_FILE)
dholmes@7501 357
dholmes@7501 358
dholmes@7501 359 # Support for removing the addPropertyChangeListener and removePropertyChangeListener
dholmes@8035 360 # methods from classes that only go into the profile builds.
dholmes@7501 361 BEANLESS_CLASSES = $(IMAGES_OUTPUTDIR)/beanless
dholmes@7501 362
dholmes@8035 363 # When there are $ characters in filenames we have some very subtle interactions between
dholmes@8035 364 # make expansion and shell expansion. In this particular case $< will contain a single $ while
dholmes@8035 365 # $@ will contain \$. So we have to pass $< in single-quotes to avoid shell expansion
dholmes@7501 366 $(BEANLESS_CLASSES)/%: $(JDK_OUTPUTDIR)/classes/%
dholmes@7501 367 $(MKDIR) -p $(@D)
dholmes@8035 368 $(TOOL_REMOVEMETHODS) '$<' $@ addPropertyChangeListener removePropertyChangeListener
dholmes@7501 369
dholmes@7501 370 CLASSES_TO_DEBEAN = \
dholmes@7501 371 java/util/logging/LogManager.class \
dholmes@8035 372 java/util/jar/Pack200\$$Packer.class \
dholmes@8035 373 java/util/jar/Pack200\$$Unpacker.class \
dholmes@7501 374 com/sun/java/util/jar/pack/PackerImpl.class \
dholmes@8035 375 com/sun/java/util/jar/pack/UnpackerImpl.class
dholmes@7501 376
dholmes@7501 377 ifneq ($(PROFILE),)
dholmes@8035 378 BEANLESS_CLASSES_TARGETS := $(addprefix $(BEANLESS_CLASSES)/, $(CLASSES_TO_DEBEAN))
dholmes@7501 379 endif
dholmes@7501 380
dholmes@7501 381
erikj@5759 382 RT_JAR_CREATE_OPTIONS := c0fm
dholmes@7501 383 RT_JAR_UPDATE_OPTIONS := u0f
erikj@5759 384 ifeq ($(COMPRESS_JARS), true)
erikj@5759 385 RT_JAR_CREATE_OPTIONS := cfm
dholmes@7501 386 RT_JAR_UPDATE_OPTIONS := uf
erikj@5759 387 endif
erikj@5759 388
dholmes@7501 389 # This defines a target-specific variables to make the shell logic easier to see.
dholmes@7501 390 # We need to find the Version.class file for the profile currently being built
dholmes@7501 391 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/rt.jar: \
dholmes@7501 392 CLASS_FILE = $(if $(PROFILE),$(strip $(foreach class,$(PROFILE_VERSION_CLASS_TARGETS),$(if $(findstring $(PROFILE),$(class)),$(class)))), NO_SUCH_FILE)
dholmes@7501 393 # This is the real target
dholmes@7501 394 $(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@7501 395 $(ECHO) Creating rt.jar $(PROFILE) Compressed=$(COMPRESS_JARS)
ohair@6202 396 $(MKDIR) -p $(@D)
ohair@6202 397 $(RM) $@ $@.tmp
erikj@5670 398 $(CD) $(JDK_OUTPUTDIR)/classes && \
ohair@6202 399 $(JAR) $(RT_JAR_CREATE_OPTIONS) $@.tmp $(RT_JAR_MANIFEST_FILE) \
dholmes@7501 400 @$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar.contents && \
dholmes@7501 401 if [ -f $(CLASS_FILE) ]; then \
dholmes@7501 402 $(ECHO) Updating rt.jar $(PROFILE) && \
dholmes@7501 403 $(CD) $(patsubst %$(VERSION_CLASS_PATH),%,$(CLASS_FILE)) && \
dholmes@7501 404 $(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(VERSION_CLASS_PATH); \
dholmes@7501 405 $(CD) $(BEANLESS_CLASSES) && \
dholmes@8035 406 $(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(CLASSES_TO_DEBEAN); \
dholmes@7501 407 fi
ohair@6202 408 $(MV) $@.tmp $@
erikj@5670 409
dholmes@7501 410 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/resources.jar: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents \
erikj@5670 411 $(RESOURCE_JAR_MANIFEST_FILE)
erikj@5670 412 $(ECHO) Creating resources.jar
ohair@6202 413 $(MKDIR) -p $(@D)
ohair@6202 414 $(RM) $@ $@.tmp
erikj@5670 415 $(CD) $(JDK_OUTPUTDIR)/classes && \
ohair@6202 416 $(JAR) $(RT_JAR_CREATE_OPTIONS) $@.tmp $(RESOURCE_JAR_MANIFEST_FILE) \
dholmes@7501 417 @$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents
ohair@6202 418 $(MV) $@.tmp $@
erikj@5670 419
erikj@5670 420 ##########################################################################################
erikj@5670 421
erikj@5759 422 ifneq ($(OPENJDK_TARGET_OS), windows)
erikj@5670 423 CHARSETS_EXTRA_FILES:=sun/awt/motif/X11GBK.class \
erikj@5670 424 sun/awt/motif/X11GB2312\$$$$Decoder.class \
erikj@5670 425 sun/awt/motif/X11GB2312.class \
erikj@5670 426 sun/awt/motif/X11KSC5601\$$$$Decoder.class \
erikj@5670 427 sun/awt/motif/X11KSC5601\$$$$Encoder.class \
erikj@5670 428 sun/awt/motif/X11GB2312\$$$$Encoder.class \
erikj@5670 429 sun/awt/motif/X11GBK\$$$$Encoder.class \
erikj@5670 430 sun/awt/motif/X11KSC5601.class
erikj@5670 431 endif
erikj@5670 432
ohair@6533 433 $(eval $(call SetupArchive,BUILD_CHARSETS_JAR,,\
erikj@5670 434 SRCS:=$(JDK_OUTPUTDIR)/classes, \
erikj@5670 435 SUFFIXES:=.class .dat,\
erikj@5670 436 INCLUDES:=sun/nio/cs/ext,\
erikj@5670 437 EXTRA_FILES := sun/awt/HKSCS.class \
erikj@5670 438 $(CHARSETS_EXTRA_FILES) \
erikj@5670 439 META-INF/services/java.nio.charset.spi.CharsetProvider, \
ohair@6533 440 JAR:=$(IMAGES_OUTPUTDIR)/lib/charsets.jar, \
erikj@5759 441 SKIP_METAINF := true, \
erikj@5759 442 CHECK_COMPRESS_JAR:=true))
erikj@5670 443
erikj@5670 444 ##########################################################################################
erikj@5670 445
ohair@6533 446 ifndef OPENJDK
erikj@5759 447 ifeq ($(ENABLE_JFR), true)
erikj@5670 448 $(eval $(call SetupArchive,BUILD_JFR_JAR,,\
erikj@5670 449 SRCS:=$(JDK_OUTPUTDIR)/classes,\
erikj@5670 450 INCLUDES:=com/oracle/jrockit/jfr \
erikj@5670 451 oracle/jrockit/jfr,\
ohair@6533 452 JAR:=$(IMAGES_OUTPUTDIR)/lib/jfr.jar,\
erikj@5670 453 SKIP_METAINF:=true,\
erikj@5759 454 MANIFEST:=$(MAINMANIFEST), \
erikj@5759 455 CHECK_COMPRESS_JAR:=true))
erikj@5670 456
ohair@6533 457 endif
erikj@5670 458 endif
erikj@5670 459
erikj@5670 460 ##########################################################################################
erikj@5670 461
erikj@5670 462 $(eval $(call SetupArchive,BUILD_JSSE_JAR,,\
erikj@5670 463 SRCS:=$(JDK_OUTPUTDIR)/classes,\
erikj@5670 464 INCLUDES:=sun/security/provider/Sun.class \
erikj@5670 465 sun/security/rsa/SunRsaSign.class \
erikj@5670 466 sun/security/ssl \
erikj@5670 467 com/sun/net/ssl/internal/ssl,\
ohair@6533 468 JAR:=$(IMAGES_OUTPUTDIR)/lib/jsse.jar,\
erikj@5670 469 SKIP_METAINF:=true,\
erikj@5759 470 MANIFEST:=$(MAINMANIFEST), \
erikj@5759 471 CHECK_COMPRESS_JAR:=true))
erikj@5670 472
erikj@5670 473 ##########################################################################################
erikj@6699 474 # Create manifest for security jars
erikj@6699 475
erikj@6699 476 #
erikj@6699 477 # Include these extra attributes for now, should probably take out.
erikj@6699 478 #
erikj@6699 479 JCE_MANIFEST := $(IMAGES_OUTPUTDIR)/lib/_the.security.manifest.mf
erikj@6699 480 $(JCE_MANIFEST): $(MAINMANIFEST)
erikj@6699 481 $(MKDIR) -p $(@D)
erikj@6699 482 $(RM) $@ $@.tmp
erikj@6699 483 $(SED) -e "s#@@RELEASE@@#$(JDK_VERSION)#" \
erikj@6699 484 -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
erikj@6699 485 $(MAINMANIFEST) >> $@.tmp
erikj@6699 486 $(ECHO) "Extension-Name: javax.crypto" >> $@.tmp
erikj@6699 487 $(ECHO) "Implementation-Vendor-Id: com.sun" >> $@.tmp
erikj@6699 488 $(MV) $@.tmp $@
erikj@6699 489
erikj@6699 490 ##########################################################################################
erikj@7115 491 # For all security jars, always build the jar, but for closed, install the prebuilt signed
dholmes@7501 492 # version instead of the newly built jar. Unsigned jars are treated as intermediate targets
dholmes@7501 493 # and explicitly added to the JARS list. For open, signing is not needed. See SignJars.gmk
erikj@7115 494 # for more information.
erikj@5670 495
ohair@6533 496 SUNPKCS11_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunpkcs11.jar
erikj@7115 497 SUNPKCS11_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/sunpkcs11.jar
erikj@7115 498
erikj@7115 499 $(eval $(call SetupArchive,BUILD_SUNPKCS11_JAR,,\
erikj@7115 500 SRCS:=$(JDK_OUTPUTDIR)/classes, \
erikj@7115 501 SUFFIXES:=.class,\
erikj@7115 502 INCLUDES:=sun/security/pkcs11,\
erikj@7115 503 JAR:=$(SUNPKCS11_JAR_UNSIGNED), \
erikj@7115 504 MANIFEST:=$(JCE_MANIFEST), \
erikj@7115 505 SKIP_METAINF := true))
erikj@7115 506
erikj@7115 507 $(SUNPKCS11_JAR_UNSIGNED): $(JCE_MANIFEST)
erikj@5670 508
ohair@6202 509 ifndef OPENJDK
ohair@6202 510 SUNPKCS11_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/pkcs11/sunpkcs11.jar
ohair@6202 511 $(SUNPKCS11_JAR_DST) : $(SUNPKCS11_JAR_SRC)
ohair@6533 512 @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunPKCS11 provider..."
erikj@6738 513 $(install-file)
ohair@6202 514 else
erikj@7115 515 $(SUNPKCS11_JAR_DST) : $(SUNPKCS11_JAR_UNSIGNED)
erikj@7115 516 $(install-file)
ohair@6202 517 endif
erikj@5670 518
dholmes@7501 519 JARS += $(SUNPKCS11_JAR_UNSIGNED)
erikj@5670 520
erikj@5670 521 ##########################################################################################
erikj@5670 522
ohair@6533 523 SUNEC_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunec.jar
erikj@7115 524 SUNEC_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/sunec.jar
erikj@7115 525
erikj@7115 526 $(eval $(call SetupArchive,BUILD_SUNEC_JAR,,\
erikj@7115 527 SRCS:=$(JDK_OUTPUTDIR)/classes, \
erikj@7115 528 SUFFIXES:=.class,\
erikj@7115 529 INCLUDES:=sun/security/ec,\
erikj@7115 530 JAR:=$(SUNEC_JAR_UNSIGNED), \
erikj@7115 531 MANIFEST:=$(JCE_MANIFEST), \
erikj@7115 532 SKIP_METAINF := true))
erikj@7115 533
erikj@7115 534 $(SUNEC_JAR_UNSIGNED): $(JCE_MANIFEST)
erikj@5670 535
erikj@5670 536 ifndef OPENJDK
erikj@6699 537 SUNEC_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ec/sunec.jar
erikj@6699 538 $(SUNEC_JAR_DST) : $(SUNEC_JAR_SRC)
ohair@6533 539 @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunEC provider..."
erikj@6738 540 $(install-file)
erikj@5670 541 else
erikj@7115 542 $(SUNEC_JAR_DST) : $(SUNEC_JAR_UNSIGNED)
erikj@7115 543 $(install-file)
erikj@5670 544 endif
erikj@5670 545
dholmes@7501 546 JARS += $(SUNEC_JAR_UNSIGNED)
erikj@5670 547
erikj@5670 548 ##########################################################################################
erikj@5670 549
erikj@5670 550 $(eval $(call SetupArchive,BUILD_SWINGBEANS_JAR,,\
erikj@5670 551 SRCS:=$(JDK_OUTPUTDIR)/classes,\
erikj@5670 552 SUFFIXES:=BeanInfo.class .gif,\
erikj@5670 553 INCLUDES:=javax/swing sun/swing,\
erikj@5670 554 EXCLUDES:=javax/swing/plaf,\
erikj@5670 555 EXTRA_FILES:=javax/swing/SwingBeanInfoBase.class sun/swing/BeanInfoUtils.class,\
ohair@6533 556 JAR:=$(IMAGES_OUTPUTDIR)/lib/dt.jar,\
erikj@5670 557 SKIP_METAINF:=true))
erikj@5670 558
erikj@5670 559 ##########################################################################################
erikj@5670 560
ohair@6533 561 SUNJCE_PROVIDER_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunjce_provider.jar
erikj@7115 562 SUNJCE_PROVIDER_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/sunjce_provider.jar
erikj@7115 563
erikj@7115 564 $(eval $(call SetupArchive,BUILD_SUNJCE_PROVIDER_JAR,,\
erikj@7115 565 SRCS:=$(JDK_OUTPUTDIR)/classes, \
erikj@7115 566 SUFFIXES:=.class,\
erikj@7115 567 INCLUDES:= com/sun/crypto/provider,\
erikj@7115 568 JAR:=$(SUNJCE_PROVIDER_JAR_UNSIGNED), \
erikj@7115 569 MANIFEST:=$(JCE_MANIFEST), \
erikj@7115 570 SKIP_METAINF := true))
erikj@7115 571
erikj@7115 572 $(SUNJCE_PROVIDER_JAR_UNSIGNED): $(JCE_MANIFEST)
erikj@5670 573
erikj@5670 574 ifndef OPENJDK
erikj@5670 575 SUNJCE_PROVIDER_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/sunjce_provider.jar
erikj@5670 576 $(SUNJCE_PROVIDER_JAR_DST) : $(SUNJCE_PROVIDER_JAR_SRC)
ohair@6533 577 @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunJCE provider..."
erikj@6738 578 $(install-file)
erikj@7115 579 else
erikj@7115 580 $(SUNJCE_PROVIDER_JAR_DST) : $(SUNJCE_PROVIDER_JAR_UNSIGNED)
erikj@7115 581 $(install-file)
erikj@7115 582 endif
erikj@6738 583
dholmes@7501 584 JARS += $(SUNJCE_PROVIDER_JAR_UNSIGNED)
erikj@5670 585
erikj@7115 586 ##########################################################################################
erikj@7115 587
erikj@7115 588 JCE_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/jce.jar
erikj@7115 589 JCE_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/jce.jar
erikj@7115 590
erikj@7115 591 $(eval $(call SetupArchive,BUILD_JCE_JAR,,\
erikj@5670 592 SRCS:=$(JDK_OUTPUTDIR)/classes, \
erikj@5670 593 SUFFIXES:=.class,\
erikj@7115 594 INCLUDES:= javax/crypto sun/security/internal,\
erikj@7115 595 JAR:=$(JCE_JAR_UNSIGNED), \
erikj@6699 596 MANIFEST:=$(JCE_MANIFEST), \
erikj@5670 597 SKIP_METAINF := true))
erikj@6699 598
erikj@7115 599 $(JCE_JAR_UNSIGNED): $(JCE_MANIFEST)
erikj@5670 600
erikj@5670 601 ifndef OPENJDK
erikj@6699 602 JCE_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/jce.jar
erikj@6699 603 $(JCE_JAR_DST) : $(JCE_JAR_SRC)
ohair@6533 604 @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt jce.jar..."
erikj@6738 605 $(install-file)
erikj@5670 606 else
erikj@7115 607 $(JCE_JAR_DST) : $(JCE_JAR_UNSIGNED)
erikj@7115 608 $(install-file)
erikj@5670 609 endif
erikj@5670 610
dholmes@7501 611 JARS += $(JCE_JAR_UNSIGNED)
erikj@5670 612
erikj@5670 613 ##########################################################################################
erikj@5670 614
erikj@6738 615 US_EXPORT_POLICY_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/security/US_export_policy.jar
erikj@7115 616 US_EXPORT_POLICY_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/US_export_policy.jar
erikj@7115 617
erikj@7115 618 #
erikj@7115 619 # TODO fix so that SetupArchive does not write files into SRCS
erikj@7115 620 # then we don't need this extra copying
erikj@7115 621 #
erikj@7115 622 # NOTE: We currently do not place restrictions on our limited export
erikj@7115 623 # policy. This was not a typo.
erikj@7115 624 #
erikj@7115 625 US_EXPORT_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/unlimited
erikj@7115 626 US_EXPORT_POLICY_JAR_TMP := $(IMAGES_OUTPUTDIR)/US_export_policy_jar.tmp
erikj@7115 627
erikj@7115 628 $(US_EXPORT_POLICY_JAR_TMP)/% : $(US_EXPORT_POLICY_JAR_SRC_DIR)/%
erikj@7115 629 $(install-file)
erikj@7115 630
erikj@7115 631 US_EXPORT_POLICY_JAR_DEPS := $(US_EXPORT_POLICY_JAR_TMP)/default_US_export.policy
erikj@7115 632
erikj@7115 633 $(eval $(call SetupArchive,BUILD_US_EXPORT_POLICY_JAR,$(US_EXPORT_POLICY_JAR_DEPS),\
erikj@7115 634 SRCS:=$(US_EXPORT_POLICY_JAR_TMP), \
erikj@7115 635 SUFFIXES:= .policy,\
erikj@7115 636 JAR:=$(US_EXPORT_POLICY_JAR_UNSIGNED), \
erikj@7115 637 EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \
erikj@7115 638 SKIP_METAINF := true))
erikj@5670 639
erikj@6738 640 ifndef OPENJDK
erikj@6738 641 $(US_EXPORT_POLICY_JAR_DST): $(JDK_TOPDIR)/make/closed/tools/crypto/jce/US_export_policy.jar
erikj@6738 642 $(ECHO) $(LOG_INFO) Copying $(@F)
erikj@6738 643 $(install-file)
erikj@6738 644 else
erikj@7115 645 $(US_EXPORT_POLICY_JAR_DST): $(US_EXPORT_POLICY_JAR_UNSIGNED)
erikj@6738 646 $(install-file)
erikj@6738 647 endif
erikj@6738 648
dholmes@7501 649 JARS += $(US_EXPORT_POLICY_JAR_UNSIGNED)
erikj@5670 650
erikj@5670 651 ##########################################################################################
erikj@5670 652
erikj@6738 653 LOCAL_POLICY_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/security/local_policy.jar
erikj@7115 654 LOCAL_POLICY_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/local_policy.jar
erikj@7115 655
erikj@7115 656 #
erikj@7115 657 # TODO fix so that SetupArchive does not write files into SRCS
erikj@7115 658 # then we don't need this extra copying
erikj@7115 659 #
erikj@7115 660 LOCAL_POLICY_JAR_TMP := $(IMAGES_OUTPUTDIR)/local_policy_jar.tmp
erikj@7115 661
erikj@7115 662 ifeq ($(UNLIMITED_CRYPTO), true)
erikj@7115 663 LOCAL_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/unlimited
erikj@7115 664 LOCAL_POLICY_JAR_DEPS := $(LOCAL_POLICY_JAR_TMP)/default_local.policy
erikj@7115 665 LOCAL_POLICY_JAR_ATTR := Crypto-Strength: unlimited
erikj@7115 666 else
erikj@7115 667 LOCAL_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/limited
erikj@7115 668 LOCAL_POLICY_JAR_DEPS := $(LOCAL_POLICY_JAR_TMP)/exempt_local.policy \
erikj@7115 669 $(LOCAL_POLICY_JAR_TMP)/default_local.policy
erikj@7115 670 LOCAL_POLICY_JAR_ATTR := Crypto-Strength: limited
erikj@7115 671 endif
erikj@7115 672
erikj@7115 673 $(LOCAL_POLICY_JAR_TMP)/% : $(LOCAL_POLICY_JAR_SRC_DIR)/%
erikj@7115 674 $(install-file)
erikj@7115 675
erikj@7115 676 $(eval $(call SetupArchive,BUILD_LOCAL_POLICY_JAR,$(LOCAL_POLICY_JAR_DEPS),\
erikj@7115 677 SRCS:=$(LOCAL_POLICY_JAR_TMP),\
erikj@7115 678 SUFFIXES:= .policy,\
erikj@7115 679 JAR:=$(LOCAL_POLICY_JAR_UNSIGNED), \
erikj@7115 680 EXTRA_MANIFEST_ATTR := $(LOCAL_POLICY_JAR_ATTR), \
erikj@7115 681 SKIP_METAINF := true))
erikj@5670 682
erikj@6738 683 ifndef OPENJDK
erikj@6738 684 $(LOCAL_POLICY_JAR_DST): $(JDK_TOPDIR)/make/closed/tools/crypto/jce/local_policy.jar
erikj@6738 685 $(ECHO) $(LOG_INFO) Copying $(@F)
erikj@6738 686 $(install-file)
erikj@6536 687 else
erikj@7115 688 $(LOCAL_POLICY_JAR_DST): $(LOCAL_POLICY_JAR_UNSIGNED)
erikj@6738 689 $(install-file)
erikj@6738 690 endif
erikj@6738 691
dholmes@7501 692 JARS += $(LOCAL_POLICY_JAR_UNSIGNED)
erikj@5670 693
erikj@5670 694 ##########################################################################################
erikj@5670 695
erikj@5759 696 ifeq ($(OPENJDK_TARGET_OS),windows)
erikj@5670 697
ohair@6533 698 SUNMSCAPI_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunmscapi.jar
erikj@7115 699 SUNMSCAPI_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/sunmscapi.jar
erikj@5670 700
ohair@6533 701 $(eval $(call SetupArchive,BUILD_SUNMSCAPI_JAR,,\
erikj@5670 702 SRCS:=$(JDK_OUTPUTDIR)/classes, \
erikj@5670 703 SUFFIXES:=.class,\
erikj@5670 704 INCLUDES:= sun/security/mscapi,\
erikj@7115 705 JAR:=$(SUNMSCAPI_JAR_UNSIGNED), \
erikj@7124 706 MANIFEST:=$(JCE_MANIFEST), \
ohair@6202 707 SKIP_METAINF:=true))
erikj@7115 708
erikj@7124 709 $(SUNMSCAPI_JAR_UNSIGNED): $(JCE_MANIFEST)
erikj@7124 710
erikj@7115 711 ifndef OPENJDK
erikj@7115 712 SUNMSCAPI_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/mscapi/sunmscapi.jar
erikj@7115 713 $(SUNMSCAPI_JAR_DST) : $(SUNMSCAPI_JAR_SRC)
erikj@7115 714 @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunMSCAPI provider..."
erikj@7115 715 $(install-file)
erikj@7115 716 else
erikj@7115 717 $(SUNMSCAPI_JAR_DST) : $(SUNMSCAPI_JAR_UNSIGNED)
erikj@7115 718 $(install-file)
erikj@5670 719 endif
erikj@5670 720
dholmes@7501 721 JARS += $(SUNMSCAPI_JAR_UNSIGNED)
erikj@5670 722
erikj@5670 723 endif
erikj@5670 724
erikj@5670 725 ##########################################################################################
erikj@5670 726
erikj@5759 727 ifeq ($(OPENJDK_TARGET_OS),solaris)
erikj@5670 728 ifndef OPENJDK
erikj@5670 729
ohair@6533 730 UCRYPTO_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/ucrypto.jar
erikj@7115 731 UCRYPTO_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/ucrypto.jar
erikj@5670 732 UCRYPTO_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ucrypto/ucrypto.jar
erikj@5670 733
erikj@7115 734 $(eval $(call SetupArchive,BUILD_UCRYPTO_JAR,,\
erikj@7115 735 SRCS:=$(JDK_OUTPUTDIR)/classes, \
erikj@7115 736 SUFFIXES:=.class,\
erikj@7115 737 INCLUDES:=com/oracle/security/ucrypto,\
erikj@7115 738 JAR:=$(UCRYPTO_JAR_UNSIGNED), \
erikj@7115 739 MANIFEST:=$(JCE_MANIFEST), \
erikj@7115 740 SKIP_METAINF:=true))
erikj@7115 741
erikj@7115 742 $(UCRYPTO_JAR_UNSIGNED): $(JCE_MANIFEST)
erikj@7115 743
erikj@5670 744 $(UCRYPTO_JAR_DST) : $(UCRYPTO_JAR_SRC)
ohair@6533 745 @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt OracleUcrypto provider..."
erikj@6738 746 $(install-file)
erikj@5670 747
dholmes@7501 748 JARS += $(UCRYPTO_JAR_UNSIGNED)
erikj@5670 749
erikj@5670 750 endif
erikj@5670 751 endif
erikj@5670 752
erikj@5670 753 ##########################################################################################
erikj@5670 754
naoto@6130 755 # Get the CLDRVERSION
naoto@6130 756 include GensrcCLDR.gmk
naoto@6130 757
ohair@6533 758 CLDRDATA_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/cldrdata.jar
naoto@6130 759
ohair@6533 760 $(eval $(call SetupArchive,BUILD_CLDRDATA_JAR,,\
naoto@6130 761 SRCS:=$(JDK_OUTPUTDIR)/classes,\
naoto@6130 762 SUFFIXES:=.class,\
naoto@6130 763 INCLUDES:=sun/text/resources/cldr \
naoto@6130 764 sun/util/cldr \
naoto@6130 765 sun/util/resources/cldr,\
naoto@6130 766 EXCLUDES:=sun/util/cldr/CLDRLocaleProviderAdapter,\
naoto@6130 767 JAR:=$(CLDRDATA_JAR_DST),\
naoto@6130 768 EXTRA_MANIFEST_ATTR:=CLDR-Version: $(CLDRVERSION),\
naoto@6130 769 SKIP_METAINF:=true))
naoto@6130 770
naoto@6130 771 ##########################################################################################
naoto@6130 772
erikj@5670 773 TOOLS_JAR_INCLUDES := \
erikj@7117 774 com/sun/codemodel \
erikj@7117 775 com/sun/istack/internal/tools \
erikj@7117 776 com/sun/jarsigner \
erikj@7117 777 com/sun/javadoc \
erikj@7117 778 com/sun/jdi \
erikj@7117 779 com/sun/source \
erikj@7117 780 com/sun/tools/attach \
erikj@7117 781 com/sun/tools/classfile \
erikj@7117 782 com/sun/tools/corba \
erikj@7117 783 com/sun/tools/doclets \
mcimadamore@6914 784 com/sun/tools/doclint \
erikj@7117 785 com/sun/tools/example/debug/expr \
erikj@7117 786 com/sun/tools/example/debug/tty \
erikj@7117 787 com/sun/tools/extcheck \
erikj@7117 788 com/sun/tools/hat \
erikj@7117 789 com/sun/tools/internal/jxc \
erikj@7117 790 com/sun/tools/internal/jxc/ap \
erikj@7117 791 com/sun/tools/internal/ws \
erikj@7117 792 com/sun/tools/internal/ws/wscompile/plugin/at_generated \
erikj@7117 793 com/sun/tools/internal/xjc \
erikj@7117 794 com/sun/tools/javac \
erikj@7117 795 com/sun/tools/javadoc \
erikj@7117 796 com/sun/tools/javah \
erikj@7117 797 com/sun/tools/javap \
mchung@7074 798 com/sun/tools/jdeps \
erikj@7117 799 com/sun/tools/jdi \
erikj@7117 800 com/sun/tools/script/shell \
erikj@7117 801 com/sun/xml/internal/dtdparser \
erikj@7117 802 com/sun/xml/internal/rngom \
erikj@7117 803 com/sun/xml/internal/xsom \
erikj@7117 804 org/relaxng/datatype \
erikj@7117 805 sun/applet \
erikj@7117 806 sun/jvmstat \
erikj@7117 807 sun/rmi/rmic \
erikj@7117 808 sun/security/tools/jarsigner \
erikj@5670 809 sun/tools/asm \
erikj@7117 810 sun/tools/attach \
erikj@5670 811 sun/tools/jar \
erikj@5670 812 sun/tools/java \
erikj@5670 813 sun/tools/javac \
erikj@5670 814 sun/tools/jcmd \
erikj@7117 815 sun/tools/jinfo \
erikj@7117 816 sun/tools/jmap \
erikj@5670 817 sun/tools/jps \
erikj@7117 818 sun/tools/jstack \
erikj@5670 819 sun/tools/jstat \
erikj@5670 820 sun/tools/jstatd \
erikj@5670 821 sun/tools/native2ascii \
erikj@5670 822 sun/tools/serialver \
erikj@5670 823 sun/tools/tree \
erikj@7117 824 sun/tools/util
erikj@5670 825
ohair@6533 826 # The sjavac tools is not ready for public consumption.
ohair@6533 827 TOOLS_JAR_EXCLUDES=com/sun/tools/sjavac
ohair@6533 828
ohair@6533 829 $(eval $(call SetupArchive,BUILD_TOOLS_JAR,,\
erikj@5670 830 SRCS:=$(JDK_OUTPUTDIR)/classes,\
erikj@5670 831 SUFFIXES:=.class .prp .gif .properties .xml .css .xsd .js .html .txt .java \
erikj@5670 832 Tool aliasmap options,\
erikj@5670 833 INCLUDES:=$(TOOLS_JAR_INCLUDES),\
ohair@6533 834 EXCLUDES:=$(TOOLS_JAR_EXCLUDES),\
erikj@5670 835 EXTRA_FILES:=META-INF/services/com.sun.jdi.connect.Connector \
erikj@5670 836 META-INF/services/com.sun.jdi.connect.spi.TransportService \
erikj@5670 837 META-INF/services/com.sun.tools.attach.spi.AttachProvider \
erikj@5670 838 META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin \
erikj@5670 839 META-INF/services/com.sun.tools.internal.xjc.Plugin,\
ohair@6533 840 JAR:=$(IMAGES_OUTPUTDIR)/lib/tools.jar,\
erikj@5759 841 SKIP_METAINF:=true, \
erikj@5759 842 CHECK_COMPRESS_JAR:=true))
erikj@5670 843
erikj@5670 844
erikj@5670 845 ##########################################################################################
erikj@5670 846
ohair@6202 847 include javadoc/CORE_PKGS.gmk
ohair@6202 848 include javadoc/NON_CORE_PKGS.gmk
erikj@5670 849
erikj@5670 850 # The compiler should not issue a "Proprietary" warning when compiling
erikj@5670 851 # classes in the com.sun.java.swing.plaf packages, since we've always
erikj@5670 852 # allowed, and even advocated, extending them (see bug 6476749).
erikj@5670 853 #
erikj@5670 854 # This approach is NOT to be used as a general purpose way to avoid such
erikj@5670 855 # compiler warnings for non-core packages. The correct way is to document
erikj@5670 856 # the packages in NON_CORE_PKGS.gmk, and include them in the NON_CORE_PKGS
erikj@5670 857 # definition.
erikj@5670 858 #
erikj@5670 859 # Swing has taken this approach only as a temporary measure to avoid
erikj@5670 860 # the compiler warnings until we can properly document these packages.
erikj@5670 861 # This is covered under 6491853.
erikj@5670 862 EXCLUDE_PROPWARN_PKGS = com.sun.java.swing.plaf.windows \
erikj@5670 863 com.sun.java.swing.plaf.motif \
erikj@5670 864 com.sun.java.swing.plaf.gtk
erikj@5670 865
erikj@5670 866 #
erikj@5670 867 # Include the exported private packages in ct.sym.
erikj@5670 868 # This is an interim solution until the ct.sym is replaced
erikj@5670 869 # with a new module system (being discussed for JDK 8).
erikj@5670 870 #
erikj@5670 871 EXPORTED_PRIVATE_PKGS = com.sun.servicetag \
erikj@5670 872 com.oracle.net \
erikj@5670 873 com.oracle.nio
erikj@5670 874
ohair@6533 875 $(IMAGES_OUTPUTDIR)/symbols/_the.symbols: $(IMAGES_OUTPUTDIR)/lib/rt.jar
ohair@6202 876 $(RM) -r $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym
erikj@5670 877 $(MKDIR) -p $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym
ohrstrom@7394 878 $(JAVA) $(NEW_JAVAC) \
erikj@6976 879 -bootclasspath $(JDK_OUTPUTDIR)/classes \
erikj@5670 880 -XDprocess.packages -proc:only \
erikj@5670 881 -processor com.sun.tools.javac.sym.CreateSymbols \
ohair@6533 882 -Acom.sun.tools.javac.sym.Jar=$(IMAGES_OUTPUTDIR)/lib/rt.jar \
erikj@5670 883 -Acom.sun.tools.javac.sym.Dest=$(IMAGES_OUTPUTDIR)/symbols/META-INF/sym/rt.jar \
dholmes@7501 884 -Acom.sun.tools.javac.sym.Profiles=profile-rtjar-includes.txt \
erikj@5670 885 $(CORE_PKGS) $(NON_CORE_PKGS) $(EXCLUDE_PROPWARN_PKGS) $(EXPORTED_PRIVATE_PKGS)
erikj@5670 886 $(TOUCH) $@
erikj@5670 887
erikj@7113 888 $(eval $(call MakeDir,$(IMAGES_OUTPUTDIR)/symbols))
erikj@5670 889 $(eval $(call SetupArchive,BUILD_CT_SYM,$(IMAGES_OUTPUTDIR)/symbols/_the.symbols,\
erikj@5670 890 SRCS:=$(IMAGES_OUTPUTDIR)/symbols,\
erikj@5670 891 INCLUDES:=META-INF/sym,\
ohair@6533 892 JAR:=$(IMAGES_OUTPUTDIR)/lib/ct.sym, \
erikj@5759 893 CHECK_COMPRESS_JAR:=true))
erikj@5670 894
erikj@5670 895
erikj@5670 896 ##########################################################################################
erikj@5670 897
erikj@5670 898 SRC_ZIP_INCLUDES = \
erikj@7117 899 com/sun/corba \
erikj@7117 900 com/sun/image/codec/jpeg \
erikj@7117 901 com/sun/imageio \
erikj@7117 902 com/sun/java_cup \
erikj@7117 903 com/sun/javadoc \
erikj@7117 904 com/sun/java/swing \
erikj@7117 905 com/sun/jlex \
erikj@7117 906 com/sun/jmx \
erikj@7117 907 com/sun/naming \
erikj@7117 908 com/sun/org/apache \
erikj@7117 909 com/sun/security/auth \
erikj@7117 910 com/sun/security/jgss \
erikj@7117 911 com/sun/source \
erikj@5670 912 java/applet \
erikj@5670 913 java/awt \
erikj@5670 914 java/beans \
erikj@5670 915 java/io \
erikj@5670 916 java/lang \
erikj@5670 917 java/math \
erikj@5670 918 java/net \
erikj@5670 919 java/nio \
erikj@5670 920 java/rmi \
erikj@5670 921 java/security \
erikj@5670 922 java/sql \
erikj@5670 923 java/text \
erikj@5670 924 java/util \
erikj@5670 925 javax/accessibility \
erikj@5670 926 javax/annotation \
erikj@5670 927 javax/imageio \
erikj@5670 928 javax/lang \
erikj@5670 929 javax/management \
erikj@5670 930 javax/naming \
erikj@5670 931 javax/print \
erikj@5670 932 javax/rmi \
erikj@7117 933 javax/script \
erikj@5670 934 javax/security \
erikj@5670 935 javax/sound \
erikj@5670 936 javax/sql \
erikj@5670 937 javax/swing \
erikj@5670 938 javax/tools \
erikj@5670 939 javax/xml \
erikj@5670 940 org/ietf \
erikj@5670 941 org/omg \
erikj@5670 942 org/w3c/dom \
ohair@6202 943 org/xml/sax \
ohair@6202 944 sunw
erikj@5670 945
ohair@6202 946 SRC_ZIP_SRCS = $(JDK_TOPDIR)/src/share/classes $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes
erikj@5670 947 SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/gensrc
erikj@5670 948 SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/impsrc
erikj@5670 949 SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/gendocsrc_rmic
erikj@5670 950 ifndef OPENJDK
erikj@5670 951 SRC_ZIP_SRCS += $(JDK_TOPDIR)/src/closed/share/classes
erikj@5670 952 endif
erikj@5670 953
erikj@5670 954 # Need to copy launcher src files into desired directory structure
erikj@5670 955 # before zipping the sources.
erikj@5670 956 LAUNCHER_SRC_FILES := $(wildcard $(JDK_TOPDIR)/src/share/bin/*) \
ohair@6202 957 $(wildcard $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/java_md*)
erikj@5670 958 LAUNCHER_ZIP_SRC := $(patsubst $(JDK_TOPDIR)/src/share/bin/%,$(IMAGES_OUTPUTDIR)/src/launcher/%,\
ohair@6202 959 $(patsubst $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/%,$(IMAGES_OUTPUTDIR)/src/launcher/%,\
erikj@5670 960 $(LAUNCHER_SRC_FILES)))
erikj@5670 961
erikj@5670 962 $(IMAGES_OUTPUTDIR)/src/launcher/%: $(JDK_TOPDIR)/src/share/bin/%
erikj@6738 963 $(install-file)
erikj@5670 964
ohair@6202 965 $(IMAGES_OUTPUTDIR)/src/launcher/%: $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/%
erikj@6738 966 $(install-file)
erikj@5670 967
erikj@5670 968 $(IMAGES_OUTPUTDIR)/src.zip: $(LAUNCHER_ZIP_SRC)
erikj@5670 969
ohair@6533 970 # This dir needs to exist before macro is evaluated to avoid warning from find.
ohair@6533 971 $(eval $(call MakeDir,$(IMAGES_OUTPUTDIR)/src))
erikj@5670 972 $(eval $(call SetupZipArchive,BUILD_SRC_ZIP,\
erikj@5670 973 SRC:=$(SRC_ZIP_SRCS) $(IMAGES_OUTPUTDIR)/src,\
erikj@5670 974 INCLUDES:=$(SRC_ZIP_INCLUDES) launcher,\
ohair@6533 975 EXCLUDES:=javax/swing/beaninfo,\
erikj@5670 976 SUFFIXES:=.java .c .h,\
erikj@5670 977 ZIP:=$(IMAGES_OUTPUTDIR)/src.zip,\
erikj@5670 978 EXTRA_DEPS:=$(LAUNCHER_ZIP_SRC)))
erikj@5670 979
erikj@5670 980 ##########################################################################################
erikj@5670 981
raginip@7375 982 ifndef OPENJDK
raginip@7375 983 ifeq ($(OPENJDK_TARGET_OS), windows)
raginip@7375 984
raginip@7375 985 $(eval $(call SetupArchive,BUILD_JACCESS_JAR,,\
raginip@7375 986 SRCS:=$(JDK_OUTPUTDIR)/classes,\
raginip@7375 987 INCLUDES:=com/sun/java/accessibility/util,\
raginip@7375 988 JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/jaccess.jar,\
raginip@7375 989 SKIP_METAINF:=true))
raginip@7375 990
raginip@7375 991 JARS += $(IMAGES_OUTPUTDIR)/lib/ext/jaccess.jar
raginip@7375 992
raginip@7375 993 ifeq ($(OPENJDK_TARGET_CPU_BITS), 32)
raginip@7375 994 $(eval $(call SetupArchive,BUILD_ACCESSBRIDGE_32_JAR,,\
raginip@7375 995 SRCS:=$(JDK_OUTPUTDIR)/classes_ab/32bit $(JDK_OUTPUTDIR)/classes,\
raginip@7375 996 INCLUDES:=com/sun/java/accessibility,\
raginip@7375 997 JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-32.jar,\
raginip@7375 998 SKIP_METAINF:=true))
raginip@7375 999
raginip@7375 1000 $(eval $(call SetupArchive,BUILD_ACCESSBRIDGE_LEGACY_JAR,,\
raginip@7375 1001 SRCS:=$(JDK_OUTPUTDIR)/classes_ab/legacy $(JDK_OUTPUTDIR)/classes,\
raginip@7375 1002 INCLUDES:=com/sun/java/accessibility,\
raginip@7375 1003 JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/access-bridge.jar,\
raginip@7375 1004 SKIP_METAINF:=true))
raginip@7375 1005
raginip@7375 1006 JARS += $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-32.jar \
raginip@7375 1007 $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge.jar
raginip@7375 1008 else
raginip@7375 1009 $(eval $(call SetupArchive,BUILD_ACCESSBRIDGE_64_JAR,,\
raginip@7375 1010 SRCS:=$(JDK_OUTPUTDIR)/classes_ab/64bit $(JDK_OUTPUTDIR)/classes,\
raginip@7375 1011 INCLUDES:=com/sun/java/accessibility,\
raginip@7375 1012 EXCLUDES:=com/sun/java/accessibility/util/java,\
raginip@7375 1013 JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-64.jar,\
raginip@7375 1014 SKIP_METAINF:=true))
raginip@7375 1015
raginip@7375 1016 JARS += $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-64.jar
raginip@7375 1017 endif
raginip@7375 1018 endif
raginip@7375 1019 endif
raginip@7375 1020
raginip@7375 1021 ##########################################################################################
raginip@7375 1022
erikj@6738 1023 #
erikj@6738 1024 # This is an empty jar (only contains manifest) and fits poorly into framework...
erikj@6738 1025 # create simple rule instead
erikj@6738 1026 #
erikj@6738 1027 $(IMAGES_OUTPUTDIR)/lib/management-agent.jar : $(JDK_TOPDIR)/src/share/classes/sun/management/manifest
erikj@6738 1028 $(JAR) cfm $@ $<
erikj@6738 1029
erikj@6738 1030 ##########################################################################################
erikj@6738 1031
erikj@6738 1032 $(IMAGES_OUTPUTDIR)/lib/ext/zipfs.jar : $(JDK_OUTPUTDIR)/demo/nio/zipfs/zipfs.jar
erikj@6738 1033 $(install-file)
erikj@6738 1034
erikj@6738 1035 ##########################################################################################
erikj@6738 1036
erikj@6738 1037 ifeq ($(OPENJDK_TARGET_OS),macosx)
erikj@6738 1038 $(eval $(call SetupArchive,BUILD_JOBJC_JAR,,\
erikj@6738 1039 SRCS:=$(JDK_OUTPUTDIR)/jobjc_classes,\
erikj@6738 1040 JAR:=$(IMAGES_OUTPUTDIR)/lib/JObjC.jar, \
erikj@6738 1041 JARINDEX:=true))
erikj@6738 1042 endif
erikj@6738 1043
erikj@6738 1044 ##########################################################################################
erikj@6738 1045
erikj@6738 1046 ifndef OPENJDK
erikj@6738 1047 $(eval $(call SetupArchive,BUILD_ALT_RT_JAR,,\
erikj@6738 1048 SRCS:=$(JDK_OUTPUTDIR)/altclasses_classes,\
erikj@6738 1049 JAR:=$(IMAGES_OUTPUTDIR)/lib/alt-rt.jar))
erikj@6738 1050
erikj@6738 1051 endif
erikj@6738 1052
erikj@6738 1053 ##########################################################################################
erikj@6738 1054
erikj@6738 1055 # This file is imported from hotspot in Import.gmk. Copying it into images/lib so that
erikj@6738 1056 # all jars can be found in one place when creating images in Images.gmk. It needs to be
erikj@6738 1057 # done here so that clean targets can be simple and accurate.
erikj@6738 1058 $(IMAGES_OUTPUTDIR)/lib/sa-jdi.jar: $(JDK_OUTPUTDIR)/lib/sa-jdi.jar
erikj@6738 1059 $(install-file)
erikj@6738 1060
erikj@6738 1061 ##########################################################################################
erikj@7118 1062 #
erikj@7119 1063 # sec-bin.zip is used by builds where the corresponding sources are not available
erikj@7119 1064 #
erikj@7118 1065 $(eval $(call SetupZipArchive,BUILD_SEC_BIN_ZIP,\
erikj@7118 1066 SRC:=$(JDK_OUTPUTDIR),\
erikj@7118 1067 INCLUDES:=classes/javax/net \
erikj@7118 1068 classes/javax/security/cert \
erikj@7118 1069 classes/com/sun/net/ssl \
erikj@7118 1070 classes/com/sun/security/cert \
erikj@7118 1071 classes/sun/net/www/protocol/https \
erikj@7118 1072 classes/sun/security/pkcs12 \
erikj@7118 1073 classes/sun/security/ssl \
erikj@7118 1074 classes/sun/security/krb5 \
erikj@7118 1075 classes/sun/security/krb5/internal \
erikj@7118 1076 classes/sun/security/krb5/internal/ccache \
erikj@7118 1077 classes/sun/security/krb5/internal/crypto \
erikj@7118 1078 classes/sun/security/krb5/internal/ktab \
erikj@7118 1079 classes/sun/security/krb5/internal/rcache \
erikj@7118 1080 classes/sun/security/krb5/internal/util,\
erikj@7118 1081 INCLUDE_FILES:=classes/sun/security/jgss/spi/GSSContextSpi.class,\
erikj@7119 1082 EXCLUDES:=classes/sun/security/krb5/internal/tools,\
erikj@7118 1083 ZIP:=$(IMAGES_OUTPUTDIR)/sec-bin.zip))
erikj@7118 1084
erikj@7118 1085 JARS += $(IMAGES_OUTPUTDIR)/sec-bin.zip
erikj@7118 1086
erikj@7118 1087 ##########################################################################################
erikj@7119 1088 #
erikj@7119 1089 # Windows specific binary security packages.
erikj@7119 1090 #
erikj@7119 1091 ifeq ($(OPENJDK_TARGET_OS),windows)
erikj@7119 1092 # sec-windows-bin.zip is used by builds where the corresponding sources are not available
erikj@7119 1093 $(eval $(call SetupZipArchive,BUILD_SEC_WINDOWS_BIN_ZIP,\
erikj@7119 1094 SRC:=$(JDK_OUTPUTDIR),\
erikj@7119 1095 INCLUDES:=classes/sun/security/krb5/internal/tools,\
erikj@7119 1096 ZIP:=$(IMAGES_OUTPUTDIR)/sec-windows-bin.zip))
erikj@7119 1097
erikj@7119 1098 JARS += $(IMAGES_OUTPUTDIR)/sec-windows-bin.zip
erikj@7119 1099
erikj@7119 1100 # JGSS files contain the native Kerberos library
erikj@7119 1101 ifeq ($(OPENJDK_TARGET_CPU),x86_64)
erikj@7119 1102 JGSS_ZIP_NAME=jgss-windows-x64-bin.zip
erikj@7119 1103 else
erikj@7119 1104 JGSS_ZIP_NAME=jgss-windows-i586-bin.zip
erikj@7119 1105 endif
erikj@7119 1106
erikj@7119 1107 $(eval $(call SetupZipArchive,BUILD_JGSS_BIN_ZIP,\
erikj@7119 1108 SRC:=$(JDK_OUTPUTDIR),\
erikj@7119 1109 INCLUDE_FILES:=bin/w2k_lsa_auth.dll \
erikj@7119 1110 bin/w2k_lsa_auth.map \
erikj@7119 1111 bin/w2k_lsa_auth.pdb,\
erikj@7119 1112 ZIP:=$(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME)))
erikj@7119 1113
erikj@7119 1114 JARS += $(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME)
erikj@7119 1115 endif
erikj@7119 1116
erikj@7119 1117 ##########################################################################################
erikj@6738 1118
jjg@7915 1119 # Import nashorn.jar from nashorn dist dir.
jjg@7915 1120 $(IMAGES_OUTPUTDIR)/lib/ext/nashorn.jar: $(NASHORN_DIST)/nashorn.jar
jjg@7915 1121 $(install-file)
jjg@7915 1122
jjg@7915 1123 JARS += $(IMAGES_OUTPUTDIR)/lib/ext/nashorn.jar
jjg@7915 1124
jjg@7915 1125 ##########################################################################################
jjg@7915 1126
ohair@6202 1127 -include $(CUSTOM_MAKE_DIR)/CreateJars.gmk
ohair@6202 1128
ohair@6202 1129 ##########################################################################################
ohair@6202 1130
erikj@5670 1131 all: $(JARS)
erikj@5670 1132
erikj@5670 1133 .PHONY: default all