summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeff Vander Stoep <jeffv@google.com>2020-10-15 21:33:50 +0200
committerJeff Vander Stoep <jeffv@google.com>2020-10-15 21:55:01 +0200
commitea7d1ef9a810ed6d493970622455e6ea8fc31ecf (patch)
treefbdca430402ae46971a9578d66b72c59cd29a1fd /src
parent3adfea8b276f06db63ae4182233560537aca2ffb (diff)
downloadgrpcio-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.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index dc0699c0..bd4e4fa0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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;