2016-02-19 17:55:37 +00:00
|
|
|
|
2014-12-03 14:22:58 +00:00
|
|
|
# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
|
2012-04-10 15:22:03 +00:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# This code is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License version 2 only, as
|
|
|
|
# published by the Free Software Foundation. Oracle designates this
|
|
|
|
# particular file as subject to the "Classpath" exception as provided
|
|
|
|
# by Oracle in the LICENSE file that accompanied this code.
|
|
|
|
#
|
|
|
|
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
# accompanied this code).
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License version
|
|
|
|
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
#
|
|
|
|
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
# or visit www.oracle.com if you need additional information or have any
|
|
|
|
# questions.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Make file for generating BreakIterator data files.
|
|
|
|
#
|
|
|
|
|
|
|
|
# input
|
|
|
|
#
|
2013-10-10 13:06:21 +00:00
|
|
|
# Notes: sun.text.resources.BreakIteratorRules no longer goes to runtime.
|
|
|
|
# They are used at JDK build phase in order to create $(BIFILES) which
|
|
|
|
# are used on runtime instead.
|
2012-04-10 15:22:03 +00:00
|
|
|
#
|
2014-12-03 14:22:58 +00:00
|
|
|
TEXT_SRCDIR := $(JDK_TOPDIR)/src/java.base/share/classes \
|
2014-08-17 14:54:13 +00:00
|
|
|
$(JDK_TOPDIR)/src/jdk.localedata/share/classes
|
2014-12-03 14:22:58 +00:00
|
|
|
TEXT_PKG := sun/text/resources
|
2016-02-19 17:55:37 +00:00
|
|
|
TEXT_PKG_LD := $(TEXT_PKG)/ext
|
2014-12-03 14:22:58 +00:00
|
|
|
TEXT_SOURCES := $(TEXT_PKG)/BreakIteratorRules.java \
|
2013-10-10 13:06:21 +00:00
|
|
|
$(TEXT_PKG)/BreakIteratorInfo.java \
|
2016-02-19 17:55:37 +00:00
|
|
|
$(TEXT_PKG_LD)/BreakIteratorRules_th.java \
|
|
|
|
$(TEXT_PKG_LD)/BreakIteratorInfo_th.java
|
2012-04-10 15:22:03 +00:00
|
|
|
|
|
|
|
# Generate BreakIteratorData
|
2014-12-03 14:22:58 +00:00
|
|
|
BREAK_ITERATOR_CLASSES := $(BUILDTOOLS_OUTPUTDIR)/break_iterator_classes
|
2012-04-10 15:22:03 +00:00
|
|
|
|
2014-12-09 07:57:41 +00:00
|
|
|
# These two files should be moved out to a build tool!
|
2013-10-10 13:06:21 +00:00
|
|
|
$(eval $(call SetupJavaCompilation,BUILD_BREAKITERATOR, \
|
|
|
|
SETUP := GENERATE_OLDBYTECODE, \
|
|
|
|
SRC := $(TEXT_SRCDIR), \
|
|
|
|
INCLUDE_FILES := $(TEXT_SOURCES), \
|
|
|
|
BIN := $(BREAK_ITERATOR_CLASSES)))
|
2012-04-10 15:22:03 +00:00
|
|
|
|
|
|
|
# Generate data resource files.
|
|
|
|
# input
|
2014-12-03 14:22:58 +00:00
|
|
|
UNICODEDATA := $(JDK_TOPDIR)/make/data/unicodedata/UnicodeData.txt
|
2012-04-10 15:22:03 +00:00
|
|
|
|
|
|
|
# output
|
2014-12-03 14:22:58 +00:00
|
|
|
BASE_DATA_PKG_DIR := $(JDK_OUTPUTDIR)/modules/java.base/sun/text/resources
|
2015-11-24 14:46:14 +00:00
|
|
|
LD_DATA_PKG_DIR := $(JDK_OUTPUTDIR)/modules/jdk.localedata/sun/text/resources
|
2014-12-03 14:22:58 +00:00
|
|
|
BIFILES := $(BASE_DATA_PKG_DIR)/CharacterBreakIteratorData \
|
2014-08-17 14:54:13 +00:00
|
|
|
$(BASE_DATA_PKG_DIR)/WordBreakIteratorData \
|
|
|
|
$(BASE_DATA_PKG_DIR)/LineBreakIteratorData \
|
|
|
|
$(BASE_DATA_PKG_DIR)/SentenceBreakIteratorData
|
2016-02-19 17:55:37 +00:00
|
|
|
BIFILES_TH := $(LD_DATA_PKG_DIR)/WordBreakIteratorData_th \
|
|
|
|
$(LD_DATA_PKG_DIR)/LineBreakIteratorData_th
|
2012-04-10 15:22:03 +00:00
|
|
|
|
2014-08-17 14:54:13 +00:00
|
|
|
$(BIFILES): $(BASE_DATA_PKG_DIR)/_the.bifiles
|
|
|
|
$(BASE_DATA_PKG_DIR)/_the.bifiles: JAVA_FLAGS += -Xbootclasspath/p:$(BREAK_ITERATOR_CLASSES)
|
|
|
|
$(BASE_DATA_PKG_DIR)/_the.bifiles: $(BUILD_TOOLS) $(UNICODEDATA) $(BUILD_BREAKITERATOR)
|
2016-01-16 12:01:44 +00:00
|
|
|
$(call LogInfo, Generating BreakIteratorData)
|
|
|
|
$(call MakeDir, $(@D))
|
2012-09-18 18:29:24 +00:00
|
|
|
$(RM) $(BIFILES)
|
2012-04-10 15:22:03 +00:00
|
|
|
$(TOOL_GENERATEBREAKITERATORDATA) \
|
2014-08-17 14:54:13 +00:00
|
|
|
-o $(@D) \
|
2013-10-10 13:06:21 +00:00
|
|
|
-spec $(UNICODEDATA)
|
2012-06-08 03:40:50 +00:00
|
|
|
$(TOUCH) $@
|
2012-04-10 15:22:03 +00:00
|
|
|
|
2015-11-24 14:46:14 +00:00
|
|
|
$(BIFILES_TH): $(LD_DATA_PKG_DIR)/_the.bifiles_th
|
|
|
|
$(LD_DATA_PKG_DIR)/_the.bifiles_th: JAVA_FLAGS += -Xbootclasspath/p:$(BREAK_ITERATOR_CLASSES)
|
|
|
|
$(LD_DATA_PKG_DIR)/_the.bifiles_th: $(BUILD_TOOLS) $(UNICODEDATA) $(BUILD_BREAKITERATOR)
|
2016-01-16 12:01:44 +00:00
|
|
|
$(call LogInfo, Generating BreakIteratorData_th)
|
2012-09-18 18:29:24 +00:00
|
|
|
$(RM) $(BIFILES_TH)
|
2012-04-10 15:22:03 +00:00
|
|
|
$(TOOL_GENERATEBREAKITERATORDATA) \
|
2014-08-17 14:54:13 +00:00
|
|
|
-o $(@D) \
|
2013-10-10 13:06:21 +00:00
|
|
|
-spec $(UNICODEDATA) \
|
|
|
|
-language th
|
2012-06-08 03:40:50 +00:00
|
|
|
$(TOUCH) $@
|
2012-04-10 15:22:03 +00:00
|
|
|
|
2014-12-03 14:22:58 +00:00
|
|
|
TARGETS += $(BIFILES) $(BIFILES_TH)
|