[refactor] More post-NSS WebCrypto cleanups (utility functions).
[chromium-blink-merge.git] / tools / gn / gn.gyp
blob19bc57cdd3d90916fb2148d638899ce2b079d4ba
2   'variables': {
3     'chromium_code': 1,
4   },
5   'targets': [
6     {
7       'target_name': 'gn_lib',
8       'type': 'static_library',
9       'dependencies': [
10         '../../base/base.gyp:base',
11       ],
12       'sources': [
13         'action_target_generator.cc',
14         'action_target_generator.h',
15         'action_values.cc',
16         'action_values.h',
17         'args.cc',
18         'args.h',
19         'binary_target_generator.cc',
20         'binary_target_generator.h',
21         'build_settings.cc',
22         'build_settings.h',
23         'builder.cc',
24         'builder.h',
25         'builder_record.cc',
26         'builder_record.h',
27         'c_include_iterator.cc',
28         'c_include_iterator.h',
29         'command_args.cc',
30         'command_check.cc',
31         'command_clean.cc',
32         'command_desc.cc',
33         'command_format.cc',
34         'command_gen.cc',
35         'command_help.cc',
36         'command_ls.cc',
37         'command_path.cc',
38         'command_refs.cc',
39         'commands.cc',
40         'commands.h',
41         'config.cc',
42         'config.h',
43         'config_values.cc',
44         'config_values.h',
45         'config_values_extractors.cc',
46         'config_values_extractors.h',
47         'config_values_generator.cc',
48         'config_values_generator.h',
49         'copy_target_generator.cc',
50         'copy_target_generator.h',
51         'deps_iterator.cc',
52         'deps_iterator.h',
53         'err.cc',
54         'err.h',
55         'escape.cc',
56         'escape.h',
57         'exec_process.cc',
58         'exec_process.h',
59         'filesystem_utils.cc',
60         'filesystem_utils.h',
61         'function_exec_script.cc',
62         'function_foreach.cc',
63         'function_forward_variables_from.cc',
64         'function_get_label_info.cc',
65         'function_get_path_info.cc',
66         'function_get_target_outputs.cc',
67         'function_process_file_template.cc',
68         'function_read_file.cc',
69         'function_rebase_path.cc',
70         'function_set_default_toolchain.cc',
71         'function_set_defaults.cc',
72         'function_template.cc',
73         'function_toolchain.cc',
74         'function_write_file.cc',
75         'functions.cc',
76         'functions.h',
77         'functions_target.cc',
78         'group_target_generator.cc',
79         'group_target_generator.h',
80         'header_checker.cc',
81         'header_checker.h',
82         'import_manager.cc',
83         'import_manager.h',
84         'inherited_libraries.cc',
85         'inherited_libraries.h',
86         'input_conversion.cc',
87         'input_conversion.h',
88         'input_file.cc',
89         'input_file.h',
90         'input_file_manager.cc',
91         'input_file_manager.h',
92         'item.cc',
93         'item.h',
94         'label.cc',
95         'label.h',
96         'label_pattern.cc',
97         'label_pattern.h',
98         'label_ptr.h',
99         'loader.cc',
100         'loader.h',
101         'location.cc',
102         'location.h',
103         'ninja_action_target_writer.cc',
104         'ninja_action_target_writer.h',
105         'ninja_binary_target_writer.cc',
106         'ninja_binary_target_writer.h',
107         'ninja_build_writer.cc',
108         'ninja_build_writer.h',
109         'ninja_copy_target_writer.cc',
110         'ninja_copy_target_writer.h',
111         'ninja_group_target_writer.cc',
112         'ninja_group_target_writer.h',
113         'ninja_target_writer.cc',
114         'ninja_target_writer.h',
115         'ninja_toolchain_writer.cc',
116         'ninja_toolchain_writer.h',
117         'ninja_utils.cc',
118         'ninja_utils.h',
119         'ninja_writer.cc',
120         'ninja_writer.h',
121         'operators.cc',
122         'operators.h',
123         'output_file.cc',
124         'output_file.h',
125         'parse_tree.cc',
126         'parse_tree.h',
127         'parser.cc',
128         'parser.h',
129         'path_output.cc',
130         'path_output.h',
131         'pattern.cc',
132         'pattern.h',
133         'runtime_deps.cc',
134         'runtime_deps.h',
135         'scheduler.cc',
136         'scheduler.h',
137         'scope.cc',
138         'scope.h',
139         'scope_per_file_provider.cc',
140         'scope_per_file_provider.h',
141         'settings.cc',
142         'settings.h',
143         'setup.cc',
144         'setup.h',
145         'source_dir.cc',
146         'source_dir.h',
147         'source_file.cc',
148         'source_file.h',
149         'source_file_type.cc',
150         'source_file_type.h',
151         'standard_out.cc',
152         'standard_out.h',
153         'string_utils.cc',
154         'string_utils.h',
155         'substitution_list.cc',
156         'substitution_list.h',
157         'substitution_pattern.cc',
158         'substitution_pattern.h',
159         'substitution_type.cc',
160         'substitution_type.h',
161         'substitution_writer.cc',
162         'substitution_writer.h',
163         'switches.cc',
164         'switches.h',
165         'target.cc',
166         'target.h',
167         'target_generator.cc',
168         'target_generator.h',
169         'template.cc',
170         'template.h',
171         'token.cc',
172         'token.h',
173         'tokenizer.cc',
174         'tokenizer.h',
175         'tool.cc',
176         'tool.h',
177         'toolchain.cc',
178         'toolchain.h',
179         'trace.cc',
180         'trace.h',
181         'unique_vector.h',
182         'value.cc',
183         'value.h',
184         'value_extractors.cc',
185         'value_extractors.h',
186         'variables.cc',
187         'variables.h',
188         'visibility.cc',
189         'visibility.h',
190       ],
191     },
192     {
193       'target_name': 'gn',
194       'type': 'executable',
195       'sources': [
196         'gn_main.cc',
197       ],
198       'dependencies': [
199         'gn_lib',
200         '../../base/base.gyp:base',
201         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
202       ],
203     },
204     {
205       'target_name': 'gn_unittests',
206       'type': '<(gtest_target_type)',
207       'sources': [
208         'action_target_generator_unittest.cc',
209         'builder_unittest.cc',
210         'c_include_iterator_unittest.cc',
211         'command_format_unittest.cc',
212         'config_unittest.cc',
213         'config_values_extractors_unittest.cc',
214         'escape_unittest.cc',
215         'exec_process_unittest.cc',
216         'filesystem_utils_unittest.cc',
217         'function_foreach_unittest.cc',
218         'function_forward_variables_from_unittest.cc',
219         'function_get_label_info_unittest.cc',
220         'function_get_path_info_unittest.cc',
221         'function_get_target_outputs_unittest.cc',
222         'function_process_file_template_unittest.cc',
223         'function_rebase_path_unittest.cc',
224         'function_write_file_unittest.cc',
225         'functions_target_unittest.cc',
226         'functions_unittest.cc',
227         'header_checker_unittest.cc',
228         'inherited_libraries_unittest.cc',
229         'input_conversion_unittest.cc',
230         'label_pattern_unittest.cc',
231         'label_unittest.cc',
232         'loader_unittest.cc',
233         'ninja_action_target_writer_unittest.cc',
234         'ninja_binary_target_writer_unittest.cc',
235         'ninja_copy_target_writer_unittest.cc',
236         'ninja_group_target_writer_unittest.cc',
237         'ninja_target_writer_unittest.cc',
238         'ninja_toolchain_writer_unittest.cc',
239         'operators_unittest.cc',
240         'parse_tree_unittest.cc',
241         'parser_unittest.cc',
242         'path_output_unittest.cc',
243         'pattern_unittest.cc',
244         'runtime_deps_unittest.cc',
245         'scope_per_file_provider_unittest.cc',
246         'scope_unittest.cc',
247         'source_dir_unittest.cc',
248         'source_file_unittest.cc',
249         'string_utils_unittest.cc',
250         'substitution_pattern_unittest.cc',
251         'substitution_writer_unittest.cc',
252         'target_generator_unittest.cc',
253         'target_unittest.cc',
254         'template_unittest.cc',
255         'test_with_scope.cc',
256         'test_with_scope.h',
257         'tokenizer_unittest.cc',
258         'unique_vector_unittest.cc',
259         'value_unittest.cc',
260         'visibility_unittest.cc',
261       ],
262       'dependencies': [
263         'gn_lib',
264         '../../base/base.gyp:run_all_unittests',
265         '../../base/base.gyp:test_support_base',
266         '../../testing/gtest.gyp:gtest',
267       ],
268     },
269     {
270       'target_name': 'generate_test_gn_data',
271       'type': 'executable',
272       'sources': [
273         'generate_test_gn_data.cc',
274       ],
275       'dependencies': [
276         '../../base/base.gyp:base',
277       ],
278     }
279   ],
280   'conditions': [
281     ['test_isolation_mode != "noop"', {
282       'targets': [
283         {
284           'target_name': 'gn_unittests_run',
285           'type': 'none',
286           'dependencies': [
287             'gn_unittests',
288           ],
289           'includes': [ '../../build/isolate.gypi' ],
290           'sources': [ 'gn_unittests.isolate' ],
291         },
292       ],
293     }],
294   ],