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",
37 "config_values_extractors.cc",
38 "config_values_extractors.h",
39 "config_values_generator.cc",
40 "config_values_generator.h",
41 "copy_target_generator.cc",
42 "copy_target_generator.h",
49 "filesystem_utils.cc",
53 "functions_target.cc",
54 "function_exec_script.cc",
55 "function_foreach.cc",
56 "function_get_label_info.cc",
57 "function_get_path_info.cc",
58 "function_get_target_outputs.cc",
59 "function_process_file_template.cc",
60 "function_read_file.cc",
61 "function_rebase_path.cc",
62 "function_set_default_toolchain.cc",
63 "function_set_defaults.cc",
64 "function_template.cc",
65 "function_toolchain.cc",
66 "function_write_file.cc",
67 "group_target_generator.cc",
68 "group_target_generator.h",
73 "input_conversion.cc",
77 "input_file_manager.cc",
78 "input_file_manager.h",
88 "ninja_action_target_writer.cc",
89 "ninja_action_target_writer.h",
90 "ninja_binary_target_writer.cc",
91 "ninja_binary_target_writer.h",
92 "ninja_build_writer.cc",
93 "ninja_build_writer.h",
94 "ninja_copy_target_writer.cc",
95 "ninja_copy_target_writer.h",
96 "ninja_group_target_writer.cc",
97 "ninja_group_target_writer.h",
100 "ninja_target_writer.cc",
101 "ninja_target_writer.h",
102 "ninja_toolchain_writer.cc",
103 "ninja_toolchain_writer.h",
121 "scope_per_file_provider.cc",
122 "scope_per_file_provider.h",
137 "target_generator.cc",
138 "target_generator.h",
151 "value_extractors.cc",
152 "value_extractors.h",
161 "//base/third_party/dynamic_annotations",
172 "//build/util:last_change",
176 test("gn_unittests") {
178 "builder_unittest.cc",
179 "c_include_iterator_unittest.cc",
180 "config_values_extractors_unittest.cc",
181 "escape_unittest.cc",
182 "filesystem_utils_unittest.cc",
183 "file_template_unittest.cc",
184 "function_foreach_unittest.cc",
185 "function_get_label_info_unittest.cc",
186 "function_get_path_info_unittest.cc",
187 "function_get_target_outputs_unittest.cc",
188 "function_rebase_path_unittest.cc",
189 "function_write_file_unittest.cc",
190 "functions_unittest.cc",
191 "header_checker_unittest.cc",
192 "input_conversion_unittest.cc",
194 "loader_unittest.cc",
195 "ninja_action_target_writer_unittest.cc",
196 "ninja_binary_target_writer_unittest.cc",
197 "ninja_copy_target_writer_unittest.cc",
198 "ninja_helper_unittest.cc",
199 "ninja_target_writer_unittest.cc",
200 "operators_unittest.cc",
201 "parse_tree_unittest.cc",
202 "parser_unittest.cc",
203 "path_output_unittest.cc",
204 "pattern_unittest.cc",
205 "run_all_unittests.cc",
206 "scope_per_file_provider_unittest.cc",
208 "source_dir_unittest.cc",
209 "string_utils_unittest.cc",
210 "target_generator_unittest.cc",
211 "target_unittest.cc",
212 "template_unittest.cc",
213 "test_with_scope.cc",
215 "tokenizer_unittest.cc",
217 "visibility_unittest.cc",
221 "//base/test:test_support",
226 executable("generate_test_gn_data") {
227 sources = [ "generate_test_gn_data.cc" ]