blob: f9fdd1fb2046c447f2242bc62faa7700df088a4f [file] [log] [blame]
Victor Hsieh1fe51c42020-11-05 11:08:10 -08001rust_defaults {
2 name: "authfs_defaults",
3 crate_name: "authfs",
4 srcs: [
Victor Hsieh88ac6ca2020-11-13 15:20:24 -08005 "src/main.rs",
Victor Hsieh1fe51c42020-11-05 11:08:10 -08006 ],
7 edition: "2018",
8 rustlibs: [
Victor Hsiehec184562020-11-06 13:50:31 -08009 "libanyhow",
Victor Hsiehd1cb0d72020-11-06 13:49:55 -080010 "libauthfs_crypto_bindgen",
Victor Hsieh88ac6ca2020-11-13 15:20:24 -080011 "libcfg_if",
12 "libfuse_rust",
Victor Hsieh1fe51c42020-11-05 11:08:10 -080013 "liblibc",
Victor Hsieh88ac6ca2020-11-13 15:20:24 -080014 "libstructopt",
Victor Hsiehd1cb0d72020-11-06 13:49:55 -080015 "libthiserror",
Victor Hsieh1fe51c42020-11-05 11:08:10 -080016 ],
17 host_supported: true,
Victor Hsiehd1cb0d72020-11-06 13:49:55 -080018 shared_libs: ["libcrypto"],
Victor Hsieh1fe51c42020-11-05 11:08:10 -080019 clippy_lints: "android",
Victor Hsieh9a0ee7e2021-01-11 15:00:10 -080020 defaults: ["crosvm_defaults"],
Victor Hsieh1fe51c42020-11-05 11:08:10 -080021}
22
Victor Hsiehd1cb0d72020-11-06 13:49:55 -080023// TODO(b/172687320): remove once there is a canonical bindgen.
24rust_bindgen {
25 name: "libauthfs_crypto_bindgen",
26 wrapper_src: "src/crypto.hpp",
27 crate_name: "authfs_crypto_bindgen",
28 source_stem: "bindings",
29 shared_libs: [
30 "libcrypto",
31 ],
32 bindgen_flags: ["--size_t-is-usize"],
33 cflags: ["-D BORINGSSL_NO_CXX"],
34 host_supported: true,
35}
36
Victor Hsieh88ac6ca2020-11-13 15:20:24 -080037rust_binary {
38 name: "authfs",
Victor Hsieh1fe51c42020-11-05 11:08:10 -080039 defaults: ["authfs_defaults"],
40}
41
42rust_test_host {
43 name: "authfs_host_test_src_lib",
44 test_suites: ["general-tests"],
45 defaults: ["authfs_defaults"],
46}
47
48// TODO(victorhsieh): Enable the test once "undefined symbol: _Unwind_Resume" is fixed, then add to
49// TEST_MAPPING.
50//rust_test {
51// name: "authfs_device_test_src_lib",
52// defaults: ["authfs_defaults"],
53//}