52 lines
1.2 KiB
Plaintext
52 lines
1.2 KiB
Plaintext
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
rust_library {
|
|
name: "libcompos_verify_native_rust",
|
|
crate_name: "compos_verify_native",
|
|
srcs: ["lib.rs"],
|
|
rustlibs: [
|
|
"libanyhow",
|
|
"libcxx",
|
|
"liblibc",
|
|
],
|
|
static_libs: [
|
|
"libcompos_verify_native_cpp",
|
|
"libcompos_key",
|
|
],
|
|
shared_libs: [
|
|
"libcrypto",
|
|
],
|
|
apex_available: ["com.android.compos"],
|
|
}
|
|
|
|
cc_library_static {
|
|
name: "libcompos_verify_native_cpp",
|
|
srcs: ["verify_native.cpp"],
|
|
static_libs: ["libcompos_key"],
|
|
shared_libs: [
|
|
"libbase",
|
|
"libcrypto",
|
|
],
|
|
generated_headers: ["compos_verify_native_header"],
|
|
generated_sources: ["compos_verify_native_code"],
|
|
apex_available: ["com.android.compos"],
|
|
}
|
|
|
|
genrule {
|
|
name: "compos_verify_native_code",
|
|
tools: ["cxxbridge"],
|
|
cmd: "$(location cxxbridge) $(in) >> $(out)",
|
|
srcs: ["lib.rs"],
|
|
out: ["verify_native_cxx_generated.cc"],
|
|
}
|
|
|
|
genrule {
|
|
name: "compos_verify_native_header",
|
|
tools: ["cxxbridge"],
|
|
cmd: "$(location cxxbridge) $(in) --header >> $(out)",
|
|
srcs: ["lib.rs"],
|
|
out: ["lib.rs.h"],
|
|
}
|