blob: 009e0e4080324b6636175ce594c1c6450466d7a9 [file] [log] [blame]
// This file is generated by cargo2android.py --run --device --features=default,secure --dependencies --patch=patches/Android.bp.patch --ignore-cargo-errors.
// Do not modify this file as changes will be overridden on upgrade.
package {
default_applicable_licenses: ["external_rust_crates_grpcio-sys_license"],
}
// Added automatically by a large-scale-change that took the approach of
// 'apply every license found to every target'. While this makes sure we respect
// every license restriction, it may not be entirely correct.
//
// e.g. GPL in an MIT project might only apply to the contrib/ directory.
//
// Please consider splitting the single license below into multiple licenses,
// taking care not to lose any license_kind information, and overriding the
// default license using the 'licenses: [...]' property on targets as needed.
//
// For unused files, consider creating a 'fileGroup' with "//visibility:private"
// to attach the license to, and including a comment whether the files may be
// used in the current project.
// See: http://go/android-license-faq
license {
name: "external_rust_crates_grpcio-sys_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
"SPDX-license-identifier-BSD",
"SPDX-license-identifier-ISC",
"SPDX-license-identifier-MIT",
"legacy_unencumbered",
],
license_text: [
"LICENSE",
],
}
rust_library {
name: "libgrpcio_sys",
host_supported: true,
crate_name: "grpcio_sys",
srcs: [
"src/lib.rs",
":libgrpc_bindgen",
],
edition: "2018",
features: [
"bindgen",
"default",
"secure",
"use-bindgen",
],
rustlibs: [
"liblibc",
"liblibz_sys",
],
shared_libs: [
"libgrpc++",
"libgrpc_wrap"
],
}
cc_defaults {
name: "libgrpcio_sys_defaults",
cflags: [
"-DGRPC_SYS_SECURE",
],
cpp_std: "c++11",
shared_libs: ["libgrpc++"],
}
cc_library {
name: "libgrpc_wrap",
defaults: ["libgrpcio_sys_defaults"],
host_supported: true,
srcs: ["grpc_wrap.cc"],
}
rust_bindgen {
name: "libgrpc_bindgen",
defaults: ["libgrpcio_sys_defaults"],
host_supported: true,
wrapper_src: "android/bindgen_wrapper.hpp",
source_stem: "grpc-bindings",
crate_name: "grpc_bindgen",
bindgen_flags: [
"--size_t-is-usize",
"--constified-enum-module grpc_status_code",
"--default-enum-style rust",
"--allowlist-function=\\bgrpc_.*",
"--allowlist-function=\\bgpr_.*",
"--allowlist-function=\\bgrpcwrap_.*",
"--allowlist-var=\\bGRPC_.*",
"--allowlist-type=\\bgrpc_.*",
"--allowlist-type=\\bgpr_.*",
"--allowlist-type=\\bgrpcwrap_.*",
"--allowlist-type=\\bcensus_context.*",
"--allowlist-type=\\bverify_peer_options.*",
"--blocklist-type=(__)?pthread.*",
"--blocklist-function=\\bgpr_mu_.*",
"--blocklist-function=\\bgpr_cv_.*",
"--blocklist-function=\\bgpr_once_.*",
"--blocklist-type=gpr_mu",
"--blocklist-type=gpr_cv",
"--blocklist-type=gpr_once",
]
}
// dependent_library ["feature_list"]
// bindgen-0.57.0 "runtime"
// bitflags-1.2.1 "default"
// boringssl-src-0.2.0
// cc-1.0.67
// cexpr-0.4.0
// cfg-if-1.0.0
// clang-sys-1.2.0 "clang_3_5,clang_3_6,clang_3_7,clang_3_8,clang_3_9,clang_4_0,clang_5_0,clang_6_0,libloading,runtime"
// cmake-0.1.45
// glob-0.3.0
// lazy_static-1.4.0
// lazycell-1.3.0
// libc-0.2.93 "default,std"
// libloading-0.7.0
// libz-sys-1.1.2 "default,libc,static,stock-zlib"
// memchr-2.3.4 "std,use_std"
// nom-5.1.2 "alloc,std"
// peeking_take_while-0.1.2
// pkg-config-0.3.19
// proc-macro2-1.0.26
// quote-1.0.9
// regex-1.4.5 "std,unicode,unicode-age,unicode-bool,unicode-case,unicode-gencat,unicode-perl,unicode-script,unicode-segment"
// regex-syntax-0.6.23 "unicode,unicode-age,unicode-bool,unicode-case,unicode-gencat,unicode-perl,unicode-script,unicode-segment"
// rustc-hash-1.1.0 "default,std"
// same-file-1.0.6
// shlex-0.1.1
// unicode-xid-0.2.1 "default"
// version_check-0.9.3
// walkdir-2.3.2