| 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) {
|
|
|