1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 defines = [ "GN_BUILD" ]
7 static_library("gn_lib") {
9 "action_target_generator.cc",
10 "action_target_generator.h",
15 "binary_target_generator.cc",
16 "binary_target_generator.h",
23 "c_include_iterator.cc",
24 "c_include_iterator.h",
39 "config_values_extractors.cc",
40 "config_values_extractors.h",
41 "config_values_generator.cc",
42 "config_values_generator.h",
43 "copy_target_generator.cc",
44 "copy_target_generator.h",
53 "filesystem_utils.cc",
57 "functions_target.cc",
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",
77 "input_conversion.cc",
81 "input_file_manager.cc",
82 "input_file_manager.h",
94 "ninja_action_target_writer.cc",
95 "ninja_action_target_writer.h",
96 "ninja_binary_target_writer.cc",
97 "ninja_binary_target_writer.h",
98 "ninja_build_writer.cc",
99 "ninja_build_writer.h",
100 "ninja_copy_target_writer.cc",
101 "ninja_copy_target_writer.h",
102 "ninja_group_target_writer.cc",
103 "ninja_group_target_writer.h",
106 "ninja_target_writer.cc",
107 "ninja_target_writer.h",
108 "ninja_toolchain_writer.cc",
109 "ninja_toolchain_writer.h",
128 "scope_per_file_provider.cc",
129 "scope_per_file_provider.h",
138 "source_file_type.cc",
139 "source_file_type.h",
144 "substitution_list.cc",
145 "substitution_list.h",
146 "substitution_pattern.cc",
147 "substitution_pattern.h",
148 "substitution_type.cc",
149 "substitution_type.h",
150 "substitution_writer.cc",
151 "substitution_writer.h",
154 "target_generator.cc",
155 "target_generator.h",
171 "value_extractors.cc",
172 "value_extractors.h",
181 "//base/third_party/dynamic_annotations",
185 action("last_commit_position") {
186 script = "last_commit_position.py"
188 # This dependency forces a re-run when the code is synced.
189 inputs = [ "//build/util/LASTCHANGE" ]
191 outfile = "$target_gen_dir/last_commit_position.h"
192 outputs = [ outfile ]
195 rebase_path("//", root_build_dir),
196 rebase_path(outfile, root_build_dir),
197 "TOOLS_GN_LAST_COMMIT_POSITION_H_",
208 ":last_commit_position",
212 test("gn_unittests") {
214 "action_target_generator_unittest.cc",
215 "builder_unittest.cc",
216 "c_include_iterator_unittest.cc",
217 "command_format_unittest.cc",
218 "config_values_extractors_unittest.cc",
219 "escape_unittest.cc",
220 "exec_process_unittest.cc",
221 "filesystem_utils_unittest.cc",
222 "function_foreach_unittest.cc",
223 "function_get_label_info_unittest.cc",
224 "function_get_path_info_unittest.cc",
225 "function_get_target_outputs_unittest.cc",
226 "function_process_file_template_unittest.cc",
227 "function_rebase_path_unittest.cc",
228 "function_write_file_unittest.cc",
229 "functions_target_unittest.cc",
230 "functions_unittest.cc",
231 "header_checker_unittest.cc",
232 "input_conversion_unittest.cc",
233 "label_pattern_unittest.cc",
235 "loader_unittest.cc",
236 "ninja_action_target_writer_unittest.cc",
237 "ninja_binary_target_writer_unittest.cc",
238 "ninja_copy_target_writer_unittest.cc",
239 "ninja_group_target_writer_unittest.cc",
240 "ninja_target_writer_unittest.cc",
241 "ninja_toolchain_writer_unittest.cc",
242 "operators_unittest.cc",
243 "parse_tree_unittest.cc",
244 "parser_unittest.cc",
245 "path_output_unittest.cc",
246 "pattern_unittest.cc",
247 "run_all_unittests.cc",
248 "scope_per_file_provider_unittest.cc",
250 "source_dir_unittest.cc",
251 "string_utils_unittest.cc",
252 "substitution_pattern_unittest.cc",
253 "substitution_writer_unittest.cc",
254 "target_generator_unittest.cc",
255 "target_unittest.cc",
256 "template_unittest.cc",
257 "test_with_scope.cc",
259 "tokenizer_unittest.cc",
260 "unique_vector_unittest.cc",
262 "visibility_unittest.cc",
266 "//base/test:test_support",
271 executable("generate_test_gn_data") {
272 sources = [ "generate_test_gn_data.cc" ]