2012-04-10 15:22:03 +00:00
|
|
|
#
|
2023-11-28 21:40:20 +00:00
|
|
|
# Copyright (c) 2011, 2023, 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.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
2014-12-03 14:22:58 +00:00
|
|
|
# Rules to create $(SUPPORT_OUTPUTDIR)/gensrc/java.base/sun/lang/CharacterData*.java
|
2012-04-10 15:22:03 +00:00
|
|
|
#
|
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
GENSRC_CHARACTERDATA :=
|
2012-04-10 15:22:03 +00:00
|
|
|
|
2022-03-21 21:34:09 +00:00
|
|
|
CHARACTERDATA_TEMPLATES = $(MODULE_SRC)/share/classes/java/lang
|
|
|
|
UNICODEDATA = $(MODULE_SRC)/share/data/unicodedata
|
2012-04-10 15:22:03 +00:00
|
|
|
|
2020-12-07 15:55:53 +00:00
|
|
|
ifneq ($(DEBUG_LEVEL), release)
|
|
|
|
ifeq ($(ALLOW_ABSOLUTE_PATHS_IN_OUTPUT), true)
|
|
|
|
DEBUG_OPTION := -d
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2012-04-10 15:22:03 +00:00
|
|
|
define SetupCharacterData
|
2014-12-03 14:22:58 +00:00
|
|
|
$(SUPPORT_OUTPUTDIR)/gensrc/java.base/java/lang/$1.java: \
|
2022-03-21 21:34:09 +00:00
|
|
|
$(CHARACTERDATA_TEMPLATES)/$1.java.template
|
2016-01-16 12:01:44 +00:00
|
|
|
$$(call LogInfo, Generating $1.java)
|
|
|
|
$$(call MakeDir, $$(@D))
|
2020-12-07 15:55:53 +00:00
|
|
|
$(TOOL_GENERATECHARACTER) $2 $(DEBUG_OPTION) \
|
2022-03-21 21:34:09 +00:00
|
|
|
-template $(CHARACTERDATA_TEMPLATES)/$1.java.template \
|
2013-10-10 13:06:21 +00:00
|
|
|
-spec $(UNICODEDATA)/UnicodeData.txt \
|
|
|
|
-specialcasing $(UNICODEDATA)/SpecialCasing.txt \
|
|
|
|
-proplist $(UNICODEDATA)/PropList.txt \
|
2019-09-06 00:38:54 +00:00
|
|
|
-derivedprops $(UNICODEDATA)/DerivedCoreProperties.txt \
|
2023-03-20 20:20:19 +00:00
|
|
|
-emojidata $(UNICODEDATA)/emoji/emoji-data.txt \
|
2017-07-27 15:15:14 +00:00
|
|
|
-o $(SUPPORT_OUTPUTDIR)/gensrc/java.base/java/lang/$1.java \
|
2013-10-10 13:06:21 +00:00
|
|
|
-usecharforbyte $3
|
2012-04-10 15:22:03 +00:00
|
|
|
|
2014-12-03 14:22:58 +00:00
|
|
|
GENSRC_CHARACTERDATA += $(SUPPORT_OUTPUTDIR)/gensrc/java.base/java/lang/$1.java
|
2012-04-10 15:22:03 +00:00
|
|
|
endef
|
|
|
|
|
2013-10-10 13:06:21 +00:00
|
|
|
$(eval $(call SetupCharacterData,CharacterDataLatin1, , -latin1 8))
|
2017-07-27 15:15:14 +00:00
|
|
|
$(eval $(call SetupCharacterData,CharacterData00, -string -plane 0, 11 4 1))
|
|
|
|
$(eval $(call SetupCharacterData,CharacterData01, -string -plane 1, 11 4 1))
|
|
|
|
$(eval $(call SetupCharacterData,CharacterData02, -string -plane 2, 11 4 1))
|
2020-05-13 22:46:08 +00:00
|
|
|
$(eval $(call SetupCharacterData,CharacterData03, -string -plane 3, 11 4 1))
|
2017-07-27 15:15:14 +00:00
|
|
|
$(eval $(call SetupCharacterData,CharacterData0E, -string -plane 14, 11 4 1))
|
2012-04-10 15:22:03 +00:00
|
|
|
|
2014-08-17 14:54:13 +00:00
|
|
|
$(GENSRC_CHARACTERDATA): $(BUILD_TOOLS_JDK)
|
2020-05-19 13:59:51 +00:00
|
|
|
|
|
|
|
TARGETS += $(GENSRC_CHARACTERDATA)
|