2000-12-03 04:09:23 +00:00
|
|
|
#**********************************************************************
|
2010-01-06 23:50:03 +00:00
|
|
|
#* Copyright (C) 1999-2010, International Business Machines Corporation
|
2000-12-03 04:09:23 +00:00
|
|
|
#* and others. All Rights Reserved.
|
|
|
|
#**********************************************************************
|
|
|
|
# nmake file for creating data files on win32
|
|
|
|
# invoke with
|
2003-10-05 23:44:30 +00:00
|
|
|
# nmake /f makedata.mak icumake=$(ProjectDir)
|
2000-12-03 04:09:23 +00:00
|
|
|
#
|
|
|
|
# 12/10/1999 weiv Created
|
|
|
|
|
2002-03-19 01:43:19 +00:00
|
|
|
##############################################################################
|
|
|
|
# Keep the following in sync with the version - see common/unicode/uversion.h
|
2010-02-17 22:18:24 +00:00
|
|
|
U_ICUDATA_NAME=icudt44
|
2002-03-19 01:43:19 +00:00
|
|
|
##############################################################################
|
2001-07-26 21:55:49 +00:00
|
|
|
U_ICUDATA_ENDIAN_SUFFIX=l
|
2009-11-13 19:25:21 +00:00
|
|
|
UNICODE_VERSION=5.2
|
2006-03-27 17:40:56 +00:00
|
|
|
ICU_LIB_TARGET=$(DLL_OUTPUT)\$(U_ICUDATA_NAME).dll
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2002-01-24 02:28:22 +00:00
|
|
|
# ICUMAKE
|
2001-07-26 21:55:49 +00:00
|
|
|
# Must be provided by whoever runs this makefile.
|
|
|
|
# Is the directory containing this file (makedata.mak)
|
|
|
|
# Is the directory into which most data is built (prior to packaging)
|
2009-07-17 22:57:26 +00:00
|
|
|
# Is icu\source\data\
|
2001-07-26 21:55:49 +00:00
|
|
|
#
|
2002-01-24 02:28:22 +00:00
|
|
|
!IF "$(ICUMAKE)"==""
|
|
|
|
!ERROR Can't find ICUMAKE (ICU Data Make dir, should point to icu\source\data\ )!
|
2000-12-03 04:09:23 +00:00
|
|
|
!ENDIF
|
2002-01-24 02:28:22 +00:00
|
|
|
!MESSAGE ICU data make path is $(ICUMAKE)
|
|
|
|
|
2005-09-20 07:15:06 +00:00
|
|
|
# Suffixes for data files
|
2010-01-06 23:50:03 +00:00
|
|
|
.SUFFIXES : .nrm .icu .ucm .cnv .dll .dat .res .txt .c
|
2005-09-20 07:15:06 +00:00
|
|
|
|
2002-01-24 02:28:22 +00:00
|
|
|
ICUOUT=$(ICUMAKE)\out
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2004-04-14 19:39:08 +00:00
|
|
|
# the prefix "icudt21_" for use in filenames
|
|
|
|
ICUPKG=$(U_ICUDATA_NAME)$(U_ICUDATA_ENDIAN_SUFFIX)
|
|
|
|
|
2003-05-08 01:40:26 +00:00
|
|
|
# need to nuke \\ for .NET...
|
|
|
|
ICUOUT=$(ICUOUT:\\=\)
|
|
|
|
|
2005-03-25 05:40:51 +00:00
|
|
|
ICUBLD=$(ICUOUT)\build
|
|
|
|
ICUBLD_PKG=$(ICUBLD)\$(ICUPKG)
|
2004-04-14 19:39:08 +00:00
|
|
|
ICUTMP=$(ICUOUT)\tmp
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
# ICUP
|
|
|
|
# The root of the ICU source directory tree
|
|
|
|
#
|
2002-01-24 02:28:22 +00:00
|
|
|
ICUP=$(ICUMAKE)\..\..
|
|
|
|
ICUP=$(ICUP:\source\data\..\..=)
|
2002-06-28 23:13:30 +00:00
|
|
|
# In case the first one didn't do it, try this one. .NET would do the second one.
|
|
|
|
ICUP=$(ICUP:\source\data\\..\..=)
|
2002-01-24 02:28:22 +00:00
|
|
|
!MESSAGE ICU root path is $(ICUP)
|
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
|
2002-01-24 02:28:22 +00:00
|
|
|
# ICUSRCDATA
|
|
|
|
# The data directory in source
|
|
|
|
#
|
|
|
|
ICUSRCDATA=$(ICUP)\source\data
|
2006-03-27 17:40:56 +00:00
|
|
|
ICUSRCDATA_RELATIVE_PATH=..\..\..
|
2002-01-24 02:28:22 +00:00
|
|
|
|
|
|
|
# ICUUCM
|
|
|
|
# The directory that contains ucmcore.mk files along with *.ucm files
|
|
|
|
#
|
2002-03-08 01:57:46 +00:00
|
|
|
ICUUCM=mappings
|
2002-01-24 02:28:22 +00:00
|
|
|
|
|
|
|
# ICULOC
|
|
|
|
# The directory that contains resfiles.mk files along with *.txt locale data files
|
|
|
|
#
|
2002-03-08 01:57:46 +00:00
|
|
|
ICULOC=locales
|
|
|
|
|
2004-04-14 19:39:08 +00:00
|
|
|
# ICUCOL
|
|
|
|
# The directory that contains colfiles.mk files along with *.txt collation data files
|
|
|
|
#
|
|
|
|
ICUCOL=coll
|
|
|
|
|
2004-07-14 18:35:16 +00:00
|
|
|
# ICURBNF
|
|
|
|
# The directory that contains rbnffiles.mk files along with *.txt RBNF data files
|
|
|
|
#
|
|
|
|
ICURBNF=rbnf
|
|
|
|
|
2004-08-02 20:06:55 +00:00
|
|
|
# ICUTRNS
|
2002-01-24 02:28:22 +00:00
|
|
|
# The directory that contains trfiles.mk files along with *.txt transliterator files
|
|
|
|
#
|
2002-03-08 01:57:46 +00:00
|
|
|
ICUTRNS=translit
|
2002-01-24 02:28:22 +00:00
|
|
|
|
|
|
|
# ICUBRK
|
|
|
|
# The directory that contains resfiles.mk files along with *.txt break iterator files
|
|
|
|
#
|
2004-07-13 08:08:17 +00:00
|
|
|
ICUBRK=brkitr
|
2002-01-24 02:28:22 +00:00
|
|
|
|
|
|
|
# ICUUNIDATA
|
|
|
|
# The directory that contains Unicode data files
|
|
|
|
#
|
|
|
|
ICUUNIDATA=$(ICUP)\source\data\unidata
|
|
|
|
|
|
|
|
|
|
|
|
# ICUMISC
|
2003-08-15 18:18:46 +00:00
|
|
|
# The directory that contains miscfiles.mk along with files that are miscelleneous data
|
2002-01-24 02:28:22 +00:00
|
|
|
#
|
|
|
|
ICUMISC=$(ICUP)\source\data\misc
|
2003-08-15 18:18:46 +00:00
|
|
|
ICUMISC2=misc
|
2001-07-26 21:55:49 +00:00
|
|
|
|
2009-11-13 14:39:02 +00:00
|
|
|
# ICUSPREP
|
2009-02-02 16:16:07 +00:00
|
|
|
# The directory that contains sprepfiles.mk files along with *.txt stringprep files
|
|
|
|
#
|
|
|
|
ICUSPREP=sprep
|
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
#
|
|
|
|
# ICUDATA
|
|
|
|
# The source directory. Contains the source files for the common data to be built.
|
|
|
|
# WARNING: NOT THE SAME AS ICU_DATA environment variable. Confusing.
|
2002-01-24 02:28:22 +00:00
|
|
|
ICUDATA=$(ICUP)\source\data
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
#
|
|
|
|
# DLL_OUTPUT
|
|
|
|
# Destination directory for the common data DLL file.
|
|
|
|
# This is the same place that all of the other ICU DLLs go (the code-containing DLLs)
|
|
|
|
# The lib file for the data DLL goes in $(DLL_OUTPUT)/../lib/
|
|
|
|
#
|
2008-08-12 04:41:41 +00:00
|
|
|
!IF "$(CFG)" == "x64\Release" || "$(CFG)" == "x64\Debug"
|
|
|
|
DLL_OUTPUT=$(ICUP)\bin64
|
|
|
|
!ELSE
|
2001-07-26 21:55:49 +00:00
|
|
|
DLL_OUTPUT=$(ICUP)\bin
|
2008-08-12 04:41:41 +00:00
|
|
|
!ENDIF
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
#
|
|
|
|
# TESTDATA
|
|
|
|
# The source directory for data needed for test programs.
|
2000-12-03 04:09:23 +00:00
|
|
|
TESTDATA=$(ICUP)\source\test\testdata
|
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
#
|
|
|
|
# TESTDATAOUT
|
|
|
|
# The destination directory for the built test data .dat file
|
2006-03-27 17:40:56 +00:00
|
|
|
TESTDATAOUT=$(ICUP)\source\test\testdata\out
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2002-01-24 02:28:22 +00:00
|
|
|
#
|
|
|
|
# TESTDATABLD
|
|
|
|
# The build directory for test data intermidiate files
|
|
|
|
# (Tests are NOT run from this makefile,
|
|
|
|
# only the data is put in place.)
|
|
|
|
TESTDATABLD=$(ICUP)\source\test\testdata\out\build
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
#
|
|
|
|
# ICUTOOLS
|
|
|
|
# Directory under which all of the ICU data building tools live.
|
|
|
|
#
|
2000-12-03 04:09:23 +00:00
|
|
|
ICUTOOLS=$(ICUP)\source\tools
|
|
|
|
|
2004-02-25 22:25:13 +00:00
|
|
|
# The current ICU tools need to be in the path first.
|
2008-08-12 04:41:41 +00:00
|
|
|
!IF "$(CFG)" == "x64\Release" || "$(CFG)" == "x64\Debug"
|
|
|
|
PATH = $(ICUP)\bin64;$(PATH)
|
|
|
|
ICUPBIN=$(ICUP)\bin64
|
|
|
|
!ELSE
|
2004-02-25 22:25:13 +00:00
|
|
|
PATH = $(ICUP)\bin;$(PATH)
|
2008-08-12 04:41:41 +00:00
|
|
|
ICUPBIN=$(ICUP)\bin
|
|
|
|
!ENDIF
|
|
|
|
|
2004-02-25 22:25:13 +00:00
|
|
|
|
|
|
|
# This variable can be overridden to "-m static" by the project settings,
|
|
|
|
# if you want a static data library.
|
|
|
|
!IF "$(ICU_PACKAGE_MODE)"==""
|
|
|
|
ICU_PACKAGE_MODE=-m dll
|
|
|
|
!ENDIF
|
2001-07-26 21:55:49 +00:00
|
|
|
|
2005-03-25 05:40:51 +00:00
|
|
|
# If this archive exists, build from that
|
|
|
|
# instead of building everything from scratch.
|
|
|
|
ICUDATA_SOURCE_ARCHIVE=$(ICUSRCDATA)\in\$(ICUPKG).dat
|
|
|
|
!IF !EXISTS("$(ICUDATA_SOURCE_ARCHIVE)")
|
2005-09-20 07:15:06 +00:00
|
|
|
# Does a big endian version exist either?
|
|
|
|
ICUDATA_ARCHIVE=$(ICUSRCDATA)\in\$(U_ICUDATA_NAME)b.dat
|
|
|
|
!IF EXISTS("$(ICUDATA_ARCHIVE)")
|
|
|
|
ICUDATA_SOURCE_ARCHIVE=$(ICUTMP)\$(ICUPKG).dat
|
|
|
|
!ELSE
|
|
|
|
# Nothing was usable for input
|
2005-03-25 05:40:51 +00:00
|
|
|
!UNDEF ICUDATA_SOURCE_ARCHIVE
|
|
|
|
!ENDIF
|
2005-09-20 07:15:06 +00:00
|
|
|
!ENDIF
|
2005-03-25 05:40:51 +00:00
|
|
|
|
2005-09-20 07:15:06 +00:00
|
|
|
!IFDEF ICUDATA_SOURCE_ARCHIVE
|
|
|
|
!MESSAGE ICU data source archive is $(ICUDATA_SOURCE_ARCHIVE)
|
|
|
|
!ELSE
|
2001-11-15 21:47:41 +00:00
|
|
|
# We're including a list of .ucm files.
|
|
|
|
# There are several lists, they are all optional.
|
|
|
|
|
|
|
|
# Always build the mapping files for the EBCDIC fallback codepages
|
|
|
|
# They are necessary on EBCDIC machines, and
|
|
|
|
# the following logic is much easier if UCM_SOURCE is never empty.
|
|
|
|
# (They are small.)
|
2002-12-13 04:08:27 +00:00
|
|
|
UCM_SOURCE=ibm-37_P100-1995.ucm ibm-1047_P100-1995.ucm
|
2001-11-15 21:47:41 +00:00
|
|
|
|
2002-03-08 01:57:46 +00:00
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICUUCM)\ucmcore.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICUUCM)\ucmcore.mk"
|
2001-11-15 21:47:41 +00:00
|
|
|
UCM_SOURCE=$(UCM_SOURCE) $(UCM_SOURCE_CORE)
|
|
|
|
!ELSE
|
|
|
|
!MESSAGE Warning: cannot find "ucmcore.mk". Not building core MIME/Unix/Windows converter files.
|
|
|
|
!ENDIF
|
|
|
|
|
2002-03-08 01:57:46 +00:00
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICUUCM)\ucmfiles.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICUUCM)\ucmfiles.mk"
|
2001-11-15 21:47:41 +00:00
|
|
|
UCM_SOURCE=$(UCM_SOURCE) $(UCM_SOURCE_FILES)
|
2001-10-13 00:32:53 +00:00
|
|
|
!ELSE
|
2001-11-15 21:47:41 +00:00
|
|
|
!MESSAGE Warning: cannot find "ucmfiles.mk". Not building many converter files.
|
2001-10-13 00:32:53 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2002-03-08 01:57:46 +00:00
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICUUCM)\ucmebcdic.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICUUCM)\ucmebcdic.mk"
|
2001-11-15 21:47:41 +00:00
|
|
|
UCM_SOURCE=$(UCM_SOURCE) $(UCM_SOURCE_EBCDIC)
|
2001-10-13 00:32:53 +00:00
|
|
|
!ELSE
|
2001-11-15 21:47:41 +00:00
|
|
|
!MESSAGE Warning: cannot find "ucmebcdic.mk". Not building EBCDIC converter files.
|
2001-10-13 00:32:53 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2002-03-08 01:57:46 +00:00
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICUUCM)\ucmlocal.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICUUCM)\ucmlocal.mk"
|
2001-10-13 00:32:53 +00:00
|
|
|
UCM_SOURCE=$(UCM_SOURCE) $(UCM_SOURCE_LOCAL)
|
2000-12-03 04:09:23 +00:00
|
|
|
!ELSE
|
2001-11-15 21:47:41 +00:00
|
|
|
!MESSAGE Information: cannot find "ucmlocal.mk". Not building user-additional converter files.
|
2000-12-03 04:09:23 +00:00
|
|
|
!ENDIF
|
2001-10-13 00:32:53 +00:00
|
|
|
|
2000-12-03 04:09:23 +00:00
|
|
|
CNV_FILES=$(UCM_SOURCE:.ucm=.cnv)
|
|
|
|
|
2004-09-13 16:00:27 +00:00
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICUBRK)\brkfiles.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICUBRK)\brkfiles.mk"
|
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICUBRK)\brklocal.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICUBRK)\brklocal.mk"
|
|
|
|
BRK_SOURCE=$(BRK_SOURCE) $(BRK_SOURCE_LOCAL)
|
2006-04-21 00:55:24 +00:00
|
|
|
BRK_CTD_SOURCE=$(BRK_CTD_SOURCE) $(BRK_CTD_SOURCE_LOCAL)
|
|
|
|
BRK_RES_SOURCE=$(BRK_RES_SOURCE) $(BRK_RES_SOURCE_LOCAL)
|
2004-09-13 16:00:27 +00:00
|
|
|
!ELSE
|
|
|
|
!MESSAGE Information: cannot find "brklocal.mk". Not building user-additional break iterator files.
|
|
|
|
!ENDIF
|
|
|
|
!ELSE
|
|
|
|
!MESSAGE Warning: cannot find "brkfiles.mk"
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
#
|
|
|
|
# Break iterator data files.
|
|
|
|
#
|
2006-03-23 09:46:37 +00:00
|
|
|
BRK_FILES=$(ICUBRK)\$(BRK_SOURCE:.txt =.brk brkitr\)
|
|
|
|
BRK_FILES=$(BRK_FILES:.txt=.brk)
|
|
|
|
BRK_FILES=$(BRK_FILES:brkitr\ =brkitr\)
|
|
|
|
|
2006-04-21 00:55:24 +00:00
|
|
|
!IFDEF BRK_CTD_SOURCE
|
|
|
|
BRK_CTD_FILES = $(ICUBRK)\$(BRK_CTD_SOURCE:.txt =.ctd brkitr\)
|
|
|
|
BRK_CTD_FILES = $(BRK_CTD_FILES:.txt=.ctd)
|
|
|
|
BRK_CTD_FILES = $(BRK_CTD_FILES:brkitr\ =)
|
2006-03-23 09:46:37 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2006-04-21 00:55:24 +00:00
|
|
|
!IFDEF BRK_RES_SOURCE
|
2006-03-23 09:46:37 +00:00
|
|
|
BRK_RES_FILES = $(BRK_RES_SOURCE:.txt =.res brkitr\)
|
|
|
|
BRK_RES_FILES = $(BRK_RES_FILES:.txt=.res)
|
2006-08-19 09:23:05 +00:00
|
|
|
BRK_RES_FILES = $(ICUBRK)\root.res $(ICUBRK)\$(BRK_RES_FILES:brkitr\ =)
|
2006-03-23 09:46:37 +00:00
|
|
|
ALL_RES = $(ALL_RES) $(ICUBRK)\res_index.res
|
|
|
|
!ENDIF
|
2004-09-13 16:00:27 +00:00
|
|
|
|
2002-01-24 02:28:22 +00:00
|
|
|
# Read list of locale resource bundle files
|
2002-03-08 01:57:46 +00:00
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICULOC)\resfiles.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICULOC)\resfiles.mk"
|
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICULOC)\reslocal.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICULOC)\reslocal.mk"
|
2000-12-03 04:09:23 +00:00
|
|
|
GENRB_SOURCE=$(GENRB_SOURCE) $(GENRB_SOURCE_LOCAL)
|
|
|
|
!ELSE
|
2003-10-05 23:44:30 +00:00
|
|
|
!MESSAGE Information: cannot find "reslocal.mk". Not building user-additional resource bundle files.
|
2000-12-03 04:09:23 +00:00
|
|
|
!ENDIF
|
|
|
|
!ELSE
|
2003-05-03 00:48:54 +00:00
|
|
|
!MESSAGE Warning: cannot find "resfiles.mk"
|
2000-12-03 04:09:23 +00:00
|
|
|
!ENDIF
|
2002-01-24 02:28:22 +00:00
|
|
|
|
2005-06-06 01:23:13 +00:00
|
|
|
!IFDEF GENRB_SOURCE
|
2009-07-17 22:57:26 +00:00
|
|
|
RB_FILES = root.res pool.res $(GENRB_ALIAS_SOURCE:.txt=.res) $(GENRB_ALIAS_SOURCE_LOCAL:.txt=.res) $(GENRB_SOURCE:.txt=.res)
|
2005-06-06 01:23:13 +00:00
|
|
|
ALL_RES = $(ALL_RES) res_index.res
|
|
|
|
!ENDIF
|
|
|
|
|
2002-05-13 17:26:51 +00:00
|
|
|
|
2009-11-13 14:39:02 +00:00
|
|
|
# Read the list of currency display name resource bundle files
|
|
|
|
!IF EXISTS("$(ICUSRCDATA)\curr\resfiles.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\curr\resfiles.mk"
|
|
|
|
!IF EXISTS("$(ICUSRCDATA)\curr\reslocal.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\curr\reslocal.mk"
|
|
|
|
CURR_SOURCE=$(CURR_SOURCE) $(CURR_SOURCE_LOCAL)
|
|
|
|
!ELSE
|
|
|
|
!MESSAGE Information: cannot find "curr\reslocal.mk". Not building user-additional resource bundle files.
|
|
|
|
!ENDIF
|
|
|
|
!ELSE
|
|
|
|
!MESSAGE Warning: cannot find "curr\resfiles.mk"
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFDEF CURR_SOURCE
|
2009-11-13 18:22:36 +00:00
|
|
|
CURR_FILES = curr\root.txt supplementalData.txt $(CURR_ALIAS_SOURCE) $(CURR_SOURCE)
|
2009-11-13 14:39:02 +00:00
|
|
|
CURR_RES_FILES = $(CURR_FILES:.txt =.res curr\)
|
|
|
|
CURR_RES_FILES = $(CURR_RES_FILES:.txt=.res)
|
|
|
|
CURR_RES_FILES = $(CURR_RES_FILES:curr\ =curr\)
|
|
|
|
ALL_RES = $(ALL_RES) curr\res_index.res
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# Read the list of language/script display name resource bundle files
|
|
|
|
!IF EXISTS("$(ICUSRCDATA)\lang\resfiles.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\lang\resfiles.mk"
|
|
|
|
!IF EXISTS("$(ICUSRCDATA)\lang\reslocal.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\lang\reslocal.mk"
|
|
|
|
LANG_SOURCE=$(LANG_SOURCE) $(LANG_SOURCE_LOCAL)
|
|
|
|
!ELSE
|
|
|
|
!MESSAGE Information: cannot find "lang\reslocal.mk". Not building user-additional resource bundle files.
|
|
|
|
!ENDIF
|
|
|
|
!ELSE
|
|
|
|
!MESSAGE Warning: cannot find "lang\resfiles.mk"
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFDEF LANG_SOURCE
|
|
|
|
LANG_FILES = lang\root.txt $(LANG_ALIAS_SOURCE) $(LANG_SOURCE)
|
|
|
|
LANG_RES_FILES = $(LANG_FILES:.txt =.res lang\)
|
|
|
|
LANG_RES_FILES = $(LANG_RES_FILES:.txt=.res)
|
|
|
|
LANG_RES_FILES = $(LANG_RES_FILES:lang\ =lang\)
|
|
|
|
ALL_RES = $(ALL_RES) lang\res_index.res
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# Read the list of region display name resource bundle files
|
|
|
|
!IF EXISTS("$(ICUSRCDATA)\region\resfiles.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\region\resfiles.mk"
|
|
|
|
!IF EXISTS("$(ICUSRCDATA)\region\reslocal.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\region\reslocal.mk"
|
|
|
|
REGION_SOURCE=$(REGION_SOURCE) $(REGION_SOURCE_LOCAL)
|
|
|
|
!ELSE
|
|
|
|
!MESSAGE Information: cannot find "region\reslocal.mk". Not building user-additional resource bundle files.
|
|
|
|
!ENDIF
|
|
|
|
!ELSE
|
|
|
|
!MESSAGE Warning: cannot find "region\resfiles.mk"
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFDEF REGION_SOURCE
|
|
|
|
REGION_FILES = region\root.txt $(REGION_ALIAS_SOURCE) $(REGION_SOURCE)
|
|
|
|
REGION_RES_FILES = $(REGION_FILES:.txt =.res region\)
|
|
|
|
REGION_RES_FILES = $(REGION_RES_FILES:.txt=.res)
|
|
|
|
REGION_RES_FILES = $(REGION_RES_FILES:region\ =region\)
|
|
|
|
ALL_RES = $(ALL_RES) region\res_index.res
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# Read the list of time zone display name resource bundle files
|
|
|
|
!IF EXISTS("$(ICUSRCDATA)\zone\resfiles.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\zone\resfiles.mk"
|
|
|
|
!IF EXISTS("$(ICUSRCDATA)\zone\reslocal.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\zone\reslocal.mk"
|
|
|
|
ZONE_SOURCE=$(ZONE_SOURCE) $(ZONE_SOURCE_LOCAL)
|
|
|
|
!ELSE
|
|
|
|
!MESSAGE Information: cannot find "zone\reslocal.mk". Not building user-additional resource bundle files.
|
|
|
|
!ENDIF
|
|
|
|
!ELSE
|
|
|
|
!MESSAGE Warning: cannot find "zone\resfiles.mk"
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFDEF ZONE_SOURCE
|
|
|
|
ZONE_FILES = zone\root.txt $(ZONE_ALIAS_SOURCE) $(ZONE_SOURCE)
|
|
|
|
ZONE_RES_FILES = $(ZONE_FILES:.txt =.res zone\)
|
|
|
|
ZONE_RES_FILES = $(ZONE_RES_FILES:.txt=.res)
|
|
|
|
ZONE_RES_FILES = $(ZONE_RES_FILES:zone\ =zone\)
|
|
|
|
ALL_RES = $(ALL_RES) zone\res_index.res
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# Read the list of collation resource bundle files
|
2004-04-14 19:39:08 +00:00
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICUCOL)\colfiles.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICUCOL)\colfiles.mk"
|
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICUCOL)\collocal.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICUCOL)\collocal.mk"
|
|
|
|
COLLATION_SOURCE=$(COLLATION_SOURCE) $(COLLATION_SOURCE_LOCAL)
|
|
|
|
!ELSE
|
|
|
|
!MESSAGE Information: cannot find "collocal.mk". Not building user-additional resource bundle files.
|
|
|
|
!ENDIF
|
|
|
|
!ELSE
|
|
|
|
!MESSAGE Warning: cannot find "colfiles.mk"
|
|
|
|
!ENDIF
|
|
|
|
|
2005-06-06 01:23:13 +00:00
|
|
|
!IFDEF COLLATION_SOURCE
|
2004-07-13 08:08:17 +00:00
|
|
|
COL_FILES = $(ICUCOL)\root.txt $(COLLATION_ALIAS_SOURCE) $(COLLATION_SOURCE)
|
|
|
|
COL_COL_FILES = $(COL_FILES:.txt =.res coll\)
|
|
|
|
COL_COL_FILES = $(COL_COL_FILES:.txt=.res)
|
|
|
|
COL_COL_FILES = $(COL_COL_FILES:coll\ =)
|
2005-06-06 01:23:13 +00:00
|
|
|
ALL_RES = $(ALL_RES) $(ICUCOL)\res_index.res
|
|
|
|
!ENDIF
|
2004-07-13 08:08:17 +00:00
|
|
|
|
2009-11-13 14:39:02 +00:00
|
|
|
# Read the list of RBNF resource bundle files
|
2004-07-14 18:35:16 +00:00
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICURBNF)\rbnffiles.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICURBNF)\rbnffiles.mk"
|
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICURBNF)\rbnflocal.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICURBNF)\rbnflocal.mk"
|
|
|
|
RBNF_SOURCE=$(RBNF_SOURCE) $(RBNF_SOURCE_LOCAL)
|
|
|
|
!ELSE
|
|
|
|
!MESSAGE Information: cannot find "rbnflocal.mk". Not building user-additional resource bundle files.
|
|
|
|
!ENDIF
|
|
|
|
!ELSE
|
|
|
|
!MESSAGE Warning: cannot find "rbnffiles.mk"
|
|
|
|
!ENDIF
|
|
|
|
|
2005-06-06 01:23:13 +00:00
|
|
|
!IFDEF RBNF_SOURCE
|
|
|
|
RBNF_FILES = $(ICURBNF)\root.txt $(RBNF_ALIAS_SOURCE) $(RBNF_SOURCE)
|
2004-07-14 18:35:16 +00:00
|
|
|
RBNF_RES_FILES = $(RBNF_FILES:.txt =.res rbnf\)
|
|
|
|
RBNF_RES_FILES = $(RBNF_RES_FILES:.txt=.res)
|
2005-06-06 01:23:13 +00:00
|
|
|
RBNF_RES_FILES = $(RBNF_RES_FILES:rbnf\ =rbnf\)
|
|
|
|
ALL_RES = $(ALL_RES) $(ICURBNF)\res_index.res
|
|
|
|
!ENDIF
|
2004-07-14 18:35:16 +00:00
|
|
|
|
2009-11-13 14:39:02 +00:00
|
|
|
# Read the list of transliterator resource bundle files
|
2002-03-08 01:57:46 +00:00
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICUTRNS)\trnsfiles.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICUTRNS)\trnsfiles.mk"
|
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICUTRNS)\trnslocal.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICUTRNS)\trnslocal.mk"
|
2004-10-14 23:32:14 +00:00
|
|
|
TRANSLIT_SOURCE=$(TRANSLIT_SOURCE) $(TRANSLIT_SOURCE_LOCAL)
|
2002-01-24 02:28:22 +00:00
|
|
|
!ELSE
|
|
|
|
!MESSAGE Information: cannot find "trnslocal.mk". Not building user-additional transliterator files.
|
|
|
|
!ENDIF
|
|
|
|
!ELSE
|
2003-05-03 00:48:54 +00:00
|
|
|
!MESSAGE Warning: cannot find "trnsfiles.mk"
|
2002-01-24 02:28:22 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2005-06-06 01:23:13 +00:00
|
|
|
!IFDEF TRANSLIT_SOURCE
|
|
|
|
TRANSLIT_FILES = $(ICUTRNS)\$(TRANSLIT_ALIAS_SOURCE) $(TRANSLIT_SOURCE)
|
2004-08-02 20:06:55 +00:00
|
|
|
TRANSLIT_RES_FILES = $(TRANSLIT_FILES:.txt =.res translit\)
|
|
|
|
TRANSLIT_RES_FILES = $(TRANSLIT_RES_FILES:.txt=.res)
|
2005-06-06 01:23:13 +00:00
|
|
|
TRANSLIT_RES_FILES = $(TRANSLIT_RES_FILES:translit\ =translit\)
|
|
|
|
#ALL_RES = $(ALL_RES) $(ICUTRNS)\res_index.res
|
|
|
|
!ENDIF
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2009-11-13 14:39:02 +00:00
|
|
|
# Read the list of miscellaneous resource bundle files
|
2003-08-15 18:18:46 +00:00
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICUMISC2)\miscfiles.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICUMISC2)\miscfiles.mk"
|
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICUMISC2)\misclocal.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICUMISC2)\misclocal.mk"
|
|
|
|
MISC_SOURCE=$(MISC_SOURCE) $(MISC_SOURCE_LOCAL)
|
|
|
|
!ELSE
|
2003-10-05 23:44:30 +00:00
|
|
|
!MESSAGE Information: cannot find "misclocal.mk". Not building user-additional miscellaenous files.
|
2003-08-15 18:18:46 +00:00
|
|
|
!ENDIF
|
|
|
|
!ELSE
|
|
|
|
!MESSAGE Warning: cannot find "miscfiles.mk"
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
MISC_FILES = $(MISC_SOURCE:.txt=.res)
|
|
|
|
|
2004-04-14 19:39:08 +00:00
|
|
|
# don't include COL_FILES
|
2005-06-06 01:23:13 +00:00
|
|
|
ALL_RES = $(ALL_RES) $(RB_FILES) $(MISC_FILES)
|
2005-09-20 07:15:06 +00:00
|
|
|
!ENDIF
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2009-11-13 14:39:02 +00:00
|
|
|
# Read the list of stringprep profile files
|
2009-02-02 16:16:07 +00:00
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICUSPREP)\sprepfiles.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICUSPREP)\sprepfiles.mk"
|
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICUSPREP)\spreplocal.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICUSPREP)\spreplocal.mk"
|
|
|
|
SPREP_SOURCE=$(SPREP_SOURCE) $(SPREP_SOURCE_LOCAL)
|
|
|
|
!ELSE
|
|
|
|
!MESSAGE Information: cannot find "spreplocal.mk". Not building user-additional stringprep files.
|
|
|
|
!ENDIF
|
|
|
|
!ELSE
|
|
|
|
!MESSAGE Warning: cannot find "sprepfiles.mk"
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
SPREP_FILES = $(SPREP_SOURCE:.txt=.spp)
|
|
|
|
|
2005-03-25 05:40:51 +00:00
|
|
|
# Common defines for both ways of building ICU's data library.
|
2008-08-12 04:41:41 +00:00
|
|
|
COMMON_ICUDATA_DEPENDENCIES="$(ICUPBIN)\pkgdata.exe" "$(ICUTMP)\icudata.res" "$(ICUP)\source\stubdata\stubdatabuilt.txt"
|
2008-11-24 20:04:52 +00:00
|
|
|
COMMON_ICUDATA_ARGUMENTS=-f -e $(U_ICUDATA_NAME) -v $(ICU_PACKAGE_MODE) -c -p $(ICUPKG) -T "$(ICUTMP)" -L $(U_ICUDATA_NAME) -d "$(ICUBLD_PKG)" -s .
|
2005-03-25 05:40:51 +00:00
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
#############################################################################
|
|
|
|
#
|
2003-10-05 23:44:30 +00:00
|
|
|
# ALL
|
2001-07-26 21:55:49 +00:00
|
|
|
# This target builds all the data files. The world starts here.
|
2005-03-25 05:40:51 +00:00
|
|
|
# Note: we really want the common data dll to go to $(DLL_OUTPUT), not $(ICUBLD_PKG). But specifying
|
2001-08-01 20:15:06 +00:00
|
|
|
# that here seems to cause confusion with the building of the stub library of the same name.
|
2005-03-25 05:40:51 +00:00
|
|
|
# Building the common dll in $(ICUBLD_PKG) unconditionally copies it to $(DLL_OUTPUT) too.
|
2001-07-26 21:55:49 +00:00
|
|
|
#
|
|
|
|
#############################################################################
|
2006-03-27 17:40:56 +00:00
|
|
|
ALL : GODATA "$(ICU_LIB_TARGET)" "$(TESTDATAOUT)\testdata.dat"
|
2000-12-03 04:09:23 +00:00
|
|
|
@echo All targets are up to date
|
|
|
|
|
2010-02-13 23:15:05 +00:00
|
|
|
# The core Unicode properties files (uprops.icu, ucase.icu, ubidi.icu)
|
2005-05-05 17:43:10 +00:00
|
|
|
# are hardcoded in the common DLL and therefore not included in the data package any more.
|
|
|
|
# They are not built by default but need to be built for ICU4J data and for getting the .c source files
|
|
|
|
# when updating the Unicode data.
|
|
|
|
# Changed in makedata.mak revision 1.117. See Jitterbug 4497.
|
2007-08-15 21:42:41 +00:00
|
|
|
# Command line:
|
2010-01-06 23:50:03 +00:00
|
|
|
# C:\svn\icuproj\icu\trunk\source\data>nmake -f makedata.mak ICUMAKE=C:\svn\icuproj\icu\trunk\source\data\ CFG=x86\Debug uni-core-data
|
2010-02-13 23:15:05 +00:00
|
|
|
uni-core-data: GODATA "$(ICUBLD_PKG)\uprops.icu" "$(ICUBLD_PKG)\ucase.icu" "$(ICUBLD_PKG)\ubidi.icu" "$(ICUTMP)\unorm_props_data.c"
|
2005-05-05 17:43:10 +00:00
|
|
|
@echo Unicode .icu files built to "$(ICUBLD_PKG)"
|
|
|
|
@echo Unicode .c source files built to "$(ICUTMP)"
|
|
|
|
|
2009-07-17 22:57:26 +00:00
|
|
|
# Build the ICU4J icudata.jar and testdata.jar.
|
2010-02-05 02:02:43 +00:00
|
|
|
# see icu4j-readme.txt
|
2009-07-17 22:57:26 +00:00
|
|
|
|
|
|
|
# Build icudata.jar:
|
|
|
|
# - add the uni-core-data to the ICU package
|
|
|
|
# - swap the ICU data
|
|
|
|
# - extract all data items
|
|
|
|
# - package them into the .jar file
|
|
|
|
"$(ICUOUT)\icu4j\icudata.jar": GODATA "$(ICUOUT)\$(ICUPKG).dat" uni-core-data
|
|
|
|
if not exist "$(ICUOUT)\icu4j\com\ibm\icu\impl\data\$(U_ICUDATA_NAME)b" mkdir "$(ICUOUT)\icu4j\com\ibm\icu\impl\data\$(U_ICUDATA_NAME)b"
|
2010-02-13 23:15:05 +00:00
|
|
|
echo ubidi.icu ucase.icu uprops.icu > "$(ICUOUT)\icu4j\add.txt"
|
2009-07-17 22:57:26 +00:00
|
|
|
"$(ICUPBIN)\icupkg" "$(ICUOUT)\$(ICUPKG).dat" "$(ICUOUT)\icu4j\$(U_ICUDATA_NAME)b.dat" -a "$(ICUOUT)\icu4j\add.txt" -s "$(ICUBLD_PKG)" -x * -tb -d "$(ICUOUT)\icu4j\com\ibm\icu\impl\data\$(U_ICUDATA_NAME)b"
|
|
|
|
"$(JAR)" cf "$(ICUOUT)\icu4j\icudata.jar" -C "$(ICUOUT)\icu4j" com\ibm\icu\impl\data\$(U_ICUDATA_NAME)b
|
|
|
|
|
|
|
|
# Build testdata.jar:
|
|
|
|
# - swap the test data
|
|
|
|
# - extract all data items
|
|
|
|
# - package them into the .jar file
|
|
|
|
"$(ICUOUT)\icu4j\testdata.jar": GODATA "$(TESTDATAOUT)\testdata.dat"
|
|
|
|
if not exist "$(ICUOUT)\icu4j\com\ibm\icu\dev\data\testdata" mkdir "$(ICUOUT)\icu4j\com\ibm\icu\dev\data\testdata"
|
|
|
|
"$(ICUPBIN)\icupkg" "$(TESTDATAOUT)\testdata.dat" -r test.icu -x * -tb -d "$(ICUOUT)\icu4j\com\ibm\icu\dev\data\testdata"
|
|
|
|
"$(JAR)" cf "$(ICUOUT)\icu4j\testdata.jar" -C "$(ICUOUT)\icu4j" com\ibm\icu\dev\data\testdata
|
|
|
|
|
2010-02-05 02:02:43 +00:00
|
|
|
## Compare to: source\data\Makefile.in and source\test\testdata\Makefile.in
|
|
|
|
|
|
|
|
DEBUGUTILITIESDATA_DIR=main\tests\core\src\com\ibm\icu\dev\test\util
|
|
|
|
DEBUGUTILITIESDATA_SRC=DebugUtilitiesData.java
|
|
|
|
|
|
|
|
# Build DebugUtilitiesData.java
|
|
|
|
"$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)\$(DEBUGUTILITIESDATA_SRC)" : {"$(ICUTOOLS)\gentest\$(CFG)"}gentest.exe
|
|
|
|
if not exist "$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)" mkdir "$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)"
|
|
|
|
"$(ICUTOOLS)\gentest\$(CFG)\gentest" -j -d"$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)"
|
|
|
|
|
|
|
|
ICU4J_DATA="$(ICUOUT)\icu4j\icudata.jar" "$(ICUOUT)\icu4j\testdata.jar" "$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)\$(DEBUGUTILITIESDATA_SRC)"
|
|
|
|
|
|
|
|
icu4j-data: GODATA $(ICU4J_DATA)
|
|
|
|
|
2009-07-17 22:57:26 +00:00
|
|
|
!IFDEF ICU4J_ROOT
|
|
|
|
|
|
|
|
"$(ICU4J_ROOT)\main\shared\data\icudata.jar": "$(ICUOUT)\icu4j\icudata.jar"
|
|
|
|
if not exist "$(ICU4J_ROOT)\main\shared\data" mkdir "$(ICU4J_ROOT)\main\shared\data"
|
|
|
|
copy "$(ICUOUT)\icu4j\icudata.jar" "$(ICU4J_ROOT)\main\shared\data"
|
|
|
|
|
|
|
|
"$(ICU4J_ROOT)\main\shared\data\testdata.jar": "$(ICUOUT)\icu4j\testdata.jar"
|
|
|
|
if not exist "$(ICU4J_ROOT)\main\shared\data" mkdir "$(ICU4J_ROOT)\main\shared\data"
|
|
|
|
copy "$(ICUOUT)\icu4j\testdata.jar" "$(ICU4J_ROOT)\main\shared\data"
|
|
|
|
|
2010-02-05 02:02:43 +00:00
|
|
|
# "$(DEBUGUTILTIESDATA_OUT)"
|
2009-07-17 22:57:26 +00:00
|
|
|
|
2010-02-05 02:02:43 +00:00
|
|
|
"$(ICU4J_ROOT)\$(DEBUGUTILITIESDATA_DIR)\$(DEBUGUTILITIESDATA_SRC)": "$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)\$(DEBUGUTILITIESDATA_SRC)"
|
|
|
|
if not exist "$(ICU4J_ROOT)\$(DEBUGUTILITIESDATA_DIR)" mkdir "$(ICU4J_ROOT)\$(DEBUGUTILITIESDATA_DIR)"
|
|
|
|
copy "$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)\$(DEBUGUTILITIESDATA_SRC)" "$(ICU4J_ROOT)\$(DEBUGUTILITIESDATA_DIR)\$(DEBUGUTILITIESDATA_SRC)"
|
2009-07-17 22:57:26 +00:00
|
|
|
|
2010-02-05 18:16:28 +00:00
|
|
|
ICU4J_DATA_INSTALLED="$(ICU4J_ROOT)\main\shared\data\icudata.jar" "$(ICU4J_ROOT)\main\shared\data\testdata.jar" "$(ICU4J_ROOT)\$(DEBUGUTILITIESDATA_DIR)\$(DEBUGUTILITIESDATA_SRC)"
|
2010-02-05 02:02:43 +00:00
|
|
|
|
|
|
|
icu4j-data-install : GODATA $(ICU4J_DATA) $(ICU4J_DATA_INSTALLED)
|
|
|
|
@echo ICU4J data output to "$(ICU4J_ROOT)"
|
|
|
|
|
|
|
|
!ELSE
|
|
|
|
|
|
|
|
icu4j-data-install :
|
|
|
|
@echo ERROR ICU4J_ROOT not set
|
|
|
|
@exit 1
|
2009-07-17 22:57:26 +00:00
|
|
|
|
|
|
|
!ENDIF
|
|
|
|
|
2010-02-05 02:02:43 +00:00
|
|
|
|
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
#
|
2003-10-05 23:44:30 +00:00
|
|
|
# testdata - nmake will invoke pkgdata, which will create testdata.dat
|
2001-07-26 21:55:49 +00:00
|
|
|
#
|
2008-09-22 19:49:33 +00:00
|
|
|
"$(TESTDATAOUT)\testdata.dat": "$(TESTDATA)\*" "$(ICUBLD_PKG)\$(ICUCOL)\ucadata.icu" $(TRANSLIT_RES_FILES) $(MISC_FILES) $(RB_FILES) {"$(ICUTOOLS)\genrb\$(CFG)"}genrb.exe
|
2001-03-19 22:35:36 +00:00
|
|
|
@cd "$(TESTDATA)"
|
2001-10-31 23:57:05 +00:00
|
|
|
@echo building testdata...
|
2008-08-12 04:41:41 +00:00
|
|
|
nmake /nologo /f "$(TESTDATA)\testdata.mak" TESTDATA=. ICUTOOLS="$(ICUTOOLS)" ICUPBIN="$(ICUPBIN)" ICUP="$(ICUP)" CFG=$(CFG) TESTDATAOUT="$(TESTDATAOUT)" TESTDATABLD="$(TESTDATABLD)"
|
2001-03-19 22:35:36 +00:00
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
#invoke pkgdata for ICU common data
|
2005-03-25 05:40:51 +00:00
|
|
|
# pkgdata will drop all output files (.dat, .dll, .lib) into the target (ICUBLD_PKG) directory.
|
2001-07-26 21:55:49 +00:00
|
|
|
# move the .dll and .lib files to their final destination afterwards.
|
2002-03-08 01:57:46 +00:00
|
|
|
# The $(U_ICUDATA_NAME).lib and $(U_ICUDATA_NAME).exp should already be in the right place due to stubdata.
|
2001-07-26 21:55:49 +00:00
|
|
|
#
|
2005-05-05 17:43:10 +00:00
|
|
|
# 2005-may-05 Removed Unicode properties files (unorm.icu, uprops.icu, ucase.icu, ubidi.icu)
|
|
|
|
# from data build. See Jitterbug 4497. (makedata.mak revision 1.117)
|
|
|
|
#
|
2005-03-25 05:40:51 +00:00
|
|
|
!IFDEF ICUDATA_SOURCE_ARCHIVE
|
2006-03-27 17:40:56 +00:00
|
|
|
"$(ICU_LIB_TARGET)" : $(COMMON_ICUDATA_DEPENDENCIES) "$(ICUDATA_SOURCE_ARCHIVE)"
|
2005-03-25 05:40:51 +00:00
|
|
|
@echo Building icu data from $(ICUDATA_SOURCE_ARCHIVE)
|
|
|
|
cd "$(ICUBLD_PKG)"
|
2008-08-12 04:41:41 +00:00
|
|
|
"$(ICUPBIN)\icupkg" -x * --list "$(ICUDATA_SOURCE_ARCHIVE)" > "$(ICUTMP)\icudata.lst"
|
|
|
|
"$(ICUPBIN)\pkgdata" $(COMMON_ICUDATA_ARGUMENTS) "$(ICUTMP)\icudata.lst"
|
2005-03-25 05:40:51 +00:00
|
|
|
copy "$(U_ICUDATA_NAME).dll" "$(DLL_OUTPUT)"
|
|
|
|
-@erase "$(U_ICUDATA_NAME).dll"
|
2006-12-16 21:04:13 +00:00
|
|
|
copy "$(ICUTMP)\$(ICUPKG).dat" "$(ICUOUT)\$(U_ICUDATA_NAME)$(U_ICUDATA_ENDIAN_SUFFIX).dat"
|
|
|
|
-@erase "$(ICUTMP)\$(ICUPKG).dat"
|
2005-03-25 05:40:51 +00:00
|
|
|
!ELSE
|
2010-01-06 23:50:03 +00:00
|
|
|
"$(ICU_LIB_TARGET)" : $(COMMON_ICUDATA_DEPENDENCIES) $(CNV_FILES) "$(ICUBLD_PKG)\unames.icu" "$(ICUBLD_PKG)\pnames.icu" "$(ICUBLD_PKG)\cnvalias.icu" "$(ICUBLD_PKG)\nfc.nrm" "$(ICUBLD_PKG)\nfkc.nrm" "$(ICUBLD_PKG)\nfkc_cf.nrm" "$(ICUBLD_PKG)\$(ICUCOL)\ucadata.icu" "$(ICUBLD_PKG)\$(ICUCOL)\invuca.icu" $(CURR_RES_FILES) $(LANG_RES_FILES) $(REGION_RES_FILES) $(ZONE_RES_FILES) $(BRK_FILES) $(BRK_CTD_FILES) $(BRK_RES_FILES) $(COL_COL_FILES) $(RBNF_RES_FILES) $(TRANSLIT_RES_FILES) $(ALL_RES) $(SPREP_FILES) "$(ICUBLD_PKG)\confusables.cfu"
|
2005-03-25 05:40:51 +00:00
|
|
|
@echo Building icu data
|
|
|
|
cd "$(ICUBLD_PKG)"
|
2008-08-12 04:41:41 +00:00
|
|
|
"$(ICUPBIN)\pkgdata" $(COMMON_ICUDATA_ARGUMENTS) <<"$(ICUTMP)\icudata.lst"
|
2004-04-14 19:39:08 +00:00
|
|
|
pnames.icu
|
|
|
|
unames.icu
|
2009-03-09 23:40:15 +00:00
|
|
|
confusables.cfu
|
2008-09-22 19:49:33 +00:00
|
|
|
$(ICUCOL)\ucadata.icu
|
|
|
|
$(ICUCOL)\invuca.icu
|
2004-04-14 19:39:08 +00:00
|
|
|
cnvalias.icu
|
2010-01-06 23:50:03 +00:00
|
|
|
nfc.nrm
|
|
|
|
nfkc.nrm
|
|
|
|
nfkc_cf.nrm
|
2000-12-03 04:09:23 +00:00
|
|
|
$(CNV_FILES:.cnv =.cnv
|
|
|
|
)
|
2002-05-13 17:26:51 +00:00
|
|
|
$(ALL_RES:.res =.res
|
2000-12-03 04:09:23 +00:00
|
|
|
)
|
2009-11-13 14:39:02 +00:00
|
|
|
$(CURR_RES_FILES:.res =.res
|
|
|
|
)
|
|
|
|
$(LANG_RES_FILES:.res =.res
|
|
|
|
)
|
|
|
|
$(REGION_RES_FILES:.res =.res
|
|
|
|
)
|
|
|
|
$(ZONE_RES_FILES:.res =.res
|
|
|
|
)
|
2004-07-13 08:08:17 +00:00
|
|
|
$(COL_COL_FILES:.res =.res
|
2004-04-14 19:39:08 +00:00
|
|
|
)
|
2004-07-14 18:35:16 +00:00
|
|
|
$(RBNF_RES_FILES:.res =.res
|
|
|
|
)
|
2004-08-02 20:06:55 +00:00
|
|
|
$(TRANSLIT_RES_FILES:.res =.res
|
|
|
|
)
|
2003-05-05 16:52:15 +00:00
|
|
|
$(BRK_FILES:.brk =.brk
|
2000-12-03 04:09:23 +00:00
|
|
|
)
|
2006-04-21 00:55:24 +00:00
|
|
|
$(BRK_CTD_FILES:.ctd =.ctd
|
2006-03-24 01:21:27 +00:00
|
|
|
)
|
2006-03-23 09:46:37 +00:00
|
|
|
$(BRK_RES_FILES:.res =.res
|
|
|
|
)
|
2009-02-02 16:16:07 +00:00
|
|
|
$(SPREP_FILES:.spp=.spp
|
|
|
|
)
|
2000-12-03 04:09:23 +00:00
|
|
|
<<KEEP
|
2006-03-27 17:40:56 +00:00
|
|
|
-@erase "$(ICU_LIB_TARGET)"
|
|
|
|
copy "$(U_ICUDATA_NAME).dll" "$(ICU_LIB_TARGET)"
|
2004-05-06 00:39:17 +00:00
|
|
|
-@erase "$(U_ICUDATA_NAME).dll"
|
2006-12-16 21:04:13 +00:00
|
|
|
copy "$(ICUTMP)\$(ICUPKG).dat" "$(ICUOUT)\$(U_ICUDATA_NAME)$(U_ICUDATA_ENDIAN_SUFFIX).dat"
|
|
|
|
-@erase "$(ICUTMP)\$(ICUPKG).dat"
|
2005-03-25 05:40:51 +00:00
|
|
|
!ENDIF
|
2003-10-05 23:44:30 +00:00
|
|
|
|
2005-09-20 07:15:06 +00:00
|
|
|
# utility target to create missing directories
|
|
|
|
CREATE_DIRS :
|
2002-01-24 02:28:22 +00:00
|
|
|
@if not exist "$(ICUOUT)\$(NULL)" mkdir "$(ICUOUT)"
|
2004-04-14 19:39:08 +00:00
|
|
|
@if not exist "$(ICUTMP)\$(NULL)" mkdir "$(ICUTMP)"
|
2004-04-22 22:20:35 +00:00
|
|
|
@if not exist "$(ICUOUT)\build\$(NULL)" mkdir "$(ICUOUT)\build"
|
2005-03-25 05:40:51 +00:00
|
|
|
@if not exist "$(ICUBLD_PKG)\$(NULL)" mkdir "$(ICUBLD_PKG)"
|
2009-11-13 14:39:02 +00:00
|
|
|
@if not exist "$(ICUBLD_PKG)\curr\$(NULL)" mkdir "$(ICUBLD_PKG)\curr"
|
|
|
|
@if not exist "$(ICUBLD_PKG)\lang\$(NULL)" mkdir "$(ICUBLD_PKG)\lang"
|
|
|
|
@if not exist "$(ICUBLD_PKG)\region\$(NULL)" mkdir "$(ICUBLD_PKG)\region"
|
|
|
|
@if not exist "$(ICUBLD_PKG)\zone\$(NULL)" mkdir "$(ICUBLD_PKG)\zone"
|
2006-03-23 09:46:37 +00:00
|
|
|
@if not exist "$(ICUBLD_PKG)\$(ICUBRK)\$(NULL)" mkdir "$(ICUBLD_PKG)\$(ICUBRK)"
|
2005-03-25 05:40:51 +00:00
|
|
|
@if not exist "$(ICUBLD_PKG)\$(ICUCOL)\$(NULL)" mkdir "$(ICUBLD_PKG)\$(ICUCOL)"
|
|
|
|
@if not exist "$(ICUBLD_PKG)\$(ICURBNF)\$(NULL)" mkdir "$(ICUBLD_PKG)\$(ICURBNF)"
|
|
|
|
@if not exist "$(ICUBLD_PKG)\$(ICUTRNS)\$(NULL)" mkdir "$(ICUBLD_PKG)\$(ICUTRNS)"
|
2002-01-24 02:28:22 +00:00
|
|
|
@if not exist "$(TESTDATAOUT)\$(NULL)" mkdir "$(TESTDATAOUT)"
|
2002-02-19 23:23:17 +00:00
|
|
|
@if not exist "$(TESTDATABLD)\$(NULL)" mkdir "$(TESTDATABLD)"
|
2006-02-24 19:31:34 +00:00
|
|
|
@if not exist "$(TESTDATAOUT)\testdata\$(NULL)" mkdir "$(TESTDATAOUT)\testdata"
|
2005-09-20 07:15:06 +00:00
|
|
|
|
|
|
|
# utility target to send us to the right dir
|
|
|
|
GODATA : CREATE_DIRS
|
2005-03-25 05:40:51 +00:00
|
|
|
@cd "$(ICUBLD_PKG)"
|
2000-12-03 04:09:23 +00:00
|
|
|
|
|
|
|
# This is to remove all the data files
|
2002-02-05 19:04:56 +00:00
|
|
|
CLEAN : GODATA
|
2001-09-18 00:02:52 +00:00
|
|
|
@echo Cleaning up the data files.
|
2005-03-25 05:40:51 +00:00
|
|
|
@cd "$(ICUBLD_PKG)"
|
2000-12-03 04:09:23 +00:00
|
|
|
-@erase "*.cnv"
|
2002-05-13 17:26:51 +00:00
|
|
|
-@erase "*.exp"
|
2002-07-18 00:26:33 +00:00
|
|
|
-@erase "*.icu"
|
2002-05-13 17:26:51 +00:00
|
|
|
-@erase "*.lib"
|
2010-01-06 23:50:03 +00:00
|
|
|
-@erase "*.nrm"
|
2002-03-08 01:57:46 +00:00
|
|
|
-@erase "*.res"
|
2003-08-31 16:47:59 +00:00
|
|
|
-@erase "*.spp"
|
2004-07-13 14:32:53 +00:00
|
|
|
-@erase "*.txt"
|
2009-03-09 23:40:15 +00:00
|
|
|
-@erase "*.cfu"
|
2009-11-13 14:39:02 +00:00
|
|
|
-@erase "curr\*.res"
|
|
|
|
-@erase "curr\*.txt"
|
|
|
|
-@erase "lang\*.res"
|
|
|
|
-@erase "lang\*.txt"
|
|
|
|
-@erase "region\*.res"
|
|
|
|
-@erase "region\*.txt"
|
|
|
|
-@erase "zone\*.res"
|
|
|
|
-@erase "zone\*.txt"
|
2006-03-23 09:46:37 +00:00
|
|
|
@cd "$(ICUBLD_PKG)\$(ICUBRK)"
|
|
|
|
-@erase "*.brk"
|
2006-12-14 04:26:41 +00:00
|
|
|
-@erase "*.ctd"
|
2006-03-23 09:46:37 +00:00
|
|
|
-@erase "*.res"
|
|
|
|
-@erase "*.txt"
|
2005-03-25 05:40:51 +00:00
|
|
|
@cd "$(ICUBLD_PKG)\$(ICUCOL)"
|
2004-07-13 08:08:17 +00:00
|
|
|
-@erase "*.res"
|
2004-07-13 14:32:53 +00:00
|
|
|
-@erase "*.txt"
|
2005-03-25 05:40:51 +00:00
|
|
|
@cd "$(ICUBLD_PKG)\$(ICURBNF)"
|
2004-07-14 18:35:16 +00:00
|
|
|
-@erase "*.res"
|
|
|
|
-@erase "*.txt"
|
2009-03-09 23:40:15 +00:00
|
|
|
@cd "$(ICUBLD_PKG)\$(ICUTRNS)"
|
2004-08-02 20:06:55 +00:00
|
|
|
-@erase "*.res"
|
2002-03-08 01:57:46 +00:00
|
|
|
@cd "$(ICUOUT)"
|
|
|
|
-@erase "*.dat"
|
2004-07-13 14:32:53 +00:00
|
|
|
@cd "$(ICUTMP)"
|
2006-12-14 04:26:41 +00:00
|
|
|
-@erase "*.html"
|
2006-01-03 17:59:44 +00:00
|
|
|
-@erase "*.lst"
|
2004-07-13 14:32:53 +00:00
|
|
|
-@erase "*.mak"
|
|
|
|
-@erase "*.obj"
|
|
|
|
-@erase "*.res"
|
2002-03-08 01:57:46 +00:00
|
|
|
@cd "$(TESTDATABLD)"
|
2003-08-31 16:47:59 +00:00
|
|
|
-@erase "*.cnv"
|
|
|
|
-@erase "*.icu"
|
2002-03-08 01:57:46 +00:00
|
|
|
-@erase "*.mak"
|
2003-08-31 16:47:59 +00:00
|
|
|
-@erase "*.res"
|
|
|
|
-@erase "*.spp"
|
2003-12-07 23:13:00 +00:00
|
|
|
-@erase "*.txt"
|
2001-09-18 00:02:52 +00:00
|
|
|
@cd "$(TESTDATAOUT)"
|
|
|
|
-@erase "*.dat"
|
2006-03-24 01:21:27 +00:00
|
|
|
@cd "$(TESTDATAOUT)\testdata"
|
2003-08-31 16:47:59 +00:00
|
|
|
-@erase "*.typ"
|
2005-03-25 05:40:51 +00:00
|
|
|
@cd "$(ICUBLD_PKG)"
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2000-12-04 21:51:29 +00:00
|
|
|
|
2004-07-13 08:08:17 +00:00
|
|
|
# RBBI .brk file generation.
|
|
|
|
{$(ICUSRCDATA_RELATIVE_PATH)\$(ICUBRK)}.txt.brk:
|
2006-03-24 01:21:27 +00:00
|
|
|
@echo Creating $@
|
|
|
|
@"$(ICUTOOLS)\genbrk\$(CFG)\genbrk" -c -r $< -o $@ -d"$(ICUBLD_PKG)" -i "$(ICUBLD_PKG)"
|
|
|
|
|
|
|
|
# RBBI .ctd file generation.
|
|
|
|
{$(ICUSRCDATA_RELATIVE_PATH)\$(ICUBRK)}.txt.ctd:
|
|
|
|
@echo Creating $@
|
|
|
|
@"$(ICUTOOLS)\genctd\$(CFG)\genctd" -c -o $@ -d"$(ICUBLD_PKG)" -i "$(ICUBLD_PKG)" $<
|
2004-07-13 08:08:17 +00:00
|
|
|
|
2001-11-16 18:38:11 +00:00
|
|
|
# Batch inference rule for creating converters
|
2002-03-08 01:57:46 +00:00
|
|
|
{$(ICUSRCDATA_RELATIVE_PATH)\$(ICUUCM)}.ucm.cnv::
|
2006-12-13 01:38:41 +00:00
|
|
|
@echo Making Charset Conversion tables
|
2005-03-25 05:40:51 +00:00
|
|
|
@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" -c -d"$(ICUBLD_PKG)" $<
|
2002-01-24 02:28:22 +00:00
|
|
|
|
2003-08-15 18:18:46 +00:00
|
|
|
# Batch inference rule for creating miscellaneous resource files
|
|
|
|
# TODO: -q option is specified to squelch the 120+ warnings about
|
|
|
|
# empty intvectors and binary elements. Unfortunately, this may
|
|
|
|
# squelch other legitimate warnings. When there is a better
|
|
|
|
# way, remove the -q.
|
|
|
|
{$(ICUSRCDATA_RELATIVE_PATH)\$(ICUMISC2)}.txt.res::
|
|
|
|
@echo Making Miscellaneous Resource Bundle files
|
2005-03-25 05:40:51 +00:00
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -q -d"$(ICUBLD_PKG)" $<
|
2004-04-14 19:39:08 +00:00
|
|
|
|
|
|
|
# Inference rule for creating resource bundle files
|
|
|
|
{$(ICUSRCDATA_RELATIVE_PATH)\$(ICULOC)}.txt.res::
|
|
|
|
@echo Making Locale Resource Bundle files
|
2009-07-17 22:57:26 +00:00
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" --usePoolBundle -k -d"$(ICUBLD_PKG)" $<
|
|
|
|
|
|
|
|
# copy the pool.res file from the source folder to the build output folder
|
|
|
|
# and swap it to native endianness
|
|
|
|
pool.res: $(ICUSRCDATA_RELATIVE_PATH)\$(ICULOC)\pool.res
|
|
|
|
"$(ICUPBIN)\icupkg" -tl "$(ICUSRCDATA_RELATIVE_PATH)\$(ICULOC)\pool.res" pool.res
|
2004-04-14 19:39:08 +00:00
|
|
|
|
2005-06-06 01:23:13 +00:00
|
|
|
res_index.res:
|
2004-08-02 20:06:55 +00:00
|
|
|
@echo Generating <<res_index.txt
|
|
|
|
// Warning this file is automatically generated
|
2005-11-29 00:10:07 +00:00
|
|
|
res_index:table(nofallback) {
|
2004-08-02 20:06:55 +00:00
|
|
|
InstalledLocales {
|
|
|
|
$(GENRB_SOURCE:.txt= {""}
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<<KEEP
|
2005-03-25 05:40:51 +00:00
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -d"$(ICUBLD_PKG)" .\res_index.txt
|
2004-08-02 20:06:55 +00:00
|
|
|
|
2009-11-13 14:39:02 +00:00
|
|
|
|
|
|
|
{$(ICUSRCDATA_RELATIVE_PATH)\curr}.txt{curr}.res::
|
|
|
|
@echo Making currency display name files
|
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -i "$(ICUBLD_PKG)" -d"$(ICUBLD_PKG)\curr" $<
|
|
|
|
|
|
|
|
curr\res_index.res:
|
|
|
|
@echo Generating <<curr\res_index.txt
|
|
|
|
// Warning this file is automatically generated
|
|
|
|
res_index:table(nofallback) {
|
|
|
|
InstalledLocales {
|
|
|
|
$(CURR_SOURCE:.txt= {""}
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<<KEEP
|
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -d"$(ICUBLD_PKG)\curr" .\curr\res_index.txt
|
|
|
|
|
|
|
|
|
|
|
|
{$(ICUSRCDATA_RELATIVE_PATH)\lang}.txt{lang}.res::
|
|
|
|
@echo Making language/script display name files
|
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -i "$(ICUBLD_PKG)" -d"$(ICUBLD_PKG)\lang" $<
|
|
|
|
|
|
|
|
lang\res_index.res:
|
|
|
|
@echo Generating <<lang\res_index.txt
|
|
|
|
// Warning this file is automatically generated
|
|
|
|
res_index:table(nofallback) {
|
|
|
|
InstalledLocales {
|
|
|
|
$(LANG_SOURCE:.txt= {""}
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<<KEEP
|
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -d"$(ICUBLD_PKG)\lang" .\lang\res_index.txt
|
|
|
|
|
|
|
|
|
|
|
|
{$(ICUSRCDATA_RELATIVE_PATH)\region}.txt{region}.res::
|
|
|
|
@echo Making region display name files
|
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -i "$(ICUBLD_PKG)" -d"$(ICUBLD_PKG)\region" $<
|
|
|
|
|
|
|
|
region\res_index.res:
|
|
|
|
@echo Generating <<region\res_index.txt
|
|
|
|
// Warning this file is automatically generated
|
|
|
|
res_index:table(nofallback) {
|
|
|
|
InstalledLocales {
|
|
|
|
$(REGION_SOURCE:.txt= {""}
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<<KEEP
|
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -d"$(ICUBLD_PKG)\region" .\region\res_index.txt
|
|
|
|
|
|
|
|
|
|
|
|
{$(ICUSRCDATA_RELATIVE_PATH)\zone}.txt{zone}.res::
|
|
|
|
@echo Making time zone display name files
|
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -i "$(ICUBLD_PKG)" -d"$(ICUBLD_PKG)\zone" $<
|
|
|
|
|
|
|
|
zone\res_index.res:
|
|
|
|
@echo Generating <<zone\res_index.txt
|
|
|
|
// Warning this file is automatically generated
|
|
|
|
res_index:table(nofallback) {
|
|
|
|
InstalledLocales {
|
|
|
|
$(ZONE_SOURCE:.txt= {""}
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<<KEEP
|
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -d"$(ICUBLD_PKG)\zone" .\zone\res_index.txt
|
|
|
|
|
|
|
|
|
2004-07-13 14:32:53 +00:00
|
|
|
{$(ICUSRCDATA_RELATIVE_PATH)\$(ICUCOL)}.txt{$(ICUCOL)}.res::
|
2004-07-13 08:08:17 +00:00
|
|
|
@echo Making Collation files
|
2005-03-25 05:40:51 +00:00
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -i "$(ICUBLD_PKG)" -d"$(ICUBLD_PKG)\$(ICUCOL)" $<
|
2004-07-13 08:08:17 +00:00
|
|
|
|
2005-06-06 01:23:13 +00:00
|
|
|
$(ICUCOL)\res_index.res:
|
2004-07-13 08:08:17 +00:00
|
|
|
@echo Generating <<$(ICUCOL)\res_index.txt
|
2004-04-14 19:39:08 +00:00
|
|
|
// Warning this file is automatically generated
|
2005-11-29 00:10:07 +00:00
|
|
|
res_index:table(nofallback) {
|
2004-04-14 19:39:08 +00:00
|
|
|
InstalledLocales {
|
|
|
|
$(COLLATION_SOURCE:.txt= {""}
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<<KEEP
|
2005-03-25 05:40:51 +00:00
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -d"$(ICUBLD_PKG)\$(ICUCOL)" .\$(ICUCOL)\res_index.txt
|
2004-04-14 19:39:08 +00:00
|
|
|
|
2004-07-14 18:35:16 +00:00
|
|
|
{$(ICUSRCDATA_RELATIVE_PATH)\$(ICURBNF)}.txt{$(ICURBNF)}.res::
|
2004-07-18 22:04:47 +00:00
|
|
|
@echo Making RBNF files
|
2005-03-25 05:40:51 +00:00
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -i "$(ICUBLD_PKG)" -d"$(ICUBLD_PKG)\$(ICURBNF)" $<
|
2004-07-14 18:35:16 +00:00
|
|
|
|
2005-06-06 01:23:13 +00:00
|
|
|
$(ICURBNF)\res_index.res:
|
2004-07-14 18:35:16 +00:00
|
|
|
@echo Generating <<$(ICURBNF)\res_index.txt
|
|
|
|
// Warning this file is automatically generated
|
2005-11-29 00:10:07 +00:00
|
|
|
res_index:table(nofallback) {
|
2004-07-14 18:35:16 +00:00
|
|
|
InstalledLocales {
|
|
|
|
$(RBNF_SOURCE:.txt= {""}
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<<KEEP
|
2005-03-25 05:40:51 +00:00
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -d"$(ICUBLD_PKG)\$(ICURBNF)" .\$(ICURBNF)\res_index.txt
|
2004-07-14 18:35:16 +00:00
|
|
|
|
2006-03-23 09:46:37 +00:00
|
|
|
$(ICUBRK)\res_index.res:
|
|
|
|
@echo Generating <<$(ICUBRK)\res_index.txt
|
|
|
|
// Warning this file is automatically generated
|
|
|
|
res_index:table(nofallback) {
|
|
|
|
InstalledLocales {
|
|
|
|
$(BRK_RES_SOURCE:.txt= {""}
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<<KEEP
|
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -d"$(ICUBLD_PKG)\$(ICUBRK)" .\$(ICUBRK)\res_index.txt
|
|
|
|
|
|
|
|
{$(ICUSRCDATA_RELATIVE_PATH)\$(ICUBRK)}.txt{$(ICUBRK)}.res::
|
|
|
|
@echo Making Break Iterator Resource files
|
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -i "$(ICUBLD_PKG)" -d"$(ICUBLD_PKG)\$(ICUBRK)" $<
|
|
|
|
|
2004-08-02 20:06:55 +00:00
|
|
|
{$(ICUSRCDATA_RELATIVE_PATH)\$(ICUTRNS)}.txt{$(ICUTRNS)}.res::
|
|
|
|
@echo Making Transliterator files
|
2005-03-25 05:40:51 +00:00
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -i "$(ICUBLD_PKG)" -d"$(ICUBLD_PKG)\$(ICUTRNS)" $<
|
2003-08-15 18:18:46 +00:00
|
|
|
|
2003-05-05 16:52:15 +00:00
|
|
|
|
2001-05-10 23:16:00 +00:00
|
|
|
# DLL version information
|
2004-05-17 17:49:49 +00:00
|
|
|
# If you modify this, modify winmode.c in pkgdata.
|
2004-05-17 19:09:26 +00:00
|
|
|
"$(ICUTMP)\icudata.res": "$(ICUMISC)\icudata.rc"
|
2001-05-10 23:16:00 +00:00
|
|
|
@echo Creating data DLL version information from $**
|
2005-01-11 23:35:15 +00:00
|
|
|
@rc.exe /i "..\..\..\..\common" /r /fo $@ $**
|
2001-05-10 23:16:00 +00:00
|
|
|
|
2002-07-18 00:26:33 +00:00
|
|
|
# Targets for unames.icu
|
2005-03-25 05:40:51 +00:00
|
|
|
"$(ICUBLD_PKG)\unames.icu": "$(ICUUNIDATA)\*.txt" "$(ICUTOOLS)\gennames\$(CFG)\gennames.exe"
|
2000-12-03 04:09:23 +00:00
|
|
|
@echo Creating data file for Unicode Names
|
2009-11-13 19:25:21 +00:00
|
|
|
@"$(ICUTOOLS)\gennames\$(CFG)\gennames" -1 -u $(UNICODE_VERSION) -d "$(ICUBLD_PKG)" "$(ICUUNIDATA)\UnicodeData.txt" "$(ICUUNIDATA)\NameAliases.txt"
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2002-10-30 18:02:00 +00:00
|
|
|
# Targets for pnames.icu
|
|
|
|
# >> Depends on the Unicode data as well as uchar.h and uscript.h <<
|
2005-03-25 05:40:51 +00:00
|
|
|
"$(ICUBLD_PKG)\pnames.icu": "$(ICUUNIDATA)\*.txt" "$(ICUTOOLS)\genpname\$(CFG)\genpname.exe" "$(ICUP)\source\common\unicode\uchar.h" "$(ICUP)\source\common\unicode\uscript.h"
|
2002-10-30 18:02:00 +00:00
|
|
|
@echo Creating data file for Unicode Property Names
|
2005-03-25 05:40:51 +00:00
|
|
|
@"$(ICUTOOLS)\genpname\$(CFG)\genpname" -d "$(ICUBLD_PKG)"
|
2002-10-30 18:02:00 +00:00
|
|
|
|
2002-07-18 00:26:33 +00:00
|
|
|
# Targets for uprops.icu
|
2005-03-25 05:40:51 +00:00
|
|
|
"$(ICUBLD_PKG)\uprops.icu": "$(ICUUNIDATA)\*.txt" "$(ICUTOOLS)\genprops\$(CFG)\genprops.exe" "$(ICUBLD_PKG)\pnames.icu"
|
2000-12-03 04:09:23 +00:00
|
|
|
@echo Creating data file for Unicode Character Properties
|
2005-03-25 05:40:51 +00:00
|
|
|
@"$(ICUTOOLS)\genprops\$(CFG)\genprops" -u $(UNICODE_VERSION) -i "$(ICUBLD_PKG)" -s "$(ICUUNIDATA)" -d "$(ICUBLD_PKG)"
|
2005-05-05 17:43:10 +00:00
|
|
|
@"$(ICUTOOLS)\genprops\$(CFG)\genprops" --csource -u $(UNICODE_VERSION) -i "$(ICUBLD_PKG)" -s "$(ICUUNIDATA)" -d "$(ICUTMP)"
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2004-12-31 13:28:06 +00:00
|
|
|
# Targets for ubidi.icu
|
2005-03-25 05:40:51 +00:00
|
|
|
"$(ICUBLD_PKG)\ubidi.icu": "$(ICUUNIDATA)\*.txt" "$(ICUTOOLS)\genbidi\$(CFG)\genbidi.exe"
|
2004-12-31 13:28:06 +00:00
|
|
|
@echo Creating data file for Unicode BiDi/Shaping Properties
|
2005-03-25 05:40:51 +00:00
|
|
|
@"$(ICUTOOLS)\genbidi\$(CFG)\genbidi" -u $(UNICODE_VERSION) -i "$(ICUBLD_PKG)" -s "$(ICUUNIDATA)" -d "$(ICUBLD_PKG)"
|
2005-05-05 17:43:10 +00:00
|
|
|
@"$(ICUTOOLS)\genbidi\$(CFG)\genbidi" --csource -u $(UNICODE_VERSION) -i "$(ICUBLD_PKG)" -s "$(ICUUNIDATA)" -d "$(ICUTMP)"
|
2004-12-31 13:28:06 +00:00
|
|
|
|
2004-09-06 16:04:26 +00:00
|
|
|
# Targets for ucase.icu
|
2005-03-25 05:40:51 +00:00
|
|
|
"$(ICUBLD_PKG)\ucase.icu": "$(ICUUNIDATA)\*.txt" "$(ICUTOOLS)\gencase\$(CFG)\gencase.exe"
|
2004-09-06 16:04:26 +00:00
|
|
|
@echo Creating data file for Unicode Case Mapping Properties
|
2005-03-25 05:40:51 +00:00
|
|
|
@"$(ICUTOOLS)\gencase\$(CFG)\gencase" -u $(UNICODE_VERSION) -i "$(ICUBLD_PKG)" -s "$(ICUUNIDATA)" -d "$(ICUBLD_PKG)"
|
2005-05-05 17:43:10 +00:00
|
|
|
@"$(ICUTOOLS)\gencase\$(CFG)\gencase" --csource -u $(UNICODE_VERSION) -i "$(ICUBLD_PKG)" -s "$(ICUUNIDATA)" -d "$(ICUTMP)"
|
2004-09-06 16:04:26 +00:00
|
|
|
|
2010-02-13 23:15:05 +00:00
|
|
|
# Targets for normalization
|
2010-01-06 23:50:03 +00:00
|
|
|
"$(ICUTMP)\unorm_props_data.c": "$(ICUUNIDATA)\*.txt" "$(ICUTOOLS)\gennorm\$(CFG)\gennorm.exe" "$(ICUBLD_PKG)\pnames.icu" "$(ICUBLD_PKG)\uprops.icu" "$(ICUBLD_PKG)\ucase.icu"
|
2001-06-20 22:24:42 +00:00
|
|
|
@echo Creating data file for Unicode Normalization
|
2005-05-05 17:43:10 +00:00
|
|
|
@"$(ICUTOOLS)\gennorm\$(CFG)\gennorm" --csource -u $(UNICODE_VERSION) -i "$(ICUBLD_PKG)" -s "$(ICUUNIDATA)" -d "$(ICUTMP)"
|
2001-06-20 22:24:42 +00:00
|
|
|
|
2000-12-03 04:09:23 +00:00
|
|
|
# Targets for converters
|
2005-03-25 05:40:51 +00:00
|
|
|
"$(ICUBLD_PKG)\cnvalias.icu" : {"$(ICUSRCDATA)\$(ICUUCM)"}\convrtrs.txt "$(ICUTOOLS)\gencnval\$(CFG)\gencnval.exe"
|
2000-12-03 04:09:23 +00:00
|
|
|
@echo Creating data file for Converter Aliases
|
2005-03-25 05:40:51 +00:00
|
|
|
@"$(ICUTOOLS)\gencnval\$(CFG)\gencnval" -d "$(ICUBLD_PKG)" "$(ICUSRCDATA)\$(ICUUCM)\convrtrs.txt"
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2002-07-18 00:26:33 +00:00
|
|
|
# Targets for ucadata.icu & invuca.icu
|
2010-02-13 23:15:05 +00:00
|
|
|
# used to depend on "$(ICUBLD_PKG)\uprops.icu" "$(ICUBLD_PKG)\ucase.icu" "$(ICUBLD_PKG)\nfc.nrm"
|
2005-05-05 17:43:10 +00:00
|
|
|
# see Jitterbug 4497
|
2010-01-06 23:50:03 +00:00
|
|
|
"$(ICUBLD_PKG)\$(ICUCOL)\invuca.icu" "$(ICUBLD_PKG)\$(ICUCOL)\ucadata.icu": "$(ICUUNIDATA)\FractionalUCA.txt" "$(ICUTOOLS)\genuca\$(CFG)\genuca.exe" "$(ICUBLD_PKG)\nfc.nrm"
|
2001-02-23 04:57:47 +00:00
|
|
|
@echo Creating UCA data files
|
2008-09-22 19:49:33 +00:00
|
|
|
@"$(ICUTOOLS)\genuca\$(CFG)\genuca" -d "$(ICUBLD_PKG)\$(ICUCOL)" -i "$(ICUBLD_PKG)" -s "$(ICUUNIDATA)"
|
2001-02-23 04:57:47 +00:00
|
|
|
|
2010-01-06 23:50:03 +00:00
|
|
|
# Targets for prebuilt Unicode data
|
|
|
|
"$(ICUBLD_PKG)\nfc.nrm": $(ICUSRCDATA_RELATIVE_PATH)\in\nfc.nrm
|
|
|
|
"$(ICUPBIN)\icupkg" -tl $? $@
|
|
|
|
|
|
|
|
"$(ICUBLD_PKG)\nfkc.nrm": $(ICUSRCDATA_RELATIVE_PATH)\in\nfkc.nrm
|
|
|
|
"$(ICUPBIN)\icupkg" -tl $? $@
|
|
|
|
|
|
|
|
"$(ICUBLD_PKG)\nfkc_cf.nrm": $(ICUSRCDATA_RELATIVE_PATH)\in\nfkc_cf.nrm
|
|
|
|
"$(ICUPBIN)\icupkg" -tl $? $@
|
|
|
|
|
2009-02-02 16:16:07 +00:00
|
|
|
# Stringprep .spp file generation.
|
|
|
|
{$(ICUSRCDATA_RELATIVE_PATH)\$(ICUSPREP)}.txt.spp:
|
|
|
|
@echo Creating $@
|
|
|
|
@"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s $(<D) -d "$(ICUBLD_PKG)" -b $(@B) -m "$(ICUUNIDATA)" -u 3.2.0 $(<F)
|
2005-09-20 07:15:06 +00:00
|
|
|
|
2009-03-09 23:40:15 +00:00
|
|
|
# Confusables .cfu file generation
|
|
|
|
# Can't use an inference rule because two .txt source files combine to produce a single .cfu output file
|
|
|
|
"$(ICUBLD_PKG)\confusables.cfu": "$(ICUUNIDATA)\confusables.txt" "$(ICUUNIDATA)\confusablesWholeScript.txt" "$(ICUTOOLS)\gencfu\$(CFG)\gencfu.exe"
|
|
|
|
@echo Creating $@
|
|
|
|
@"$(ICUTOOLS)\gencfu\$(CFG)\gencfu" -c -r "$(ICUUNIDATA)\confusables.txt" -w "$(ICUUNIDATA)\confusablesWholeScript.txt" -o $@ -i "$(ICUBLD_PKG)"
|
|
|
|
|
2005-09-20 07:15:06 +00:00
|
|
|
!IFDEF ICUDATA_ARCHIVE
|
2006-01-03 17:59:44 +00:00
|
|
|
"$(ICUDATA_SOURCE_ARCHIVE)": CREATE_DIRS $(ICUDATA_ARCHIVE) "$(ICUTOOLS)\icupkg\$(CFG)\icupkg.exe"
|
|
|
|
"$(ICUTOOLS)\icupkg\$(CFG)\icupkg" -t$(U_ICUDATA_ENDIAN_SUFFIX) "$(ICUDATA_ARCHIVE)" "$(ICUDATA_SOURCE_ARCHIVE)"
|
2005-09-20 07:15:06 +00:00
|
|
|
!ENDIF
|
2003-02-28 21:36:17 +00:00
|
|
|
|
2002-03-08 01:57:46 +00:00
|
|
|
# Dependencies on the tools for the batch inference rules
|
2001-02-23 04:57:47 +00:00
|
|
|
|
2005-09-20 07:15:06 +00:00
|
|
|
!IFNDEF ICUDATA_SOURCE_ARCHIVE
|
2001-11-16 18:38:11 +00:00
|
|
|
$(UCM_SOURCE) : {"$(ICUTOOLS)\makeconv\$(CFG)"}makeconv.exe
|
2001-11-02 01:25:04 +00:00
|
|
|
|
2010-02-13 23:15:05 +00:00
|
|
|
# This used to depend on "$(ICUBLD_PKG)\uprops.icu" "$(ICUBLD_PKG)\ucase.icu" "$(ICUBLD_PKG)\ubidi.icu"
|
2005-09-20 07:15:06 +00:00
|
|
|
# This data is now hard coded as a part of the library.
|
|
|
|
# See Jitterbug 4497 for details.
|
2010-02-13 23:15:05 +00:00
|
|
|
$(MISC_SOURCE) $(RB_FILES) $(CURR_FILES) $(LANG_FILES) $(REGION_FILES) $(ZONE_FILES) $(COL_COL_FILES) $(RBNF_RES_FILES) $(BRK_RES_FILES) $(TRANSLIT_RES_FILES): {"$(ICUTOOLS)\genrb\$(CFG)"}genrb.exe "$(ICUBLD_PKG)\nfc.nrm" "$(ICUBLD_PKG)\$(ICUCOL)\ucadata.icu"
|
2004-04-14 19:39:08 +00:00
|
|
|
|
2010-02-13 23:15:05 +00:00
|
|
|
# This used to depend on "$(ICUBLD_PKG)\uprops.icu" "$(ICUBLD_PKG)\ucase.icu" "$(ICUBLD_PKG)\ubidi.icu"
|
2005-09-20 07:15:06 +00:00
|
|
|
# This data is now hard coded as a part of the library.
|
|
|
|
# See Jitterbug 4497 for details.
|
2010-01-06 23:50:03 +00:00
|
|
|
$(BRK_SOURCE) : "$(ICUBLD_PKG)\unames.icu" "$(ICUBLD_PKG)\pnames.icu" "$(ICUBLD_PKG)\nfc.nrm"
|
2005-09-20 07:15:06 +00:00
|
|
|
!ENDIF
|
|
|
|
|