66 lines
1.5 KiB
Plaintext
66 lines
1.5 KiB
Plaintext
package {
|
|
// See: http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// all of the 'license_kinds' from "system_bt_license"
|
|
// to get the below license kinds:
|
|
// SPDX-license-identifier-Apache-2.0
|
|
default_applicable_licenses: ["system_bt_license"],
|
|
}
|
|
|
|
rust_ffi {
|
|
name: "librootcanal_rs",
|
|
host_supported: true,
|
|
vendor_available: true,
|
|
crate_name: "rootcanal_rs",
|
|
srcs: [
|
|
"src/lib.rs",
|
|
":rootcanal_lmp_packets_rust_gen",
|
|
":rootcanal_hci_packets_rust_gen",
|
|
],
|
|
edition: "2018",
|
|
proc_macros: ["libnum_derive"],
|
|
rustlibs: [
|
|
"libbytes",
|
|
"libnum_bigint",
|
|
"libnum_integer",
|
|
"libnum_traits",
|
|
"libpin_utils",
|
|
"librand",
|
|
"libthiserror",
|
|
],
|
|
include_dirs: ["include"],
|
|
}
|
|
|
|
genrule {
|
|
name: "rootcanal_lmp_packets_rust_gen",
|
|
defaults: ["pdl_rust_generator_defaults"],
|
|
srcs: ["lmp_packets.pdl"],
|
|
out: ["lmp_packets.rs"],
|
|
}
|
|
|
|
rust_test_host {
|
|
name: "rootcanal_rs_test",
|
|
crate_name: "rootcanal_rs",
|
|
srcs: [
|
|
"src/lib.rs",
|
|
":rootcanal_lmp_packets_rust_gen",
|
|
":rootcanal_hci_packets_rust_gen",
|
|
],
|
|
auto_gen_config: true,
|
|
edition: "2018",
|
|
proc_macros: [
|
|
"libnum_derive",
|
|
"libpaste",
|
|
],
|
|
rustlibs: [
|
|
"libbt_packets",
|
|
"libbytes",
|
|
"libnum_bigint",
|
|
"libnum_integer",
|
|
"libnum_traits",
|
|
"libpin_utils",
|
|
"librand",
|
|
"libthiserror",
|
|
],
|
|
}
|