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

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

Issue 2379803002: Linux create_sdk GN build for host (Closed)
Patch Set: Move create_timestamp.gni 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
« no previous file with comments | « utils/create_timestamp.gni ('k') | utils/dartdevc/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 main_dart = "../../pkg/analyzer_cli/bin/analyzer.dart"
22 name = "dartanalyzer"
23 cli_files = exec_script("../../tools/list_files.py",
24 ["\\.dart\$",
25 rebase_path("../../pkg/analyzer_cli")],
26 "list lines")
27 inputs = cli_files + analyzer_files
28 }
29
30 sdk_lib_files = exec_script("../../tools/list_files.py",
31 ["\\.dart\$",
32 rebase_path("../../sdk/lib")],
33 "list lines")
34
35 template("generate_summary") {
36 assert(defined(invoker.type), "Must specify the summary type")
37 type = invoker.type
38 assert((type == "spec") || (type == "strong"))
39 invoke_dart(target_name) {
40 inputs = sdk_lib_files + analyzer_files
41
42 output = "$root_gen_dir/$type.sum"
43 outputs = [
44 output
45 ]
46
47 dot_packages = rebase_path("../../.packages")
48 build_sdk_summaries =
49 rebase_path("../../pkg/analyzer/tool/summary/build_sdk_summaries.dart")
50 abs_output = rebase_path(output)
51
52 args = [
53 "--packages=$dot_packages",
54 build_sdk_summaries,
55 "build-$type",
56 abs_output,
57 rebase_path("../../sdk"),
58 ]
59 }
60 }
61
62 generate_summary("generate_summary_spec") {
63 type = "spec"
64 }
65
66 generate_summary("generate_summary_strong") {
67 type = "strong"
68 }
OLDNEW
« no previous file with comments | « utils/create_timestamp.gni ('k') | utils/dartdevc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698