drive: Trigger "fast fetch" if remote update came during full loading.
[chromium-blink-merge.git] / tools / gn / gn.gyp
blobc94c8e27bef5049d813afa91209010f5281d4c27
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_desc.cc',
32         'command_gen.cc',
33         'command_help.cc',
34         'command_refs.cc',
35         'commands.cc',
36         'commands.h',
37         'config.cc',
38         'config.h',
39         'config_values.cc',
40         'config_values.h',
41         'config_values_extractors.cc',
42         'config_values_extractors.h',
43         'config_values_generator.cc',
44         'config_values_generator.h',
45         'copy_target_generator.cc',
46         'copy_target_generator.h',
47         'err.cc',
48         'err.h',
49         'escape.cc',
50         'escape.h',
51         'file_template.cc',
52         'file_template.h',
53         'filesystem_utils.cc',
54         'filesystem_utils.h',
55         'functions_target.cc',
56         'functions.cc',
57         'functions.h',
58         'function_exec_script.cc',
59         'function_foreach.cc',
60         'function_get_label_info.cc',
61         'function_get_path_info.cc',
62         'function_get_target_outputs.cc',
63         'function_process_file_template.cc',
64         'function_read_file.cc',
65         'function_rebase_path.cc',
66         'function_set_default_toolchain.cc',
67         'function_set_defaults.cc',
68         'function_template.cc',
69         'function_toolchain.cc',
70         'function_write_file.cc',
71         'group_target_generator.cc',
72         'group_target_generator.h',
73         'header_checker.cc',
74         'header_checker.h',
75         'import_manager.cc',
76         'import_manager.h',
77         'input_conversion.cc',
78         'input_conversion.h',
79         'input_file.cc',
80         'input_file.h',
81         'input_file_manager.cc',
82         'input_file_manager.h',
83         'item.cc',
84         'item.h',
85         'label.cc',
86         'label.h',
87         'label_ptr.h',
88         'loader.cc',
89         'loader.h',
90         'location.cc',
91         'location.h',
92         'ninja_action_target_writer.cc',
93         'ninja_action_target_writer.h',
94         'ninja_binary_target_writer.cc',
95         'ninja_binary_target_writer.h',
96         'ninja_build_writer.cc',
97         'ninja_build_writer.h',
98         'ninja_copy_target_writer.cc',
99         'ninja_copy_target_writer.h',
100         'ninja_group_target_writer.cc',
101         'ninja_group_target_writer.h',
102         'ninja_helper.cc',
103         'ninja_helper.h',
104         'ninja_target_writer.cc',
105         'ninja_target_writer.h',
106         'ninja_toolchain_writer.cc',
107         'ninja_toolchain_writer.h',
108         'ninja_writer.cc',
109         'ninja_writer.h',
110         'operators.cc',
111         'operators.h',
112         'output_file.h',
113         'parse_tree.cc',
114         'parse_tree.h',
115         'parser.cc',
116         'parser.h',
117         'path_output.cc',
118         'path_output.h',
119         'pattern.cc',
120         'pattern.h',
121         'scheduler.cc',
122         'scheduler.h',
123         'scope.cc',
124         'scope.h',
125         'scope_per_file_provider.cc',
126         'scope_per_file_provider.h',
127         'settings.cc',
128         'settings.h',
129         'setup.cc',
130         'setup.h',
131         'source_dir.cc',
132         'source_dir.h',
133         'source_file.cc',
134         'source_file.h',
135         'standard_out.cc',
136         'standard_out.h',
137         'string_utils.cc',
138         'string_utils.h',
139         'target.cc',
140         'target.h',
141         'target_generator.cc',
142         'target_generator.h',
143         'template.cc',
144         'template.h',
145         'token.cc',
146         'token.h',
147         'tokenizer.cc',
148         'tokenizer.h',
149         'toolchain.cc',
150         'toolchain.h',
151         'trace.cc',
152         'trace.h',
153         'value.cc',
154         'value.h',
155         'value_extractors.cc',
156         'value_extractors.h',
157         'variables.cc',
158         'variables.h',
159         'visibility.cc',
160         'visibility.h',
161       ],
162     },
163     {
164       'target_name': 'gn',
165       'type': 'executable',
166       'sources': [
167         'gn_main.cc',
168       ],
169       'dependencies': [
170         'gn_lib',
171         '../../base/base.gyp:base',
172         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
173       ],
174     },
175     {
176       'target_name': 'gn_unittests',
177       'type': '<(gtest_target_type)',
178       'sources': [
179         'builder_unittest.cc',
180         'c_include_iterator_unittest.cc',
181         'config_values_extractors_unittest.cc',
182         'escape_unittest.cc',
183         'filesystem_utils_unittest.cc',
184         'file_template_unittest.cc',
185         'function_foreach_unittest.cc',
186         'function_get_label_info_unittest.cc',
187         'function_get_path_info_unittest.cc',
188         'function_get_target_outputs_unittest.cc',
189         'function_rebase_path_unittest.cc',
190         'function_write_file_unittest.cc',
191         'functions_target_unittest.cc',
192         'functions_unittest.cc',
193         'header_checker_unittest.cc',
194         'input_conversion_unittest.cc',
195         'label_unittest.cc',
196         'loader_unittest.cc',
197         'ninja_action_target_writer_unittest.cc',
198         'ninja_binary_target_writer_unittest.cc',
199         'ninja_copy_target_writer_unittest.cc',
200         'ninja_helper_unittest.cc',
201         'ninja_target_writer_unittest.cc',
202         'operators_unittest.cc',
203         'parse_tree_unittest.cc',
204         'parser_unittest.cc',
205         'path_output_unittest.cc',
206         'pattern_unittest.cc',
207         'run_all_unittests.cc',
208         'scope_per_file_provider_unittest.cc',
209         'scope_unittest.cc',
210         'source_dir_unittest.cc',
211         'string_utils_unittest.cc',
212         'target_generator_unittest.cc',
213         'target_unittest.cc',
214         'test_with_scope.cc',
215         'test_with_scope.h',
216         'tokenizer_unittest.cc',
217         'value_unittest.cc',
218         'visibility_unittest.cc',
219       ],
220       'dependencies': [
221         'gn_lib',
222         '../../base/base.gyp:test_support_base',
223         '../../testing/gtest.gyp:gtest',
224       ],
225     },
226     {
227       'target_name': 'generate_test_gn_data',
228       'type': 'executable',
229       'sources': [
230         'generate_test_gn_data.cc',
231       ],
232       'dependencies': [
233         '../../base/base.gyp:base',
234       ],
235     }
236   ],