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

Side by Side Diff: utils/compiler/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/analysis_server/BUILD.gn ('k') | utils/create_timestamp.gni » ('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("../create_timestamp.gni")
6 import("../invoke_dart.gni")
7
8 create_timestamp_file("dart2js_files_stamp") {
9 pattern = "\\.dart\$"
10 path = rebase_path("../../pkg/compiler/lib")
11 output = "$root_gen_dir/dart2js_files.stamp"
12 }
13
14 invoke_dart("dart2js") {
15 deps = [
16 ":dart2js_files_stamp",
17 ]
18
19 dart_files = exec_script("../../tools/list_files.py",
20 ["\\.dart\$",
21 rebase_path("../../runtime/lib"),
22 rebase_path("../../sdk/lib/_internal/dartdoc")],
23 "list lines")
24
25 inputs = dart_files + [
26 "../../tools/list_files.py",
27 "../../sdk/lib/_internal/sdk_library_metadata/lib/libraries.dart",
28 "create_snapshot.dart",
29 "$root_gen_dir/dart2js_files.stamp",
30 "../../tools/VERSION",
31 ]
32
33 utils_output = "$root_gen_dir/utils_wrapper.dart.snapshot"
34 dart2js_output = "$root_gen_dir/dart2js.dart.snapshot"
35 outputs = [
36 utils_output,
37 dart2js_output,
38 ]
39
40 dot_packages = rebase_path("../../.packages")
41 create_snapshot = rebase_path("create_snapshot.dart")
42 output_dir = rebase_path(root_gen_dir)
43
44 args = [
45 "--packages=$dot_packages",
46 create_snapshot,
47 "--output_dir=$output_dir",
48 "--dart2js_main=pkg/compiler/lib/src/dart2js.dart",
49 ]
50 }
OLDNEW
« no previous file with comments | « utils/analysis_server/BUILD.gn ('k') | utils/create_timestamp.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698