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