]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/testdata/testdata.mak
ICU-64260.0.1.tar.gz
[apple/icu.git] / icuSources / test / testdata / testdata.mak
CommitLineData
f3c0d7a5
A
1# Copyright (C) 2016 and later: Unicode, Inc. and others.
2# License & terms of use: http://www.unicode.org/copyright.html
374ca955 3#**********************************************************************
b331163b 4#* Copyright (C) 1999-2015, International Business Machines Corporation
374ca955
A
5#* and others. All Rights Reserved.
6#**********************************************************************
7#
8# 03/19/2001 weiv, schererm Created
9
10.SUFFIXES : .res .txt
11
12TESTPKG=testdata
73c04bcf 13TESTDT=$(TESTPKG)
374ca955
A
14
15
16ALL : "$(TESTDATAOUT)\testdata.dat"
17 @echo Test data is built.
18
729e4ab9
A
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)
24# markus 2010jan15
374ca955 25
729e4ab9 26# old_e_testtypes.res is the same, but icuswapped to big-endian EBCDIC
374ca955 27
3d1f044b 28TESTDATATMP="$(TESTDATAOUT)\testdata"
46f4442e 29
3d1f044b
A
30CREATE_DIRS :
31 @if not exist "$(TESTDATAOUT)\$(NULL)" mkdir "$(TESTDATAOUT)"
32 @if not exist "$(TESTDATABLD)\$(NULL)" mkdir "$(TESTDATABLD)"
33 @if not exist "$(TESTDATATMP)\$(NULL)" mkdir "$(TESTDATATMP)"
46f4442e 34
3d1f044b 35"$(TESTDATAOUT)\testdata.dat" :
374ca955 36 @echo Building test data
3d1f044b
A
37 set PYTHONPATH=$(ICUSRCDATA);%PYTHONPATH%
38 py -3 -B -m buildtool \
39 --mode windows-exec \
40 --tool_dir "$(ICUTOOLS)" \
41 --tool_cfg "$(CFG)" \
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