1111
1212# These files are part of the Unicode Character Database. Download them on
1313# demand.
14- foreach f : [' UnicodeData .txt' , ' EastAsianWidth .txt' , ' DerivedNormalizationProps .txt' , ' CompositionExclusions .txt' , ' NormalizationTest .txt' ]
14+ foreach f : [' CompositionExclusions .txt' , ' DerivedNormalizationProps .txt' , ' EastAsianWidth .txt' , ' NormalizationTest .txt' , ' UnicodeData .txt' ]
1515 url = unicode_baseurl.format(UNICODE_VERSION, f)
1616 target = custom_target (f,
1717 output : f,
@@ -24,15 +24,6 @@ endforeach
2424
2525update_unicode_targets = []
2626
27- update_unicode_targets += \
28- custom_target (' unicode_version.h' ,
29- output : [' unicode_version.h' ],
30- command : [
31- perl, files (' generate-unicode_version.pl' ),
32- ' --outdir' , ' @OUTDIR@' , ' --version' , UNICODE_VERSION],
33- build_by_default : false ,
34- )
35-
3627update_unicode_targets += \
3728 custom_target (' unicode_category_table.h' ,
3829 input : [unicode_data[' UnicodeData.txt' ]],
@@ -44,14 +35,12 @@ update_unicode_targets += \
4435 )
4536
4637update_unicode_targets += \
47- custom_target (' unicode_norm_table.h' ,
48- input : [unicode_data[' UnicodeData.txt' ], unicode_data[' CompositionExclusions.txt' ]],
49- output : [' unicode_norm_table.h' , ' unicode_norm_hashfunc.h' ],
50- depend_files : perfect_hash_pm,
51- command : [
52- perl, files (' generate-unicode_norm_table.pl' ),
53- ' --outdir' , ' @OUTDIR@' , ' @INPUT@' ],
38+ custom_target (' unicode_east_asian_fw_table.h' ,
39+ input : [unicode_data[' EastAsianWidth.txt' ]],
40+ output : [' unicode_east_asian_fw_table.h' ],
41+ command : [perl, files (' generate-unicode_east_asian_fw_table.pl' ), ' @INPUT@' ],
5442 build_by_default : false ,
43+ capture : true ,
5544 )
5645
5746update_unicode_targets += \
@@ -65,12 +54,14 @@ update_unicode_targets += \
6554 )
6655
6756update_unicode_targets += \
68- custom_target (' unicode_east_asian_fw_table.h' ,
69- input : [unicode_data[' EastAsianWidth.txt' ]],
70- output : [' unicode_east_asian_fw_table.h' ],
71- command : [perl, files (' generate-unicode_east_asian_fw_table.pl' ), ' @INPUT@' ],
57+ custom_target (' unicode_norm_table.h' ,
58+ input : [unicode_data[' UnicodeData.txt' ], unicode_data[' CompositionExclusions.txt' ]],
59+ output : [' unicode_norm_table.h' , ' unicode_norm_hashfunc.h' ],
60+ depend_files : perfect_hash_pm,
61+ command : [
62+ perl, files (' generate-unicode_norm_table.pl' ),
63+ ' --outdir' , ' @OUTDIR@' , ' @INPUT@' ],
7264 build_by_default : false ,
73- capture : true ,
7465 )
7566
7667update_unicode_targets += \
@@ -83,6 +74,15 @@ update_unicode_targets += \
8374 capture : true ,
8475 )
8576
77+ update_unicode_targets += \
78+ custom_target (' unicode_version.h' ,
79+ output : [' unicode_version.h' ],
80+ command : [
81+ perl, files (' generate-unicode_version.pl' ),
82+ ' --outdir' , ' @OUTDIR@' , ' --version' , UNICODE_VERSION],
83+ build_by_default : false ,
84+ )
85+
8686norm_test_table = custom_target (' norm_test_table.h' ,
8787 input : [unicode_data[' NormalizationTest.txt' ]],
8888 output : [' norm_test_table.h' ],
0 commit comments