2021-06-07 01:13:44 +00:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
|
|
|
rust_defaults {
|
|
|
|
name: "apkdmverity.defaults",
|
|
|
|
crate_name: "apkdmverity",
|
|
|
|
srcs: ["src/main.rs"],
|
|
|
|
edition: "2018",
|
|
|
|
prefer_rlib: true,
|
|
|
|
rustlibs: [
|
|
|
|
"libanyhow",
|
|
|
|
"libbitflags",
|
|
|
|
"libclap",
|
2021-06-08 11:51:54 +00:00
|
|
|
"libdata_model",
|
2021-06-07 01:13:44 +00:00
|
|
|
"liblibc",
|
|
|
|
"libnix",
|
|
|
|
"libnum_traits",
|
|
|
|
"libscopeguard",
|
|
|
|
"libuuid",
|
|
|
|
],
|
|
|
|
proc_macros: ["libnum_derive"],
|
|
|
|
multilib: {
|
|
|
|
lib32: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
rust_binary {
|
|
|
|
name: "apkdmverity",
|
|
|
|
defaults: ["apkdmverity.defaults"],
|
|
|
|
}
|
|
|
|
|
|
|
|
rust_test {
|
|
|
|
name: "apkdmverity.test",
|
|
|
|
defaults: ["apkdmverity.defaults"],
|
|
|
|
test_suites: ["general-tests"],
|
|
|
|
compile_multilib: "first",
|
|
|
|
rustlibs: [
|
|
|
|
"libtempfile",
|
|
|
|
],
|
|
|
|
}
|