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,
|
2022-08-31 12:41:28 +00:00
|
|
|
edition: "2021",
|
2021-08-06 05:08:16 +00:00
|
|
|
rustlibs: [
|
|
|
|
"libanyhow",
|
|
|
|
"libbyteorder",
|
|
|
|
"libbytes",
|
2022-11-25 15:00:04 +00:00
|
|
|
"libhex",
|
2021-08-06 05:08:16 +00:00
|
|
|
"liblog_rust",
|
2022-09-15 15:06:10 +00:00
|
|
|
"libnum_traits",
|
2022-05-22 16:17:52 +00:00
|
|
|
"libopenssl",
|
2022-09-19 11:59:17 +00:00
|
|
|
"libserde",
|
2021-08-06 05:08:16 +00:00
|
|
|
"libzip",
|
|
|
|
],
|
2022-09-15 15:06:10 +00:00
|
|
|
proc_macros: ["libnum_derive"],
|
2021-08-06 05:08:16 +00:00
|
|
|
}
|
2021-08-10 07:46:43 +00:00
|
|
|
|
|
|
|
rust_library {
|
|
|
|
name: "libapkverify",
|
|
|
|
defaults: ["libapkverify.defaults"],
|
2022-05-24 07:39:24 +00:00
|
|
|
// TODO(b/204562227): move to host_supported to the defaults to include tests
|
|
|
|
host_supported: true,
|
2022-06-01 13:38:15 +00:00
|
|
|
apex_available: ["com.android.virt"],
|
2021-08-10 07:46:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
rust_test {
|
|
|
|
name: "libapkverify.test",
|
|
|
|
defaults: ["libapkverify.defaults"],
|
|
|
|
test_suites: ["general-tests"],
|
2022-09-08 11:16:31 +00:00
|
|
|
data: ["tests/data/*"],
|
2021-08-10 07:46:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
rust_test {
|
|
|
|
name: "libapkverify.integration_test",
|
|
|
|
crate_name: "apkverify_test",
|
|
|
|
srcs: ["tests/*_test.rs"],
|
|
|
|
prefer_rlib: true,
|
2022-08-31 12:41:28 +00:00
|
|
|
edition: "2021",
|
2021-08-10 07:46:43 +00:00
|
|
|
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/*"],
|
|
|
|
}
|