2021-05-10 02:01:23 +00:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
|
|
|
rust_defaults {
|
|
|
|
name: "zipfuse.defaults",
|
|
|
|
crate_name: "zipfuse",
|
|
|
|
srcs: ["src/main.rs"],
|
|
|
|
edition: "2018",
|
|
|
|
prefer_rlib: true,
|
|
|
|
rustlibs: [
|
|
|
|
"libanyhow",
|
|
|
|
"libclap",
|
|
|
|
"libfuse_rust",
|
|
|
|
"liblibc",
|
|
|
|
"libzip",
|
2021-08-30 13:32:19 +00:00
|
|
|
"libscopeguard",
|
|
|
|
"liblog_rust",
|
2021-05-10 02:01:23 +00:00
|
|
|
],
|
|
|
|
// libfuse_rust, etc don't support 32-bit targets
|
|
|
|
multilib: {
|
|
|
|
lib32: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
rust_binary {
|
|
|
|
name: "zipfuse",
|
|
|
|
defaults: ["zipfuse.defaults"],
|
2021-09-10 02:48:05 +00:00
|
|
|
bootstrap: true,
|
2021-05-10 02:01:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
rust_test {
|
|
|
|
name: "ZipFuseTest",
|
|
|
|
stem: "zipfuse.test",
|
|
|
|
defaults: ["zipfuse.defaults"],
|
2021-05-13 16:56:53 +00:00
|
|
|
test_suites: ["general-tests"],
|
2021-05-10 02:01:23 +00:00
|
|
|
compile_multilib: "first",
|
|
|
|
rustlibs: [
|
|
|
|
"libnix",
|
|
|
|
"libtempfile",
|
|
|
|
],
|
|
|
|
data: [":zipfuse"],
|
|
|
|
}
|