OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//testing/test.gni") | 5 import("//testing/test.gni") |
6 import("//testing/libfuzzer/fuzzer_test.gni") | 6 import("//testing/libfuzzer/fuzzer_test.gni") |
7 | 7 |
8 defines = [ "GN_BUILD" ] | 8 defines = [ "GN_BUILD" ] |
9 | 9 |
10 static_library("gn_lib") { | 10 static_library("gn_lib") { |
11 configs += [ "//build/config:precompiled_headers" ] | 11 configs += [ "//build/config:precompiled_headers" ] |
12 | 12 |
13 sources = [ | 13 sources = [ |
14 "action_target_generator.cc", | 14 "action_target_generator.cc", |
15 "action_target_generator.h", | 15 "action_target_generator.h", |
16 "action_values.cc", | 16 "action_values.cc", |
17 "action_values.h", | 17 "action_values.h", |
| 18 "analyzer.cc", |
| 19 "analyzer.h", |
18 "args.cc", | 20 "args.cc", |
19 "args.h", | 21 "args.h", |
20 "binary_target_generator.cc", | 22 "binary_target_generator.cc", |
21 "binary_target_generator.h", | 23 "binary_target_generator.h", |
22 "build_settings.cc", | 24 "build_settings.cc", |
23 "build_settings.h", | 25 "build_settings.h", |
24 "builder.cc", | 26 "builder.cc", |
25 "builder.h", | 27 "builder.h", |
26 "builder_record.cc", | 28 "builder_record.cc", |
27 "builder_record.h", | 29 "builder_record.h", |
28 "bundle_data.cc", | 30 "bundle_data.cc", |
29 "bundle_data.h", | 31 "bundle_data.h", |
30 "bundle_data_target_generator.cc", | 32 "bundle_data_target_generator.cc", |
31 "bundle_data_target_generator.h", | 33 "bundle_data_target_generator.h", |
32 "bundle_file_rule.cc", | 34 "bundle_file_rule.cc", |
33 "bundle_file_rule.h", | 35 "bundle_file_rule.h", |
34 "c_include_iterator.cc", | 36 "c_include_iterator.cc", |
35 "c_include_iterator.h", | 37 "c_include_iterator.h", |
| 38 "command_analyze.cc", |
36 "command_args.cc", | 39 "command_args.cc", |
37 "command_check.cc", | 40 "command_check.cc", |
38 "command_clean.cc", | 41 "command_clean.cc", |
39 "command_desc.cc", | 42 "command_desc.cc", |
40 "command_format.cc", | 43 "command_format.cc", |
41 "command_gen.cc", | 44 "command_gen.cc", |
42 "command_help.cc", | 45 "command_help.cc", |
43 "command_ls.cc", | 46 "command_ls.cc", |
44 "command_path.cc", | 47 "command_path.cc", |
45 "command_refs.cc", | 48 "command_refs.cc", |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 ":last_commit_position", | 270 ":last_commit_position", |
268 "//base", | 271 "//base", |
269 "//build/config/sanitizers:deps", | 272 "//build/config/sanitizers:deps", |
270 "//build/win:default_exe_manifest", | 273 "//build/win:default_exe_manifest", |
271 ] | 274 ] |
272 } | 275 } |
273 | 276 |
274 test("gn_unittests") { | 277 test("gn_unittests") { |
275 sources = [ | 278 sources = [ |
276 "action_target_generator_unittest.cc", | 279 "action_target_generator_unittest.cc", |
| 280 "analyzer_unittest.cc", |
277 "args_unittest.cc", | 281 "args_unittest.cc", |
278 "builder_unittest.cc", | 282 "builder_unittest.cc", |
279 "c_include_iterator_unittest.cc", | 283 "c_include_iterator_unittest.cc", |
280 "command_format_unittest.cc", | 284 "command_format_unittest.cc", |
281 "config_unittest.cc", | 285 "config_unittest.cc", |
282 "config_values_extractors_unittest.cc", | 286 "config_values_extractors_unittest.cc", |
283 "escape_unittest.cc", | 287 "escape_unittest.cc", |
284 "exec_process_unittest.cc", | 288 "exec_process_unittest.cc", |
285 "filesystem_utils_unittest.cc", | 289 "filesystem_utils_unittest.cc", |
286 "function_foreach_unittest.cc", | 290 "function_foreach_unittest.cc", |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 } | 353 } |
350 | 354 |
351 fuzzer_test("gn_parser_fuzzer") { | 355 fuzzer_test("gn_parser_fuzzer") { |
352 sources = [ | 356 sources = [ |
353 "parser_fuzzer.cc", | 357 "parser_fuzzer.cc", |
354 ] | 358 ] |
355 deps = [ | 359 deps = [ |
356 ":gn_lib", | 360 ":gn_lib", |
357 ] | 361 ] |
358 } | 362 } |
OLD | NEW |