11
11
12
12
# These files are part of the Unicode Character Database. Download them on
13
13
# 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' ]
15
15
url = unicode_baseurl.format(UNICODE_VERSION, f)
16
16
target = custom_target (f,
17
17
output : f,
@@ -24,15 +24,6 @@ endforeach
24
24
25
25
update_unicode_targets = []
26
26
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
-
36
27
update_unicode_targets += \
37
28
custom_target (' unicode_category_table.h' ,
38
29
input : [unicode_data[' UnicodeData.txt' ]],
@@ -44,14 +35,12 @@ update_unicode_targets += \
44
35
)
45
36
46
37
update_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@' ],
54
42
build_by_default : false ,
43
+ capture : true ,
55
44
)
56
45
57
46
update_unicode_targets += \
@@ -65,12 +54,14 @@ update_unicode_targets += \
65
54
)
66
55
67
56
update_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@' ],
72
64
build_by_default : false ,
73
- capture : true ,
74
65
)
75
66
76
67
update_unicode_targets += \
@@ -83,6 +74,15 @@ update_unicode_targets += \
83
74
capture : true ,
84
75
)
85
76
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
+
86
86
norm_test_table = custom_target (' norm_test_table.h' ,
87
87
input : [unicode_data[' NormalizationTest.txt' ]],
88
88
output : [' norm_test_table.h' ],
0 commit comments