Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: utils/dartanalyzer/BUILD.gn

Issue 2442513003: GN: Build the SDK with app snapshots instead of script snapshots. (Closed)
Patch Set: . Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_dart_files.py", 15 analyzer_files = exec_script("../../tools/list_dart_files.py",
16 [rebase_path("../../pkg/analyzer")], 16 [rebase_path("../../pkg/analyzer")],
17 "list lines") 17 "list lines")
18 18
19 application_snapshot("generate_dartanalyzer_snapshot") { 19 application_snapshot("generate_dartanalyzer_snapshot") {
20 main_dart = "../../pkg/analyzer_cli/bin/analyzer.dart" 20 main_dart = "../../pkg/analyzer_cli/bin/analyzer.dart"
21 training_args = [
22 "--dart-sdk=" + rebase_path("../../sdk"),
23 rebase_path("../../tests/language/first_test.dart")
24 ]
21 name = "dartanalyzer" 25 name = "dartanalyzer"
22 cli_files = exec_script("../../tools/list_dart_files.py", 26 cli_files = exec_script("../../tools/list_dart_files.py",
23 [rebase_path("../../pkg/analyzer_cli")], 27 [rebase_path("../../pkg/analyzer_cli")],
24 "list lines") 28 "list lines")
25 inputs = cli_files + analyzer_files 29 inputs = cli_files + analyzer_files
26 } 30 }
27 31
28 sdk_lib_files = exec_script("../../tools/list_dart_files.py", 32 sdk_lib_files = exec_script("../../tools/list_dart_files.py",
29 [rebase_path("../../sdk/lib")], 33 [rebase_path("../../sdk/lib")],
30 "list lines") 34 "list lines")
(...skipping 25 matching lines...) Expand all
56 } 60 }
57 } 61 }
58 62
59 generate_summary("generate_summary_spec") { 63 generate_summary("generate_summary_spec") {
60 type = "spec" 64 type = "spec"
61 } 65 }
62 66
63 generate_summary("generate_summary_strong") { 67 generate_summary("generate_summary_strong") {
64 type = "strong" 68 type = "strong"
65 } 69 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698