Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
michael@0 | 1 | #********************************************************************** |
michael@0 | 2 | #* Copyright (C) 1999-2013, International Business Machines Corporation |
michael@0 | 3 | #* and others. All Rights Reserved. |
michael@0 | 4 | #********************************************************************** |
michael@0 | 5 | # nmake file for creating data files on win32 |
michael@0 | 6 | # invoke with |
michael@0 | 7 | # nmake /f makedata.mak icumake=$(ProjectDir) |
michael@0 | 8 | # |
michael@0 | 9 | # 12/10/1999 weiv Created |
michael@0 | 10 | |
michael@0 | 11 | ############################################################################## |
michael@0 | 12 | # Keep the following in sync with the version - see common/unicode/uvernum.h |
michael@0 | 13 | U_ICUDATA_NAME=icudt52 |
michael@0 | 14 | ############################################################################## |
michael@0 | 15 | U_ICUDATA_ENDIAN_SUFFIX=l |
michael@0 | 16 | UNICODE_VERSION=6.3 |
michael@0 | 17 | ICU_LIB_TARGET=$(DLL_OUTPUT)\$(U_ICUDATA_NAME).dll |
michael@0 | 18 | |
michael@0 | 19 | # ICUMAKE |
michael@0 | 20 | # Must be provided by whoever runs this makefile. |
michael@0 | 21 | # Is the directory containing this file (makedata.mak) |
michael@0 | 22 | # Is the directory into which most data is built (prior to packaging) |
michael@0 | 23 | # Is icu\source\data\ |
michael@0 | 24 | # |
michael@0 | 25 | !IF "$(ICUMAKE)"=="" |
michael@0 | 26 | !ERROR Can't find ICUMAKE (ICU Data Make dir, should point to icu\source\data\ )! |
michael@0 | 27 | !ENDIF |
michael@0 | 28 | !MESSAGE ICU data make path is $(ICUMAKE) |
michael@0 | 29 | |
michael@0 | 30 | # Suffixes for data files |
michael@0 | 31 | .SUFFIXES : .nrm .icu .ucm .cnv .dll .dat .res .txt .c |
michael@0 | 32 | |
michael@0 | 33 | ICUOUT=$(ICUMAKE)\out |
michael@0 | 34 | |
michael@0 | 35 | # the prefix "icudt21_" for use in filenames |
michael@0 | 36 | ICUPKG=$(U_ICUDATA_NAME)$(U_ICUDATA_ENDIAN_SUFFIX) |
michael@0 | 37 | |
michael@0 | 38 | # need to nuke \\ for .NET... |
michael@0 | 39 | ICUOUT=$(ICUOUT:\\=\) |
michael@0 | 40 | |
michael@0 | 41 | ICUBLD=$(ICUOUT)\build |
michael@0 | 42 | ICUBLD_PKG=$(ICUBLD)\$(ICUPKG) |
michael@0 | 43 | ICUTMP=$(ICUOUT)\tmp |
michael@0 | 44 | |
michael@0 | 45 | # ICUP |
michael@0 | 46 | # The root of the ICU source directory tree |
michael@0 | 47 | # |
michael@0 | 48 | ICUP=$(ICUMAKE)\..\.. |
michael@0 | 49 | ICUP=$(ICUP:\source\data\..\..=) |
michael@0 | 50 | # In case the first one didn't do it, try this one. .NET would do the second one. |
michael@0 | 51 | ICUP=$(ICUP:\source\data\\..\..=) |
michael@0 | 52 | !MESSAGE ICU root path is $(ICUP) |
michael@0 | 53 | |
michael@0 | 54 | |
michael@0 | 55 | # ICUSRCDATA |
michael@0 | 56 | # The data directory in source |
michael@0 | 57 | # |
michael@0 | 58 | ICUSRCDATA=$(ICUP)\source\data |
michael@0 | 59 | ICUSRCDATA_RELATIVE_PATH=..\..\.. |
michael@0 | 60 | |
michael@0 | 61 | # ICUUCM |
michael@0 | 62 | # The directory that contains ucmcore.mk files along with *.ucm files |
michael@0 | 63 | # |
michael@0 | 64 | ICUUCM=mappings |
michael@0 | 65 | |
michael@0 | 66 | # ICULOC |
michael@0 | 67 | # The directory that contains resfiles.mk files along with *.txt locale data files |
michael@0 | 68 | # |
michael@0 | 69 | ICULOC=locales |
michael@0 | 70 | |
michael@0 | 71 | # ICUCOL |
michael@0 | 72 | # The directory that contains colfiles.mk files along with *.txt collation data files |
michael@0 | 73 | # |
michael@0 | 74 | ICUCOL=coll |
michael@0 | 75 | |
michael@0 | 76 | # ICURBNF |
michael@0 | 77 | # The directory that contains rbnffiles.mk files along with *.txt RBNF data files |
michael@0 | 78 | # |
michael@0 | 79 | ICURBNF=rbnf |
michael@0 | 80 | |
michael@0 | 81 | # ICUTRNS |
michael@0 | 82 | # The directory that contains trfiles.mk files along with *.txt transliterator files |
michael@0 | 83 | # |
michael@0 | 84 | ICUTRNS=translit |
michael@0 | 85 | |
michael@0 | 86 | # ICUBRK |
michael@0 | 87 | # The directory that contains resfiles.mk files along with *.txt break iterator files |
michael@0 | 88 | # |
michael@0 | 89 | ICUBRK=brkitr |
michael@0 | 90 | |
michael@0 | 91 | # ICUUNIDATA |
michael@0 | 92 | # The directory that contains Unicode data files |
michael@0 | 93 | # |
michael@0 | 94 | ICUUNIDATA=$(ICUP)\source\data\unidata |
michael@0 | 95 | |
michael@0 | 96 | |
michael@0 | 97 | # ICUMISC |
michael@0 | 98 | # The directory that contains miscfiles.mk along with files that are miscelleneous data |
michael@0 | 99 | # |
michael@0 | 100 | ICUMISC=$(ICUP)\source\data\misc |
michael@0 | 101 | ICUMISC2=misc |
michael@0 | 102 | |
michael@0 | 103 | # ICUSPREP |
michael@0 | 104 | # The directory that contains sprepfiles.mk files along with *.txt stringprep files |
michael@0 | 105 | # |
michael@0 | 106 | ICUSPREP=sprep |
michael@0 | 107 | |
michael@0 | 108 | # |
michael@0 | 109 | # ICUDATA |
michael@0 | 110 | # The source directory. Contains the source files for the common data to be built. |
michael@0 | 111 | # WARNING: NOT THE SAME AS ICU_DATA environment variable. Confusing. |
michael@0 | 112 | ICUDATA=$(ICUP)\source\data |
michael@0 | 113 | |
michael@0 | 114 | # |
michael@0 | 115 | # DLL_OUTPUT |
michael@0 | 116 | # Destination directory for the common data DLL file. |
michael@0 | 117 | # This is the same place that all of the other ICU DLLs go (the code-containing DLLs) |
michael@0 | 118 | # The lib file for the data DLL goes in $(DLL_OUTPUT)/../lib/ |
michael@0 | 119 | # |
michael@0 | 120 | !IF "$(CFG)" == "x64\Release" || "$(CFG)" == "x64\Debug" |
michael@0 | 121 | DLL_OUTPUT=$(ICUP)\bin64 |
michael@0 | 122 | !ELSE |
michael@0 | 123 | DLL_OUTPUT=$(ICUP)\bin |
michael@0 | 124 | !ENDIF |
michael@0 | 125 | |
michael@0 | 126 | # |
michael@0 | 127 | # TESTDATA |
michael@0 | 128 | # The source directory for data needed for test programs. |
michael@0 | 129 | TESTDATA=$(ICUP)\source\test\testdata |
michael@0 | 130 | |
michael@0 | 131 | # |
michael@0 | 132 | # TESTDATAOUT |
michael@0 | 133 | # The destination directory for the built test data .dat file |
michael@0 | 134 | TESTDATAOUT=$(ICUP)\source\test\testdata\out |
michael@0 | 135 | |
michael@0 | 136 | # |
michael@0 | 137 | # TESTDATABLD |
michael@0 | 138 | # The build directory for test data intermidiate files |
michael@0 | 139 | # (Tests are NOT run from this makefile, |
michael@0 | 140 | # only the data is put in place.) |
michael@0 | 141 | TESTDATABLD=$(ICUP)\source\test\testdata\out\build |
michael@0 | 142 | |
michael@0 | 143 | # |
michael@0 | 144 | # ICUTOOLS |
michael@0 | 145 | # Directory under which all of the ICU data building tools live. |
michael@0 | 146 | # |
michael@0 | 147 | ICUTOOLS=$(ICUP)\source\tools |
michael@0 | 148 | |
michael@0 | 149 | # The current ICU tools need to be in the path first. |
michael@0 | 150 | !IF "$(CFG)" == "x64\Release" || "$(CFG)" == "x64\Debug" |
michael@0 | 151 | PATH = $(ICUP)\bin64;$(PATH) |
michael@0 | 152 | ICUPBIN=$(ICUP)\bin64 |
michael@0 | 153 | !ELSE |
michael@0 | 154 | PATH = $(ICUP)\bin;$(PATH) |
michael@0 | 155 | ICUPBIN=$(ICUP)\bin |
michael@0 | 156 | !ENDIF |
michael@0 | 157 | |
michael@0 | 158 | |
michael@0 | 159 | # This variable can be overridden to "-m static" by the project settings, |
michael@0 | 160 | # if you want a static data library. |
michael@0 | 161 | !IF "$(ICU_PACKAGE_MODE)"=="" |
michael@0 | 162 | ICU_PACKAGE_MODE=-m dll |
michael@0 | 163 | !ENDIF |
michael@0 | 164 | |
michael@0 | 165 | # If this archive exists, build from that |
michael@0 | 166 | # instead of building everything from scratch. |
michael@0 | 167 | ICUDATA_SOURCE_ARCHIVE=$(ICUSRCDATA)\in\$(ICUPKG).dat |
michael@0 | 168 | !IF !EXISTS("$(ICUDATA_SOURCE_ARCHIVE)") |
michael@0 | 169 | # Does a big endian version exist either? |
michael@0 | 170 | ICUDATA_ARCHIVE=$(ICUSRCDATA)\in\$(U_ICUDATA_NAME)b.dat |
michael@0 | 171 | !IF EXISTS("$(ICUDATA_ARCHIVE)") |
michael@0 | 172 | ICUDATA_SOURCE_ARCHIVE=$(ICUTMP)\$(ICUPKG).dat |
michael@0 | 173 | !ELSE |
michael@0 | 174 | # Nothing was usable for input |
michael@0 | 175 | !UNDEF ICUDATA_SOURCE_ARCHIVE |
michael@0 | 176 | !ENDIF |
michael@0 | 177 | !ENDIF |
michael@0 | 178 | |
michael@0 | 179 | !IFDEF ICUDATA_SOURCE_ARCHIVE |
michael@0 | 180 | !MESSAGE ICU data source archive is $(ICUDATA_SOURCE_ARCHIVE) |
michael@0 | 181 | !ELSE |
michael@0 | 182 | # We're including a list of .ucm files. |
michael@0 | 183 | # There are several lists, they are all optional. |
michael@0 | 184 | |
michael@0 | 185 | # Always build the mapping files for the EBCDIC fallback codepages |
michael@0 | 186 | # They are necessary on EBCDIC machines, and |
michael@0 | 187 | # the following logic is much easier if UCM_SOURCE is never empty. |
michael@0 | 188 | # (They are small.) |
michael@0 | 189 | UCM_SOURCE=ibm-37_P100-1995.ucm ibm-1047_P100-1995.ucm |
michael@0 | 190 | |
michael@0 | 191 | !IF EXISTS("$(ICUSRCDATA)\$(ICUUCM)\ucmcore.mk") |
michael@0 | 192 | !INCLUDE "$(ICUSRCDATA)\$(ICUUCM)\ucmcore.mk" |
michael@0 | 193 | UCM_SOURCE=$(UCM_SOURCE) $(UCM_SOURCE_CORE) |
michael@0 | 194 | !ELSE |
michael@0 | 195 | !MESSAGE Warning: cannot find "ucmcore.mk". Not building core MIME/Unix/Windows converter files. |
michael@0 | 196 | !ENDIF |
michael@0 | 197 | |
michael@0 | 198 | !IF EXISTS("$(ICUSRCDATA)\$(ICUUCM)\ucmfiles.mk") |
michael@0 | 199 | !INCLUDE "$(ICUSRCDATA)\$(ICUUCM)\ucmfiles.mk" |
michael@0 | 200 | UCM_SOURCE=$(UCM_SOURCE) $(UCM_SOURCE_FILES) |
michael@0 | 201 | !ELSE |
michael@0 | 202 | !MESSAGE Warning: cannot find "ucmfiles.mk". Not building many converter files. |
michael@0 | 203 | !ENDIF |
michael@0 | 204 | |
michael@0 | 205 | !IF EXISTS("$(ICUSRCDATA)\$(ICUUCM)\ucmebcdic.mk") |
michael@0 | 206 | !INCLUDE "$(ICUSRCDATA)\$(ICUUCM)\ucmebcdic.mk" |
michael@0 | 207 | UCM_SOURCE=$(UCM_SOURCE) $(UCM_SOURCE_EBCDIC) |
michael@0 | 208 | !IFDEF UCM_SOURCE_EBCDIC_IGNORE_SISO |
michael@0 | 209 | BUILD_SPECIAL_CNV_FILES=YES |
michael@0 | 210 | UCM_SOURCE_SPECIAL=$(UCM_SOURCE_EBCDIC_IGNORE_SISO) |
michael@0 | 211 | !ELSE |
michael@0 | 212 | !UNDEF BUILD_SPECIAL_CNV_FILES |
michael@0 | 213 | !ENDIF |
michael@0 | 214 | !ELSE |
michael@0 | 215 | !MESSAGE Warning: cannot find "ucmebcdic.mk". Not building EBCDIC converter files. |
michael@0 | 216 | !ENDIF |
michael@0 | 217 | |
michael@0 | 218 | !IF EXISTS("$(ICUSRCDATA)\$(ICUUCM)\ucmlocal.mk") |
michael@0 | 219 | !INCLUDE "$(ICUSRCDATA)\$(ICUUCM)\ucmlocal.mk" |
michael@0 | 220 | UCM_SOURCE=$(UCM_SOURCE) $(UCM_SOURCE_LOCAL) |
michael@0 | 221 | !IFDEF UCM_SOURCE_EBCDIC_IGNORE_SISO_LOCAL |
michael@0 | 222 | UCM_SOURCE_SPECIAL=$(UCM_SOURCE_SPECIAL) $(UCM_SOURCE_EBCDIC_IGNORE_SISO_LOCAL) |
michael@0 | 223 | BUILD_SPECIAL_CNV_FILES=YES |
michael@0 | 224 | !ENDIF |
michael@0 | 225 | !ELSE |
michael@0 | 226 | !MESSAGE Information: cannot find "ucmlocal.mk". Not building user-additional converter files. |
michael@0 | 227 | !ENDIF |
michael@0 | 228 | |
michael@0 | 229 | CNV_FILES=$(UCM_SOURCE:.ucm=.cnv) |
michael@0 | 230 | !IFDEF BUILD_SPECIAL_CNV_FILES |
michael@0 | 231 | CNV_FILES_SPECIAL=$(UCM_SOURCE_SPECIAL:.ucm=.cnv) |
michael@0 | 232 | !ENDIF |
michael@0 | 233 | |
michael@0 | 234 | !IF EXISTS("$(ICUSRCDATA)\$(ICUBRK)\brkfiles.mk") |
michael@0 | 235 | !INCLUDE "$(ICUSRCDATA)\$(ICUBRK)\brkfiles.mk" |
michael@0 | 236 | !IF EXISTS("$(ICUSRCDATA)\$(ICUBRK)\brklocal.mk") |
michael@0 | 237 | !INCLUDE "$(ICUSRCDATA)\$(ICUBRK)\brklocal.mk" |
michael@0 | 238 | BRK_SOURCE=$(BRK_SOURCE) $(BRK_SOURCE_LOCAL) |
michael@0 | 239 | BRK_DICT_SOURCE=$(BRK_DICT_SOURCE) $(BRK_DICT_SOURCE_LOCAL) |
michael@0 | 240 | BRK_RES_SOURCE=$(BRK_RES_SOURCE) $(BRK_RES_SOURCE_LOCAL) |
michael@0 | 241 | !ELSE |
michael@0 | 242 | !MESSAGE Information: cannot find "brklocal.mk". Not building user-additional break iterator files. |
michael@0 | 243 | !ENDIF |
michael@0 | 244 | !ELSE |
michael@0 | 245 | !MESSAGE Warning: cannot find "brkfiles.mk" |
michael@0 | 246 | !ENDIF |
michael@0 | 247 | |
michael@0 | 248 | # |
michael@0 | 249 | # Break iterator data files. |
michael@0 | 250 | # |
michael@0 | 251 | BRK_FILES=$(ICUBRK)\$(BRK_SOURCE:.txt =.brk brkitr\) |
michael@0 | 252 | BRK_FILES=$(BRK_FILES:.txt=.brk) |
michael@0 | 253 | BRK_FILES=$(BRK_FILES:brkitr\ =brkitr\) |
michael@0 | 254 | |
michael@0 | 255 | !IFDEF BRK_DICT_SOURCE |
michael@0 | 256 | BRK_DICT_FILES = $(ICUBRK)\$(BRK_DICT_SOURCE:.txt =.dict brkitr\) |
michael@0 | 257 | BRK_DICT_FILES = $(BRK_DICT_FILES:.txt=.dict) |
michael@0 | 258 | BRK_DICT_FILES = $(BRK_DICT_FILES:brkitr\ =brkitr\) |
michael@0 | 259 | !ENDIF |
michael@0 | 260 | |
michael@0 | 261 | !IFDEF BRK_RES_SOURCE |
michael@0 | 262 | BRK_RES_FILES = $(BRK_RES_SOURCE:.txt =.res brkitr\) |
michael@0 | 263 | BRK_RES_FILES = $(BRK_RES_FILES:.txt=.res) |
michael@0 | 264 | BRK_RES_FILES = $(ICUBRK)\root.res $(ICUBRK)\$(BRK_RES_FILES:brkitr\ =) |
michael@0 | 265 | ALL_RES = $(ALL_RES) $(ICUBRK)\res_index.res |
michael@0 | 266 | !ENDIF |
michael@0 | 267 | |
michael@0 | 268 | # Read list of locale resource bundle files |
michael@0 | 269 | !IF EXISTS("$(ICUSRCDATA)\$(ICULOC)\resfiles.mk") |
michael@0 | 270 | !INCLUDE "$(ICUSRCDATA)\$(ICULOC)\resfiles.mk" |
michael@0 | 271 | !IF EXISTS("$(ICUSRCDATA)\$(ICULOC)\reslocal.mk") |
michael@0 | 272 | !INCLUDE "$(ICUSRCDATA)\$(ICULOC)\reslocal.mk" |
michael@0 | 273 | GENRB_SOURCE=$(GENRB_SOURCE) $(GENRB_SOURCE_LOCAL) |
michael@0 | 274 | !ELSE |
michael@0 | 275 | !MESSAGE Information: cannot find "reslocal.mk". Not building user-additional resource bundle files. |
michael@0 | 276 | !ENDIF |
michael@0 | 277 | !ELSE |
michael@0 | 278 | !MESSAGE Warning: cannot find "resfiles.mk" |
michael@0 | 279 | !ENDIF |
michael@0 | 280 | |
michael@0 | 281 | !IFDEF GENRB_SOURCE |
michael@0 | 282 | RB_FILES = root.res pool.res $(GENRB_ALIAS_SOURCE:.txt=.res) $(GENRB_ALIAS_SOURCE_LOCAL:.txt=.res) $(GENRB_SOURCE:.txt=.res) |
michael@0 | 283 | ALL_RES = $(ALL_RES) res_index.res |
michael@0 | 284 | !ENDIF |
michael@0 | 285 | |
michael@0 | 286 | |
michael@0 | 287 | # Read the list of currency display name resource bundle files |
michael@0 | 288 | !IF EXISTS("$(ICUSRCDATA)\curr\resfiles.mk") |
michael@0 | 289 | !INCLUDE "$(ICUSRCDATA)\curr\resfiles.mk" |
michael@0 | 290 | !IF EXISTS("$(ICUSRCDATA)\curr\reslocal.mk") |
michael@0 | 291 | !INCLUDE "$(ICUSRCDATA)\curr\reslocal.mk" |
michael@0 | 292 | CURR_SOURCE=$(CURR_SOURCE) $(CURR_SOURCE_LOCAL) |
michael@0 | 293 | !ELSE |
michael@0 | 294 | !MESSAGE Information: cannot find "curr\reslocal.mk". Not building user-additional resource bundle files. |
michael@0 | 295 | !ENDIF |
michael@0 | 296 | !ELSE |
michael@0 | 297 | !MESSAGE Warning: cannot find "curr\resfiles.mk" |
michael@0 | 298 | !ENDIF |
michael@0 | 299 | |
michael@0 | 300 | !IFDEF CURR_SOURCE |
michael@0 | 301 | CURR_FILES = curr\root.txt supplementalData.txt $(CURR_ALIAS_SOURCE) $(CURR_SOURCE) |
michael@0 | 302 | CURR_RES_FILES = $(CURR_FILES:.txt =.res curr\) |
michael@0 | 303 | CURR_RES_FILES = $(CURR_RES_FILES:.txt=.res) |
michael@0 | 304 | CURR_RES_FILES = curr\pool.res $(CURR_RES_FILES:curr\ =curr\) |
michael@0 | 305 | ALL_RES = $(ALL_RES) curr\res_index.res |
michael@0 | 306 | !ENDIF |
michael@0 | 307 | |
michael@0 | 308 | # Read the list of language/script display name resource bundle files |
michael@0 | 309 | !IF EXISTS("$(ICUSRCDATA)\lang\resfiles.mk") |
michael@0 | 310 | !INCLUDE "$(ICUSRCDATA)\lang\resfiles.mk" |
michael@0 | 311 | !IF EXISTS("$(ICUSRCDATA)\lang\reslocal.mk") |
michael@0 | 312 | !INCLUDE "$(ICUSRCDATA)\lang\reslocal.mk" |
michael@0 | 313 | LANG_SOURCE=$(LANG_SOURCE) $(LANG_SOURCE_LOCAL) |
michael@0 | 314 | !ELSE |
michael@0 | 315 | !MESSAGE Information: cannot find "lang\reslocal.mk". Not building user-additional resource bundle files. |
michael@0 | 316 | !ENDIF |
michael@0 | 317 | !ELSE |
michael@0 | 318 | !MESSAGE Warning: cannot find "lang\resfiles.mk" |
michael@0 | 319 | !ENDIF |
michael@0 | 320 | |
michael@0 | 321 | !IFDEF LANG_SOURCE |
michael@0 | 322 | LANG_FILES = lang\root.txt $(LANG_ALIAS_SOURCE) $(LANG_SOURCE) |
michael@0 | 323 | LANG_RES_FILES = $(LANG_FILES:.txt =.res lang\) |
michael@0 | 324 | LANG_RES_FILES = $(LANG_RES_FILES:.txt=.res) |
michael@0 | 325 | LANG_RES_FILES = lang\pool.res $(LANG_RES_FILES:lang\ =lang\) |
michael@0 | 326 | ALL_RES = $(ALL_RES) lang\res_index.res |
michael@0 | 327 | !ENDIF |
michael@0 | 328 | |
michael@0 | 329 | # Read the list of region display name resource bundle files |
michael@0 | 330 | !IF EXISTS("$(ICUSRCDATA)\region\resfiles.mk") |
michael@0 | 331 | !INCLUDE "$(ICUSRCDATA)\region\resfiles.mk" |
michael@0 | 332 | !IF EXISTS("$(ICUSRCDATA)\region\reslocal.mk") |
michael@0 | 333 | !INCLUDE "$(ICUSRCDATA)\region\reslocal.mk" |
michael@0 | 334 | REGION_SOURCE=$(REGION_SOURCE) $(REGION_SOURCE_LOCAL) |
michael@0 | 335 | !ELSE |
michael@0 | 336 | !MESSAGE Information: cannot find "region\reslocal.mk". Not building user-additional resource bundle files. |
michael@0 | 337 | !ENDIF |
michael@0 | 338 | !ELSE |
michael@0 | 339 | !MESSAGE Warning: cannot find "region\resfiles.mk" |
michael@0 | 340 | !ENDIF |
michael@0 | 341 | |
michael@0 | 342 | !IFDEF REGION_SOURCE |
michael@0 | 343 | REGION_FILES = region\root.txt $(REGION_ALIAS_SOURCE) $(REGION_SOURCE) |
michael@0 | 344 | REGION_RES_FILES = $(REGION_FILES:.txt =.res region\) |
michael@0 | 345 | REGION_RES_FILES = $(REGION_RES_FILES:.txt=.res) |
michael@0 | 346 | REGION_RES_FILES = region\pool.res $(REGION_RES_FILES:region\ =region\) |
michael@0 | 347 | ALL_RES = $(ALL_RES) region\res_index.res |
michael@0 | 348 | !ENDIF |
michael@0 | 349 | |
michael@0 | 350 | # Read the list of time zone display name resource bundle files |
michael@0 | 351 | !IF EXISTS("$(ICUSRCDATA)\zone\resfiles.mk") |
michael@0 | 352 | !INCLUDE "$(ICUSRCDATA)\zone\resfiles.mk" |
michael@0 | 353 | !IF EXISTS("$(ICUSRCDATA)\zone\reslocal.mk") |
michael@0 | 354 | !INCLUDE "$(ICUSRCDATA)\zone\reslocal.mk" |
michael@0 | 355 | ZONE_SOURCE=$(ZONE_SOURCE) $(ZONE_SOURCE_LOCAL) |
michael@0 | 356 | !ELSE |
michael@0 | 357 | !MESSAGE Information: cannot find "zone\reslocal.mk". Not building user-additional resource bundle files. |
michael@0 | 358 | !ENDIF |
michael@0 | 359 | !ELSE |
michael@0 | 360 | !MESSAGE Warning: cannot find "zone\resfiles.mk" |
michael@0 | 361 | !ENDIF |
michael@0 | 362 | |
michael@0 | 363 | !IFDEF ZONE_SOURCE |
michael@0 | 364 | ZONE_FILES = zone\root.txt $(ZONE_ALIAS_SOURCE) $(ZONE_SOURCE) |
michael@0 | 365 | ZONE_RES_FILES = $(ZONE_FILES:.txt =.res zone\) |
michael@0 | 366 | ZONE_RES_FILES = $(ZONE_RES_FILES:.txt=.res) |
michael@0 | 367 | ZONE_RES_FILES = zone\pool.res $(ZONE_RES_FILES:zone\ =zone\) |
michael@0 | 368 | ALL_RES = $(ALL_RES) zone\res_index.res |
michael@0 | 369 | !ENDIF |
michael@0 | 370 | |
michael@0 | 371 | # Read the list of collation resource bundle files |
michael@0 | 372 | !IF EXISTS("$(ICUSRCDATA)\$(ICUCOL)\colfiles.mk") |
michael@0 | 373 | !INCLUDE "$(ICUSRCDATA)\$(ICUCOL)\colfiles.mk" |
michael@0 | 374 | !IF EXISTS("$(ICUSRCDATA)\$(ICUCOL)\collocal.mk") |
michael@0 | 375 | !INCLUDE "$(ICUSRCDATA)\$(ICUCOL)\collocal.mk" |
michael@0 | 376 | COLLATION_SOURCE=$(COLLATION_SOURCE) $(COLLATION_SOURCE_LOCAL) |
michael@0 | 377 | !ELSE |
michael@0 | 378 | !MESSAGE Information: cannot find "collocal.mk". Not building user-additional resource bundle files. |
michael@0 | 379 | !ENDIF |
michael@0 | 380 | !ELSE |
michael@0 | 381 | !MESSAGE Warning: cannot find "colfiles.mk" |
michael@0 | 382 | !ENDIF |
michael@0 | 383 | |
michael@0 | 384 | !IFDEF COLLATION_SOURCE |
michael@0 | 385 | COL_FILES = $(ICUCOL)\root.txt $(COLLATION_ALIAS_SOURCE) $(COLLATION_SOURCE) |
michael@0 | 386 | COL_COL_FILES = $(COL_FILES:.txt =.res coll\) |
michael@0 | 387 | COL_COL_FILES = $(COL_COL_FILES:.txt=.res) |
michael@0 | 388 | COL_COL_FILES = $(COL_COL_FILES:coll\ =) |
michael@0 | 389 | ALL_RES = $(ALL_RES) $(ICUCOL)\res_index.res |
michael@0 | 390 | !ENDIF |
michael@0 | 391 | |
michael@0 | 392 | # Read the list of RBNF resource bundle files |
michael@0 | 393 | !IF EXISTS("$(ICUSRCDATA)\$(ICURBNF)\rbnffiles.mk") |
michael@0 | 394 | !INCLUDE "$(ICUSRCDATA)\$(ICURBNF)\rbnffiles.mk" |
michael@0 | 395 | !IF EXISTS("$(ICUSRCDATA)\$(ICURBNF)\rbnflocal.mk") |
michael@0 | 396 | !INCLUDE "$(ICUSRCDATA)\$(ICURBNF)\rbnflocal.mk" |
michael@0 | 397 | RBNF_SOURCE=$(RBNF_SOURCE) $(RBNF_SOURCE_LOCAL) |
michael@0 | 398 | !ELSE |
michael@0 | 399 | !MESSAGE Information: cannot find "rbnflocal.mk". Not building user-additional resource bundle files. |
michael@0 | 400 | !ENDIF |
michael@0 | 401 | !ELSE |
michael@0 | 402 | !MESSAGE Warning: cannot find "rbnffiles.mk" |
michael@0 | 403 | !ENDIF |
michael@0 | 404 | |
michael@0 | 405 | !IFDEF RBNF_SOURCE |
michael@0 | 406 | RBNF_FILES = $(ICURBNF)\root.txt $(RBNF_ALIAS_SOURCE) $(RBNF_SOURCE) |
michael@0 | 407 | RBNF_RES_FILES = $(RBNF_FILES:.txt =.res rbnf\) |
michael@0 | 408 | RBNF_RES_FILES = $(RBNF_RES_FILES:.txt=.res) |
michael@0 | 409 | RBNF_RES_FILES = $(RBNF_RES_FILES:rbnf\ =rbnf\) |
michael@0 | 410 | ALL_RES = $(ALL_RES) $(ICURBNF)\res_index.res |
michael@0 | 411 | !ENDIF |
michael@0 | 412 | |
michael@0 | 413 | # Read the list of transliterator resource bundle files |
michael@0 | 414 | !IF EXISTS("$(ICUSRCDATA)\$(ICUTRNS)\trnsfiles.mk") |
michael@0 | 415 | !INCLUDE "$(ICUSRCDATA)\$(ICUTRNS)\trnsfiles.mk" |
michael@0 | 416 | !IF EXISTS("$(ICUSRCDATA)\$(ICUTRNS)\trnslocal.mk") |
michael@0 | 417 | !INCLUDE "$(ICUSRCDATA)\$(ICUTRNS)\trnslocal.mk" |
michael@0 | 418 | TRANSLIT_SOURCE=$(TRANSLIT_SOURCE) $(TRANSLIT_SOURCE_LOCAL) |
michael@0 | 419 | !ELSE |
michael@0 | 420 | !MESSAGE Information: cannot find "trnslocal.mk". Not building user-additional transliterator files. |
michael@0 | 421 | !ENDIF |
michael@0 | 422 | !ELSE |
michael@0 | 423 | !MESSAGE Warning: cannot find "trnsfiles.mk" |
michael@0 | 424 | !ENDIF |
michael@0 | 425 | |
michael@0 | 426 | !IFDEF TRANSLIT_SOURCE |
michael@0 | 427 | TRANSLIT_FILES = $(ICUTRNS)\$(TRANSLIT_ALIAS_SOURCE) $(TRANSLIT_SOURCE) |
michael@0 | 428 | TRANSLIT_RES_FILES = $(TRANSLIT_FILES:.txt =.res translit\) |
michael@0 | 429 | TRANSLIT_RES_FILES = $(TRANSLIT_RES_FILES:.txt=.res) |
michael@0 | 430 | TRANSLIT_RES_FILES = $(TRANSLIT_RES_FILES:translit\ =translit\) |
michael@0 | 431 | #ALL_RES = $(ALL_RES) $(ICUTRNS)\res_index.res |
michael@0 | 432 | !ENDIF |
michael@0 | 433 | |
michael@0 | 434 | # Read the list of miscellaneous resource bundle files |
michael@0 | 435 | !IF EXISTS("$(ICUSRCDATA)\$(ICUMISC2)\miscfiles.mk") |
michael@0 | 436 | !INCLUDE "$(ICUSRCDATA)\$(ICUMISC2)\miscfiles.mk" |
michael@0 | 437 | !IF EXISTS("$(ICUSRCDATA)\$(ICUMISC2)\misclocal.mk") |
michael@0 | 438 | !INCLUDE "$(ICUSRCDATA)\$(ICUMISC2)\misclocal.mk" |
michael@0 | 439 | MISC_SOURCE=$(MISC_SOURCE) $(MISC_SOURCE_LOCAL) |
michael@0 | 440 | !ELSE |
michael@0 | 441 | !MESSAGE Information: cannot find "misclocal.mk". Not building user-additional miscellaenous files. |
michael@0 | 442 | !ENDIF |
michael@0 | 443 | !ELSE |
michael@0 | 444 | !MESSAGE Warning: cannot find "miscfiles.mk" |
michael@0 | 445 | !ENDIF |
michael@0 | 446 | |
michael@0 | 447 | MISC_FILES = $(MISC_SOURCE:.txt=.res) |
michael@0 | 448 | |
michael@0 | 449 | # don't include COL_FILES |
michael@0 | 450 | ALL_RES = $(ALL_RES) $(RB_FILES) $(MISC_FILES) |
michael@0 | 451 | !ENDIF |
michael@0 | 452 | |
michael@0 | 453 | # Read the list of stringprep profile files |
michael@0 | 454 | !IF EXISTS("$(ICUSRCDATA)\$(ICUSPREP)\sprepfiles.mk") |
michael@0 | 455 | !INCLUDE "$(ICUSRCDATA)\$(ICUSPREP)\sprepfiles.mk" |
michael@0 | 456 | !IF EXISTS("$(ICUSRCDATA)\$(ICUSPREP)\spreplocal.mk") |
michael@0 | 457 | !INCLUDE "$(ICUSRCDATA)\$(ICUSPREP)\spreplocal.mk" |
michael@0 | 458 | SPREP_SOURCE=$(SPREP_SOURCE) $(SPREP_SOURCE_LOCAL) |
michael@0 | 459 | !ELSE |
michael@0 | 460 | !MESSAGE Information: cannot find "spreplocal.mk". Not building user-additional stringprep files. |
michael@0 | 461 | !ENDIF |
michael@0 | 462 | !ELSE |
michael@0 | 463 | !MESSAGE Warning: cannot find "sprepfiles.mk" |
michael@0 | 464 | !ENDIF |
michael@0 | 465 | |
michael@0 | 466 | SPREP_FILES = $(SPREP_SOURCE:.txt=.spp) |
michael@0 | 467 | |
michael@0 | 468 | # Common defines for both ways of building ICU's data library. |
michael@0 | 469 | COMMON_ICUDATA_DEPENDENCIES="$(ICUPBIN)\pkgdata.exe" "$(ICUTMP)\icudata.res" "$(ICUP)\source\stubdata\stubdatabuilt.txt" |
michael@0 | 470 | 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 . |
michael@0 | 471 | |
michael@0 | 472 | ############################################################################# |
michael@0 | 473 | # |
michael@0 | 474 | # ALL |
michael@0 | 475 | # This target builds all the data files. The world starts here. |
michael@0 | 476 | # Note: we really want the common data dll to go to $(DLL_OUTPUT), not $(ICUBLD_PKG). But specifying |
michael@0 | 477 | # that here seems to cause confusion with the building of the stub library of the same name. |
michael@0 | 478 | # Building the common dll in $(ICUBLD_PKG) unconditionally copies it to $(DLL_OUTPUT) too. |
michael@0 | 479 | # |
michael@0 | 480 | ############################################################################# |
michael@0 | 481 | ALL : GODATA "$(ICU_LIB_TARGET)" "$(TESTDATAOUT)\testdata.dat" |
michael@0 | 482 | @echo All targets are up to date |
michael@0 | 483 | |
michael@0 | 484 | # The core Unicode properties files (uprops.icu, ucase.icu, ubidi.icu) |
michael@0 | 485 | # are hardcoded in the common DLL and therefore not included in the data package any more. |
michael@0 | 486 | # They are not built by default but need to be built for ICU4J data and for getting the .c source files |
michael@0 | 487 | # when updating the Unicode data. |
michael@0 | 488 | # Changed in makedata.mak revision 1.117. See Jitterbug 4497. |
michael@0 | 489 | # 2010-dec Removed pnames.icu. |
michael@0 | 490 | # Command line: |
michael@0 | 491 | # 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 |
michael@0 | 492 | uni-core-data: GODATA "$(ICUBLD_PKG)\pnames.icu" "$(ICUBLD_PKG)\uprops.icu" "$(ICUBLD_PKG)\ucase.icu" "$(ICUBLD_PKG)\ubidi.icu" |
michael@0 | 493 | @echo Unicode .icu files built to "$(ICUBLD_PKG)" |
michael@0 | 494 | |
michael@0 | 495 | # Build the ICU4J icudata.jar and testdata.jar. |
michael@0 | 496 | # see icu4j-readme.txt |
michael@0 | 497 | |
michael@0 | 498 | ICU4J_TZDATA="$(ICUOUT)\icu4j\icutzdata.jar" |
michael@0 | 499 | ICU4J_DATA_DIRNAME=com\ibm\icu\impl\data\$(U_ICUDATA_NAME)b |
michael@0 | 500 | ICU4J_TZDATA_PATHS=$(ICU4J_DATA_DIRNAME)\zoneinfo64.res $(ICU4J_DATA_DIRNAME)\metaZones.res $(ICU4J_DATA_DIRNAME)\timezoneTypes.res $(ICU4J_DATA_DIRNAME)\windowsZones.res |
michael@0 | 501 | |
michael@0 | 502 | generate-data: GODATA "$(ICUOUT)\$(ICUPKG).dat" uni-core-data |
michael@0 | 503 | if not exist "$(ICUOUT)\icu4j\$(ICU4J_DATA_DIRNAME)" mkdir "$(ICUOUT)\icu4j\$(ICU4J_DATA_DIRNAME)" |
michael@0 | 504 | if not exist "$(ICUOUT)\icu4j\tzdata\$(ICU4J_DATA_DIRNAME)" mkdir "$(ICUOUT)\icu4j\tzdata\$(ICU4J_DATA_DIRNAME)" |
michael@0 | 505 | echo pnames.icu ubidi.icu ucase.icu uprops.icu > "$(ICUOUT)\icu4j\add.txt" |
michael@0 | 506 | "$(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\$(ICU4J_DATA_DIRNAME)" |
michael@0 | 507 | @for %f in ($(ICU4J_TZDATA_PATHS)) do @move "$(ICUOUT)\icu4j\%f" "$(ICUOUT)\icu4j\tzdata\$(ICU4J_DATA_DIRNAME)" |
michael@0 | 508 | |
michael@0 | 509 | "$(ICUOUT)\icu4j\icutzdata.jar": GODATA generate-data |
michael@0 | 510 | "$(JAR)" cf "$(ICUOUT)\icu4j\icutzdata.jar" -C "$(ICUOUT)\icu4j\tzdata" "$(ICU4J_DATA_DIRNAME)" |
michael@0 | 511 | |
michael@0 | 512 | # Build icudata.jar: |
michael@0 | 513 | # - add the uni-core-data to the ICU package |
michael@0 | 514 | # - swap the ICU data |
michael@0 | 515 | # - extract all data items |
michael@0 | 516 | # - package them into the .jar file |
michael@0 | 517 | "$(ICUOUT)\icu4j\icudata.jar": GODATA generate-data |
michael@0 | 518 | "$(JAR)" cf "$(ICUOUT)\icu4j\icudata.jar" -C "$(ICUOUT)\icu4j" "$(ICU4J_DATA_DIRNAME)" |
michael@0 | 519 | |
michael@0 | 520 | # Build testdata.jar: |
michael@0 | 521 | # - swap the test data |
michael@0 | 522 | # - extract all data items |
michael@0 | 523 | # - package them into the .jar file |
michael@0 | 524 | "$(ICUOUT)\icu4j\testdata.jar": GODATA "$(TESTDATAOUT)\testdata.dat" |
michael@0 | 525 | if not exist "$(ICUOUT)\icu4j\com\ibm\icu\dev\data\testdata" mkdir "$(ICUOUT)\icu4j\com\ibm\icu\dev\data\testdata" |
michael@0 | 526 | "$(ICUPBIN)\icupkg" "$(TESTDATAOUT)\testdata.dat" -r test.icu -x * -tb -d "$(ICUOUT)\icu4j\com\ibm\icu\dev\data\testdata" |
michael@0 | 527 | "$(JAR)" cf "$(ICUOUT)\icu4j\testdata.jar" -C "$(ICUOUT)\icu4j" com\ibm\icu\dev\data\testdata |
michael@0 | 528 | |
michael@0 | 529 | ## Compare to: source\data\Makefile.in and source\test\testdata\Makefile.in |
michael@0 | 530 | |
michael@0 | 531 | DEBUGUTILITIESDATA_DIR=main\tests\core\src\com\ibm\icu\dev\test\util |
michael@0 | 532 | DEBUGUTILITIESDATA_SRC=DebugUtilitiesData.java |
michael@0 | 533 | |
michael@0 | 534 | # Build DebugUtilitiesData.java |
michael@0 | 535 | "$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)\$(DEBUGUTILITIESDATA_SRC)" : {"$(ICUTOOLS)\gentest\$(CFG)"}gentest.exe |
michael@0 | 536 | if not exist "$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)" mkdir "$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)" |
michael@0 | 537 | "$(ICUTOOLS)\gentest\$(CFG)\gentest" -j -d"$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)" |
michael@0 | 538 | |
michael@0 | 539 | ICU4J_DATA="$(ICUOUT)\icu4j\icudata.jar" "$(ICUOUT)\icu4j\testdata.jar" "$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)\$(DEBUGUTILITIESDATA_SRC)" |
michael@0 | 540 | |
michael@0 | 541 | icu4j-data: GODATA $(ICU4J_DATA) $(ICU4J_TZDATA) |
michael@0 | 542 | |
michael@0 | 543 | !IFDEF ICU4J_ROOT |
michael@0 | 544 | |
michael@0 | 545 | "$(ICU4J_ROOT)\main\shared\data\icudata.jar": "$(ICUOUT)\icu4j\icudata.jar" |
michael@0 | 546 | if not exist "$(ICU4J_ROOT)\main\shared\data" mkdir "$(ICU4J_ROOT)\main\shared\data" |
michael@0 | 547 | copy "$(ICUOUT)\icu4j\icudata.jar" "$(ICU4J_ROOT)\main\shared\data" |
michael@0 | 548 | |
michael@0 | 549 | "$(ICU4J_ROOT)\main\shared\data\icutzdata.jar": "$(ICUOUT)\icu4j\icutzdata.jar" |
michael@0 | 550 | if not exist "$(ICU4J_ROOT)\main\shared\data" mkdir "$(ICU4J_ROOT)\main\shared\data" |
michael@0 | 551 | copy "$(ICUOUT)\icu4j\icutzdata.jar" "$(ICU4J_ROOT)\main\shared\data" |
michael@0 | 552 | |
michael@0 | 553 | "$(ICU4J_ROOT)\main\shared\data\testdata.jar": "$(ICUOUT)\icu4j\testdata.jar" |
michael@0 | 554 | if not exist "$(ICU4J_ROOT)\main\shared\data" mkdir "$(ICU4J_ROOT)\main\shared\data" |
michael@0 | 555 | copy "$(ICUOUT)\icu4j\testdata.jar" "$(ICU4J_ROOT)\main\shared\data" |
michael@0 | 556 | |
michael@0 | 557 | # "$(DEBUGUTILTIESDATA_OUT)" |
michael@0 | 558 | |
michael@0 | 559 | "$(ICU4J_ROOT)\$(DEBUGUTILITIESDATA_DIR)\$(DEBUGUTILITIESDATA_SRC)": "$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)\$(DEBUGUTILITIESDATA_SRC)" |
michael@0 | 560 | if not exist "$(ICU4J_ROOT)\$(DEBUGUTILITIESDATA_DIR)" mkdir "$(ICU4J_ROOT)\$(DEBUGUTILITIESDATA_DIR)" |
michael@0 | 561 | copy "$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)\$(DEBUGUTILITIESDATA_SRC)" "$(ICU4J_ROOT)\$(DEBUGUTILITIESDATA_DIR)\$(DEBUGUTILITIESDATA_SRC)" |
michael@0 | 562 | |
michael@0 | 563 | ICU4J_DATA_INSTALLED="$(ICU4J_ROOT)\main\shared\data\icudata.jar" "$(ICU4J_ROOT)\main\shared\data\icutzdata.jar" "$(ICU4J_ROOT)\main\shared\data\testdata.jar" "$(ICU4J_ROOT)\$(DEBUGUTILITIESDATA_DIR)\$(DEBUGUTILITIESDATA_SRC)" |
michael@0 | 564 | |
michael@0 | 565 | icu4j-data-install : GODATA $(ICU4J_DATA) $(ICU4J_TZDATA) $(ICU4J_DATA_INSTALLED) |
michael@0 | 566 | @echo ICU4J data output to "$(ICU4J_ROOT)" |
michael@0 | 567 | |
michael@0 | 568 | !ELSE |
michael@0 | 569 | |
michael@0 | 570 | icu4j-data-install : |
michael@0 | 571 | @echo ERROR ICU4J_ROOT not set |
michael@0 | 572 | @exit 1 |
michael@0 | 573 | |
michael@0 | 574 | !ENDIF |
michael@0 | 575 | |
michael@0 | 576 | |
michael@0 | 577 | |
michael@0 | 578 | # |
michael@0 | 579 | # testdata - nmake will invoke pkgdata, which will create testdata.dat |
michael@0 | 580 | # |
michael@0 | 581 | "$(TESTDATAOUT)\testdata.dat": "$(TESTDATA)\*" "$(ICUBLD_PKG)\$(ICUCOL)\ucadata.icu" $(TRANSLIT_RES_FILES) $(MISC_FILES) $(RB_FILES) {"$(ICUTOOLS)\genrb\$(CFG)"}genrb.exe |
michael@0 | 582 | @cd "$(TESTDATA)" |
michael@0 | 583 | @echo building testdata... |
michael@0 | 584 | nmake /nologo /f "$(TESTDATA)\testdata.mak" TESTDATA=. ICUTOOLS="$(ICUTOOLS)" ICUPBIN="$(ICUPBIN)" ICUP="$(ICUP)" CFG=$(CFG) TESTDATAOUT="$(TESTDATAOUT)" TESTDATABLD="$(TESTDATABLD)" |
michael@0 | 585 | |
michael@0 | 586 | #invoke pkgdata for ICU common data |
michael@0 | 587 | # pkgdata will drop all output files (.dat, .dll, .lib) into the target (ICUBLD_PKG) directory. |
michael@0 | 588 | # move the .dll and .lib files to their final destination afterwards. |
michael@0 | 589 | # The $(U_ICUDATA_NAME).lib and $(U_ICUDATA_NAME).exp should already be in the right place due to stubdata. |
michael@0 | 590 | # |
michael@0 | 591 | # 2005-may-05 Removed Unicode properties files (unorm.icu, uprops.icu, ucase.icu, ubidi.icu) |
michael@0 | 592 | # from data build. See Jitterbug 4497. (makedata.mak revision 1.117) |
michael@0 | 593 | # |
michael@0 | 594 | !IFDEF ICUDATA_SOURCE_ARCHIVE |
michael@0 | 595 | "$(ICU_LIB_TARGET)" : $(COMMON_ICUDATA_DEPENDENCIES) "$(ICUDATA_SOURCE_ARCHIVE)" |
michael@0 | 596 | @echo Building icu data from $(ICUDATA_SOURCE_ARCHIVE) |
michael@0 | 597 | cd "$(ICUBLD_PKG)" |
michael@0 | 598 | "$(ICUPBIN)\icupkg" -x * --list "$(ICUDATA_SOURCE_ARCHIVE)" > "$(ICUTMP)\icudata.lst" |
michael@0 | 599 | "$(ICUPBIN)\pkgdata" $(COMMON_ICUDATA_ARGUMENTS) "$(ICUTMP)\icudata.lst" |
michael@0 | 600 | copy "$(U_ICUDATA_NAME).dll" "$(DLL_OUTPUT)" |
michael@0 | 601 | -@erase "$(U_ICUDATA_NAME).dll" |
michael@0 | 602 | copy "$(ICUTMP)\$(ICUPKG).dat" "$(ICUOUT)\$(U_ICUDATA_NAME)$(U_ICUDATA_ENDIAN_SUFFIX).dat" |
michael@0 | 603 | -@erase "$(ICUTMP)\$(ICUPKG).dat" |
michael@0 | 604 | !ELSE |
michael@0 | 605 | "$(ICU_LIB_TARGET)" : $(COMMON_ICUDATA_DEPENDENCIES) $(CNV_FILES) $(CNV_FILES_SPECIAL) "$(ICUBLD_PKG)\unames.icu" "$(ICUBLD_PKG)\cnvalias.icu" "$(ICUBLD_PKG)\nfc.nrm" "$(ICUBLD_PKG)\nfkc.nrm" "$(ICUBLD_PKG)\nfkc_cf.nrm" "$(ICUBLD_PKG)\uts46.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_DICT_FILES) $(BRK_RES_FILES) $(ALL_RES) $(COL_COL_FILES) $(RBNF_RES_FILES) $(TRANSLIT_RES_FILES) $(SPREP_FILES) "$(ICUBLD_PKG)\confusables.cfu" |
michael@0 | 606 | @echo Building icu data |
michael@0 | 607 | cd "$(ICUBLD_PKG)" |
michael@0 | 608 | "$(ICUPBIN)\pkgdata" $(COMMON_ICUDATA_ARGUMENTS) <<"$(ICUTMP)\icudata.lst" |
michael@0 | 609 | unames.icu |
michael@0 | 610 | confusables.cfu |
michael@0 | 611 | $(ICUCOL)\ucadata.icu |
michael@0 | 612 | $(ICUCOL)\invuca.icu |
michael@0 | 613 | cnvalias.icu |
michael@0 | 614 | nfc.nrm |
michael@0 | 615 | nfkc.nrm |
michael@0 | 616 | nfkc_cf.nrm |
michael@0 | 617 | uts46.nrm |
michael@0 | 618 | $(CNV_FILES:.cnv =.cnv |
michael@0 | 619 | ) |
michael@0 | 620 | $(CNV_FILES_SPECIAL:.cnv =.cnv |
michael@0 | 621 | ) |
michael@0 | 622 | $(ALL_RES:.res =.res |
michael@0 | 623 | ) |
michael@0 | 624 | $(CURR_RES_FILES:.res =.res |
michael@0 | 625 | ) |
michael@0 | 626 | $(LANG_RES_FILES:.res =.res |
michael@0 | 627 | ) |
michael@0 | 628 | $(REGION_RES_FILES:.res =.res |
michael@0 | 629 | ) |
michael@0 | 630 | $(ZONE_RES_FILES:.res =.res |
michael@0 | 631 | ) |
michael@0 | 632 | $(COL_COL_FILES:.res =.res |
michael@0 | 633 | ) |
michael@0 | 634 | $(RBNF_RES_FILES:.res =.res |
michael@0 | 635 | ) |
michael@0 | 636 | $(TRANSLIT_RES_FILES:.res =.res |
michael@0 | 637 | ) |
michael@0 | 638 | $(BRK_FILES:.brk =.brk |
michael@0 | 639 | ) |
michael@0 | 640 | $(BRK_DICT_FILES:.dict =.dict |
michael@0 | 641 | ) |
michael@0 | 642 | $(BRK_RES_FILES:.res =.res |
michael@0 | 643 | ) |
michael@0 | 644 | $(SPREP_FILES:.spp=.spp |
michael@0 | 645 | ) |
michael@0 | 646 | <<KEEP |
michael@0 | 647 | -@erase "$(ICU_LIB_TARGET)" |
michael@0 | 648 | copy "$(U_ICUDATA_NAME).dll" "$(ICU_LIB_TARGET)" |
michael@0 | 649 | -@erase "$(U_ICUDATA_NAME).dll" |
michael@0 | 650 | copy "$(ICUTMP)\$(ICUPKG).dat" "$(ICUOUT)\$(U_ICUDATA_NAME)$(U_ICUDATA_ENDIAN_SUFFIX).dat" |
michael@0 | 651 | -@erase "$(ICUTMP)\$(ICUPKG).dat" |
michael@0 | 652 | !ENDIF |
michael@0 | 653 | |
michael@0 | 654 | # utility target to create missing directories |
michael@0 | 655 | CREATE_DIRS : |
michael@0 | 656 | @if not exist "$(ICUOUT)\$(NULL)" mkdir "$(ICUOUT)" |
michael@0 | 657 | @if not exist "$(ICUTMP)\$(NULL)" mkdir "$(ICUTMP)" |
michael@0 | 658 | @if not exist "$(ICUOUT)\build\$(NULL)" mkdir "$(ICUOUT)\build" |
michael@0 | 659 | @if not exist "$(ICUBLD_PKG)\$(NULL)" mkdir "$(ICUBLD_PKG)" |
michael@0 | 660 | @if not exist "$(ICUBLD_PKG)\curr\$(NULL)" mkdir "$(ICUBLD_PKG)\curr" |
michael@0 | 661 | @if not exist "$(ICUBLD_PKG)\lang\$(NULL)" mkdir "$(ICUBLD_PKG)\lang" |
michael@0 | 662 | @if not exist "$(ICUBLD_PKG)\region\$(NULL)" mkdir "$(ICUBLD_PKG)\region" |
michael@0 | 663 | @if not exist "$(ICUBLD_PKG)\zone\$(NULL)" mkdir "$(ICUBLD_PKG)\zone" |
michael@0 | 664 | @if not exist "$(ICUBLD_PKG)\$(ICUBRK)\$(NULL)" mkdir "$(ICUBLD_PKG)\$(ICUBRK)" |
michael@0 | 665 | @if not exist "$(ICUBLD_PKG)\$(ICUCOL)\$(NULL)" mkdir "$(ICUBLD_PKG)\$(ICUCOL)" |
michael@0 | 666 | @if not exist "$(ICUBLD_PKG)\$(ICURBNF)\$(NULL)" mkdir "$(ICUBLD_PKG)\$(ICURBNF)" |
michael@0 | 667 | @if not exist "$(ICUBLD_PKG)\$(ICUTRNS)\$(NULL)" mkdir "$(ICUBLD_PKG)\$(ICUTRNS)" |
michael@0 | 668 | @if not exist "$(TESTDATAOUT)\$(NULL)" mkdir "$(TESTDATAOUT)" |
michael@0 | 669 | @if not exist "$(TESTDATABLD)\$(NULL)" mkdir "$(TESTDATABLD)" |
michael@0 | 670 | @if not exist "$(TESTDATAOUT)\testdata\$(NULL)" mkdir "$(TESTDATAOUT)\testdata" |
michael@0 | 671 | |
michael@0 | 672 | # utility target to send us to the right dir |
michael@0 | 673 | GODATA : CREATE_DIRS |
michael@0 | 674 | @cd "$(ICUBLD_PKG)" |
michael@0 | 675 | |
michael@0 | 676 | # This is to remove all the data files |
michael@0 | 677 | CLEAN : GODATA |
michael@0 | 678 | @echo Cleaning up the data files. |
michael@0 | 679 | @cd "$(ICUBLD_PKG)" |
michael@0 | 680 | -@erase "*.cnv" |
michael@0 | 681 | -@erase "*.exp" |
michael@0 | 682 | -@erase "*.icu" |
michael@0 | 683 | -@erase "*.lib" |
michael@0 | 684 | -@erase "*.nrm" |
michael@0 | 685 | -@erase "*.res" |
michael@0 | 686 | -@erase "*.spp" |
michael@0 | 687 | -@erase "*.txt" |
michael@0 | 688 | -@erase "*.cfu" |
michael@0 | 689 | -@erase "curr\*.res" |
michael@0 | 690 | -@erase "curr\*.txt" |
michael@0 | 691 | -@erase "lang\*.res" |
michael@0 | 692 | -@erase "lang\*.txt" |
michael@0 | 693 | -@erase "region\*.res" |
michael@0 | 694 | -@erase "region\*.txt" |
michael@0 | 695 | -@erase "zone\*.res" |
michael@0 | 696 | -@erase "zone\*.txt" |
michael@0 | 697 | @cd "$(ICUBLD_PKG)\$(ICUBRK)" |
michael@0 | 698 | -@erase "*.brk" |
michael@0 | 699 | -@erase "*.res" |
michael@0 | 700 | -@erase "*.txt" |
michael@0 | 701 | @cd "$(ICUBLD_PKG)\$(ICUCOL)" |
michael@0 | 702 | -@erase "*.res" |
michael@0 | 703 | -@erase "*.txt" |
michael@0 | 704 | @cd "$(ICUBLD_PKG)\$(ICURBNF)" |
michael@0 | 705 | -@erase "*.res" |
michael@0 | 706 | -@erase "*.txt" |
michael@0 | 707 | @cd "$(ICUBLD_PKG)\$(ICUTRNS)" |
michael@0 | 708 | -@erase "*.res" |
michael@0 | 709 | @cd "$(ICUOUT)" |
michael@0 | 710 | -@erase "*.dat" |
michael@0 | 711 | @cd "$(ICUTMP)" |
michael@0 | 712 | -@erase "*.html" |
michael@0 | 713 | -@erase "*.lst" |
michael@0 | 714 | -@erase "*.mak" |
michael@0 | 715 | -@erase "*.obj" |
michael@0 | 716 | -@erase "*.res" |
michael@0 | 717 | @cd "$(TESTDATABLD)" |
michael@0 | 718 | -@erase "*.cnv" |
michael@0 | 719 | -@erase "*.icu" |
michael@0 | 720 | -@erase "*.mak" |
michael@0 | 721 | -@erase "*.nrm" |
michael@0 | 722 | -@erase "*.res" |
michael@0 | 723 | -@erase "*.spp" |
michael@0 | 724 | -@erase "*.txt" |
michael@0 | 725 | @cd "$(TESTDATAOUT)" |
michael@0 | 726 | -@erase "*.dat" |
michael@0 | 727 | @cd "$(TESTDATAOUT)\testdata" |
michael@0 | 728 | -@erase "*.typ" |
michael@0 | 729 | @cd "$(ICUBLD_PKG)" |
michael@0 | 730 | |
michael@0 | 731 | |
michael@0 | 732 | # RBBI .brk file generation. |
michael@0 | 733 | {$(ICUSRCDATA_RELATIVE_PATH)\$(ICUBRK)}.txt.brk: |
michael@0 | 734 | @echo Creating $@ |
michael@0 | 735 | @"$(ICUTOOLS)\genbrk\$(CFG)\genbrk" -c -r $< -o $@ -d"$(ICUBLD_PKG)" -i "$(ICUBLD_PKG)" |
michael@0 | 736 | |
michael@0 | 737 | #RBBI .dict file generation. |
michael@0 | 738 | {$(ICUSRCDATA_RELATIVE_PATH)\$(ICUBRK)}.txt.dict: |
michael@0 | 739 | @echo Creating $@ |
michael@0 | 740 | @"$(ICUTOOLS)\gendict\$(CFG)\gendict" -c --uchars $< "$(ICUBLD_PKG)\$@" |
michael@0 | 741 | |
michael@0 | 742 | $(ICUBRK)\thaidict.dict: |
michael@0 | 743 | @echo Creating $(ICUBRK)\thaidict.dict |
michael@0 | 744 | @"$(ICUTOOLS)\gendict\$(CFG)\gendict" -c --bytes --transform offset-0xe00 $(ICUSRCDATA_RELATIVE_PATH)\$(ICUBRK)\thaidict.txt "$(ICUBLD_PKG)\$(ICUBRK)\thaidict.dict" |
michael@0 | 745 | |
michael@0 | 746 | $(ICUBRK)\laodict.dict: |
michael@0 | 747 | @echo Creating $(ICUBRK)\laodict.dict |
michael@0 | 748 | @"$(ICUTOOLS)\gendict\$(CFG)\gendict" -c --bytes --transform offset-0xe00 $(ICUSRCDATA_RELATIVE_PATH)\$(ICUBRK)\laodict.txt "$(ICUBLD_PKG)\$(ICUBRK)\laodict.dict" |
michael@0 | 749 | |
michael@0 | 750 | $(ICUBRK)\khmerdict.dict: |
michael@0 | 751 | @echo Creating $(ICUBRK)\khmerdict.dict |
michael@0 | 752 | @"$(ICUTOOLS)\gendict\$(CFG)\gendict" -c --bytes --transform offset-0x1780 $(ICUSRCDATA_RELATIVE_PATH)\$(ICUBRK)\khmerdict.txt "$(ICUBLD_PKG)\$(ICUBRK)\khmerdict.dict" |
michael@0 | 753 | |
michael@0 | 754 | !IFNDEF ICUDATA_SOURCE_ARCHIVE |
michael@0 | 755 | # Rule for creating converters |
michael@0 | 756 | $(CNV_FILES): $(UCM_SOURCE) |
michael@0 | 757 | @echo Building Charset Conversion table $(@B) |
michael@0 | 758 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" -c -d"$(ICUBLD_PKG)" $(ICUSRCDATA_RELATIVE_PATH)\$(ICUUCM)\$(@B).ucm |
michael@0 | 759 | !ENDIF |
michael@0 | 760 | |
michael@0 | 761 | !IFDEF BUILD_SPECIAL_CNV_FILES |
michael@0 | 762 | $(CNV_FILES_SPECIAL): $(UCM_SOURCE_SPECIAL) |
michael@0 | 763 | @echo Building Special Charset Conversion table $(@B) |
michael@0 | 764 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" -c --ignore-siso-check -d"$(ICUBLD_PKG)" $(ICUSRCDATA_RELATIVE_PATH)\$(ICUUCM)\$(@B).ucm |
michael@0 | 765 | !ENDIF |
michael@0 | 766 | |
michael@0 | 767 | # Batch inference rule for creating miscellaneous resource files |
michael@0 | 768 | # TODO: -q option is specified to squelch the 120+ warnings about |
michael@0 | 769 | # empty intvectors and binary elements. Unfortunately, this may |
michael@0 | 770 | # squelch other legitimate warnings. When there is a better |
michael@0 | 771 | # way, remove the -q. |
michael@0 | 772 | {$(ICUSRCDATA_RELATIVE_PATH)\$(ICUMISC2)}.txt.res:: |
michael@0 | 773 | @echo Making Miscellaneous Resource Bundle files |
michael@0 | 774 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -q -d"$(ICUBLD_PKG)" $< |
michael@0 | 775 | |
michael@0 | 776 | # Inference rule for creating resource bundle files |
michael@0 | 777 | {$(ICUSRCDATA_RELATIVE_PATH)\$(ICULOC)}.txt.res:: |
michael@0 | 778 | @echo Making Locale Resource Bundle files |
michael@0 | 779 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" --usePoolBundle $(ICUSRCDATA_RELATIVE_PATH)\$(ICULOC) -k -d"$(ICUBLD_PKG)" $< |
michael@0 | 780 | |
michael@0 | 781 | # copy the locales/pool.res file from the source folder to the build output folder |
michael@0 | 782 | # and swap it to native endianness |
michael@0 | 783 | pool.res: $(ICUSRCDATA_RELATIVE_PATH)\$(ICULOC)\pool.res |
michael@0 | 784 | "$(ICUPBIN)\icupkg" -tl "$(ICUSRCDATA_RELATIVE_PATH)\$(ICULOC)\pool.res" pool.res |
michael@0 | 785 | |
michael@0 | 786 | res_index.res: |
michael@0 | 787 | @echo Generating <<res_index.txt |
michael@0 | 788 | // Warning this file is automatically generated |
michael@0 | 789 | res_index:table(nofallback) { |
michael@0 | 790 | InstalledLocales { |
michael@0 | 791 | $(GENRB_SOURCE:.txt= {""} |
michael@0 | 792 | ) |
michael@0 | 793 | } |
michael@0 | 794 | } |
michael@0 | 795 | <<KEEP |
michael@0 | 796 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -d"$(ICUBLD_PKG)" .\res_index.txt |
michael@0 | 797 | |
michael@0 | 798 | |
michael@0 | 799 | {$(ICUSRCDATA_RELATIVE_PATH)\curr}.txt{curr}.res:: |
michael@0 | 800 | @echo Making currency display name files |
michael@0 | 801 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" --usePoolBundle $(ICUSRCDATA_RELATIVE_PATH)\curr -k -i "$(ICUBLD_PKG)" -d"$(ICUBLD_PKG)\curr" $< |
michael@0 | 802 | |
michael@0 | 803 | # copy the curr/pool.res file from the source folder to the build output folder |
michael@0 | 804 | # and swap it to native endianness |
michael@0 | 805 | curr\pool.res: $(ICUSRCDATA_RELATIVE_PATH)\curr\pool.res |
michael@0 | 806 | "$(ICUPBIN)\icupkg" -tl "$(ICUSRCDATA_RELATIVE_PATH)\curr\pool.res" curr\pool.res |
michael@0 | 807 | |
michael@0 | 808 | curr\res_index.res: |
michael@0 | 809 | @echo Generating <<curr\res_index.txt |
michael@0 | 810 | // Warning this file is automatically generated |
michael@0 | 811 | res_index:table(nofallback) { |
michael@0 | 812 | InstalledLocales { |
michael@0 | 813 | $(CURR_SOURCE:.txt= {""} |
michael@0 | 814 | ) |
michael@0 | 815 | } |
michael@0 | 816 | } |
michael@0 | 817 | <<KEEP |
michael@0 | 818 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -d"$(ICUBLD_PKG)\curr" .\curr\res_index.txt |
michael@0 | 819 | |
michael@0 | 820 | |
michael@0 | 821 | {$(ICUSRCDATA_RELATIVE_PATH)\lang}.txt{lang}.res:: |
michael@0 | 822 | @echo Making language/script display name files |
michael@0 | 823 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" --usePoolBundle $(ICUSRCDATA_RELATIVE_PATH)\lang -k -i "$(ICUBLD_PKG)" -d"$(ICUBLD_PKG)\lang" $< |
michael@0 | 824 | |
michael@0 | 825 | # copy the lang/pool.res file from the source folder to the build output folder |
michael@0 | 826 | # and swap it to native endianness |
michael@0 | 827 | lang\pool.res: $(ICUSRCDATA_RELATIVE_PATH)\lang\pool.res |
michael@0 | 828 | "$(ICUPBIN)\icupkg" -tl "$(ICUSRCDATA_RELATIVE_PATH)\lang\pool.res" lang\pool.res |
michael@0 | 829 | |
michael@0 | 830 | lang\res_index.res: |
michael@0 | 831 | @echo Generating <<lang\res_index.txt |
michael@0 | 832 | // Warning this file is automatically generated |
michael@0 | 833 | res_index:table(nofallback) { |
michael@0 | 834 | InstalledLocales { |
michael@0 | 835 | $(LANG_SOURCE:.txt= {""} |
michael@0 | 836 | ) |
michael@0 | 837 | } |
michael@0 | 838 | } |
michael@0 | 839 | <<KEEP |
michael@0 | 840 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -d"$(ICUBLD_PKG)\lang" .\lang\res_index.txt |
michael@0 | 841 | |
michael@0 | 842 | |
michael@0 | 843 | {$(ICUSRCDATA_RELATIVE_PATH)\region}.txt{region}.res:: |
michael@0 | 844 | @echo Making region display name files |
michael@0 | 845 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" --usePoolBundle $(ICUSRCDATA_RELATIVE_PATH)\region -k -i "$(ICUBLD_PKG)" -d"$(ICUBLD_PKG)\region" $< |
michael@0 | 846 | |
michael@0 | 847 | # copy the region/pool.res file from the source folder to the build output folder |
michael@0 | 848 | # and swap it to native endianness |
michael@0 | 849 | region\pool.res: $(ICUSRCDATA_RELATIVE_PATH)\region\pool.res |
michael@0 | 850 | "$(ICUPBIN)\icupkg" -tl "$(ICUSRCDATA_RELATIVE_PATH)\region\pool.res" region\pool.res |
michael@0 | 851 | |
michael@0 | 852 | region\res_index.res: |
michael@0 | 853 | @echo Generating <<region\res_index.txt |
michael@0 | 854 | // Warning this file is automatically generated |
michael@0 | 855 | res_index:table(nofallback) { |
michael@0 | 856 | InstalledLocales { |
michael@0 | 857 | $(REGION_SOURCE:.txt= {""} |
michael@0 | 858 | ) |
michael@0 | 859 | } |
michael@0 | 860 | } |
michael@0 | 861 | <<KEEP |
michael@0 | 862 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -d"$(ICUBLD_PKG)\region" .\region\res_index.txt |
michael@0 | 863 | |
michael@0 | 864 | |
michael@0 | 865 | {$(ICUSRCDATA_RELATIVE_PATH)\zone}.txt{zone}.res:: |
michael@0 | 866 | @echo Making time zone display name files |
michael@0 | 867 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" --usePoolBundle $(ICUSRCDATA_RELATIVE_PATH)\zone -k -i "$(ICUBLD_PKG)" -d"$(ICUBLD_PKG)\zone" $< |
michael@0 | 868 | |
michael@0 | 869 | # copy the zone/pool.res file from the source folder to the build output folder |
michael@0 | 870 | # and swap it to native endianness |
michael@0 | 871 | zone\pool.res: $(ICUSRCDATA_RELATIVE_PATH)\zone\pool.res |
michael@0 | 872 | "$(ICUPBIN)\icupkg" -tl "$(ICUSRCDATA_RELATIVE_PATH)\zone\pool.res" zone\pool.res |
michael@0 | 873 | |
michael@0 | 874 | zone\res_index.res: |
michael@0 | 875 | @echo Generating <<zone\res_index.txt |
michael@0 | 876 | // Warning this file is automatically generated |
michael@0 | 877 | res_index:table(nofallback) { |
michael@0 | 878 | InstalledLocales { |
michael@0 | 879 | $(ZONE_SOURCE:.txt= {""} |
michael@0 | 880 | ) |
michael@0 | 881 | } |
michael@0 | 882 | } |
michael@0 | 883 | <<KEEP |
michael@0 | 884 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -d"$(ICUBLD_PKG)\zone" .\zone\res_index.txt |
michael@0 | 885 | |
michael@0 | 886 | |
michael@0 | 887 | {$(ICUSRCDATA_RELATIVE_PATH)\$(ICUCOL)}.txt{$(ICUCOL)}.res:: |
michael@0 | 888 | @echo Making Collation files |
michael@0 | 889 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -i "$(ICUBLD_PKG)" -d"$(ICUBLD_PKG)\$(ICUCOL)" $< |
michael@0 | 890 | |
michael@0 | 891 | $(ICUCOL)\res_index.res: |
michael@0 | 892 | @echo Generating <<$(ICUCOL)\res_index.txt |
michael@0 | 893 | // Warning this file is automatically generated |
michael@0 | 894 | res_index:table(nofallback) { |
michael@0 | 895 | InstalledLocales { |
michael@0 | 896 | $(COLLATION_SOURCE:.txt= {""} |
michael@0 | 897 | ) |
michael@0 | 898 | } |
michael@0 | 899 | } |
michael@0 | 900 | <<KEEP |
michael@0 | 901 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -d"$(ICUBLD_PKG)\$(ICUCOL)" .\$(ICUCOL)\res_index.txt |
michael@0 | 902 | |
michael@0 | 903 | {$(ICUSRCDATA_RELATIVE_PATH)\$(ICURBNF)}.txt{$(ICURBNF)}.res:: |
michael@0 | 904 | @echo Making RBNF files |
michael@0 | 905 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -i "$(ICUBLD_PKG)" -d"$(ICUBLD_PKG)\$(ICURBNF)" $< |
michael@0 | 906 | |
michael@0 | 907 | $(ICURBNF)\res_index.res: |
michael@0 | 908 | @echo Generating <<$(ICURBNF)\res_index.txt |
michael@0 | 909 | // Warning this file is automatically generated |
michael@0 | 910 | res_index:table(nofallback) { |
michael@0 | 911 | InstalledLocales { |
michael@0 | 912 | $(RBNF_SOURCE:.txt= {""} |
michael@0 | 913 | ) |
michael@0 | 914 | } |
michael@0 | 915 | } |
michael@0 | 916 | <<KEEP |
michael@0 | 917 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -d"$(ICUBLD_PKG)\$(ICURBNF)" .\$(ICURBNF)\res_index.txt |
michael@0 | 918 | |
michael@0 | 919 | $(ICUBRK)\res_index.res: |
michael@0 | 920 | @echo Generating <<$(ICUBRK)\res_index.txt |
michael@0 | 921 | // Warning this file is automatically generated |
michael@0 | 922 | res_index:table(nofallback) { |
michael@0 | 923 | InstalledLocales { |
michael@0 | 924 | $(BRK_RES_SOURCE:.txt= {""} |
michael@0 | 925 | ) |
michael@0 | 926 | } |
michael@0 | 927 | } |
michael@0 | 928 | <<KEEP |
michael@0 | 929 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -d"$(ICUBLD_PKG)\$(ICUBRK)" .\$(ICUBRK)\res_index.txt |
michael@0 | 930 | |
michael@0 | 931 | {$(ICUSRCDATA_RELATIVE_PATH)\$(ICUBRK)}.txt{$(ICUBRK)}.res:: |
michael@0 | 932 | @echo Making Break Iterator Resource files |
michael@0 | 933 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -i "$(ICUBLD_PKG)" -d"$(ICUBLD_PKG)\$(ICUBRK)" $< |
michael@0 | 934 | |
michael@0 | 935 | {$(ICUSRCDATA_RELATIVE_PATH)\$(ICUTRNS)}.txt{$(ICUTRNS)}.res:: |
michael@0 | 936 | @echo Making Transliterator files |
michael@0 | 937 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -k -i "$(ICUBLD_PKG)" -d"$(ICUBLD_PKG)\$(ICUTRNS)" $< |
michael@0 | 938 | |
michael@0 | 939 | |
michael@0 | 940 | # DLL version information |
michael@0 | 941 | # If you modify this, modify winmode.c in pkgdata. |
michael@0 | 942 | "$(ICUTMP)\icudata.res": "$(ICUMISC)\icudata.rc" |
michael@0 | 943 | @echo Creating data DLL version information from $** |
michael@0 | 944 | @rc.exe /i "..\..\..\..\common" /r /fo $@ $** |
michael@0 | 945 | |
michael@0 | 946 | # Targets for converters |
michael@0 | 947 | "$(ICUBLD_PKG)\cnvalias.icu" : {"$(ICUSRCDATA)\$(ICUUCM)"}\convrtrs.txt "$(ICUTOOLS)\gencnval\$(CFG)\gencnval.exe" |
michael@0 | 948 | @echo Creating data file for Converter Aliases |
michael@0 | 949 | @"$(ICUTOOLS)\gencnval\$(CFG)\gencnval" -d "$(ICUBLD_PKG)" "$(ICUSRCDATA)\$(ICUUCM)\convrtrs.txt" |
michael@0 | 950 | |
michael@0 | 951 | # Targets for prebuilt Unicode data |
michael@0 | 952 | "$(ICUBLD_PKG)\pnames.icu": $(ICUSRCDATA_RELATIVE_PATH)\in\pnames.icu |
michael@0 | 953 | "$(ICUPBIN)\icupkg" -tl $? $@ |
michael@0 | 954 | |
michael@0 | 955 | "$(ICUBLD_PKG)\ubidi.icu": $(ICUSRCDATA_RELATIVE_PATH)\in\ubidi.icu |
michael@0 | 956 | "$(ICUPBIN)\icupkg" -tl $? $@ |
michael@0 | 957 | |
michael@0 | 958 | "$(ICUBLD_PKG)\ucase.icu": $(ICUSRCDATA_RELATIVE_PATH)\in\ucase.icu |
michael@0 | 959 | "$(ICUPBIN)\icupkg" -tl $? $@ |
michael@0 | 960 | |
michael@0 | 961 | "$(ICUBLD_PKG)\uprops.icu": $(ICUSRCDATA_RELATIVE_PATH)\in\uprops.icu |
michael@0 | 962 | "$(ICUPBIN)\icupkg" -tl $? $@ |
michael@0 | 963 | |
michael@0 | 964 | "$(ICUBLD_PKG)\unames.icu": $(ICUSRCDATA_RELATIVE_PATH)\in\unames.icu |
michael@0 | 965 | "$(ICUPBIN)\icupkg" -tl $? $@ |
michael@0 | 966 | |
michael@0 | 967 | "$(ICUBLD_PKG)\nfc.nrm": $(ICUSRCDATA_RELATIVE_PATH)\in\nfc.nrm |
michael@0 | 968 | "$(ICUPBIN)\icupkg" -tl $? $@ |
michael@0 | 969 | |
michael@0 | 970 | "$(ICUBLD_PKG)\nfkc.nrm": $(ICUSRCDATA_RELATIVE_PATH)\in\nfkc.nrm |
michael@0 | 971 | "$(ICUPBIN)\icupkg" -tl $? $@ |
michael@0 | 972 | |
michael@0 | 973 | "$(ICUBLD_PKG)\nfkc_cf.nrm": $(ICUSRCDATA_RELATIVE_PATH)\in\nfkc_cf.nrm |
michael@0 | 974 | "$(ICUPBIN)\icupkg" -tl $? $@ |
michael@0 | 975 | |
michael@0 | 976 | "$(ICUBLD_PKG)\uts46.nrm": $(ICUSRCDATA_RELATIVE_PATH)\in\uts46.nrm |
michael@0 | 977 | "$(ICUPBIN)\icupkg" -tl $? $@ |
michael@0 | 978 | |
michael@0 | 979 | "$(ICUBLD_PKG)\coll\invuca.icu": $(ICUSRCDATA_RELATIVE_PATH)\in\coll\invuca.icu |
michael@0 | 980 | "$(ICUPBIN)\icupkg" -tl $? $@ |
michael@0 | 981 | |
michael@0 | 982 | "$(ICUBLD_PKG)\coll\ucadata.icu": $(ICUSRCDATA_RELATIVE_PATH)\in\coll\ucadata.icu |
michael@0 | 983 | "$(ICUPBIN)\icupkg" -tl $? $@ |
michael@0 | 984 | |
michael@0 | 985 | # Stringprep .spp file generation. |
michael@0 | 986 | {$(ICUSRCDATA_RELATIVE_PATH)\$(ICUSPREP)}.txt.spp: |
michael@0 | 987 | @echo Creating $@ |
michael@0 | 988 | @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s $(<D) -d "$(ICUBLD_PKG)" -b $(@B) -m "$(ICUUNIDATA)" -u 3.2.0 $(<F) |
michael@0 | 989 | |
michael@0 | 990 | # Confusables .cfu file generation |
michael@0 | 991 | # Can't use an inference rule because two .txt source files combine to produce a single .cfu output file |
michael@0 | 992 | "$(ICUBLD_PKG)\confusables.cfu": "$(ICUUNIDATA)\confusables.txt" "$(ICUUNIDATA)\confusablesWholeScript.txt" "$(ICUTOOLS)\gencfu\$(CFG)\gencfu.exe" |
michael@0 | 993 | @echo Creating $@ |
michael@0 | 994 | @"$(ICUTOOLS)\gencfu\$(CFG)\gencfu" -c -r "$(ICUUNIDATA)\confusables.txt" -w "$(ICUUNIDATA)\confusablesWholeScript.txt" -o $@ -i "$(ICUBLD_PKG)" |
michael@0 | 995 | |
michael@0 | 996 | !IFDEF ICUDATA_ARCHIVE |
michael@0 | 997 | "$(ICUDATA_SOURCE_ARCHIVE)": CREATE_DIRS $(ICUDATA_ARCHIVE) "$(ICUTOOLS)\icupkg\$(CFG)\icupkg.exe" |
michael@0 | 998 | "$(ICUTOOLS)\icupkg\$(CFG)\icupkg" -t$(U_ICUDATA_ENDIAN_SUFFIX) "$(ICUDATA_ARCHIVE)" "$(ICUDATA_SOURCE_ARCHIVE)" |
michael@0 | 999 | !ENDIF |
michael@0 | 1000 | |
michael@0 | 1001 | # Dependencies on the tools for the batch inference rules |
michael@0 | 1002 | |
michael@0 | 1003 | !IFNDEF ICUDATA_SOURCE_ARCHIVE |
michael@0 | 1004 | $(UCM_SOURCE) : {"$(ICUTOOLS)\makeconv\$(CFG)"}makeconv.exe |
michael@0 | 1005 | |
michael@0 | 1006 | !IFDEF BUILD_SPECIAL_CNV_FILES |
michael@0 | 1007 | $(UCM_SOURCE_SPECIAL): {"$(ICUTOOLS)\makeconv\$(CFG)"}makeconv.exe |
michael@0 | 1008 | !ENDIF |
michael@0 | 1009 | |
michael@0 | 1010 | # This used to depend on "$(ICUBLD_PKG)\uprops.icu" "$(ICUBLD_PKG)\ucase.icu" "$(ICUBLD_PKG)\ubidi.icu" |
michael@0 | 1011 | # This data is now hard coded as a part of the library. |
michael@0 | 1012 | # See Jitterbug 4497 for details. |
michael@0 | 1013 | $(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" |
michael@0 | 1014 | |
michael@0 | 1015 | # This used to depend on "$(ICUBLD_PKG)\pnames.icu" "$(ICUBLD_PKG)\uprops.icu" "$(ICUBLD_PKG)\ucase.icu" "$(ICUBLD_PKG)\ubidi.icu" |
michael@0 | 1016 | # These are now hardcoded in ICU4C and only loaded in ICU4J. |
michael@0 | 1017 | $(BRK_SOURCE) : "$(ICUBLD_PKG)\unames.icu" "$(ICUBLD_PKG)\nfc.nrm" |
michael@0 | 1018 | !ENDIF |
michael@0 | 1019 |