author | psadhukhan |
Tue, 13 Sep 2016 13:40:32 +0530 | |
changeset 41012 | c4e843656a4d |
parent 40813 | dd5aa9c67561 |
child 41472 | ca054ba21d38 |
permissions | -rw-r--r-- |
36014
3d50784f2dc2
8148346: Reduce number of packages in jdk.localedata module
naoto
parents:
35241
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_PKG := sun/text/resources |
36014
3d50784f2dc2
8148346: Reduce number of packages in jdk.localedata module
naoto
parents:
35241
diff
changeset
|
37 |
TEXT_PKG_LD := $(TEXT_PKG)/ext |
27565 | 38 |
TEXT_SOURCES := $(TEXT_PKG)/BreakIteratorRules.java \ |
20547 | 39 |
$(TEXT_PKG)/BreakIteratorInfo.java \ |
36014
3d50784f2dc2
8148346: Reduce number of packages in jdk.localedata module
naoto
parents:
35241
diff
changeset
|
40 |
$(TEXT_PKG_LD)/BreakIteratorRules_th.java \ |
3d50784f2dc2
8148346: Reduce number of packages in jdk.localedata module
naoto
parents:
35241
diff
changeset
|
41 |
$(TEXT_PKG_LD)/BreakIteratorInfo_th.java |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
42 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
43 |
# Generate BreakIteratorData |
27565 | 44 |
BREAK_ITERATOR_CLASSES := $(BUILDTOOLS_OUTPUTDIR)/break_iterator_classes |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
45 |
|
27945
dd8be94d105f
8066761: Investigate -sourcepath usage when compiling java
erikj
parents:
27565
diff
changeset
|
46 |
# These two files should be moved out to a build tool! |
36511 | 47 |
$(eval $(call SetupJavaCompilation,BUILD_BREAKITERATOR_BASE, \ |
48 |
SETUP := GENERATE_OLDBYTECODE, \ |
|
49 |
SRC := $(JDK_TOPDIR)/src/java.base/share/classes, \ |
|
50 |
INCLUDE_FILES := \ |
|
51 |
$(TEXT_PKG)/BreakIteratorRules.java \ |
|
52 |
$(TEXT_PKG)/BreakIteratorInfo.java, \ |
|
53 |
BIN := $(BREAK_ITERATOR_CLASSES)/java.base)) |
|
54 |
||
55 |
$(eval $(call SetupJavaCompilation,BUILD_BREAKITERATOR_LD, \ |
|
20547 | 56 |
SETUP := GENERATE_OLDBYTECODE, \ |
36511 | 57 |
SRC := $(JDK_TOPDIR)/src/jdk.localedata/share/classes, \ |
58 |
INCLUDES := $(TEXT_PKG_LD), \ |
|
59 |
INCLUDE_FILES := \ |
|
60 |
$(TEXT_PKG_LD)/BreakIteratorRules_th.java \ |
|
61 |
$(TEXT_PKG_LD)/BreakIteratorInfo_th.java, \ |
|
62 |
BIN := $(BREAK_ITERATOR_CLASSES)/jdk.localedata)) |
|
63 |
||
64 |
ifeq ($(BOOT_JDK_MODULAR), true) |
|
37779
7c84df693837
8154956: Module system implementation refresh (4/2016)
alanb
parents:
36750
diff
changeset
|
65 |
BREAK_ITERATOR_BOOTCLASSPATH := \ |
40261
86a49ba76f52
8136930: Simplify use of module-system options by custom launchers
mchung
parents:
37779
diff
changeset
|
66 |
--patch-module java.base=$(BREAK_ITERATOR_CLASSES)/java.base \ |
86a49ba76f52
8136930: Simplify use of module-system options by custom launchers
mchung
parents:
37779
diff
changeset
|
67 |
--patch-module jdk.localedata=$(BREAK_ITERATOR_CLASSES)/jdk.localedata \ |
86a49ba76f52
8136930: Simplify use of module-system options by custom launchers
mchung
parents:
37779
diff
changeset
|
68 |
--add-exports java.base/sun.text=ALL-UNNAMED \ |
86a49ba76f52
8136930: Simplify use of module-system options by custom launchers
mchung
parents:
37779
diff
changeset
|
69 |
--add-exports java.base/sun.text.resources=ALL-UNNAMED \ |
86a49ba76f52
8136930: Simplify use of module-system options by custom launchers
mchung
parents:
37779
diff
changeset
|
70 |
--add-exports jdk.localedata/sun.text.resources.ext=ALL-UNNAMED \ |
37779
7c84df693837
8154956: Module system implementation refresh (4/2016)
alanb
parents:
36750
diff
changeset
|
71 |
# |
36511 | 72 |
else |
73 |
BREAK_ITERATOR_BOOTCLASSPATH := -Xbootclasspath/p:$(call PathList, \ |
|
74 |
$(BREAK_ITERATOR_CLASSES)/java.base \ |
|
75 |
$(BREAK_ITERATOR_CLASSES)/jdk.localedata) |
|
76 |
endif |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
77 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
78 |
# Generate data resource files. |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
79 |
# input |
27565 | 80 |
UNICODEDATA := $(JDK_TOPDIR)/make/data/unicodedata/UnicodeData.txt |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
81 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
82 |
# output |
27565 | 83 |
BASE_DATA_PKG_DIR := $(JDK_OUTPUTDIR)/modules/java.base/sun/text/resources |
40813
dd5aa9c67561
8165605: Thai resources in jdk.localedata cause split package issue with java.base
naoto
parents:
40261
diff
changeset
|
84 |
LD_DATA_PKG_DIR := $(JDK_OUTPUTDIR)/modules/jdk.localedata/sun/text/resources/ext |
27565 | 85 |
BIFILES := $(BASE_DATA_PKG_DIR)/CharacterBreakIteratorData \ |
25859 | 86 |
$(BASE_DATA_PKG_DIR)/WordBreakIteratorData \ |
87 |
$(BASE_DATA_PKG_DIR)/LineBreakIteratorData \ |
|
88 |
$(BASE_DATA_PKG_DIR)/SentenceBreakIteratorData |
|
36014
3d50784f2dc2
8148346: Reduce number of packages in jdk.localedata module
naoto
parents:
35241
diff
changeset
|
89 |
BIFILES_TH := $(LD_DATA_PKG_DIR)/WordBreakIteratorData_th \ |
3d50784f2dc2
8148346: Reduce number of packages in jdk.localedata module
naoto
parents:
35241
diff
changeset
|
90 |
$(LD_DATA_PKG_DIR)/LineBreakIteratorData_th |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
91 |
|
25859 | 92 |
$(BIFILES): $(BASE_DATA_PKG_DIR)/_the.bifiles |
36511 | 93 |
$(BASE_DATA_PKG_DIR)/_the.bifiles: JAVA_FLAGS += $(BREAK_ITERATOR_BOOTCLASSPATH) |
94 |
$(BASE_DATA_PKG_DIR)/_the.bifiles: $(BUILD_TOOLS) $(UNICODEDATA) \ |
|
95 |
$(BUILD_BREAKITERATOR_BASE) $(BUILD_BREAKITERATOR_LD) |
|
35241 | 96 |
$(call LogInfo, Generating BreakIteratorData) |
97 |
$(call MakeDir, $(@D)) |
|
13702 | 98 |
$(RM) $(BIFILES) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
99 |
$(TOOL_GENERATEBREAKITERATORDATA) \ |
25859 | 100 |
-o $(@D) \ |
20547 | 101 |
-spec $(UNICODEDATA) |
12892 | 102 |
$(TOUCH) $@ |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
103 |
|
34330
4d5aa33be0a0
8143141: Bring in minor build changes from the jigsaw/jake forest
erikj
parents:
27945
diff
changeset
|
104 |
$(BIFILES_TH): $(LD_DATA_PKG_DIR)/_the.bifiles_th |
36511 | 105 |
$(LD_DATA_PKG_DIR)/_the.bifiles_th: JAVA_FLAGS += $(BREAK_ITERATOR_BOOTCLASSPATH) |
106 |
$(LD_DATA_PKG_DIR)/_the.bifiles_th: $(BUILD_TOOLS) $(UNICODEDATA) \ |
|
107 |
$(BUILD_BREAKITERATOR_BASE) $(BUILD_BREAKITERATOR_LD) |
|
35241 | 108 |
$(call LogInfo, Generating BreakIteratorData_th) |
13702 | 109 |
$(RM) $(BIFILES_TH) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
110 |
$(TOOL_GENERATEBREAKITERATORDATA) \ |
25859 | 111 |
-o $(@D) \ |
20547 | 112 |
-spec $(UNICODEDATA) \ |
113 |
-language th |
|
12892 | 114 |
$(TOUCH) $@ |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
115 |
|
27565 | 116 |
TARGETS += $(BIFILES) $(BIFILES_TH) |