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

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

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

Powered by Google App Engine
This is Rietveld 408576698