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

Unified Diff: mojo/public/tools/bindings/mojom.gni

Issue 839903002: Make more services' public interfaces flexible wrt location in repo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Change to use import_dirs Created 5 years, 11 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/services/gpu/public/interfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/mojom.gni
diff --git a/mojo/public/tools/bindings/mojom.gni b/mojo/public/tools/bindings/mojom.gni
index 38eb391157ec8099e3038e0f2c592172a0486a4f..40d0e8a144f1e9742a4791d79dcee1eb4b436eb4 100644
--- a/mojo/public/tools/bindings/mojom.gni
+++ b/mojo/public/tools/bindings/mojom.gni
@@ -35,6 +35,9 @@ import("../../mojo_sdk.gni")
# Mojo public SDK. These deps will be added as ordinary public deps
# rebased to the current directory.
#
+# import_dirs (optional)
+# List of import directories that will get added when processing sources.
+#
# testonly (optional)
#
# visibility (optional)
@@ -155,6 +158,15 @@ template("mojom") {
"-o",
rebase_path(root_gen_dir),
]
+
+ if (defined(invoker.import_dirs)) {
+ foreach(import_dir, invoker.import_dirs) {
+ args += [
+ "-I",
+ rebase_path(import_dir, root_build_dir),
+ ]
+ }
+ }
}
source_set(target_name) {
« no previous file with comments | « no previous file | mojo/services/gpu/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698