Chromium Code Reviews| Index: third_party/protobuf/proto_library.gni |
| diff --git a/third_party/protobuf/proto_library.gni b/third_party/protobuf/proto_library.gni |
| index 7c74e4ef8e422b7ce8d29a5d668c2d44c46a23d7..a484395f2cab1b9c0eabd94e4f39d25c4c2a3afb 100644 |
| --- a/third_party/protobuf/proto_library.gni |
| +++ b/third_party/protobuf/proto_library.gni |
| @@ -63,6 +63,10 @@ |
| # If adding protobuf library would be required, adds protobuf_full to deps |
| # instead of protobuf_lite. |
| # |
| +# import_dirs (optional) |
| +# A list of extra import directories to be passed to protoc compiler. The |
| +# default case is just proto_in_dir. |
| +# |
| # Parameters for compiling the generated code: |
| # |
| # component_build_force_source_set (Default=false) |
| @@ -277,6 +281,12 @@ template("proto_library") { |
| } |
| } |
| + if (defined(invoker.import_dirs)) { |
| + foreach(path, invoker.import_dirs) { |
| + args += ["--import-dir", rebase_path(path, root_build_dir)] |
|
Dirk Pranke
2017/01/25 03:32:40
This might actually need to be --import-dir=" + re
Ramin Halavati
2017/02/10 06:21:10
Done.
|
| + } |
| + } |
| + |
| # System protoc is not used so it's necessary to build a chromium one. |
| inputs = [ |
| protoc_path, |