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

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

Issue 1824253002: Remove the mojom-sources flag from dart_pkg.py (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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_list_mojoms.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 0d80351b2e7db01344278803d6b2874e6ad9d72b..dfaa947ea038e4aad14a6fc2c38a42ac03a21410 100644
--- a/mojo/public/dart/rules.gni
+++ b/mojo/public/dart/rules.gni
@@ -172,20 +172,6 @@ template("dart_pkg_helper") {
datadeps += invoker.datadeps
}
- list_mojoms_script =
- rebase_path("mojo/public/tools/dart_list_mojoms.py", ".", mojo_sdk_root)
- mojom_sources = []
- foreach(d, deps) {
- root_prefix = rebase_path(".", "", mojo_sdk_root)
- source_directory = rebase_path(get_label_info(d, "dir"))
- mojom_sources += exec_script(list_mojoms_script,
- [
- source_directory,
- root_prefix,
- ],
- "list lines")
- }
-
sdk_ext_directory = []
if (defined(invoker.sdk_ext_directory)) {
sdk_ext_directory += [ invoker.sdk_ext_directory ]
@@ -238,10 +224,7 @@ template("dart_pkg_helper") {
stamp_file,
]
- inputs = [
- list_mojoms_script,
- script,
- ] + rebase_path(sources)
+ inputs = [ script ] + rebase_path(sources)
args = [
"--package-name",
@@ -258,11 +241,10 @@ template("dart_pkg_helper") {
rebase_path(entries_file),
"--package-sources",
] + rebase_path(sources) + [ "--package-entrypoints" ] +
- rebase_path(entrypoints) + [ "--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-mappings" ] + sdk_ext_mappings + extra_flags
+ rebase_path(entrypoints) + [ "--sdk-ext-directories" ] +
+ rebase_path(sdk_ext_directory) + [ "--sdk-ext-files" ] +
+ rebase_path(sdk_ext_files) + [ "--sdk-ext-mappings" ] +
+ sdk_ext_mappings + extra_flags
}
}
« no previous file with comments | « no previous file | mojo/public/tools/dart_list_mojoms.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698