2021-08-06 05:08:16 +00:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
2021-08-10 07:46:43 +00:00
|
|
|
rust_defaults {
|
|
|
|
name: "libapkverify.defaults",
|
2021-08-06 05:08:16 +00:00
|
|
|
crate_name: "apkverify",
|
|
|
|
srcs: ["src/lib.rs"],
|
|
|
|
prefer_rlib: true,
|
|
|
|
edition: "2018",
|
|
|
|
rustlibs: [
|
|
|
|
"libanyhow",
|
|
|
|
"libbyteorder",
|
|
|
|
"libbytes",
|
|
|
|
"liblog_rust",
|
2022-05-22 16:17:52 +00:00
|
|
|
"libopenssl",
|
2021-08-09 07:36:13 +00:00
|
|
|
"libx509_parser",
|
2021-08-06 05:08:16 +00:00
|
|
|
"libzip",
|
|
|
|
],
|
|
|
|
}
|
2021-08-10 07:46:43 +00:00
|
|
|
|
|
|
|
rust_library {
|
|
|
|
name: "libapkverify",
|
|
|
|
defaults: ["libapkverify.defaults"],
|
|
|
|
}
|
|
|
|
|
|
|
|
rust_test {
|
|
|
|
name: "libapkverify.test",
|
|
|
|
defaults: ["libapkverify.defaults"],
|
|
|
|
test_suites: ["general-tests"],
|
|
|
|
}
|
|
|
|
|
|
|
|
rust_test {
|
|
|
|
name: "libapkverify.integration_test",
|
|
|
|
crate_name: "apkverify_test",
|
|
|
|
srcs: ["tests/*_test.rs"],
|
|
|
|
prefer_rlib: true,
|
|
|
|
edition: "2018",
|
|
|
|
test_suites: ["general-tests"],
|
2021-08-11 06:52:07 +00:00
|
|
|
rustlibs: [
|
|
|
|
"libapkverify",
|
|
|
|
"libzip",
|
|
|
|
],
|
2021-08-10 07:46:43 +00:00
|
|
|
data: ["tests/data/*"],
|
|
|
|
}
|