jdk/make/gendata/GendataBreakIterator.gmk
author jmasa
Fri, 29 Aug 2014 08:14:19 -0700
changeset 26331 8f17e084029b
parent 25859 3317bb8137f4
child 27565 729f9700483a
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     1
#
20861
6dd0502e6616 6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents: 14343
diff changeset
     2
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     4
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    10
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    15
# accompanied this code).
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    16
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    20
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    23
# questions.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    24
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    25
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    26
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    27
# Make file for generating BreakIterator data files.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    28
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    29
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    30
# input
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    31
#
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14343
diff changeset
    32
# Notes: sun.text.resources.BreakIteratorRules no longer goes to runtime.
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14343
diff changeset
    33
# They are used at JDK build phase in order to create $(BIFILES) which
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14343
diff changeset
    34
# are used on runtime instead.
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    35
#
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    36
TEXT_SRCDIR = $(JDK_TOPDIR)/src/java.base/share/classes \
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    37
    $(JDK_TOPDIR)/src/jdk.localedata/share/classes
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14343
diff changeset
    38
TEXT_PKG = sun/text/resources
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14343
diff changeset
    39
TEXT_SOURCES = $(TEXT_PKG)/BreakIteratorRules.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14343
diff changeset
    40
    $(TEXT_PKG)/BreakIteratorInfo.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14343
diff changeset
    41
    $(TEXT_PKG)/th/BreakIteratorRules_th.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14343
diff changeset
    42
    $(TEXT_PKG)/th/BreakIteratorInfo_th.java
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    43
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    44
# Generate BreakIteratorData
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    45
BREAK_ITERATOR_DIR = $(JDK_OUTPUTDIR)/break_iterator
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    46
BREAK_ITERATOR_CLASSES = $(BREAK_ITERATOR_DIR)/classes
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    47
20861
6dd0502e6616 6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents: 14343
diff changeset
    48
# JAVAC_SOURCE_PATH_OVERRIDE is set to isolate the compile to just those
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    49
# two files in that directory and not get anything implicit from
20861
6dd0502e6616 6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents: 14343
diff changeset
    50
# surrounding directories which aren't jdk N-1 compatible.
6dd0502e6616 6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents: 14343
diff changeset
    51
# Because we are targeting jdk N-1, but the surrounding source code is jdk N.
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
    52
# These two files should be moved out to a build tool! We have to disable
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
    53
# sjavac here as well.
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14343
diff changeset
    54
$(eval $(call SetupJavaCompilation,BUILD_BREAKITERATOR, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14343
diff changeset
    55
    SETUP := GENERATE_OLDBYTECODE, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14343
diff changeset
    56
    SRC := $(TEXT_SRCDIR), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14343
diff changeset
    57
    DISABLE_SJAVAC := true, \
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    58
    JAVAC_SOURCE_PATH_OVERRIDE := $(patsubst %, %/$(TEXT_PKG), $(TEXT_SRCDIR)), \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14343
diff changeset
    59
    INCLUDES := $(TEXT_PKG), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14343
diff changeset
    60
    INCLUDE_FILES := $(TEXT_SOURCES), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14343
diff changeset
    61
    BIN := $(BREAK_ITERATOR_CLASSES)))
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    62
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    63
# Generate data resource files.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    64
# input
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 20884
diff changeset
    65
UNICODEDATA = $(JDK_TOPDIR)/make/data/unicodedata/UnicodeData.txt
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    66
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    67
# output
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    68
BASE_DATA_PKG_DIR = $(JDK_OUTPUTDIR)/modules/java.base/sun/text/resources
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    69
SL_DATA_PKG_DIR = $(JDK_OUTPUTDIR)/modules/jdk.localedata/sun/text/resources
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    70
BIFILES = $(BASE_DATA_PKG_DIR)/CharacterBreakIteratorData \
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    71
    $(BASE_DATA_PKG_DIR)/WordBreakIteratorData \
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    72
    $(BASE_DATA_PKG_DIR)/LineBreakIteratorData \
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    73
    $(BASE_DATA_PKG_DIR)/SentenceBreakIteratorData
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    74
BIFILES_TH = $(SA_DATA_PKG_DIR)/th/WordBreakIteratorData_th \
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    75
    $(SA_DATA_PKG_DIR)/th/LineBreakIteratorData_th
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    76
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    77
$(BIFILES): $(BASE_DATA_PKG_DIR)/_the.bifiles
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    78
$(BASE_DATA_PKG_DIR)/_the.bifiles: JAVA_FLAGS += -Xbootclasspath/p:$(BREAK_ITERATOR_CLASSES)
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    79
$(BASE_DATA_PKG_DIR)/_the.bifiles: $(BUILD_TOOLS) $(UNICODEDATA) $(BUILD_BREAKITERATOR)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    80
	$(ECHO) $(LOG_INFO) "Generating BreakIteratorData"
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    81
	$(MKDIR) -p $(@D)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
    82
	$(RM) $(BIFILES)
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    83
	$(TOOL_GENERATEBREAKITERATORDATA) \
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    84
	    -o $(@D) \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14343
diff changeset
    85
	    -spec $(UNICODEDATA)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
    86
	$(TOUCH) $@
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    87
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    88
$(BIFILES_TH): $(SL_DATA_PKG_DIR)/_the.bifiles_th
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    89
$(SL_DATA_PKG_DIR)/_the.bifiles_th: JAVA_FLAGS += -Xbootclasspath/p:$(BREAK_ITERATOR_CLASSES)
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    90
$(SL_DATA_PKG_DIR)/_the.bifiles_th: $(BUILD_TOOLS) $(UNICODEDATA) $(BUILD_BREAKITERATOR)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    91
	$(ECHO) $(LOG_INFO) "Generating BreakIteratorData_th"
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    92
	$(MKDIR) -p $(@D)/th
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
    93
	$(RM) $(BIFILES_TH)
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    94
	$(TOOL_GENERATEBREAKITERATORDATA) \
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 21805
diff changeset
    95
	    -o $(@D) \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14343
diff changeset
    96
	    -spec $(UNICODEDATA) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 14343
diff changeset
    97
	    -language th
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
    98
	$(TOUCH) $@
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    99
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   100
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   101
BREAK_ITERATOR += $(BIFILES) $(BIFILES_TH)