From ea7d1ef9a810ed6d493970622455e6ea8fc31ecf Mon Sep 17 00:00:00 2001 From: Jeff Vander Stoep Date: Thu, 15 Oct 2020 21:33:50 +0200 Subject: 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 --- src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3