makefiles/CreateJars.gmk
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File jdk Sdiff makefiles

makefiles/CreateJars.gmk

Print this page




  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 include $(SPEC)
  27 include MakeBase.gmk
  28 include JavaCompilation.gmk
  29 include Setup.gmk
  30 
  31 default: all
  32 
  33 include Tools.gmk
  34 


  35 #
  36 # This makefile...so that altering will trigger rebuilding include/exclude-lists => jars
  37 #
  38 MAKEFILE=$(JDK_TOPDIR)/makefiles/CreateJars.gmk



  39 
  40 MAINMANIFEST := $(JDK_TOPDIR)/make/tools/manifest.mf
  41 BEANMANIFEST := $(JDK_TOPDIR)/make/javax/swing/beaninfo/manifest
  42 
  43 JARS:=
  44 
  45 $(eval $(call MakeDir,$(IMAGES_OUTPUTDIR)/lib))
  46 
  47 ##########################################################################################
  48 
  49 $(eval $(call SetupArchive,BUILD_JCONSOLE_JAR,,\
  50                 SRCS:=$(JDK_OUTPUTDIR)/classes,\
  51                 SUFFIXES:=.class .gif .png .properties,\
  52                 INCLUDES:=sun/tools/jconsole com/sun/tools/jconsole,\
  53                 JARMAIN:=sun.tools.jconsole.JConsole,\
  54                 JAR:=$(IMAGES_OUTPUTDIR)/lib/jconsole.jar,\
  55                 SKIP_METAINF:=true))
  56 
  57 JARS+=$(IMAGES_OUTPUTDIR)/lib/jconsole.jar
  58 
  59 ##########################################################################################
  60 
  61 $(eval $(call SetupArchive,BUILD_DNS_JAR,,\
  62                 SRCS:=$(JDK_OUTPUTDIR)/classes,\
  63                 INCLUDES:=sun/net/spi/nameservice/dns,\
  64                 EXTRA_FILES:=META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor,\
  65                 JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/dnsns.jar,\
  66                 SKIP_METAINF:=true))
  67 
  68 JARS+=$(IMAGES_OUTPUTDIR)/lib/ext/dnsns.jar
  69 
  70 ##########################################################################################
  71 
  72 LOCALEDATA_INCLUDE_LOCALES := ar be bg ca cs da de el es et fi fr ga hi hr hu in is it \
  73                               iw ja ko lt lv mk ms mt nl no pl pt ro ru sk sl sq sr sv \
  74                               th tr uk vi zh
  75 
  76 LOCALEDATA_INCLUDES := $(addprefix sun/text/resources/,$(LOCALEDATA_INCLUDE_LOCALES)) \
  77                        $(addprefix sun/util/resources/,$(LOCALEDATA_INCLUDE_LOCALES))
  78 
  79 # For non-US English locale data
  80 
  81 LOCALEDATA_INCLUDES += \
  82                 sun/text/resources/en/FormatData_en_AU.class \
  83                 sun/text/resources/en/FormatData_en_CA.class \
  84                 sun/text/resources/en/FormatData_en_GB.class \
  85                 sun/text/resources/en/FormatData_en_IE.class \
  86                 sun/text/resources/en/FormatData_en_IN.class \
  87                 sun/text/resources/en/FormatData_en_MT.class \
  88                 sun/text/resources/en/FormatData_en_NZ.class \


 100                 sun/util/resources/en/CurrencyNames_en_MT.class \
 101                 sun/util/resources/en/CurrencyNames_en_NZ.class \
 102                 sun/util/resources/en/CurrencyNames_en_PH.class \
 103                 sun/util/resources/en/CurrencyNames_en_SG.class \
 104                 sun/util/resources/en/CurrencyNames_en_ZA.class \
 105                 sun/util/resources/en/LocaleNames_en_MT.class \
 106                 sun/util/resources/en/LocaleNames_en_PH.class \
 107                 sun/util/resources/en/LocaleNames_en_SG.class \
 108                 sun/util/resources/en/TimeZoneNames_en_CA.class \
 109                 sun/util/resources/en/TimeZoneNames_en_GB.class \
 110                 sun/util/resources/en/TimeZoneNames_en_IE.class
 111 
 112 $(eval $(call SetupArchive,BUILD_LOCALEDATA_JAR,,\
 113                 SRCS:=$(JDK_OUTPUTDIR)/classes,\
 114                 SUFFIXES:=.class _dict _th,\
 115                 INCLUDES:=$(LOCALEDATA_INCLUDES),\
 116                 EXCLUDES:=sun/text/resources/th/BreakIteratorRules_th.class,\
 117                 JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/localedata.jar,\
 118                 SKIP_METAINF:=true))
 119 
 120 JARS+=$(IMAGES_OUTPUTDIR)/lib/ext/localedata.jar
 121 
 122 ##########################################################################################
 123 # rt.jar and resources.jar are being built in the same way as in the old build. They require
 124 # the files to be in a certain order and converting that is not easy and will not be needed
 125 # in jigsaw anyway.
 126 
 127 # Exclude list for rt.jar and resources.jar
 128 RT_JAR_EXCLUDES := \
 129         com/sun/javadoc \
 130         com/sun/jdi \
 131         com/sun/jarsigner \
 132         com/sun/source \
 133         com/sun/istack/internal/tools \
 134         META-INF/services/com.sun.jdi.connect.Connector \
 135         META-INF/services/com.sun.jdi.connect.spi.TransportService \
 136         META-INF/services/com.sun.tools.xjc.Plugin \
 137         com/sun/tools \
 138         sun/jvmstat \
 139         sun/nio/cs/ext \
 140         sun/awt/HKSCS.class \
 141         sun/awt/motif/X11GB2312\$$$$Decoder.class \
 142         sun/awt/motif/X11GB2312\$$$$Encoder.class \
 143         sun/awt/motif/X11GB2312.class \
 144         sun/awt/motif/X11GBK\$$$$Encoder.class \
 145         sun/awt/motif/X11GBK.class \
 146         sun/awt/motif/X11KSC5601\$$$$Decoder.class \
 147         sun/awt/motif/X11KSC5601\$$$$Encoder.class \
 148         sun/awt/motif/X11KSC5601.class \
 149         META-INF/services/java.nio.charset.spi.CharsetProvider \
 150         sun/rmi/rmic \
 151         sun/tools/asm \
 152         sun/tools/java \
 153         sun/tools/javac \
 154         com/sun/tools/classfile \
 155         com/sun/tools/javap \
 156         sun/tools/jcmd \
 157         sun/tools/jconsole \
 158         sun/tools/jps \
 159         sun/tools/jstat \
 160         sun/tools/jstatd \
 161         sun/tools/native2ascii \
 162         sun/tools/serialver \
 163         sun/tools/tree \
 164         sun/tools/util \
 165         sun/security/tools/jarsigner \
 166         sun/security/provider/Sun.class \
 167         sun/security/rsa/SunRsaSign.class \
 168         sun/security/ssl \
 169         sun/security/ec/ECDHKeyAgreement.class \
 170         sun/security/ec/ECDSASignature\$$$$Raw.class \
 171         sun/security/ec/ECDSASignature\$$$$SHA1.class \
 172         sun/security/ec/ECDSASignature\$$$$SHA224.class \
 173         sun/security/ec/ECDSASignature\$$$$SHA256.class \
 174         sun/security/ec/ECDSASignature\$$$$SHA384.class \
 175         sun/security/ec/ECDSASignature\$$$$SHA512.class \
 176         sun/security/ec/ECDSASignature.class \
 177         sun/security/ec/ECKeyFactory.class \
 178         sun/security/ec/ECKeyPairGenerator.class \
 179         sun/security/ec/SunEC\$$$$1.class \
 180         sun/security/ec/SunEC.class \
 181         sun/security/ec/SunECEntries.class \
 182         sun/security/mscapi \
 183         sun/security/pkcs11 \
 184         com/sun/net/ssl/internal/ssl \
 185         javax/crypto \
 186         sun/security/internal \
 187         com/sun/crypto/provider \
 188         META-INF/services/com.sun.tools.attach.spi.AttachProvider \
 189         com/sun/tools/attach \
 190         org/relaxng/datatype \
 191         com/sun/codemodel \
 192         com/sun/xml/internal/dtdparser \
 193         com/sun/xml/internal/rngom \
 194         com/sun/xml/internal/xsom \
 195         com/sun/tools/script/shell \
 196         sun/tools/attach \
 197         sun/tools/jstack \
 198         sun/tools/jinfo \
 199         sun/tools/jmap \
 200         sun/net/spi/nameservice/dns \
 201         META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor \
 202         javax/swing/beaninfo \
 203         javax/swing/AbstractButtonBeanInfo.class \
 204         javax/swing/BoxBeanInfo.class \
 205         javax/swing/JAppletBeanInfo.class \
 206         javax/swing/JButtonBeanInfo.class \
 207         javax/swing/JCheckBoxBeanInfo.class \
 208         javax/swing/JCheckBoxMenuItemBeanInfo.class \
 209         javax/swing/JColorChooserBeanInfo.class \
 210         javax/swing/JComboBoxBeanInfo.class \
 211         javax/swing/JComponentBeanInfo.class \
 212         javax/swing/JDesktopPaneBeanInfo.class \
 213         javax/swing/JDialogBeanInfo.class \
 214         javax/swing/JEditorPaneBeanInfo.class \
 215         javax/swing/JFileChooserBeanInfo.class \
 216         javax/swing/JFormattedTextFieldBeanInfo.class \
 217         javax/swing/JFrameBeanInfo.class \
 218         javax/swing/JInternalFrameBeanInfo.class \
 219         javax/swing/JLabelBeanInfo.class \
 220         javax/swing/JLayeredPaneBeanInfo.class \
 221         javax/swing/JListBeanInfo.class \
 222         javax/swing/JMenuBarBeanInfo.class \
 223         javax/swing/JMenuBeanInfo.class \
 224         javax/swing/JMenuItemBeanInfo.class \
 225         javax/swing/JOptionPaneBeanInfo.class \
 226         javax/swing/JPanelBeanInfo.class \
 227         javax/swing/JPasswordFieldBeanInfo.class \
 228         javax/swing/JPopupMenuBeanInfo.class \
 229         javax/swing/JProgressBarBeanInfo.class \
 230         javax/swing/JRadioButtonBeanInfo.class \
 231         javax/swing/JRadioButtonMenuItemBeanInfo.class \
 232         javax/swing/JScrollBarBeanInfo.class \
 233         javax/swing/JScrollPaneBeanInfo.class \
 234         javax/swing/JSeparatorBeanInfo.class \
 235         javax/swing/JSliderBeanInfo.class \
 236         javax/swing/JSpinnerBeanInfo.class \
 237         javax/swing/JSplitPaneBeanInfo.class \
 238         javax/swing/JTabbedPaneBeanInfo.class \
 239         javax/swing/JTableBeanInfo.class \
 240         javax/swing/JTextAreaBeanInfo.class \
 241         javax/swing/JTextFieldBeanInfo.class \
 242         javax/swing/JTextPaneBeanInfo.class \
 243         javax/swing/JToggleButtonBeanInfo.class \
 244         javax/swing/JToolBarBeanInfo.class \
 245         javax/swing/JTreeBeanInfo.class \
 246         javax/swing/JWindowBeanInfo.class \
 247         javax/swing/SwingBeanInfoBase.class \
 248         javax/swing/text/JTextComponentBeanInfo.class \
 249         sun/swing/BeanInfoUtils.class \
 250         $(LOCALEDATA_INCLUDES) \
 251         sun/text/resources/cldr \
 252         sun/util/resources/cldr \
 253         sun/util/cldr/CLDRLocaleDataMetaInfo.class
 254 
 255 # These files should never be put into rt.jar
 256 # but due to a misstake...some are put there if embedded
 257 #
 258 ifneq ($(JAVASE_EMBEDDED), true)
 259 # normal (correct) case
 260 RT_JAR_EXCLUDES += \
 261         com/oracle/jrockit/jfr \
 262         oracle/jrockit/jfr
 263 else
 264 # embedded (broken) case
 265 RT_JAR_EXCLUDES += \
 266   oracle/jrockit/jfr/parser \
 267   oracle/jrockit/jfr/tools \
 268   oracle/jrockit/jfr/NativeOptions.class \
 269   oracle/jrockit/jfr/RepositoryChunkHandler.class
 270 endif
 271 
 272 ifeq ($(OPENJDK_TARGET_OS), macosx)
 273         RT_JAR_EXCLUDES += com/sun/nio/sctp \
 274                            sun/nio/ch/sctp
 275 endif
 276 
 277 # Find all files in the classes dir to use as dependencies. This could be more fine granular.
 278 ALL_FILES_IN_CLASSES := $(shell $(FIND) $(JDK_OUTPUTDIR)/classes -type f \
 279                         | $(GREP) -v -e '/_the\.*' -e '^_the\.*' -e 'javac_state')
 280 
 281 RT_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib/_the.rt.jar_manifest
 282 RESOURCE_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib/_the.resources.jar_manifest
 283 
 284 $(RT_JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST)
 285         $(MKDIR) -p $(@D)
 286         $(RM) $@ $@.tmp
 287         $(SED) -e "s#@@RELEASE@@#$(RELEASE)#"           \
 288                -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
 289                $(MAINMANIFEST) >> $@.tmp
 290         $(ECHO) >> $@.tmp
 291         $(CAT) $(BEANMANIFEST) >> $@.tmp
 292         $(MV) $@.tmp $@
 293 
 294 $(RESOURCE_JAR_MANIFEST_FILE): $(MAINMANIFEST)
 295         $(MKDIR) -p $(@D)
 296         $(RM) $@ $@.tmp
 297         $(SED) -e "s#@@RELEASE@@#$(RELEASE)#"           \
 298                -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
 299                $(MAINMANIFEST) >> $@.tmp
 300         $(MV) $@.tmp $@
 301 
 302 $(IMAGES_OUTPUTDIR)/lib/_the.jars.exclude: $(MAKEFILE)
 303         $(MKDIR) -p $(@D)
 304         $(RM) $@ $@.tmp
 305         $(call ListPathsSafely,RT_JAR_EXCLUDES,\n, >> $@.tmp)
 306         $(MV) $@.tmp $@
 307 
 308 $(IMAGES_OUTPUTDIR)/lib/classlist : $(JDK_TOPDIR)/make/tools/sharing/classlist.$(OPENJDK_TARGET_OS) \
 309   $(MAKEFILE)
 310         $(MKDIR) -p $(@D)
 311         $(RM) $@ $@.tmp
 312         $(TOOL_ADDJSUM) $< $@.tmp
 313         $(MV) $@.tmp $@
 314 
 315 $(IMAGES_OUTPUTDIR)/lib/_the.jars.contents: $(BUILD_TOOLS) $(IMAGES_OUTPUTDIR)/lib/_the.jars.exclude \
 316                                          $(ALL_FILES_IN_CLASSES) $(IMAGES_OUTPUTDIR)/lib/classlist
 317         $(MKDIR) -p $(@D)
 318         $(RM) $@ $@.tmp
 319         ($(CD) $(JDK_OUTPUTDIR)/classes && \
 320             $(TOOL_JARREORDER) \
 321                 -o  $@.tmp $(IMAGES_OUTPUTDIR)/lib/classlist $(IMAGES_OUTPUTDIR)/lib/_the.jars.exclude . )
 322         $(MV) $@.tmp $@
 323 
 324 $(IMAGES_OUTPUTDIR)/lib/_the.rt.jar.contents: $(IMAGES_OUTPUTDIR)/lib/_the.jars.contents
 325         $(MKDIR) -p $(@D)
 326         $(RM) $@ $@.tmp
 327         $(GREP) -e '\.class$$' $(IMAGES_OUTPUTDIR)/lib/_the.jars.contents > $@.tmp
 328         $(MV) $@.tmp $@




 329 
 330 $(IMAGES_OUTPUTDIR)/lib/_the.resources.jar.contents: $(IMAGES_OUTPUTDIR)/lib/_the.jars.contents
 331         $(MKDIR) -p $(@D)
 332         $(RM) $@ $@.tmp

 333         $(GREP) -v -e '\.class$$' \
 334             -e '/_the\.*' -e '^_the\.*' -e '\\_the\.*' -e 'javac_state' \
 335             $(IMAGES_OUTPUTDIR)/lib/_the.jars.contents > $@.tmp




 336         $(MV) $@.tmp $@
 337 


























 338 RT_JAR_CREATE_OPTIONS := c0fm

 339 ifeq ($(COMPRESS_JARS), true)
 340     RT_JAR_CREATE_OPTIONS := cfm

 341 endif
 342 
 343 $(IMAGES_OUTPUTDIR)/lib/rt.jar: $(IMAGES_OUTPUTDIR)/lib/_the.rt.jar.contents $(RT_JAR_MANIFEST_FILE)
 344         $(ECHO) Creating rt.jar





 345         $(MKDIR) -p $(@D)
 346         $(RM) $@ $@.tmp
 347         $(CD) $(JDK_OUTPUTDIR)/classes && \
 348             $(JAR) $(RT_JAR_CREATE_OPTIONS) $@.tmp $(RT_JAR_MANIFEST_FILE) \
 349                 @$(IMAGES_OUTPUTDIR)/lib/_the.rt.jar.contents












 350         $(MV) $@.tmp $@
 351 
 352 $(IMAGES_OUTPUTDIR)/lib/resources.jar: $(IMAGES_OUTPUTDIR)/lib/_the.resources.jar.contents \
 353                                     $(RESOURCE_JAR_MANIFEST_FILE)
 354         $(ECHO) Creating resources.jar
 355         $(MKDIR) -p $(@D)
 356         $(RM) $@ $@.tmp
 357         $(CD) $(JDK_OUTPUTDIR)/classes && \
 358             $(JAR) $(RT_JAR_CREATE_OPTIONS) $@.tmp $(RESOURCE_JAR_MANIFEST_FILE) \
 359                 @$(IMAGES_OUTPUTDIR)/lib/_the.resources.jar.contents
 360         $(MV) $@.tmp $@
 361 
 362 JARS+=$(IMAGES_OUTPUTDIR)/lib/rt.jar $(IMAGES_OUTPUTDIR)/lib/resources.jar
 363 
 364 ##########################################################################################
 365 
 366 ifneq ($(OPENJDK_TARGET_OS), windows)
 367     CHARSETS_EXTRA_FILES:=sun/awt/motif/X11GBK.class \
 368                           sun/awt/motif/X11GB2312\$$$$Decoder.class \
 369                           sun/awt/motif/X11GB2312.class \
 370                           sun/awt/motif/X11KSC5601\$$$$Decoder.class \
 371                           sun/awt/motif/X11KSC5601\$$$$Encoder.class \
 372                           sun/awt/motif/X11GB2312\$$$$Encoder.class \
 373                           sun/awt/motif/X11GBK\$$$$Encoder.class \
 374                           sun/awt/motif/X11KSC5601.class
 375 endif
 376 
 377 $(eval $(call SetupArchive,BUILD_CHARSETS_JAR,,\
 378                 SRCS:=$(JDK_OUTPUTDIR)/classes, \
 379                 SUFFIXES:=.class .dat,\
 380                 INCLUDES:=sun/nio/cs/ext,\
 381                 EXTRA_FILES := sun/awt/HKSCS.class \
 382                                $(CHARSETS_EXTRA_FILES) \
 383                                META-INF/services/java.nio.charset.spi.CharsetProvider, \
 384                 JAR:=$(IMAGES_OUTPUTDIR)/lib/charsets.jar, \
 385                 SKIP_METAINF := true, \
 386                 CHECK_COMPRESS_JAR:=true))
 387 
 388 JARS+=$(IMAGES_OUTPUTDIR)/lib/charsets.jar
 389 
 390 ##########################################################################################
 391 
 392 ifndef OPENJDK
 393 ifeq ($(ENABLE_JFR), true)
 394     $(eval $(call SetupArchive,BUILD_JFR_JAR,,\
 395                 SRCS:=$(JDK_OUTPUTDIR)/classes,\
 396                 INCLUDES:=com/oracle/jrockit/jfr \
 397                           oracle/jrockit/jfr,\
 398                 JAR:=$(IMAGES_OUTPUTDIR)/lib/jfr.jar,\
 399                 SKIP_METAINF:=true,\
 400                 MANIFEST:=$(MAINMANIFEST), \
 401                 CHECK_COMPRESS_JAR:=true))
 402 
 403     JARS+=$(IMAGES_OUTPUTDIR)/lib/jfr.jar
 404 endif
 405 endif
 406 
 407 ##########################################################################################
 408 
 409 $(eval $(call SetupArchive,BUILD_JSSE_JAR,,\
 410                 SRCS:=$(JDK_OUTPUTDIR)/classes,\
 411                 INCLUDES:=sun/security/provider/Sun.class \
 412                           sun/security/rsa/SunRsaSign.class \
 413                           sun/security/ssl \
 414                           com/sun/net/ssl/internal/ssl,\
 415                 JAR:=$(IMAGES_OUTPUTDIR)/lib/jsse.jar,\
 416                 SKIP_METAINF:=true,\
 417                 MANIFEST:=$(MAINMANIFEST), \
 418                 CHECK_COMPRESS_JAR:=true))
 419 
 420 JARS+=$(IMAGES_OUTPUTDIR)/lib/jsse.jar
 421 
 422 ##########################################################################################
 423 # Create manifest for security jars
 424 
 425 #
 426 # Include these extra attributes for now, should probably take out.
 427 #
 428 JCE_MANIFEST := $(IMAGES_OUTPUTDIR)/lib/_the.security.manifest.mf
 429 $(JCE_MANIFEST): $(MAINMANIFEST)
 430         $(MKDIR) -p $(@D)
 431         $(RM) $@ $@.tmp
 432         $(SED) -e "s#@@RELEASE@@#$(JDK_VERSION)#"       \
 433                -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
 434                $(MAINMANIFEST) >> $@.tmp
 435         $(ECHO) "Extension-Name: javax.crypto" >> $@.tmp
 436         $(ECHO) "Implementation-Vendor-Id: com.sun" >> $@.tmp
 437         $(MV) $@.tmp $@
 438 
 439 ##########################################################################################
 440 
 441 SUNPKCS11_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunpkcs11.jar


 445     SUNPKCS11_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/pkcs11/sunpkcs11.jar
 446 
 447     $(SUNPKCS11_JAR_DST) : $(SUNPKCS11_JAR_SRC)
 448         @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunPKCS11 provider..."
 449         $(install-file)
 450 
 451 else
 452 
 453     $(eval $(call SetupArchive,BUILD_SUNPKCS11_JAR,,\
 454         SRCS:=$(JDK_OUTPUTDIR)/classes, \
 455         SUFFIXES:=.class,\
 456         INCLUDES:=sun/security/pkcs11,\
 457         JAR:=$(SUNPKCS11_JAR_DST), \
 458         MANIFEST:=$(JCE_MANIFEST), \
 459         SKIP_METAINF := true))
 460 
 461     $(SUNPKCS11_JAR_DST): $(JCE_MANIFEST)
 462 
 463 endif
 464 
 465 JARS += $(SUNPKCS11_JAR_DST)
 466 
 467 ##########################################################################################
 468 
 469 SUNEC_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunec.jar
 470 
 471 ifndef OPENJDK
 472 
 473     SUNEC_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ec/sunec.jar
 474 
 475     $(SUNEC_JAR_DST) : $(SUNEC_JAR_SRC)
 476         @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunEC provider..."
 477         $(install-file)
 478 
 479 else
 480 
 481     $(eval $(call SetupArchive,BUILD_SUNEC_JAR,,\
 482                 SRCS:=$(JDK_OUTPUTDIR)/classes, \
 483                 SUFFIXES:=.class,\
 484                 INCLUDES:=sun/security/ec,\
 485                 JAR:=$(SUNEC_JAR_DST), \
 486                 MANIFEST:=$(JCE_MANIFEST), \
 487                 SKIP_METAINF := true))
 488 
 489     $(SUNEC_JAR_DST): $(JCE_MANIFEST)
 490 
 491 endif
 492 
 493 JARS += $(SUNEC_JAR_DST)
 494 
 495 ##########################################################################################
 496 
 497 $(eval $(call SetupArchive,BUILD_SWINGBEANS_JAR,,\
 498                 SRCS:=$(JDK_OUTPUTDIR)/classes,\
 499                 SUFFIXES:=BeanInfo.class .gif,\
 500                 INCLUDES:=javax/swing sun/swing,\
 501                 EXCLUDES:=javax/swing/plaf,\
 502                 EXTRA_FILES:=javax/swing/SwingBeanInfoBase.class sun/swing/BeanInfoUtils.class,\
 503                 JAR:=$(IMAGES_OUTPUTDIR)/lib/dt.jar,\
 504                 SKIP_METAINF:=true))
 505 
 506 JARS+=$(IMAGES_OUTPUTDIR)/lib/dt.jar
 507 
 508 ##########################################################################################
 509 
 510 SUNJCE_PROVIDER_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunjce_provider.jar
 511 
 512 ifndef OPENJDK
 513     SUNJCE_PROVIDER_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/sunjce_provider.jar
 514 
 515     $(SUNJCE_PROVIDER_JAR_DST) : $(SUNJCE_PROVIDER_JAR_SRC)
 516         @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunJCE provider..."
 517         $(install-file)
 518 
 519 else
 520 
 521     $(eval $(call SetupArchive,BUILD_SUNJCE_PROVIDER_JAR,,\
 522                 SRCS:=$(JDK_OUTPUTDIR)/classes, \
 523                 SUFFIXES:=.class,\
 524                 INCLUDES:= com/sun/crypto/provider,\
 525                 JAR:=$(SUNJCE_PROVIDER_JAR_DST), \
 526                 MANIFEST:=$(JCE_MANIFEST), \
 527                 SKIP_METAINF := true))
 528 
 529     $(SUNJCE_PROVIDER_JAR_DST): $(JCE_MANIFEST)
 530 
 531 endif
 532 
 533 JARS += $(SUNJCE_PROVIDER_JAR_DST)
 534 
 535 JCE_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/jce.jar
 536 
 537 ifndef OPENJDK
 538 
 539     JCE_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/jce.jar
 540 
 541     $(JCE_JAR_DST) : $(JCE_JAR_SRC)
 542         @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt jce.jar..."
 543         $(install-file)
 544 
 545 else
 546 
 547     $(eval $(call SetupArchive,BUILD_JCE_JAR,,\
 548                 SRCS:=$(JDK_OUTPUTDIR)/classes, \
 549                 SUFFIXES:=.class,\
 550                 INCLUDES:= javax/crypto sun/security/internal,\
 551                 JAR:=$(JCE_JAR_DST), \
 552                 MANIFEST:=$(JCE_MANIFEST), \
 553                 SKIP_METAINF := true))
 554 
 555     $(JCE_JAR_DST): $(JCE_MANIFEST)
 556 
 557 endif
 558 
 559 JARS += $(JCE_JAR_DST)
 560 
 561 ##########################################################################################
 562 
 563 US_EXPORT_POLICY_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/security/US_export_policy.jar
 564 
 565 ifndef OPENJDK
 566 
 567 
 568     $(US_EXPORT_POLICY_JAR_DST): $(JDK_TOPDIR)/make/closed/tools/crypto/jce/US_export_policy.jar
 569         $(ECHO) $(LOG_INFO) Copying $(@F)
 570         $(install-file)
 571 
 572 else
 573 
 574     #
 575     # TODO fix so that SetupArchive does not write files into SRCS
 576     #   then we don't need this extra copying
 577     #
 578     # NOTE:  We currently do not place restrictions on our limited export
 579     # policy.  This was not a typo.
 580     #
 581     US_EXPORT_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/unlimited
 582     US_EXPORT_POLICY_JAR_TMP := $(IMAGES_OUTPUTDIR)/US_export_policy_jar.tmp
 583 
 584     $(US_EXPORT_POLICY_JAR_TMP)/% : $(US_EXPORT_POLICY_JAR_SRC_DIR)/%
 585         $(install-file)
 586 
 587     US_EXPORT_POLICY_JAR_DEPS := $(US_EXPORT_POLICY_JAR_TMP)/default_US_export.policy
 588 
 589     $(eval $(call SetupArchive,BUILD_US_EXPORT_POLICY_JAR,$(US_EXPORT_POLICY_JAR_DEPS),\
 590                 SRCS:=$(US_EXPORT_POLICY_JAR_TMP), \
 591                 SUFFIXES:= .policy,\
 592                 JAR:=$(US_EXPORT_POLICY_JAR_DST), \
 593                 EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \
 594                 SKIP_METAINF := true))
 595 
 596 endif
 597 
 598 JARS += $(US_EXPORT_POLICY_JAR_DST)
 599 
 600 ##########################################################################################
 601 
 602 LOCAL_POLICY_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/security/local_policy.jar
 603 
 604 ifndef OPENJDK
 605 
 606     $(LOCAL_POLICY_JAR_DST): $(JDK_TOPDIR)/make/closed/tools/crypto/jce/local_policy.jar
 607         $(ECHO) $(LOG_INFO) Copying $(@F)
 608         $(install-file)
 609 
 610 else
 611 
 612     #
 613     # TODO fix so that SetupArchive does not write files into SRCS
 614     #   then we don't need this extra copying
 615     #
 616     LOCAL_POLICY_JAR_TMP := $(IMAGES_OUTPUTDIR)/local_policy_jar.tmp
 617 
 618     ifeq ($(UNLIMITED_CRYPTO), true)
 619         LOCAL_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/unlimited


 621         LOCAL_POLICY_JAR_ATTR := Crypto-Strength: unlimited
 622     else
 623         LOCAL_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/limited
 624         LOCAL_POLICY_JAR_DEPS := $(LOCAL_POLICY_JAR_TMP)/exempt_local.policy \
 625                                  $(LOCAL_POLICY_JAR_TMP)/default_local.policy
 626         LOCAL_POLICY_JAR_ATTR := Crypto-Strength: limited
 627     endif
 628 
 629     $(LOCAL_POLICY_JAR_TMP)/% : $(LOCAL_POLICY_JAR_SRC_DIR)/%
 630         $(install-file)
 631 
 632     $(eval $(call SetupArchive,BUILD_LOCAL_POLICY_JAR,$(LOCAL_POLICY_JAR_DEPS),\
 633                 SRCS:=$(LOCAL_POLICY_JAR_TMP),\
 634                 SUFFIXES:= .policy,\
 635                 JAR:=$(LOCAL_POLICY_JAR_DST), \
 636                 EXTRA_MANIFEST_ATTR := $(LOCAL_POLICY_JAR_ATTR), \
 637                 SKIP_METAINF := true))
 638 
 639 endif
 640 
 641 JARS += $(LOCAL_POLICY_JAR_DST)
 642 
 643 ##########################################################################################
 644 
 645 ifeq ($(OPENJDK_TARGET_OS),windows)
 646 
 647 SUNMSCAPI_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunmscapi.jar
 648 
 649 ifndef OPENJDK
 650 SUNMSCAPI_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/mscapi/sunmscapi.jar
 651 
 652 $(SUNMSCAPI_JAR_DST) : $(SUNMSCAPI_JAR_SRC)
 653         @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunMSCAPI provider..."
 654         $(install-file)
 655 
 656 else
 657 
 658 $(eval $(call SetupArchive,BUILD_SUNMSCAPI_JAR,,\
 659                 SRCS:=$(JDK_OUTPUTDIR)/classes, \
 660                 SUFFIXES:=.class,\
 661                 INCLUDES:= sun/security/mscapi,\
 662                 JAR:=$(SUNMSCAPI_JAR_DST), \
 663                 SKIP_METAINF:=true))
 664 endif
 665 
 666 JARS += $(SUNMSCAPI_JAR_DST)
 667 
 668 endif
 669 
 670 ##########################################################################################
 671 
 672 ifeq ($(OPENJDK_TARGET_OS),solaris)
 673 ifndef OPENJDK
 674 
 675 UCRYPTO_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/ucrypto.jar
 676 UCRYPTO_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ucrypto/ucrypto.jar
 677 
 678 $(UCRYPTO_JAR_DST) : $(UCRYPTO_JAR_SRC)
 679         @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt OracleUcrypto provider..."
 680         $(install-file)
 681 
 682 JARS += $(UCRYPTO_JAR_DST)
 683 
 684 endif
 685 endif
 686 
 687 ##########################################################################################
 688 
 689 # Get the CLDRVERSION
 690 include GensrcCLDR.gmk
 691 
 692 CLDRDATA_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/cldrdata.jar
 693 
 694 $(eval $(call SetupArchive,BUILD_CLDRDATA_JAR,,\
 695                 SRCS:=$(JDK_OUTPUTDIR)/classes,\
 696                 SUFFIXES:=.class,\
 697                 INCLUDES:=sun/text/resources/cldr \
 698                           sun/util/cldr \
 699                           sun/util/resources/cldr,\
 700                 EXCLUDES:=sun/util/cldr/CLDRLocaleProviderAdapter,\
 701                 JAR:=$(CLDRDATA_JAR_DST),\
 702                 EXTRA_MANIFEST_ATTR:=CLDR-Version: $(CLDRVERSION),\
 703                 SKIP_METAINF:=true))
 704 
 705 JARS += $(CLDRDATA_JAR_DST)
 706 
 707 ##########################################################################################
 708 
 709 TOOLS_JAR_INCLUDES := \
 710         sun/tools/asm           \
 711         sun/tools/jar           \
 712         sun/tools/java          \
 713         sun/tools/javac         \
 714         sun/tools/jcmd          \
 715         sun/tools/jps           \
 716         sun/tools/jstat         \
 717         sun/tools/jstatd        \
 718         sun/tools/native2ascii  \
 719         sun/tools/serialver     \
 720         sun/tools/tree          \
 721         sun/tools/util          \
 722         sun/security/tools/jarsigner \
 723         sun/rmi/rmic            \
 724         sun/applet              \
 725         sun/jvmstat             \
 726         com/sun/javadoc         \


 758         sun/tools/jmap
 759 
 760 # The sjavac tools is not ready for public consumption.
 761 TOOLS_JAR_EXCLUDES=com/sun/tools/sjavac
 762 
 763 $(eval $(call SetupArchive,BUILD_TOOLS_JAR,,\
 764                 SRCS:=$(JDK_OUTPUTDIR)/classes,\
 765                 SUFFIXES:=.class .prp .gif .properties .xml .css .xsd .js .html .txt .java \
 766                           Tool aliasmap options,\
 767                 INCLUDES:=$(TOOLS_JAR_INCLUDES),\
 768                 EXCLUDES:=$(TOOLS_JAR_EXCLUDES),\
 769                 EXTRA_FILES:=META-INF/services/com.sun.jdi.connect.Connector \
 770                              META-INF/services/com.sun.jdi.connect.spi.TransportService \
 771                              META-INF/services/com.sun.tools.attach.spi.AttachProvider \
 772                              META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin \
 773                              META-INF/services/com.sun.tools.internal.xjc.Plugin,\
 774                 JAR:=$(IMAGES_OUTPUTDIR)/lib/tools.jar,\
 775                 SKIP_METAINF:=true, \
 776                 CHECK_COMPRESS_JAR:=true))
 777 
 778 JARS+=$(IMAGES_OUTPUTDIR)/lib/tools.jar
 779 
 780 ##########################################################################################
 781 
 782 include javadoc/CORE_PKGS.gmk
 783 include javadoc/NON_CORE_PKGS.gmk
 784 
 785 # The compiler should not issue a "Proprietary" warning when compiling
 786 # classes in the com.sun.java.swing.plaf packages, since we've always
 787 # allowed, and even advocated, extending them (see bug 6476749).
 788 #
 789 # This approach is NOT to be used as a general purpose way to avoid such
 790 # compiler warnings for non-core packages. The correct way is to document
 791 # the packages in NON_CORE_PKGS.gmk, and include them in the NON_CORE_PKGS
 792 # definition.
 793 #
 794 # Swing has taken this approach only as a temporary measure to avoid
 795 # the compiler warnings until we can properly document these packages.
 796 # This is covered under 6491853.
 797 EXCLUDE_PROPWARN_PKGS = com.sun.java.swing.plaf.windows  \
 798                         com.sun.java.swing.plaf.motif    \
 799                         com.sun.java.swing.plaf.gtk
 800 
 801 #
 802 # Include the exported private packages in ct.sym.
 803 # This is an interim solution until the ct.sym is replaced
 804 # with a new module system (being discussed for JDK 8).
 805 #
 806 EXPORTED_PRIVATE_PKGS = com.sun.servicetag \
 807                         com.oracle.net \
 808                         com.oracle.nio
 809 
 810 $(IMAGES_OUTPUTDIR)/symbols/_the.symbols: $(IMAGES_OUTPUTDIR)/lib/rt.jar
 811         $(RM) -r $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym
 812         $(MKDIR) -p $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym
 813         $(JAVA) $(JAVAC_JARS) \
 814             -bootclasspath $(JDK_OUTPUTDIR)/classes \
 815             -XDprocess.packages -proc:only \
 816             -processor com.sun.tools.javac.sym.CreateSymbols \
 817             -Acom.sun.tools.javac.sym.Jar=$(IMAGES_OUTPUTDIR)/lib/rt.jar \
 818             -Acom.sun.tools.javac.sym.Dest=$(IMAGES_OUTPUTDIR)/symbols/META-INF/sym/rt.jar \

 819             $(CORE_PKGS) $(NON_CORE_PKGS) $(EXCLUDE_PROPWARN_PKGS) $(EXPORTED_PRIVATE_PKGS)
 820         $(TOUCH) $@
 821 
 822 $(shell $(MKDIR) -p $(IMAGES_OUTPUTDIR)/symbols)
 823 $(eval $(call SetupArchive,BUILD_CT_SYM,$(IMAGES_OUTPUTDIR)/symbols/_the.symbols,\
 824                 SRCS:=$(IMAGES_OUTPUTDIR)/symbols,\
 825                 INCLUDES:=META-INF/sym,\
 826                 JAR:=$(IMAGES_OUTPUTDIR)/lib/ct.sym, \
 827                 CHECK_COMPRESS_JAR:=true))
 828 
 829 JARS+=$(IMAGES_OUTPUTDIR)/lib/ct.sym
 830 
 831 ##########################################################################################
 832 
 833 SRC_ZIP_INCLUDES = \
 834         java/applet                     \
 835         java/awt                        \
 836         java/beans                      \
 837         java/io                         \
 838         java/lang                       \
 839         java/math                       \
 840         java/net                        \
 841         java/nio                        \
 842         java/rmi                        \
 843         java/security                   \
 844         java/sql                        \
 845         java/text                       \
 846         java/util                       \
 847         com/sun/corba                   \
 848         com/sun/image/codec/jpeg        \
 849         com/sun/imageio                 \


 895                         $(LAUNCHER_SRC_FILES)))
 896 
 897 $(IMAGES_OUTPUTDIR)/src/launcher/%: $(JDK_TOPDIR)/src/share/bin/%
 898         $(install-file)
 899 
 900 $(IMAGES_OUTPUTDIR)/src/launcher/%: $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/%
 901         $(install-file)
 902 
 903 $(IMAGES_OUTPUTDIR)/src.zip: $(LAUNCHER_ZIP_SRC)
 904 
 905 # This dir needs to exist before macro is evaluated to avoid warning from find.
 906 $(eval $(call MakeDir,$(IMAGES_OUTPUTDIR)/src))
 907 $(eval $(call SetupZipArchive,BUILD_SRC_ZIP,\
 908                 SRC:=$(SRC_ZIP_SRCS) $(IMAGES_OUTPUTDIR)/src,\
 909                 INCLUDES:=$(SRC_ZIP_INCLUDES) launcher,\
 910                 EXCLUDES:=javax/swing/beaninfo,\
 911                 SUFFIXES:=.java .c .h,\
 912                 ZIP:=$(IMAGES_OUTPUTDIR)/src.zip,\
 913                 EXTRA_DEPS:=$(LAUNCHER_ZIP_SRC)))
 914 
 915 JARS+=$(IMAGES_OUTPUTDIR)/src.zip
 916 
 917 ##########################################################################################
 918 
 919 #
 920 # This is an empty jar (only contains manifest) and fits poorly into framework...
 921 #   create simple rule instead
 922 #
 923 $(IMAGES_OUTPUTDIR)/lib/management-agent.jar : $(JDK_TOPDIR)/src/share/classes/sun/management/manifest
 924         $(JAR) cfm $@ $<
 925 
 926 JARS += $(IMAGES_OUTPUTDIR)/lib/management-agent.jar
 927 
 928 ##########################################################################################
 929 
 930 $(IMAGES_OUTPUTDIR)/lib/ext/zipfs.jar : $(JDK_OUTPUTDIR)/demo/nio/zipfs/zipfs.jar
 931         $(install-file)
 932 
 933 JARS += $(IMAGES_OUTPUTDIR)/lib/ext/zipfs.jar
 934 
 935 ##########################################################################################
 936 
 937 ifeq ($(OPENJDK_TARGET_OS),macosx)
 938     $(eval $(call SetupArchive,BUILD_JOBJC_JAR,,\
 939                 SRCS:=$(JDK_OUTPUTDIR)/jobjc_classes,\
 940                 JAR:=$(IMAGES_OUTPUTDIR)/lib/JObjC.jar, \
 941                 JARINDEX:=true))
 942 
 943     JARS += $(IMAGES_OUTPUTDIR)/lib/JObjC.jar
 944 endif
 945 
 946 ##########################################################################################
 947 
 948 ifndef OPENJDK
 949     $(eval $(call SetupArchive,BUILD_ALT_RT_JAR,,\
 950                 SRCS:=$(JDK_OUTPUTDIR)/altclasses_classes,\
 951                 JAR:=$(IMAGES_OUTPUTDIR)/lib/alt-rt.jar))
 952 
 953     JARS += $(IMAGES_OUTPUTDIR)/lib/alt-rt.jar
 954 endif
 955 
 956 ##########################################################################################
 957 
 958 # This file is imported from hotspot in Import.gmk. Copying it into images/lib so that
 959 # all jars can be found in one place when creating images in Images.gmk. It needs to be
 960 # done here so that clean targets can be simple and accurate.
 961 $(IMAGES_OUTPUTDIR)/lib/sa-jdi.jar: $(JDK_OUTPUTDIR)/lib/sa-jdi.jar
 962         $(install-file)
 963 
 964 JARS += $(IMAGES_OUTPUTDIR)/lib/sa-jdi.jar
 965 
 966 ##########################################################################################
 967 
 968 -include $(CUSTOM_MAKE_DIR)/CreateJars.gmk
 969 
 970 ##########################################################################################
 971 
 972 all: $(JARS)
 973 
 974 .PHONY: default all


  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 include $(SPEC)
  27 include MakeBase.gmk
  28 include JavaCompilation.gmk
  29 include Setup.gmk
  30 
  31 default: all
  32 
  33 include Tools.gmk
  34 
  35 include Profiles.gmk
  36 
  37 #
  38 # This makefile...so that altering will trigger rebuilding include/exclude-lists => jars
  39 #
  40 MAKEFILE=$(JDK_TOPDIR)/makefiles/CreateJars.gmk
  41 #
  42 # And similarly for the Profiles
  43 PROFILE_MAKEFILES=$(JDK_TOPDIR)/makefiles/Profiles.gmk $(JDK_TOPDIR)/makefiles/profile-rtjar-includes.txt
  44 
  45 MAINMANIFEST := $(JDK_TOPDIR)/make/tools/manifest.mf
  46 BEANMANIFEST := $(JDK_TOPDIR)/make/javax/swing/beaninfo/manifest
  47 


  48 $(eval $(call MakeDir,$(IMAGES_OUTPUTDIR)/lib))
  49 
  50 ##########################################################################################
  51 
  52 $(eval $(call SetupArchive,BUILD_JCONSOLE_JAR,,\
  53                 SRCS:=$(JDK_OUTPUTDIR)/classes,\
  54                 SUFFIXES:=.class .gif .png .properties,\
  55                 INCLUDES:=sun/tools/jconsole com/sun/tools/jconsole,\
  56                 JARMAIN:=sun.tools.jconsole.JConsole,\
  57                 JAR:=$(IMAGES_OUTPUTDIR)/lib/jconsole.jar,\
  58                 SKIP_METAINF:=true))
  59 

  60 
  61 ##########################################################################################
  62 
  63 $(eval $(call SetupArchive,BUILD_DNS_JAR,,\
  64                 SRCS:=$(JDK_OUTPUTDIR)/classes,\
  65                 INCLUDES:=sun/net/spi/nameservice/dns,\
  66                 EXTRA_FILES:=META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor,\
  67                 JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/dnsns.jar,\
  68                 SKIP_METAINF:=true))
  69 

  70 
  71 ##########################################################################################
  72 
  73 LOCALEDATA_INCLUDE_LOCALES := ar be bg ca cs da de el es et fi fr ga hi hr hu in is it \
  74                               iw ja ko lt lv mk ms mt nl no pl pt ro ru sk sl sq sr sv \
  75                               th tr uk vi zh
  76 
  77 LOCALEDATA_INCLUDES := $(addprefix sun/text/resources/,$(LOCALEDATA_INCLUDE_LOCALES)) \
  78                        $(addprefix sun/util/resources/,$(LOCALEDATA_INCLUDE_LOCALES))
  79 
  80 # For non-US English locale data
  81 
  82 LOCALEDATA_INCLUDES += \
  83                 sun/text/resources/en/FormatData_en_AU.class \
  84                 sun/text/resources/en/FormatData_en_CA.class \
  85                 sun/text/resources/en/FormatData_en_GB.class \
  86                 sun/text/resources/en/FormatData_en_IE.class \
  87                 sun/text/resources/en/FormatData_en_IN.class \
  88                 sun/text/resources/en/FormatData_en_MT.class \
  89                 sun/text/resources/en/FormatData_en_NZ.class \


 101                 sun/util/resources/en/CurrencyNames_en_MT.class \
 102                 sun/util/resources/en/CurrencyNames_en_NZ.class \
 103                 sun/util/resources/en/CurrencyNames_en_PH.class \
 104                 sun/util/resources/en/CurrencyNames_en_SG.class \
 105                 sun/util/resources/en/CurrencyNames_en_ZA.class \
 106                 sun/util/resources/en/LocaleNames_en_MT.class \
 107                 sun/util/resources/en/LocaleNames_en_PH.class \
 108                 sun/util/resources/en/LocaleNames_en_SG.class \
 109                 sun/util/resources/en/TimeZoneNames_en_CA.class \
 110                 sun/util/resources/en/TimeZoneNames_en_GB.class \
 111                 sun/util/resources/en/TimeZoneNames_en_IE.class
 112 
 113 $(eval $(call SetupArchive,BUILD_LOCALEDATA_JAR,,\
 114                 SRCS:=$(JDK_OUTPUTDIR)/classes,\
 115                 SUFFIXES:=.class _dict _th,\
 116                 INCLUDES:=$(LOCALEDATA_INCLUDES),\
 117                 EXCLUDES:=sun/text/resources/th/BreakIteratorRules_th.class,\
 118                 JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/localedata.jar,\
 119                 SKIP_METAINF:=true))
 120 


 121 ##########################################################################################
 122 #
 123 # Different variants of rt.jar are built based on the current profile. The output
 124 # directory is augmented with the profile name so that the final jar file and all the
 125 # intermediary list files will be in directory. This has the form lib$PROFILE rather than
 126 # lib/$PROFILE so that it won't get copied as part of the image generation process.
 127 # Each profile customizes the RT_JAR_EXCLUDES variable.
 128 #
 129 ##########################################################################################

















































































































































 130 
 131 # Find all files in the classes dir to use as dependencies. This could be more fine granular.
 132 ALL_FILES_IN_CLASSES := $(shell $(FIND) $(JDK_OUTPUTDIR)/classes -type f \
 133                         | $(GREP) -v -e '/_the\.*' -e '^_the\.*' -e 'javac_state')
 134 
 135 RT_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar_manifest
 136 RESOURCE_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar_manifest
 137 
 138 $(RT_JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST)
 139         $(MKDIR) -p $(@D)
 140         $(RM) $@ $@.tmp
 141         $(SED) -e "s#@@RELEASE@@#$(RELEASE)#"           \
 142                -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
 143                $(MAINMANIFEST) >> $@.tmp
 144         $(ECHO) >> $@.tmp
 145         $(CAT) $(BEANMANIFEST) >> $@.tmp
 146         $(MV) $@.tmp $@
 147 
 148 $(RESOURCE_JAR_MANIFEST_FILE): $(MAINMANIFEST)
 149         $(MKDIR) -p $(@D)
 150         $(RM) $@ $@.tmp
 151         $(SED) -e "s#@@RELEASE@@#$(RELEASE)#"           \
 152                -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
 153                $(MAINMANIFEST) >> $@.tmp
 154         $(MV) $@.tmp $@
 155 
 156 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.exclude: $(MAKEFILE) $(PROFILE_MAKEFILES)
 157         $(MKDIR) -p $(@D)
 158         $(RM) $@ $@.tmp
 159         $(call ListPathsSafely,RT_JAR_EXCLUDES,\n, >> $@.tmp)
 160         $(MV) $@.tmp $@
 161 
 162 $(IMAGES_OUTPUTDIR)/lib/classlist : $(JDK_TOPDIR)/make/tools/sharing/classlist.$(OPENJDK_TARGET_OS) \
 163   $(MAKEFILE)
 164         $(MKDIR) -p $(@D)
 165         $(RM) $@ $@.tmp
 166         $(TOOL_ADDJSUM) $< $@.tmp
 167         $(MV) $@.tmp $@
 168 
 169 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents: $(BUILD_TOOLS) $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.exclude \
 170                                          $(ALL_FILES_IN_CLASSES) $(IMAGES_OUTPUTDIR)/lib/classlist
 171         $(MKDIR) -p $(@D)
 172         $(RM) $@ $@.tmp
 173         ($(CD) $(JDK_OUTPUTDIR)/classes && \
 174             $(TOOL_JARREORDER) \
 175                 -o  $@.tmp $(IMAGES_OUTPUTDIR)/lib/classlist $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.exclude . )
 176         $(MV) $@.tmp $@
 177 
 178 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar.contents: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents
 179         $(MKDIR) -p $(@D)
 180         $(RM) $@ $@.tmp
 181         $(GREP) -e '\.class$$' $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents > $@.tmp
 182         $(MV) $@.tmp $@
 183         # Add back classes from excluded packages (fixing the $ substitution in the process)
 184         for type in  $(subst \$$,\, $(RT_JAR_INCLUDE_TYPES)) ; do \
 185           $(ECHO) $$type >> $@ ; \
 186         done
 187 
 188 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents
 189         $(MKDIR) -p $(@D)
 190         $(RM) $@ $@.tmp
 191         # Strip out all META-INF/services/ entries
 192         $(GREP) -v -e '\.class$$' \
 193             -e '/_the\.*' -e '^_the\.*' -e '\\_the\.*' -e 'javac_state' -e 'META-INF/services/' \
 194             $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents > $@.tmp
 195         # Add back the required services
 196         for service in $(PROFILE_INCLUDE_METAINF_SERVICES) ; do \
 197           $(ECHO) $$service >> $@.tmp; \
 198         done
 199         $(MV) $@.tmp $@
 200 
 201 # This is a hack but I don't know how to make this fit into the existing scheme
 202 $(PROFILE_VERSION_CLASS_TARGETS) : $(PROFILE_VERSION_JAVA_TARGETS)
 203         @$(JAVAC) -d $(@D)/../../ $(@D)/$(VERSION_JAVA_FILE)
 204 
 205 
 206 # Support for removing the addPropertyChangeListener and removePropertyChangeListener
 207 # methods from classes that only go into the profile builds. For now the Pack200.Packer
 208 # and Packer200.Unpacker classes have special handling because of the $ in the file
 209 # name.
 210 BEANLESS_CLASSES = $(JDK_OUTPUTDIR)/beanless
 211 
 212 $(BEANLESS_CLASSES)/%: $(JDK_OUTPUTDIR)/classes/%
 213         $(MKDIR) -p $(@D)
 214         $(TOOL_REMOVEMETHODS) $< $@ addPropertyChangeListener removePropertyChangeListener
 215 
 216 CLASSES_TO_DEBEAN = \
 217     java/util/logging/LogManager.class \
 218     com/sun/java/util/jar/pack/PackerImpl.class \
 219     com/sun/java/util/jar/pack/UnpackerImpl.class
 220 
 221 BEANLESS_CLASSES_TARGETS =
 222 ifneq ($(PROFILE),)
 223     BEANLESS_CLASSES_TARGETS := $(foreach c, $(CLASSES_TO_DEBEAN), $(BEANLESS_CLASSES)/$c)
 224 endif
 225 
 226 
 227 RT_JAR_CREATE_OPTIONS := c0fm
 228 RT_JAR_UPDATE_OPTIONS := u0f
 229 ifeq ($(COMPRESS_JARS), true)
 230     RT_JAR_CREATE_OPTIONS := cfm
 231     RT_JAR_UPDATE_OPTIONS := uf
 232 endif
 233 
 234 # This defines a target-specific variables to make the shell logic easier to see.
 235 # We need to find the Version.class file for the profile currently being built
 236 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/rt.jar: \
 237   CLASS_FILE = $(if $(PROFILE),$(strip $(foreach class,$(PROFILE_VERSION_CLASS_TARGETS),$(if $(findstring $(PROFILE),$(class)),$(class)))), NO_SUCH_FILE)
 238 # This is the real target
 239 $(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)
 240         $(ECHO) Creating rt.jar $(PROFILE) Compressed=$(COMPRESS_JARS)
 241         $(MKDIR) -p $(@D)
 242         $(RM) $@ $@.tmp
 243         $(CD) $(JDK_OUTPUTDIR)/classes && \
 244             $(JAR) $(RT_JAR_CREATE_OPTIONS) $@.tmp $(RT_JAR_MANIFEST_FILE) \
 245                 @$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar.contents && \
 246             if [ -f $(CLASS_FILE) ]; then \
 247               $(ECHO)  Updating rt.jar $(PROFILE) && \
 248               $(CD) $(patsubst %$(VERSION_CLASS_PATH),%,$(CLASS_FILE)) && \
 249                 $(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(VERSION_CLASS_PATH); \
 250               $(MKDIR) -p $(BEANLESS_CLASSES)/java/util/jar; \
 251               $(TOOL_REMOVEMETHODS) $(JDK_OUTPUTDIR)/classes/java/util/jar/Pack200\$$Packer.class \
 252                 $(BEANLESS_CLASSES)/java/util/jar/Pack200\$$Packer.class addPropertyChangeListener removePropertyChangeListener; \
 253               $(TOOL_REMOVEMETHODS) $(JDK_OUTPUTDIR)/classes/java/util/jar/Pack200\$$Unpacker.class \
 254                 $(BEANLESS_CLASSES)/java/util/jar/Pack200\$$Unpacker.class addPropertyChangeListener removePropertyChangeListener; \
 255               $(CD) $(BEANLESS_CLASSES) && \
 256                 $(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(CLASSES_TO_DEBEAN) java/util/jar/* ; \
 257             fi
 258         $(MV) $@.tmp $@
 259 
 260 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/resources.jar: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents \
 261                                     $(RESOURCE_JAR_MANIFEST_FILE)
 262         $(ECHO) Creating resources.jar
 263         $(MKDIR) -p $(@D)
 264         $(RM) $@ $@.tmp
 265         $(CD) $(JDK_OUTPUTDIR)/classes && \
 266             $(JAR) $(RT_JAR_CREATE_OPTIONS) $@.tmp $(RESOURCE_JAR_MANIFEST_FILE) \
 267                 @$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents
 268         $(MV) $@.tmp $@
 269 


 270 ##########################################################################################
 271 
 272 ifneq ($(OPENJDK_TARGET_OS), windows)
 273     CHARSETS_EXTRA_FILES:=sun/awt/motif/X11GBK.class \
 274                           sun/awt/motif/X11GB2312\$$$$Decoder.class \
 275                           sun/awt/motif/X11GB2312.class \
 276                           sun/awt/motif/X11KSC5601\$$$$Decoder.class \
 277                           sun/awt/motif/X11KSC5601\$$$$Encoder.class \
 278                           sun/awt/motif/X11GB2312\$$$$Encoder.class \
 279                           sun/awt/motif/X11GBK\$$$$Encoder.class \
 280                           sun/awt/motif/X11KSC5601.class
 281 endif
 282 
 283 $(eval $(call SetupArchive,BUILD_CHARSETS_JAR,,\
 284                 SRCS:=$(JDK_OUTPUTDIR)/classes, \
 285                 SUFFIXES:=.class .dat,\
 286                 INCLUDES:=sun/nio/cs/ext,\
 287                 EXTRA_FILES := sun/awt/HKSCS.class \
 288                                $(CHARSETS_EXTRA_FILES) \
 289                                META-INF/services/java.nio.charset.spi.CharsetProvider, \
 290                 JAR:=$(IMAGES_OUTPUTDIR)/lib/charsets.jar, \
 291                 SKIP_METAINF := true, \
 292                 CHECK_COMPRESS_JAR:=true))
 293 


 294 ##########################################################################################
 295 
 296 ifndef OPENJDK
 297 ifeq ($(ENABLE_JFR), true)
 298     $(eval $(call SetupArchive,BUILD_JFR_JAR,,\
 299                 SRCS:=$(JDK_OUTPUTDIR)/classes,\
 300                 INCLUDES:=com/oracle/jrockit/jfr \
 301                           oracle/jrockit/jfr,\
 302                 JAR:=$(IMAGES_OUTPUTDIR)/lib/jfr.jar,\
 303                 SKIP_METAINF:=true,\
 304                 MANIFEST:=$(MAINMANIFEST), \
 305                 CHECK_COMPRESS_JAR:=true))
 306 

 307 endif
 308 endif
 309 
 310 ##########################################################################################
 311 
 312 $(eval $(call SetupArchive,BUILD_JSSE_JAR,,\
 313                 SRCS:=$(JDK_OUTPUTDIR)/classes,\
 314                 INCLUDES:=sun/security/provider/Sun.class \
 315                           sun/security/rsa/SunRsaSign.class \
 316                           sun/security/ssl \
 317                           com/sun/net/ssl/internal/ssl,\
 318                 JAR:=$(IMAGES_OUTPUTDIR)/lib/jsse.jar,\
 319                 SKIP_METAINF:=true,\
 320                 MANIFEST:=$(MAINMANIFEST), \
 321                 CHECK_COMPRESS_JAR:=true))
 322 


 323 ##########################################################################################
 324 # Create manifest for security jars
 325 
 326 #
 327 # Include these extra attributes for now, should probably take out.
 328 #
 329 JCE_MANIFEST := $(IMAGES_OUTPUTDIR)/lib/_the.security.manifest.mf
 330 $(JCE_MANIFEST): $(MAINMANIFEST)
 331         $(MKDIR) -p $(@D)
 332         $(RM) $@ $@.tmp
 333         $(SED) -e "s#@@RELEASE@@#$(JDK_VERSION)#"       \
 334                -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
 335                $(MAINMANIFEST) >> $@.tmp
 336         $(ECHO) "Extension-Name: javax.crypto" >> $@.tmp
 337         $(ECHO) "Implementation-Vendor-Id: com.sun" >> $@.tmp
 338         $(MV) $@.tmp $@
 339 
 340 ##########################################################################################
 341 
 342 SUNPKCS11_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunpkcs11.jar


 346     SUNPKCS11_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/pkcs11/sunpkcs11.jar
 347 
 348     $(SUNPKCS11_JAR_DST) : $(SUNPKCS11_JAR_SRC)
 349         @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunPKCS11 provider..."
 350         $(install-file)
 351 
 352 else
 353 
 354     $(eval $(call SetupArchive,BUILD_SUNPKCS11_JAR,,\
 355         SRCS:=$(JDK_OUTPUTDIR)/classes, \
 356         SUFFIXES:=.class,\
 357         INCLUDES:=sun/security/pkcs11,\
 358         JAR:=$(SUNPKCS11_JAR_DST), \
 359         MANIFEST:=$(JCE_MANIFEST), \
 360         SKIP_METAINF := true))
 361 
 362     $(SUNPKCS11_JAR_DST): $(JCE_MANIFEST)
 363 
 364 endif
 365 


 366 ##########################################################################################
 367 
 368 SUNEC_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunec.jar
 369 
 370 ifndef OPENJDK
 371 
 372     SUNEC_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ec/sunec.jar
 373 
 374     $(SUNEC_JAR_DST) : $(SUNEC_JAR_SRC)
 375         @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunEC provider..."
 376         $(install-file)
 377 
 378 else
 379 
 380     $(eval $(call SetupArchive,BUILD_SUNEC_JAR,,\
 381                 SRCS:=$(JDK_OUTPUTDIR)/classes, \
 382                 SUFFIXES:=.class,\
 383                 INCLUDES:=sun/security/ec,\
 384                 JAR:=$(SUNEC_JAR_DST), \
 385                 MANIFEST:=$(JCE_MANIFEST), \
 386                 SKIP_METAINF := true))
 387 
 388     $(SUNEC_JAR_DST): $(JCE_MANIFEST)
 389 
 390 endif
 391 

 392 
 393 ##########################################################################################
 394 
 395 $(eval $(call SetupArchive,BUILD_SWINGBEANS_JAR,,\
 396                 SRCS:=$(JDK_OUTPUTDIR)/classes,\
 397                 SUFFIXES:=BeanInfo.class .gif,\
 398                 INCLUDES:=javax/swing sun/swing,\
 399                 EXCLUDES:=javax/swing/plaf,\
 400                 EXTRA_FILES:=javax/swing/SwingBeanInfoBase.class sun/swing/BeanInfoUtils.class,\
 401                 JAR:=$(IMAGES_OUTPUTDIR)/lib/dt.jar,\
 402                 SKIP_METAINF:=true))
 403 


 404 ##########################################################################################
 405 
 406 SUNJCE_PROVIDER_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunjce_provider.jar
 407 
 408 ifndef OPENJDK
 409     SUNJCE_PROVIDER_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/sunjce_provider.jar
 410 
 411     $(SUNJCE_PROVIDER_JAR_DST) : $(SUNJCE_PROVIDER_JAR_SRC)
 412         @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunJCE provider..."
 413         $(install-file)
 414 
 415 else
 416 
 417     $(eval $(call SetupArchive,BUILD_SUNJCE_PROVIDER_JAR,,\
 418                 SRCS:=$(JDK_OUTPUTDIR)/classes, \
 419                 SUFFIXES:=.class,\
 420                 INCLUDES:= com/sun/crypto/provider,\
 421                 JAR:=$(SUNJCE_PROVIDER_JAR_DST), \
 422                 MANIFEST:=$(JCE_MANIFEST), \
 423                 SKIP_METAINF := true))
 424 
 425     $(SUNJCE_PROVIDER_JAR_DST): $(JCE_MANIFEST)
 426 
 427 endif
 428 


 429 JCE_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/jce.jar
 430 
 431 ifndef OPENJDK
 432 
 433     JCE_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/jce.jar
 434 
 435     $(JCE_JAR_DST) : $(JCE_JAR_SRC)
 436         @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt jce.jar..."
 437         $(install-file)
 438 
 439 else
 440 
 441     $(eval $(call SetupArchive,BUILD_JCE_JAR,,\
 442                 SRCS:=$(JDK_OUTPUTDIR)/classes, \
 443                 SUFFIXES:=.class,\
 444                 INCLUDES:= javax/crypto sun/security/internal,\
 445                 JAR:=$(JCE_JAR_DST), \
 446                 MANIFEST:=$(JCE_MANIFEST), \
 447                 SKIP_METAINF := true))
 448 
 449     $(JCE_JAR_DST): $(JCE_MANIFEST)
 450 
 451 endif
 452 

 453 
 454 ##########################################################################################
 455 
 456 US_EXPORT_POLICY_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/security/US_export_policy.jar
 457 
 458 ifndef OPENJDK
 459 
 460 
 461     $(US_EXPORT_POLICY_JAR_DST): $(JDK_TOPDIR)/make/closed/tools/crypto/jce/US_export_policy.jar
 462         $(ECHO) $(LOG_INFO) Copying $(@F)
 463         $(install-file)
 464 
 465 else
 466 
 467     #
 468     # TODO fix so that SetupArchive does not write files into SRCS
 469     #   then we don't need this extra copying
 470     #
 471     # NOTE:  We currently do not place restrictions on our limited export
 472     # policy.  This was not a typo.
 473     #
 474     US_EXPORT_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/unlimited
 475     US_EXPORT_POLICY_JAR_TMP := $(IMAGES_OUTPUTDIR)/US_export_policy_jar.tmp
 476 
 477     $(US_EXPORT_POLICY_JAR_TMP)/% : $(US_EXPORT_POLICY_JAR_SRC_DIR)/%
 478         $(install-file)
 479 
 480     US_EXPORT_POLICY_JAR_DEPS := $(US_EXPORT_POLICY_JAR_TMP)/default_US_export.policy
 481 
 482     $(eval $(call SetupArchive,BUILD_US_EXPORT_POLICY_JAR,$(US_EXPORT_POLICY_JAR_DEPS),\
 483                 SRCS:=$(US_EXPORT_POLICY_JAR_TMP), \
 484                 SUFFIXES:= .policy,\
 485                 JAR:=$(US_EXPORT_POLICY_JAR_DST), \
 486                 EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \
 487                 SKIP_METAINF := true))
 488 
 489 endif
 490 


 491 ##########################################################################################
 492 
 493 LOCAL_POLICY_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/security/local_policy.jar
 494 
 495 ifndef OPENJDK
 496 
 497     $(LOCAL_POLICY_JAR_DST): $(JDK_TOPDIR)/make/closed/tools/crypto/jce/local_policy.jar
 498         $(ECHO) $(LOG_INFO) Copying $(@F)
 499         $(install-file)
 500 
 501 else
 502 
 503     #
 504     # TODO fix so that SetupArchive does not write files into SRCS
 505     #   then we don't need this extra copying
 506     #
 507     LOCAL_POLICY_JAR_TMP := $(IMAGES_OUTPUTDIR)/local_policy_jar.tmp
 508 
 509     ifeq ($(UNLIMITED_CRYPTO), true)
 510         LOCAL_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/unlimited


 512         LOCAL_POLICY_JAR_ATTR := Crypto-Strength: unlimited
 513     else
 514         LOCAL_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/limited
 515         LOCAL_POLICY_JAR_DEPS := $(LOCAL_POLICY_JAR_TMP)/exempt_local.policy \
 516                                  $(LOCAL_POLICY_JAR_TMP)/default_local.policy
 517         LOCAL_POLICY_JAR_ATTR := Crypto-Strength: limited
 518     endif
 519 
 520     $(LOCAL_POLICY_JAR_TMP)/% : $(LOCAL_POLICY_JAR_SRC_DIR)/%
 521         $(install-file)
 522 
 523     $(eval $(call SetupArchive,BUILD_LOCAL_POLICY_JAR,$(LOCAL_POLICY_JAR_DEPS),\
 524                 SRCS:=$(LOCAL_POLICY_JAR_TMP),\
 525                 SUFFIXES:= .policy,\
 526                 JAR:=$(LOCAL_POLICY_JAR_DST), \
 527                 EXTRA_MANIFEST_ATTR := $(LOCAL_POLICY_JAR_ATTR), \
 528                 SKIP_METAINF := true))
 529 
 530 endif
 531 


 532 ##########################################################################################
 533 
 534 ifeq ($(OPENJDK_TARGET_OS),windows)
 535 
 536 SUNMSCAPI_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunmscapi.jar
 537 
 538 ifndef OPENJDK
 539 SUNMSCAPI_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/mscapi/sunmscapi.jar
 540 
 541 $(SUNMSCAPI_JAR_DST) : $(SUNMSCAPI_JAR_SRC)
 542         @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunMSCAPI provider..."
 543         $(install-file)
 544 
 545 else
 546 
 547 $(eval $(call SetupArchive,BUILD_SUNMSCAPI_JAR,,\
 548                 SRCS:=$(JDK_OUTPUTDIR)/classes, \
 549                 SUFFIXES:=.class,\
 550                 INCLUDES:= sun/security/mscapi,\
 551                 JAR:=$(SUNMSCAPI_JAR_DST), \
 552                 SKIP_METAINF:=true))
 553 endif
 554 


 555 endif
 556 
 557 ##########################################################################################
 558 
 559 ifeq ($(OPENJDK_TARGET_OS),solaris)
 560 ifndef OPENJDK
 561 
 562 UCRYPTO_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/ucrypto.jar
 563 UCRYPTO_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ucrypto/ucrypto.jar
 564 
 565 $(UCRYPTO_JAR_DST) : $(UCRYPTO_JAR_SRC)
 566         @$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt OracleUcrypto provider..."
 567         $(install-file)
 568 


 569 endif
 570 endif
 571 
 572 ##########################################################################################
 573 
 574 # Get the CLDRVERSION
 575 include GensrcCLDR.gmk
 576 
 577 CLDRDATA_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/cldrdata.jar
 578 
 579 $(eval $(call SetupArchive,BUILD_CLDRDATA_JAR,,\
 580                 SRCS:=$(JDK_OUTPUTDIR)/classes,\
 581                 SUFFIXES:=.class,\
 582                 INCLUDES:=sun/text/resources/cldr \
 583                           sun/util/cldr \
 584                           sun/util/resources/cldr,\
 585                 EXCLUDES:=sun/util/cldr/CLDRLocaleProviderAdapter,\
 586                 JAR:=$(CLDRDATA_JAR_DST),\
 587                 EXTRA_MANIFEST_ATTR:=CLDR-Version: $(CLDRVERSION),\
 588                 SKIP_METAINF:=true))
 589 


 590 ##########################################################################################
 591 
 592 TOOLS_JAR_INCLUDES := \
 593         sun/tools/asm           \
 594         sun/tools/jar           \
 595         sun/tools/java          \
 596         sun/tools/javac         \
 597         sun/tools/jcmd          \
 598         sun/tools/jps           \
 599         sun/tools/jstat         \
 600         sun/tools/jstatd        \
 601         sun/tools/native2ascii  \
 602         sun/tools/serialver     \
 603         sun/tools/tree          \
 604         sun/tools/util          \
 605         sun/security/tools/jarsigner \
 606         sun/rmi/rmic            \
 607         sun/applet              \
 608         sun/jvmstat             \
 609         com/sun/javadoc         \


 641         sun/tools/jmap
 642 
 643 # The sjavac tools is not ready for public consumption.
 644 TOOLS_JAR_EXCLUDES=com/sun/tools/sjavac
 645 
 646 $(eval $(call SetupArchive,BUILD_TOOLS_JAR,,\
 647                 SRCS:=$(JDK_OUTPUTDIR)/classes,\
 648                 SUFFIXES:=.class .prp .gif .properties .xml .css .xsd .js .html .txt .java \
 649                           Tool aliasmap options,\
 650                 INCLUDES:=$(TOOLS_JAR_INCLUDES),\
 651                 EXCLUDES:=$(TOOLS_JAR_EXCLUDES),\
 652                 EXTRA_FILES:=META-INF/services/com.sun.jdi.connect.Connector \
 653                              META-INF/services/com.sun.jdi.connect.spi.TransportService \
 654                              META-INF/services/com.sun.tools.attach.spi.AttachProvider \
 655                              META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin \
 656                              META-INF/services/com.sun.tools.internal.xjc.Plugin,\
 657                 JAR:=$(IMAGES_OUTPUTDIR)/lib/tools.jar,\
 658                 SKIP_METAINF:=true, \
 659                 CHECK_COMPRESS_JAR:=true))
 660 

 661 
 662 ##########################################################################################
 663 
 664 include javadoc/CORE_PKGS.gmk
 665 include javadoc/NON_CORE_PKGS.gmk
 666 
 667 # The compiler should not issue a "Proprietary" warning when compiling
 668 # classes in the com.sun.java.swing.plaf packages, since we've always
 669 # allowed, and even advocated, extending them (see bug 6476749).
 670 #
 671 # This approach is NOT to be used as a general purpose way to avoid such
 672 # compiler warnings for non-core packages. The correct way is to document
 673 # the packages in NON_CORE_PKGS.gmk, and include them in the NON_CORE_PKGS
 674 # definition.
 675 #
 676 # Swing has taken this approach only as a temporary measure to avoid
 677 # the compiler warnings until we can properly document these packages.
 678 # This is covered under 6491853.
 679 EXCLUDE_PROPWARN_PKGS = com.sun.java.swing.plaf.windows  \
 680                         com.sun.java.swing.plaf.motif    \
 681                         com.sun.java.swing.plaf.gtk
 682 
 683 #
 684 # Include the exported private packages in ct.sym.
 685 # This is an interim solution until the ct.sym is replaced
 686 # with a new module system (being discussed for JDK 8).
 687 #
 688 EXPORTED_PRIVATE_PKGS = com.sun.servicetag \
 689                         com.oracle.net \
 690                         com.oracle.nio
 691 
 692 $(IMAGES_OUTPUTDIR)/symbols/_the.symbols: $(IMAGES_OUTPUTDIR)/lib/rt.jar
 693         $(RM) -r $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym
 694         $(MKDIR) -p $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym
 695         $(JAVA) $(JAVAC_JARS) \
 696             -bootclasspath $(JDK_OUTPUTDIR)/classes \
 697             -XDprocess.packages -proc:only \
 698             -processor com.sun.tools.javac.sym.CreateSymbols \
 699             -Acom.sun.tools.javac.sym.Jar=$(IMAGES_OUTPUTDIR)/lib/rt.jar \
 700             -Acom.sun.tools.javac.sym.Dest=$(IMAGES_OUTPUTDIR)/symbols/META-INF/sym/rt.jar \
 701             -Acom.sun.tools.javac.sym.Profiles=profile-rtjar-includes.txt \
 702             $(CORE_PKGS) $(NON_CORE_PKGS) $(EXCLUDE_PROPWARN_PKGS) $(EXPORTED_PRIVATE_PKGS)
 703         $(TOUCH) $@
 704 
 705 $(shell $(MKDIR) -p $(IMAGES_OUTPUTDIR)/symbols)
 706 $(eval $(call SetupArchive,BUILD_CT_SYM,$(IMAGES_OUTPUTDIR)/symbols/_the.symbols,\
 707                 SRCS:=$(IMAGES_OUTPUTDIR)/symbols,\
 708                 INCLUDES:=META-INF/sym,\
 709                 JAR:=$(IMAGES_OUTPUTDIR)/lib/ct.sym, \
 710                 CHECK_COMPRESS_JAR:=true))
 711 

 712 
 713 ##########################################################################################
 714 
 715 SRC_ZIP_INCLUDES = \
 716         java/applet                     \
 717         java/awt                        \
 718         java/beans                      \
 719         java/io                         \
 720         java/lang                       \
 721         java/math                       \
 722         java/net                        \
 723         java/nio                        \
 724         java/rmi                        \
 725         java/security                   \
 726         java/sql                        \
 727         java/text                       \
 728         java/util                       \
 729         com/sun/corba                   \
 730         com/sun/image/codec/jpeg        \
 731         com/sun/imageio                 \


 777                         $(LAUNCHER_SRC_FILES)))
 778 
 779 $(IMAGES_OUTPUTDIR)/src/launcher/%: $(JDK_TOPDIR)/src/share/bin/%
 780         $(install-file)
 781 
 782 $(IMAGES_OUTPUTDIR)/src/launcher/%: $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/%
 783         $(install-file)
 784 
 785 $(IMAGES_OUTPUTDIR)/src.zip: $(LAUNCHER_ZIP_SRC)
 786 
 787 # This dir needs to exist before macro is evaluated to avoid warning from find.
 788 $(eval $(call MakeDir,$(IMAGES_OUTPUTDIR)/src))
 789 $(eval $(call SetupZipArchive,BUILD_SRC_ZIP,\
 790                 SRC:=$(SRC_ZIP_SRCS) $(IMAGES_OUTPUTDIR)/src,\
 791                 INCLUDES:=$(SRC_ZIP_INCLUDES) launcher,\
 792                 EXCLUDES:=javax/swing/beaninfo,\
 793                 SUFFIXES:=.java .c .h,\
 794                 ZIP:=$(IMAGES_OUTPUTDIR)/src.zip,\
 795                 EXTRA_DEPS:=$(LAUNCHER_ZIP_SRC)))
 796 


 797 ##########################################################################################
 798 
 799 #
 800 # This is an empty jar (only contains manifest) and fits poorly into framework...
 801 #   create simple rule instead
 802 #
 803 $(IMAGES_OUTPUTDIR)/lib/management-agent.jar : $(JDK_TOPDIR)/src/share/classes/sun/management/manifest
 804         $(JAR) cfm $@ $<
 805 


 806 ##########################################################################################
 807 
 808 $(IMAGES_OUTPUTDIR)/lib/ext/zipfs.jar : $(JDK_OUTPUTDIR)/demo/nio/zipfs/zipfs.jar
 809         $(install-file)
 810 


 811 ##########################################################################################
 812 
 813 ifeq ($(OPENJDK_TARGET_OS),macosx)
 814     $(eval $(call SetupArchive,BUILD_JOBJC_JAR,,\
 815                 SRCS:=$(JDK_OUTPUTDIR)/jobjc_classes,\
 816                 JAR:=$(IMAGES_OUTPUTDIR)/lib/JObjC.jar, \
 817                 JARINDEX:=true))


 818 endif
 819 
 820 ##########################################################################################
 821 
 822 ifndef OPENJDK
 823     $(eval $(call SetupArchive,BUILD_ALT_RT_JAR,,\
 824                 SRCS:=$(JDK_OUTPUTDIR)/altclasses_classes,\
 825                 JAR:=$(IMAGES_OUTPUTDIR)/lib/alt-rt.jar))
 826 

 827 endif
 828 
 829 ##########################################################################################
 830 
 831 # This file is imported from hotspot in Import.gmk. Copying it into images/lib so that
 832 # all jars can be found in one place when creating images in Images.gmk. It needs to be
 833 # done here so that clean targets can be simple and accurate.
 834 $(IMAGES_OUTPUTDIR)/lib/sa-jdi.jar: $(JDK_OUTPUTDIR)/lib/sa-jdi.jar
 835         $(install-file)


 836 
 837 ##########################################################################################
 838 
 839 -include $(CUSTOM_MAKE_DIR)/CreateJars.gmk
 840 
 841 ##########################################################################################
 842 
 843 all: $(JARS)
 844 
 845 .PHONY: default all
makefiles/CreateJars.gmk
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File