2001-03-19 22:35:36 +00:00
|
|
|
#**********************************************************************
|
|
|
|
#* Copyright (C) 1999-2000, International Business Machines Corporation
|
|
|
|
#* and others. All Rights Reserved.
|
|
|
|
#**********************************************************************
|
|
|
|
# nmake file for creating data files on win32
|
|
|
|
# invoke with
|
|
|
|
# nmake /f makedata.mak icup=<path_to_icu_instalation> [Debug|Release]
|
|
|
|
#
|
2001-10-10 18:32:06 +00:00
|
|
|
# 03/19/2001 weiv, schererm Created
|
2001-03-19 22:35:36 +00:00
|
|
|
|
|
|
|
.SUFFIXES : .res .txt
|
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
ALL : "$(TESTDATAOUT)\testdata.dat"
|
2001-03-19 22:35:36 +00:00
|
|
|
@echo Test data is built.
|
|
|
|
|
2001-11-01 19:43:21 +00:00
|
|
|
"$(TESTDATAOUT)\testdata.dat" : TESTDATA_ENC "$(TESTDATAOUT)\root.res" "$(TESTDATAOUT)\te.res" "$(TESTDATAOUT)\te_IN.res" "$(TESTDATAOUT)\testtypes.res" "$(TESTDATAOUT)\testempty.res" "$(TESTDATAOUT)\ja_data.res" $(TESTDATAOUT)test.dat
|
2001-03-19 22:35:36 +00:00
|
|
|
@echo Building test data
|
2001-11-16 20:12:38 +00:00
|
|
|
copy "$(TESTDATAOUT)\te.res" "$(TESTDATAOUT)\testudata_nam.typ"
|
2001-10-10 18:32:06 +00:00
|
|
|
@"$(ICUTOOLS)\pkgdata\$(CFG)\pkgdata" -v -m common -c -p testdata -O "$(PKGOPT)" -d "$(TESTDATAOUT)" -T "$(TESTDATAOUT)" -s "$(TESTDATAOUT)" <<
|
2001-03-19 22:35:36 +00:00
|
|
|
root.res
|
|
|
|
te.res
|
|
|
|
te_IN.res
|
|
|
|
testtypes.res
|
2001-10-10 21:00:46 +00:00
|
|
|
testempty.res
|
2001-03-19 22:35:36 +00:00
|
|
|
test.dat
|
|
|
|
<<
|
|
|
|
|
2001-11-16 05:17:32 +00:00
|
|
|
|
2001-03-19 22:35:36 +00:00
|
|
|
# Inference rule for creating resource bundles
|
2001-10-10 18:32:06 +00:00
|
|
|
# Some test data resource bundles are known to have warnings and bad data.
|
|
|
|
# The -q option is there on purpose, so we don't see it normally.
|
2001-11-01 19:43:21 +00:00
|
|
|
{$(TESTDATA)}.txt.res:
|
2001-10-10 18:32:06 +00:00
|
|
|
@echo Making Test Resource Bundle files
|
2001-11-16 20:12:38 +00:00
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -q -s"$(TESTDATA)" -d"$(TESTDATAOUT)" $(?F)
|
2001-03-19 22:35:36 +00:00
|
|
|
|
2001-11-01 19:43:21 +00:00
|
|
|
TESTDATA_ENC:
|
|
|
|
@echo Making Test Resource Bundle file with encoding ISO-2022-JP
|
2001-11-16 20:12:38 +00:00
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -q -s"$(TESTDATA)" -eISO_2022_JP -d"$(TESTDATAOUT)" ja_data.bin >null
|
2001-11-01 19:43:21 +00:00
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
$(TESTDATAOUT)test.dat : {"$(ICUTOOLS)\gentest\$(CFG)"}gentest.exe
|
2001-11-16 20:12:38 +00:00
|
|
|
"$(ICUTOOLS)\gentest\$(CFG)\gentest" -d"$(TESTDATAOUT)"
|