makefiles/GendataBreakIterator.gmk

Print this page




  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 #
  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/share/classes
  37 TEXT_PKG  = sun/text/resources
  38 TEXT_SOURCES =  %$(TEXT_PKG)/BreakIteratorRules.java \
  39                 %$(TEXT_PKG)/BreakIteratorInfo.java \
  40                 %$(TEXT_PKG)/BreakIteratorRules_th.java \
  41                 %$(TEXT_PKG)/BreakIteratorInfo_th.java
  42 
  43 # Generate BreakIteratorData
  44 BREAK_ITERATOR_DIR = $(JDK_OUTPUTDIR)/break_iterator
  45 BREAK_ITERATOR_CLASSES = $(BREAK_ITERATOR_DIR)/classes
  46 
  47 # JAVAC_SOURCE_PATH_UGLY_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 6 compatible. 
  50 # Because we are targeting jdk 6, but the surrounding source code is jdk 7. Ugh.
  51 # These two files should be moved out to a build tool!
  52 $(eval $(call SetupJavaCompilation,BUILD_BREAKITERATOR,\
  53                 SETUP:=GENERATE_OLDBYTECODE,\
  54                 SRC:=$(TEXT_SRCDIR),\
  55                 JAVAC_SOURCE_PATH_UGLY_OVERRIDE:=$(TEXT_SRCDIR)/$(TEXT_PKG),\
  56                 INCLUDES:=$(TEXT_PKG),\
  57                 INCLUDE_FILES:=$(TEXT_SOURCES),\
  58                 BIN:=$(BREAK_ITERATOR_CLASSES)))
  59 
  60 # Generate data resource files.
  61 # input




  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 #
  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/share/classes
  37 TEXT_PKG  = sun/text/resources
  38 TEXT_SOURCES =  $(TEXT_PKG)/BreakIteratorRules.java \
  39                 $(TEXT_PKG)/BreakIteratorInfo.java \
  40                 $(TEXT_PKG)/BreakIteratorRules_th.java \
  41                 $(TEXT_PKG)/BreakIteratorInfo_th.java
  42 
  43 # Generate BreakIteratorData
  44 BREAK_ITERATOR_DIR = $(JDK_OUTPUTDIR)/break_iterator
  45 BREAK_ITERATOR_CLASSES = $(BREAK_ITERATOR_DIR)/classes
  46 
  47 # JAVAC_SOURCE_PATH_UGLY_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 6 compatible. 
  50 # Because we are targeting jdk 6, but the surrounding source code is jdk 7. Ugh.
  51 # These two files should be moved out to a build tool!
  52 $(eval $(call SetupJavaCompilation,BUILD_BREAKITERATOR,\
  53                 SETUP:=GENERATE_OLDBYTECODE,\
  54                 SRC:=$(TEXT_SRCDIR),\
  55                 JAVAC_SOURCE_PATH_UGLY_OVERRIDE:=$(TEXT_SRCDIR)/$(TEXT_PKG),\
  56                 INCLUDES:=$(TEXT_PKG),\
  57                 INCLUDE_FILES:=$(TEXT_SOURCES),\
  58                 BIN:=$(BREAK_ITERATOR_CLASSES)))
  59 
  60 # Generate data resource files.
  61 # input