1 # Copyright (C) 2016 and later: Unicode, Inc. and others.
2 # License & terms of use: http://www.unicode.org/copyright.html
3 #**********************************************************************
4 #* Copyright (C) 1999-2015, International Business Machines Corporation
5 #* and others. All Rights Reserved.
6 #**********************************************************************
8 # 03/19/2001 weiv, schererm Created
16 ALL : "$(TESTDATAOUT)\testdata.dat"
17 @echo Test data is built.
19 # old_l_testtypes.res is there for cintltst/udatatst.c/TestSwapData()
20 # I generated it with an ICU 4.2.1 build on Linux after removing
21 # testincludeUTF (which would make it large, unnecessarily for this test)
22 # and renaming the collations element to avoid build CollationElements
23 # (which will not work with a newer swapper)
26 # old_e_testtypes.res is the same, but icuswapped to big-endian EBCDIC
28 TESTDATATMP="$(TESTDATAOUT)\testdata"
31 @if not exist "$(TESTDATAOUT)\$(NULL)" mkdir "$(TESTDATAOUT)"
32 @if not exist "$(TESTDATABLD)\$(NULL)" mkdir "$(TESTDATABLD)"
33 @if not exist "$(TESTDATATMP)\$(NULL)" mkdir "$(TESTDATATMP)"
35 "$(TESTDATAOUT)\testdata.dat" :
36 @echo Building test data
37 set PYTHONPATH=$(ICUP)\source\python;%PYTHONPATH%
38 py -3 -B -m icutools.databuilder \
40 --tool_dir "$(ICUTOOLS)" \
42 --src_dir "$(TESTDATA)" \
43 --tmp_dir "$(TESTDATATMP)" \
44 --out_dir "$(TESTDATABLD)"
45 "$(ICUPBIN)\pkgdata" -f -v -m common -c -p"$(TESTPKG)" -d "$(TESTDATAOUT)" -T "$(TESTDATABLD)" -s "$(TESTDATABLD)" $(TESTDATATMP)\testdata.lst