< prev index next >

jdk/make/gendata/GendataBreakIterator.gmk

Print this page




  27 # Make file for generating BreakIterator data files.
  28 #
  29 
  30 # input
  31 #
  32 # Notes: sun.text.resources.BreakIteratorRules no longer goes to runtime.
  33 # They are used at JDK build phase in order to create $(BIFILES) which
  34 # are used on runtime instead.
  35 #
  36 TEXT_SRCDIR := $(JDK_TOPDIR)/src/java.base/share/classes \
  37     $(JDK_TOPDIR)/src/jdk.localedata/share/classes
  38 TEXT_PKG := sun/text/resources
  39 TEXT_SOURCES := $(TEXT_PKG)/BreakIteratorRules.java \
  40     $(TEXT_PKG)/BreakIteratorInfo.java \
  41     $(TEXT_PKG)/th/BreakIteratorRules_th.java \
  42     $(TEXT_PKG)/th/BreakIteratorInfo_th.java
  43 
  44 # Generate BreakIteratorData
  45 BREAK_ITERATOR_CLASSES := $(BUILDTOOLS_OUTPUTDIR)/break_iterator_classes
  46 
  47 # JAVAC_SOURCE_PATH_OVERRIDE is set to isolate the compile to just those
  48 # two files in that directory and not get anything implicit from
  49 # surrounding directories which aren't jdk N-1 compatible.
  50 # Because we are targeting jdk N-1, but the surrounding source code is jdk N.
  51 # These two files should be moved out to a build tool! We have to disable
  52 # sjavac here as well.
  53 $(eval $(call SetupJavaCompilation,BUILD_BREAKITERATOR, \
  54     SETUP := GENERATE_OLDBYTECODE, \
  55     SRC := $(TEXT_SRCDIR), \
  56     DISABLE_SJAVAC := true, \
  57     JAVAC_SOURCE_PATH_OVERRIDE := $(patsubst %, %/$(TEXT_PKG), $(TEXT_SRCDIR)), \
  58     INCLUDES := $(TEXT_PKG), \
  59     INCLUDE_FILES := $(TEXT_SOURCES), \
  60     BIN := $(BREAK_ITERATOR_CLASSES)))
  61 
  62 # Generate data resource files.
  63 # input
  64 UNICODEDATA := $(JDK_TOPDIR)/make/data/unicodedata/UnicodeData.txt
  65 
  66 # output
  67 BASE_DATA_PKG_DIR := $(JDK_OUTPUTDIR)/modules/java.base/sun/text/resources
  68 SL_DATA_PKG_DIR := $(JDK_OUTPUTDIR)/modules/jdk.localedata/sun/text/resources
  69 BIFILES := $(BASE_DATA_PKG_DIR)/CharacterBreakIteratorData \
  70     $(BASE_DATA_PKG_DIR)/WordBreakIteratorData \
  71     $(BASE_DATA_PKG_DIR)/LineBreakIteratorData \
  72     $(BASE_DATA_PKG_DIR)/SentenceBreakIteratorData
  73 BIFILES_TH := $(SA_DATA_PKG_DIR)/th/WordBreakIteratorData_th \
  74     $(SA_DATA_PKG_DIR)/th/LineBreakIteratorData_th
  75 
  76 $(BIFILES): $(BASE_DATA_PKG_DIR)/_the.bifiles
  77 $(BASE_DATA_PKG_DIR)/_the.bifiles: JAVA_FLAGS += -Xbootclasspath/p:$(BREAK_ITERATOR_CLASSES)




  27 # Make file for generating BreakIterator data files.
  28 #
  29 
  30 # input
  31 #
  32 # Notes: sun.text.resources.BreakIteratorRules no longer goes to runtime.
  33 # They are used at JDK build phase in order to create $(BIFILES) which
  34 # are used on runtime instead.
  35 #
  36 TEXT_SRCDIR := $(JDK_TOPDIR)/src/java.base/share/classes \
  37     $(JDK_TOPDIR)/src/jdk.localedata/share/classes
  38 TEXT_PKG := sun/text/resources
  39 TEXT_SOURCES := $(TEXT_PKG)/BreakIteratorRules.java \
  40     $(TEXT_PKG)/BreakIteratorInfo.java \
  41     $(TEXT_PKG)/th/BreakIteratorRules_th.java \
  42     $(TEXT_PKG)/th/BreakIteratorInfo_th.java
  43 
  44 # Generate BreakIteratorData
  45 BREAK_ITERATOR_CLASSES := $(BUILDTOOLS_OUTPUTDIR)/break_iterator_classes
  46 
  47 # These two files should be moved out to a build tool!





  48 $(eval $(call SetupJavaCompilation,BUILD_BREAKITERATOR, \
  49     SETUP := GENERATE_OLDBYTECODE, \
  50     SRC := $(TEXT_SRCDIR), \


  51     INCLUDES := $(TEXT_PKG), \
  52     INCLUDE_FILES := $(TEXT_SOURCES), \
  53     BIN := $(BREAK_ITERATOR_CLASSES)))
  54 
  55 # Generate data resource files.
  56 # input
  57 UNICODEDATA := $(JDK_TOPDIR)/make/data/unicodedata/UnicodeData.txt
  58 
  59 # output
  60 BASE_DATA_PKG_DIR := $(JDK_OUTPUTDIR)/modules/java.base/sun/text/resources
  61 SL_DATA_PKG_DIR := $(JDK_OUTPUTDIR)/modules/jdk.localedata/sun/text/resources
  62 BIFILES := $(BASE_DATA_PKG_DIR)/CharacterBreakIteratorData \
  63     $(BASE_DATA_PKG_DIR)/WordBreakIteratorData \
  64     $(BASE_DATA_PKG_DIR)/LineBreakIteratorData \
  65     $(BASE_DATA_PKG_DIR)/SentenceBreakIteratorData
  66 BIFILES_TH := $(SA_DATA_PKG_DIR)/th/WordBreakIteratorData_th \
  67     $(SA_DATA_PKG_DIR)/th/LineBreakIteratorData_th
  68 
  69 $(BIFILES): $(BASE_DATA_PKG_DIR)/_the.bifiles
  70 $(BASE_DATA_PKG_DIR)/_the.bifiles: JAVA_FLAGS += -Xbootclasspath/p:$(BREAK_ITERATOR_CLASSES)


< prev index next >