testdata.mak (1657B)
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 #********************************************************************** 7 # 8 # 03/19/2001 weiv, schererm Created 9 10 .SUFFIXES : .res .txt 11 12 TESTPKG=testdata 13 TESTDT=$(TESTPKG) 14 15 16 ALL : "$(TESTDATAOUT)\testdata.dat" 17 @echo Test data is built. 18 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 25 26 # old_e_testtypes.res is the same, but icuswapped to big-endian EBCDIC 27 28 TESTDATATMP="$(TESTDATAOUT)\testdata" 29 30 CREATE_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)" 34 35 "$(TESTDATAOUT)\testdata.dat" : 36 @echo Building test data 37 set PYTHONPATH=$(ICUP)\source\python;%PYTHONPATH% 38 py -3 -B -m icutools.databuilder \ 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