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

Unified Diff: utils/invoke_dart.gni

Issue 2454703004: GN: Format more gn files (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/dartdevc/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/invoke_dart.gni
diff --git a/utils/invoke_dart.gni b/utils/invoke_dart.gni
index e300cdb3c5dc6479d788106b60d18d14d9b7b163..ad3a7f83b0d9df33e9d44b03185ca3bf7033ee73 100644
--- a/utils/invoke_dart.gni
+++ b/utils/invoke_dart.gni
@@ -23,28 +23,24 @@ template("invoke_dart") {
action(target_name) {
relative_dart_root = rebase_path(_dart_root, ".")
- deps = extra_deps + [
- "$relative_dart_root/runtime/bin:dart($host_toolchain)",
- ]
+ deps =
+ extra_deps + [ "$relative_dart_root/runtime/bin:dart($host_toolchain)" ]
- dart_out_dir = get_label_info(
- "$relative_dart_root/runtime/bin:dart($host_toolchain)", "root_out_dir")
+ dart_out_dir =
+ get_label_info("$relative_dart_root/runtime/bin:dart($host_toolchain)",
+ "root_out_dir")
if (is_win) {
dart = rebase_path("$dart_out_dir/dart.exe")
} else {
dart = rebase_path("$dart_out_dir/dart")
}
- inputs = [
- dart,
- ] + extra_inputs
+ inputs = [ dart ] + extra_inputs
outputs = invoker.outputs
script = "$_dart_root/tools/dart_for_gn.py"
- args = [
- dart,
- ] + extra_args
+ args = [ dart ] + extra_args
}
}
@@ -66,14 +62,12 @@ template("application_snapshot") {
extra_inputs += invoker.inputs
}
invoke_dart(target_name) {
- deps = extra_deps + [
- "$_dart_root/pkg:pkg_files_stamp"
- ]
+ deps = extra_deps + [ "$_dart_root/pkg:pkg_files_stamp" ]
inputs = extra_inputs + [
- "$_dart_root/sdk/lib/_internal/sdk_library_metadata/lib/libraries.dart",
- "$root_gen_dir/pkg_files.stamp",
- ]
+ "$_dart_root/sdk/lib/_internal/sdk_library_metadata/lib/libraries.dart",
+ "$root_gen_dir/pkg_files.stamp",
+ ]
output = "$root_gen_dir/$name.dart.snapshot"
outputs = [
@@ -85,10 +79,10 @@ template("application_snapshot") {
main_file = rebase_path(main_dart)
args = [
- "--packages=$dot_packages",
- "--snapshot=$abs_output",
- "--snapshot-kind=app-jit",
- main_file,
- ] + training_args
+ "--packages=$dot_packages",
+ "--snapshot=$abs_output",
+ "--snapshot-kind=app-jit",
+ main_file,
+ ] + training_args
}
}
« no previous file with comments | « utils/dartdevc/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698