Jeff Vander Stoep | 3adfea8 | 2020-10-14 15:35:59 +0200 | [diff] [blame] | 1 | This package is imported to Android and uses Android's external/grpc-grpc |
| 2 | header files and compilation flags to generate bindings. |
| 3 | |
Jeff Vander Stoep | ea7d1ef | 2020-10-15 21:33:50 +0200 | [diff] [blame] | 4 | The Android.bp file is manually written due to: |
| 5 | 1. Binding to Android's existing copy of grpc instead of |
| 6 | the copy that is bundled within the crate. |
| 7 | 2. The crates customized grpc_wrap.cc file that provides |
| 8 | additional translation logic. |
| 9 | 3. A lot of bindgen customizations in build.rs. |
| 10 | |
| 11 | The following line is added to android/bindgen_wrapper.h. It's unclear why this |
| 12 | is necessary, but building the grpcio crate fails without it. |
| 13 | #include <grpc/support/cpu.h> |
| 14 | |
Jeff Vander Stoep | 3adfea8 | 2020-10-14 15:35:59 +0200 | [diff] [blame] | 15 | If features are changed for the grpcio-sys crate, please ensure those |
Jeff Vander Stoep | ea7d1ef | 2020-10-15 21:33:50 +0200 | [diff] [blame] | 16 | features are changed in the grpcio_bindgen module. |