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

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

Issue 2379803002: Linux create_sdk GN build for host (Closed)
Patch Set: Remove debug print 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
(Empty)
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
3 # BSD-style license that can be found in the LICENSE file.
4
5 import("../invoke_dart.gni")
6
7 group("dartanalyzer") {
8 deps = [
9 ":generate_dartanalyzer_snapshot",
10 ":generate_summary_spec",
11 ":generate_summary_strong",
12 ]
13 }
14
15 analyzer_files = exec_script("../../tools/list_files.py",
16 ["\\.dart\$",
17 rebase_path("../../pkg/analyzer")],
18 "list lines")
19
20 application_snapshot("generate_dartanalyzer_snapshot") {
21 dart_root = "../.."
22 main_dart = "../../pkg/analyzer_cli/bin/analyzer.dart"
23 name = "dartanalyzer"
24 cli_files = exec_script("../../tools/list_files.py",
25 ["\\.dart\$",
26 rebase_path("../../pkg/analyzer_cli")],
27 "list lines")
28 inputs = cli_files + analyzer_files
29 }
30
31 sdk_lib_files = exec_script("../../tools/list_files.py",
32 ["\\.dart\$",
33 rebase_path("../../sdk/lib")],
34 "list lines")
35
36 template("generate_summary") {
37 assert(defined(invoker.type), "Must specify the summary type")
38 type = invoker.type
39 assert((type == "spec") || (type == "strong"))
40 invoke_dart(target_name) {
41 dart_root = "../.."
42 inputs = sdk_lib_files + analyzer_files
43
44 output = "$root_gen_dir/$type.sum"
45 outputs = [
46 output
47 ]
48
49 dot_packages = rebase_path("../../.packages")
50 build_sdk_summaries =
51 rebase_path("../../pkg/analyzer/tool/summary/build_sdk_summaries.dart")
52 abs_output = rebase_path(output)
53
54 args = [
55 "--packages=$dot_packages",
56 build_sdk_summaries,
57 "build-$type",
58 abs_output,
59 rebase_path("../../sdk"),
60 ]
61 }
62 }
63
64 generate_summary("generate_summary_spec") {
65 type = "spec"
66 }
67
68 generate_summary("generate_summary_strong") {
69 type = "strong"
70 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698