diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2020-10-15 21:33:50 +0200 |
---|---|---|
committer | Jeff Vander Stoep <jeffv@google.com> | 2020-10-15 21:55:01 +0200 |
commit | ea7d1ef9a810ed6d493970622455e6ea8fc31ecf (patch) | |
tree | fbdca430402ae46971a9578d66b72c59cd29a1fd /src | |
parent | 3adfea8b276f06db63ae4182233560537aca2ffb (diff) | |
download | grpcio-sys-ea7d1ef9a810ed6d493970622455e6ea8fc31ecf.tar.gz |
Add Android.bp
The Android.bp file is manually written due to:
1. Binding to Android's existing copy of grpc instead of
the copy that is bundled within the crate.
2. The crates customized grpc_wrap.cc file that provides
additional translation logic.
3. A lot of bindgen customizations in build.rs.
Test: build
Change-Id: I80ae57aa66702d55f2a5985d52d5705bc21c6de1
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -5,7 +5,10 @@ #![allow(non_upper_case_globals)] #[allow(clippy::all)] mod bindings { - include!(env!("BINDING_PATH")); + //include!(env!("BINDING_PATH")); + // ANDROID's build system doesn't support environment variables + // so we hardcode the output location of the bindings here. + include!(concat!(env!("OUT_DIR"), "/grpc-bindings.rs")); } mod grpc_wrap; |