-
Notifications
You must be signed in to change notification settings - Fork 2
/
utf8rewind.gyp
238 lines (238 loc) · 7.86 KB
/
utf8rewind.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
{
'includes': [
'build/common.gypi',
],
'targets': [
{
'target_name': 'utf8rewind',
'type': 'static_library',
'include_dirs': [
'include/utf8rewind',
],
'sources': [
'include/utf8rewind/utf8rewind.h',
'source/internal/base.h',
'source/internal/casemapping.c',
'source/internal/casemapping.h',
'source/internal/codepoint.c',
'source/internal/codepoint.h',
'source/internal/composition.c',
'source/internal/composition.h',
'source/internal/database.c',
'source/internal/database.h',
'source/internal/decomposition.c',
'source/internal/decomposition.h',
'source/internal/seeking.c',
'source/internal/seeking.h',
'source/internal/streaming.c',
'source/internal/streaming.h',
'source/unicodedatabase.c',
'source/unicodedatabase.h',
'source/utf8rewind.c',
],
'direct_dependent_settings': {
'include_dirs': [
'include/utf8rewind',
],
},
'conditions': [
['OS=="win"', {
'msvs_settings': {
'VCCLCompilerTool': {
'CompileAs': 1, # Compile as C
},
},
}],
['OS!="win"', {
'product_dir': 'output/<(platform_name)/<(architecture_name)/<(CONFIGURATION_NAME)',
}],
],
},
{
'target_name': 'helpers',
'type': 'static_library',
'dependencies': [
'dependencies.gyp:gtest',
'utf8rewind',
],
'sources': [
'source/helpers/helpers-base.hpp',
'source/helpers/helpers-casemapping.cpp',
'source/helpers/helpers-casemapping.hpp',
'source/helpers/helpers-errors.cpp',
'source/helpers/helpers-errors.hpp',
'source/helpers/helpers-locale.cpp',
'source/helpers/helpers-locale.hpp',
'source/helpers/helpers-normalization.cpp',
'source/helpers/helpers-normalization.hpp',
'source/helpers/helpers-seeking.cpp',
'source/helpers/helpers-seeking.hpp',
'source/helpers/helpers-streams.cpp',
'source/helpers/helpers-streams.hpp',
'source/helpers/helpers-strings.cpp',
'source/helpers/helpers-strings.hpp',
],
'conditions': [
['OS!="win"', {
'product_dir': 'output/<(platform_name)/<(architecture_name)/<(CONFIGURATION_NAME)',
}],
],
},
{
'target_name': 'tests-rewind',
'type': 'executable',
'dependencies': [
'dependencies.gyp:gtest',
'utf8rewind',
'helpers',
],
'sources': [
'source/tests/integration-casefolding.cpp',
'source/tests/integration-casemapping.cpp',
'source/tests/integration-category-standard.cpp',
'source/tests/integration-conformance.cpp',
'source/tests/integration-isnormalized.cpp',
'source/tests/integration-naughty-strings.cpp',
'source/tests/integration-normalization.cpp',
'source/tests/integration-quickbrown-casemapping.cpp',
'source/tests/integration-quickbrown.cpp',
'source/tests/suite-casemapping-execute.cpp',
'source/tests/suite-casemapping-initialize.cpp',
'source/tests/suite-codepoint-decoded-length.cpp',
'source/tests/suite-codepoint-read.cpp',
'source/tests/suite-codepoint-write.cpp',
'source/tests/suite-compose-execute.cpp',
'source/tests/suite-database-querycomposition.cpp',
'source/tests/suite-database-querydecomposition.cpp',
'source/tests/suite-decompose-execute.cpp',
'source/tests/suite-stream-read.cpp',
'source/tests/suite-stream-reorder.cpp',
'source/tests/suite-stream-write.cpp',
'source/tests/suite-utf16-toutf8.cpp',
'source/tests/suite-utf32-toutf8.cpp',
'source/tests/suite-utf8-casefold.cpp',
'source/tests/suite-utf8-casefold-turkish.cpp',
'source/tests/suite-utf8-envlocale.cpp',
'source/tests/suite-utf8-iscategory.cpp',
'source/tests/suite-utf8-isnormalized-compose.cpp',
'source/tests/suite-utf8-isnormalized-decompose.cpp',
'source/tests/suite-utf8-isnormalized.cpp',
'source/tests/suite-utf8-len.cpp',
'source/tests/suite-utf8-normalize-compose.cpp',
'source/tests/suite-utf8-normalize-decompose.cpp',
'source/tests/suite-utf8-normalize.cpp',
'source/tests/suite-utf8-seek-current.cpp',
'source/tests/suite-utf8-seek-current-backwards.cpp',
'source/tests/suite-utf8-seek-current-forward.cpp',
'source/tests/suite-utf8-seek-end.cpp',
'source/tests/suite-utf8-seek-set.cpp',
'source/tests/suite-utf8-seek.cpp',
'source/tests/suite-utf8-tolower.cpp',
'source/tests/suite-utf8-tolower-greek.cpp',
'source/tests/suite-utf8-tolower-lithuanian.cpp',
'source/tests/suite-utf8-tolower-turkish.cpp',
'source/tests/suite-utf8-totitle.cpp',
'source/tests/suite-utf8-totitle-greek.cpp',
'source/tests/suite-utf8-totitle-lithuanian.cpp',
'source/tests/suite-utf8-totitle-turkish.cpp',
'source/tests/suite-utf8-toupper.cpp',
'source/tests/suite-utf8-toupper-greek.cpp',
'source/tests/suite-utf8-toupper-lithuanian.cpp',
'source/tests/suite-utf8-toupper-turkish.cpp',
'source/tests/suite-utf8-toutf16.cpp',
'source/tests/suite-utf8-toutf32.cpp',
'source/tests/suite-utf8-towide.cpp',
'source/tests/suite-wide-toutf8.cpp',
'source/tests/tests-base.hpp',
'source/tests/tests-main.cpp',
],
'conditions': [
['OS!="win"', {
'product_dir': 'output/<(platform_name)/<(architecture_name)/<(CONFIGURATION_NAME)',
}],
],
},
{
'target_name': 'properties-rewind',
'type': 'executable',
'dependencies': [
'dependencies.gyp:gtest',
'dependencies.gyp:quickcheck',
'utf8rewind',
'helpers',
],
'sources': [
'source/properties/property-base.hpp',
'source/properties/property-convert-utf16.hpp',
'source/properties/property-convert-utf32.hpp',
'source/properties/property-main.cpp',
'source/properties/property-seeking-current.hpp',
'source/properties/property-sequence-utf16.hpp',
'source/properties/property-sequence-utf32.hpp',
],
'conditions': [
['OS!="win"', {
'product_dir': 'output/<(platform_name)/<(architecture_name)/<(CONFIGURATION_NAME)',
}],
],
},
{
'target_name': 'performance-rewind',
'type': 'executable',
'dependencies': [
'dependencies.gyp:gtest',
'utf8rewind',
'helpers',
],
'sources': [
'source/performance/performance-base.hpp',
'source/performance/performance-big-casemapping.cpp',
'source/performance/performance-big-category.cpp',
'source/performance/performance-big-conversion.cpp',
'source/performance/performance-big-normalization.cpp',
'source/performance/performance-big-seeking.cpp',
'source/performance/performance-casemapping.cpp',
'source/performance/performance-category.cpp',
'source/performance/performance-conversion.cpp',
'source/performance/performance-database.cpp',
'source/performance/performance-greek-casemapping.cpp',
'source/performance/performance-greek-category.cpp',
'source/performance/performance-greek-conversion.cpp',
'source/performance/performance-greek-normalization.cpp',
'source/performance/performance-greek-seeking.cpp',
'source/performance/performance-main.cpp',
'source/performance/performance-normalization.cpp',
'source/performance/performance-properties.cpp',
],
'conditions': [
['OS!="win"', {
'product_dir': 'output/<(platform_name)/<(architecture_name)/<(CONFIGURATION_NAME)',
}],
],
},
{
'target_name': 'documentation',
'type': 'none',
'rules': [
{
'rule_name': 'Doxyfile',
'msvs_cygwin_shell': 0,
'msvs_quote_cmd': 0,
'extension': 'doxyfile',
'outputs': [
'./documentation/html/index.html',
],
'action': [
'doxygen',
'utf8rewind.doxyfile',
],
},
],
'sources': [
'source/documentation/examples.hpp',
'source/documentation/overview.hpp',
'utf8rewind.doxyfile'
],
},
],
}