| OLD | NEW |
| 1 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import("../invoke_dart.gni") | 5 import("../invoke_dart.gni") |
| 6 | 6 |
| 7 group("dartanalyzer") { | 7 group("dartanalyzer") { |
| 8 deps = [ | 8 deps = [ |
| 9 ":generate_dartanalyzer_snapshot", | 9 ":generate_dartanalyzer_snapshot", |
| 10 ":generate_summary_spec", | 10 ":generate_summary_spec", |
| 11 ":generate_summary_strong", | 11 ":generate_summary_strong", |
| 12 ] | 12 ] |
| 13 } | 13 } |
| 14 | 14 |
| 15 analyzer_files = exec_script("../../tools/list_files.py", | 15 analyzer_files = exec_script("../../tools/list_dart_files.py", |
| 16 ["\\.dart\$", | 16 [rebase_path("../../pkg/analyzer")], |
| 17 rebase_path("../../pkg/analyzer")], | |
| 18 "list lines") | 17 "list lines") |
| 19 | 18 |
| 20 application_snapshot("generate_dartanalyzer_snapshot") { | 19 application_snapshot("generate_dartanalyzer_snapshot") { |
| 21 main_dart = "../../pkg/analyzer_cli/bin/analyzer.dart" | 20 main_dart = "../../pkg/analyzer_cli/bin/analyzer.dart" |
| 22 name = "dartanalyzer" | 21 name = "dartanalyzer" |
| 23 cli_files = exec_script("../../tools/list_files.py", | 22 cli_files = exec_script("../../tools/list_dart_files.py", |
| 24 ["\\.dart\$", | 23 [rebase_path("../../pkg/analyzer_cli")], |
| 25 rebase_path("../../pkg/analyzer_cli")], | |
| 26 "list lines") | 24 "list lines") |
| 27 inputs = cli_files + analyzer_files | 25 inputs = cli_files + analyzer_files |
| 28 } | 26 } |
| 29 | 27 |
| 30 sdk_lib_files = exec_script("../../tools/list_files.py", | 28 sdk_lib_files = exec_script("../../tools/list_dart_files.py", |
| 31 ["\\.dart\$", | 29 [rebase_path("../../sdk/lib")], |
| 32 rebase_path("../../sdk/lib")], | |
| 33 "list lines") | 30 "list lines") |
| 34 | 31 |
| 35 template("generate_summary") { | 32 template("generate_summary") { |
| 36 assert(defined(invoker.type), "Must specify the summary type") | 33 assert(defined(invoker.type), "Must specify the summary type") |
| 37 type = invoker.type | 34 type = invoker.type |
| 38 assert((type == "spec") || (type == "strong")) | 35 assert((type == "spec") || (type == "strong")) |
| 39 invoke_dart(target_name) { | 36 invoke_dart(target_name) { |
| 40 inputs = sdk_lib_files + analyzer_files | 37 inputs = sdk_lib_files + analyzer_files |
| 41 | 38 |
| 42 output = "$root_gen_dir/$type.sum" | 39 output = "$root_gen_dir/$type.sum" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 59 } | 56 } |
| 60 } | 57 } |
| 61 | 58 |
| 62 generate_summary("generate_summary_spec") { | 59 generate_summary("generate_summary_spec") { |
| 63 type = "spec" | 60 type = "spec" |
| 64 } | 61 } |
| 65 | 62 |
| 66 generate_summary("generate_summary_strong") { | 63 generate_summary("generate_summary_strong") { |
| 67 type = "strong" | 64 type = "strong" |
| 68 } | 65 } |
| OLD | NEW |