make/CreateJars.gmk

Print this page
rev 10818 : 8061382: Separate CLDR locale data from JRE locale data
Reviewed-by:


  63 ##########################################################################################
  64 
  65 $(eval $(call SetupArchive,BUILD_DNS_JAR, , \
  66     SRCS := $(JDK_OUTPUTDIR)/modules/jdk.naming.dns, \
  67     INCLUDES := sun/net/spi/nameservice/dns, \
  68     EXTRA_FILES := META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor, \
  69     JAR := $(IMAGES_OUTPUTDIR)/lib/ext/dnsns.jar, \
  70     SKIP_METAINF := true))
  71 
  72 
  73 ##########################################################################################
  74 
  75 LOCALEDATA_INCLUDE_LOCALES := ar be bg ca cs da de el es et fi fr ga hi hr hu in is it \
  76     iw ja ko lt lv mk ms mt nl no pl pt ro ru sk sl sq sr sv \
  77     th tr uk vi zh
  78 
  79 LOCALEDATA_INCLUDES := sun/util/resources/provider/NonEnLocaleDataMetaInfo.class
  80 LOCALEDATA_INCLUDES += $(addprefix sun/text/resources/, $(LOCALEDATA_INCLUDE_LOCALES)) \
  81     $(addprefix sun/util/resources/, $(LOCALEDATA_INCLUDE_LOCALES))
  82 
  83 LOCALEDATA_SERVICES_DIR := $(IMAGES_OUTPUTDIR)/localemetainfo
  84 
  85 LOCALEDATA_METAINF_SERVICES := $(LOCALEDATA_SERVICES_DIR)/META-INF/services/sun.util.locale.provider.LocaleDataMetaInfo
  86 
  87 $(LOCALEDATA_METAINF_SERVICES): $(JDK_TOPDIR)/src/jdk.localedata/META-INF/localedata-services/sun.util.locale.provider.LocaleDataMetaInfo
  88         $(install-file)
  89 
  90 $(eval $(call SetupArchive,BUILD_LOCALEDATA_JAR, \
  91     $(LOCALEDATA_METAINF_SERVICES), \
  92     SRCS := $(JDK_OUTPUTDIR)/modules/jdk.localedata \
  93         $(LOCALEDATA_SERVICES_DIR), \
  94     SUFFIXES := .class _dict _th, \
  95     INCLUDES := $(LOCALEDATA_INCLUDES), \
  96     EXTRA_FILES := META-INF/services/sun.util.locale.provider.LocaleDataMetaInfo, \
  97     JAR := $(IMAGES_OUTPUTDIR)/lib/ext/localedata.jar, \
  98     SKIP_METAINF := true))
  99 
 100 ##########################################################################################
 101 #
 102 # Different variants of rt.jar are built based on the current profile. The output
 103 # directory is augmented with the profile name so that the final jar file and all the
 104 # intermediary list files will be in directory. This has the form lib$PROFILE rather than
 105 # lib/$PROFILE so that it won't get copied as part of the image generation process.
 106 # Each profile customizes the RT_JAR_EXCLUDES variable.
 107 #
 108 ##########################################################################################
 109 
 110 # Full JRE exclude list for rt.jar and resources.jar
 111 # This value should exclude types destined for jars other than rt.jar and resources.jar.
 112 # When building a Profile this value augments the profile specific exclusions
 113 RT_JAR_EXCLUDES += \


 424     CHECK_COMPRESS_JAR := true))
 425 
 426 ##########################################################################################
 427 
 428 $(eval $(call SetupArchive,BUILD_SWINGBEANS_JAR, , \
 429     SRCS := $(JDK_OUTPUTDIR)/modules/java.desktop, \
 430     SUFFIXES := BeanInfo.class .gif, \
 431     INCLUDES := javax/swing sun/swing, \
 432     EXCLUDES := javax/swing/plaf, \
 433     EXTRA_FILES := javax/swing/SwingBeanInfoBase.class sun/swing/BeanInfoUtils.class, \
 434     JAR := $(IMAGES_OUTPUTDIR)/lib/dt.jar, \
 435     SKIP_METAINF := true))
 436 
 437 ##########################################################################################
 438 
 439 # Get the CLDRVERSION
 440 include gensrc/GensrcCLDR.gmk
 441 
 442 CLDRDATA_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/cldrdata.jar
 443 
 444 CLDR_SERVICES_DIR := $(IMAGES_OUTPUTDIR)/cldrmetainfo
 445 
 446 CLDR_METAINF_SERVICES := $(CLDR_SERVICES_DIR)/META-INF/services/sun.util.locale.provider.LocaleDataMetaInfo
 447 
 448 $(CLDR_METAINF_SERVICES): $(JDK_TOPDIR)/src/jdk.localedata/META-INF/cldrdata-services/sun.util.locale.provider.LocaleDataMetaInfo
 449         $(install-file)
 450 
 451 $(eval $(call SetupArchive,BUILD_CLDRDATA_JAR, \
 452     $(CLDR_METAINF_SERVICES), \
 453     SRCS := $(JDK_OUTPUTDIR)/modules/jdk.localedata \
 454         $(CLDR_SERVICES_DIR), \
 455     SUFFIXES := .class, \
 456     INCLUDES := sun/text/resources/cldr \
 457         sun/util/resources/cldr, \
 458     EXTRA_FILES := META-INF/services/sun.util.locale.provider.LocaleDataMetaInfo, \
 459     JAR := $(CLDRDATA_JAR_DST), \
 460     EXTRA_MANIFEST_ATTR := CLDR-Version: $(CLDRVERSION), \
 461     SKIP_METAINF := true))
 462 
 463 ##########################################################################################
 464 
 465 TOOLS_JAR_INCLUDES := \
 466     com/sun/codemodel \
 467     com/sun/istack/internal/tools \
 468     com/sun/jarsigner \
 469     com/sun/javadoc \
 470     com/sun/jdi \
 471     com/sun/source \
 472     com/sun/tools/attach \
 473     com/sun/tools/classfile \
 474     com/sun/tools/corba \




  63 ##########################################################################################
  64 
  65 $(eval $(call SetupArchive,BUILD_DNS_JAR, , \
  66     SRCS := $(JDK_OUTPUTDIR)/modules/jdk.naming.dns, \
  67     INCLUDES := sun/net/spi/nameservice/dns, \
  68     EXTRA_FILES := META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor, \
  69     JAR := $(IMAGES_OUTPUTDIR)/lib/ext/dnsns.jar, \
  70     SKIP_METAINF := true))
  71 
  72 
  73 ##########################################################################################
  74 
  75 LOCALEDATA_INCLUDE_LOCALES := ar be bg ca cs da de el es et fi fr ga hi hr hu in is it \
  76     iw ja ko lt lv mk ms mt nl no pl pt ro ru sk sl sq sr sv \
  77     th tr uk vi zh
  78 
  79 LOCALEDATA_INCLUDES := sun/util/resources/provider/NonEnLocaleDataMetaInfo.class
  80 LOCALEDATA_INCLUDES += $(addprefix sun/text/resources/, $(LOCALEDATA_INCLUDE_LOCALES)) \
  81     $(addprefix sun/util/resources/, $(LOCALEDATA_INCLUDE_LOCALES))
  82 
  83 $(eval $(call SetupArchive,BUILD_LOCALEDATA_JAR, , \
  84     SRCS := $(JDK_OUTPUTDIR)/modules/jdk.localedata, \









  85     SUFFIXES := .class _dict _th, \
  86     INCLUDES := $(LOCALEDATA_INCLUDES), \
  87     EXTRA_FILES := META-INF/services/sun.util.locale.provider.LocaleDataMetaInfo, \
  88     JAR := $(IMAGES_OUTPUTDIR)/lib/ext/localedata.jar, \
  89     SKIP_METAINF := true))
  90 
  91 ##########################################################################################
  92 #
  93 # Different variants of rt.jar are built based on the current profile. The output
  94 # directory is augmented with the profile name so that the final jar file and all the
  95 # intermediary list files will be in directory. This has the form lib$PROFILE rather than
  96 # lib/$PROFILE so that it won't get copied as part of the image generation process.
  97 # Each profile customizes the RT_JAR_EXCLUDES variable.
  98 #
  99 ##########################################################################################
 100 
 101 # Full JRE exclude list for rt.jar and resources.jar
 102 # This value should exclude types destined for jars other than rt.jar and resources.jar.
 103 # When building a Profile this value augments the profile specific exclusions
 104 RT_JAR_EXCLUDES += \


 415     CHECK_COMPRESS_JAR := true))
 416 
 417 ##########################################################################################
 418 
 419 $(eval $(call SetupArchive,BUILD_SWINGBEANS_JAR, , \
 420     SRCS := $(JDK_OUTPUTDIR)/modules/java.desktop, \
 421     SUFFIXES := BeanInfo.class .gif, \
 422     INCLUDES := javax/swing sun/swing, \
 423     EXCLUDES := javax/swing/plaf, \
 424     EXTRA_FILES := javax/swing/SwingBeanInfoBase.class sun/swing/BeanInfoUtils.class, \
 425     JAR := $(IMAGES_OUTPUTDIR)/lib/dt.jar, \
 426     SKIP_METAINF := true))
 427 
 428 ##########################################################################################
 429 
 430 # Get the CLDRVERSION
 431 include gensrc/GensrcCLDR.gmk
 432 
 433 CLDRDATA_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/cldrdata.jar
 434 
 435 $(eval $(call SetupArchive,BUILD_CLDRDATA_JAR, , \
 436     SRCS := $(JDK_OUTPUTDIR)/modules/jdk.localedata.cldr, \









 437     SUFFIXES := .class, \
 438     INCLUDES := sun/text/resources/cldr \
 439         sun/util/resources/cldr, \
 440     EXTRA_FILES := META-INF/services/sun.util.locale.provider.LocaleDataMetaInfo, \
 441     JAR := $(CLDRDATA_JAR_DST), \
 442     EXTRA_MANIFEST_ATTR := CLDR-Version: $(CLDRVERSION), \
 443     SKIP_METAINF := true))
 444 
 445 ##########################################################################################
 446 
 447 TOOLS_JAR_INCLUDES := \
 448     com/sun/codemodel \
 449     com/sun/istack/internal/tools \
 450     com/sun/jarsigner \
 451     com/sun/javadoc \
 452     com/sun/jdi \
 453     com/sun/source \
 454     com/sun/tools/attach \
 455     com/sun/tools/classfile \
 456     com/sun/tools/corba \