ohair@5304: # ohair@5304: # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. ohair@5304: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. ohair@5304: # ohair@5304: # This code is free software; you can redistribute it and/or modify it ohair@5304: # under the terms of the GNU General Public License version 2 only, as ohair@5304: # published by the Free Software Foundation. Oracle designates this ohair@5304: # particular file as subject to the "Classpath" exception as provided ohair@5304: # by Oracle in the LICENSE file that accompanied this code. ohair@5304: # ohair@5304: # This code is distributed in the hope that it will be useful, but WITHOUT ohair@5304: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ohair@5304: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ohair@5304: # version 2 for more details (a copy is included in the LICENSE file that ohair@5304: # accompanied this code). ohair@5304: # ohair@5304: # You should have received a copy of the GNU General Public License version ohair@5304: # 2 along with this work; if not, write to the Free Software Foundation, ohair@5304: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. ohair@5304: # ohair@5304: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@5304: # or visit www.oracle.com if you need additional information or have any ohair@5304: # questions. ohair@5304: # ohair@5304: ohair@5304: # ohair@6533: # Rules to create $(JDK_OUTPUTDIR)/gensrc/sun/lang/CharacterData*.java ohair@5304: # ohair@5304: ohair@5304: GENSRC_CHARACTERDATA:= ohair@5304: ohair@5304: CHARACTERDATA = $(JDK_TOPDIR)/make/tools/GenerateCharacter ohair@5304: UNICODEDATA = $(JDK_TOPDIR)/make/tools/UnicodeData ohair@5304: ohair@5304: define SetupCharacterData ohair@6533: $(JDK_OUTPUTDIR)/gensrc/java/lang/$1.java : $(CHARACTERDATA)/$1.java.template $(BUILD_TOOLS) erikj@5670: $(MKDIR) -p $$(@D) ohair@6533: $(ECHO) $(LOG_INFO) Generating $1.java ohair@5304: $(TOOL_GENERATECHARACTER) $2 \ ohair@5304: -template $(CHARACTERDATA)/$1.java.template \ ohair@5304: -spec $(UNICODEDATA)/UnicodeData.txt \ ohair@5304: -specialcasing $(UNICODEDATA)/SpecialCasing.txt \ ohair@5304: -proplist $(UNICODEDATA)/PropList.txt \ ohair@6533: -o $(JDK_OUTPUTDIR)/gensrc/java/lang/$1.java -string \ ohair@5304: -usecharforbyte $3 ohair@5304: ohair@6533: GENSRC_CHARACTERDATA += $(JDK_OUTPUTDIR)/gensrc/java/lang/$1.java ohair@5304: endef ohair@5304: ohair@5304: $(eval $(call SetupCharacterData,CharacterDataLatin1,,-latin1 8)) ohair@5304: $(eval $(call SetupCharacterData,CharacterData00,-plane 0,11 4 1)) ohair@5304: $(eval $(call SetupCharacterData,CharacterData01,-plane 1,11 4 1)) ohair@5304: $(eval $(call SetupCharacterData,CharacterData02,-plane 2,11 4 1)) ohair@5304: $(eval $(call SetupCharacterData,CharacterData0E,-plane 14,11 4 1)) ohair@5304: ohair@5304: # Copy two Java files that need no preprocessing. ohair@6533: $(JDK_OUTPUTDIR)/gensrc/java/lang/%.java : $(CHARACTERDATA)/%.java.template ohair@5304: $(MKDIR) -p $(@D) ohair@6533: $(ECHO) $(LOG_INFO) Generating $(@F) ohair@5304: $(CP) -f $< $@ ohair@5304: ohair@6533: GENSRC_CHARACTERDATA += $(JDK_OUTPUTDIR)/gensrc/java/lang/CharacterDataUndefined.java \ ohair@6533: $(JDK_OUTPUTDIR)/gensrc/java/lang/CharacterDataPrivateUse.java ohair@5304: ohair@5304: $(GENSRC_CHARACTERDATA) : $(BUILD_TOOLS)