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

Unified Diff: mojo/public/dart/rules.gni

Issue 1233493008: Generate Sky's _sdkext file using the build system (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | mojo/public/tools/dart_pkg.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/dart/rules.gni
diff --git a/mojo/public/dart/rules.gni b/mojo/public/dart/rules.gni
index ffe1734fa6c0ed735e59616bcad20ecce2990d84..af7bc1c2e850f881751ec8b4cd2672ea217ea2eb 100644
--- a/mojo/public/dart/rules.gni
+++ b/mojo/public/dart/rules.gni
@@ -227,6 +227,9 @@ template("dartzip_packaged_application") {
# sdk_ext_files (optional)
# List of sources to include in sdk-ext.
#
+# sdk_ext_mappings (optional)
+# Mappings for dart libraries that are part of of sdk_ext.
+#
template("dart_pkg") {
if (defined(invoker.pkg_dir)) {
pubspec_yaml_path = rebase_path("pubspec.yaml", "", invoker.pkg_dir)
@@ -284,6 +287,11 @@ template("dart_pkg") {
sdk_ext_files += invoker.sdk_ext_files
}
+ sdk_ext_mappings = []
+ if (defined(invoker.sdk_ext_mappings)) {
+ sdk_ext_mappings += invoker.sdk_ext_mappings
+ }
+
script = rebase_path("mojo/public/tools/dart_pkg.py", ".", mojo_sdk_root)
outputs = [
stamp_file,
@@ -322,6 +330,7 @@ template("dart_pkg") {
] + rebase_path(sources) + [ "--mojom-sources" ] +
rebase_path(mojom_sources, "", mojo_sdk_root) +
[ "--sdk-ext-directories" ] + rebase_path(sdk_ext_directory) +
- [ "--sdk-ext-files" ] + rebase_path(sdk_ext_files)
+ [ "--sdk-ext-files" ] + rebase_path(sdk_ext_files) +
+ [ "--sdk-ext-mappings" ] + sdk_ext_mappings
}
}
« no previous file with comments | « no previous file | mojo/public/tools/dart_pkg.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698