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

Unified Diff: sdk/lib/rules.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 | « build/toolchain/gcc_toolchain.gni ('k') | utils/create_timestamp.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/rules.gni
diff --git a/sdk/lib/rules.gni b/sdk/lib/rules.gni
index 27779ea97ff6fc6ec7eaec9dc720c837e462f959..fe51bbbbbbde07168e66cd45dfd3f195a36a2d5b 100644
--- a/sdk/lib/rules.gni
+++ b/sdk/lib/rules.gni
@@ -31,24 +31,29 @@ template("dart_sdk_lib_copy") {
} else {
destination = "$root_gen_dir/dart_sdk"
}
- dart_sdk_sdk_lib_path =
- rebase_path("sdk/lib", "", dart_root)
+ dart_sdk_sdk_lib_path = rebase_path("sdk/lib", "", dart_root)
dart_sdk_tools_gypi_to_gn_path =
rebase_path("tools/gypi_to_gn.py", "", dart_root)
+
# The name of the SDK library being copied.
lib_name = invoker.sdk_lib_name
+
# The path to the libraries source directory.
lib_path = rebase_path(lib_name, "", dart_sdk_sdk_lib_path)
+
# The path to the sources gypi.
lib_sources_gypi = lib_name + "_sources.gypi"
+
# Get the contents of the gypi file.
sdk_lib_sources_gypi =
exec_script(dart_sdk_tools_gypi_to_gn_path,
- [rebase_path(lib_sources_gypi, "", lib_path)],
+ [ rebase_path(lib_sources_gypi, "", lib_path) ],
"scope",
- [rebase_path(lib_sources_gypi, "", lib_path)])
+ [ rebase_path(lib_sources_gypi, "", lib_path) ])
copy(target_name) {
sources = rebase_path(sdk_lib_sources_gypi.sources, "", lib_path)
- outputs = [ "$destination/$lib_name/{{source_file_part}}" ]
+ outputs = [
+ "$destination/$lib_name/{{source_file_part}}",
+ ]
}
}
« no previous file with comments | « build/toolchain/gcc_toolchain.gni ('k') | utils/create_timestamp.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698