author | erikj |
Tue, 09 Dec 2014 08:57:41 +0100 | |
changeset 27945 | dd8be94d105f |
parent 27565 | 729f9700483a |
child 34330 | 4d5aa33be0a0 |
permissions | -rw-r--r-- |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
1 |
# |
27565 | 2 |
# Copyright (c) 2011, 2014, 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 | 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. |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
35 |
# |
27565 | 36 |
TEXT_SRCDIR := $(JDK_TOPDIR)/src/java.base/share/classes \ |
25859 | 37 |
$(JDK_TOPDIR)/src/jdk.localedata/share/classes |
27565 | 38 |
TEXT_PKG := sun/text/resources |
39 |
TEXT_SOURCES := $(TEXT_PKG)/BreakIteratorRules.java \ |
|
20547 | 40 |
$(TEXT_PKG)/BreakIteratorInfo.java \ |
41 |
$(TEXT_PKG)/th/BreakIteratorRules_th.java \ |
|
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 |
27565 | 45 |
BREAK_ITERATOR_CLASSES := $(BUILDTOOLS_OUTPUTDIR)/break_iterator_classes |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
46 |
|
27945
dd8be94d105f
8066761: Investigate -sourcepath usage when compiling java
erikj
parents:
27565
diff
changeset
|
47 |
# These two files should be moved out to a build tool! |
20547 | 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))) |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
54 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
55 |
# Generate data resource files. |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
56 |
# input |
27565 | 57 |
UNICODEDATA := $(JDK_TOPDIR)/make/data/unicodedata/UnicodeData.txt |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
58 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
59 |
# output |
27565 | 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 \ |
|
25859 | 63 |
$(BASE_DATA_PKG_DIR)/WordBreakIteratorData \ |
64 |
$(BASE_DATA_PKG_DIR)/LineBreakIteratorData \ |
|
65 |
$(BASE_DATA_PKG_DIR)/SentenceBreakIteratorData |
|
27565 | 66 |
BIFILES_TH := $(SA_DATA_PKG_DIR)/th/WordBreakIteratorData_th \ |
25859 | 67 |
$(SA_DATA_PKG_DIR)/th/LineBreakIteratorData_th |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
68 |
|
25859 | 69 |
$(BIFILES): $(BASE_DATA_PKG_DIR)/_the.bifiles |
70 |
$(BASE_DATA_PKG_DIR)/_the.bifiles: JAVA_FLAGS += -Xbootclasspath/p:$(BREAK_ITERATOR_CLASSES) |
|
71 |
$(BASE_DATA_PKG_DIR)/_the.bifiles: $(BUILD_TOOLS) $(UNICODEDATA) $(BUILD_BREAKITERATOR) |
|
14231 | 72 |
$(ECHO) $(LOG_INFO) "Generating BreakIteratorData" |
25859 | 73 |
$(MKDIR) -p $(@D) |
13702 | 74 |
$(RM) $(BIFILES) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
75 |
$(TOOL_GENERATEBREAKITERATORDATA) \ |
25859 | 76 |
-o $(@D) \ |
20547 | 77 |
-spec $(UNICODEDATA) |
12892 | 78 |
$(TOUCH) $@ |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
79 |
|
25859 | 80 |
$(BIFILES_TH): $(SL_DATA_PKG_DIR)/_the.bifiles_th |
81 |
$(SL_DATA_PKG_DIR)/_the.bifiles_th: JAVA_FLAGS += -Xbootclasspath/p:$(BREAK_ITERATOR_CLASSES) |
|
82 |
$(SL_DATA_PKG_DIR)/_the.bifiles_th: $(BUILD_TOOLS) $(UNICODEDATA) $(BUILD_BREAKITERATOR) |
|
14231 | 83 |
$(ECHO) $(LOG_INFO) "Generating BreakIteratorData_th" |
25859 | 84 |
$(MKDIR) -p $(@D)/th |
13702 | 85 |
$(RM) $(BIFILES_TH) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
86 |
$(TOOL_GENERATEBREAKITERATORDATA) \ |
25859 | 87 |
-o $(@D) \ |
20547 | 88 |
-spec $(UNICODEDATA) \ |
89 |
-language th |
|
12892 | 90 |
$(TOUCH) $@ |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
91 |
|
27565 | 92 |
TARGETS += $(BIFILES) $(BIFILES_TH) |