blob: 65d08c9764e6401f0a088aa366af68cfd15bdb93 [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 ],
ThiƩbaud Weksteen858a9282021-01-12 12:02:37 +010017 target: {
18 darwin: {
19 enabled: false,
20 },
21 },
Victor Hsiehd1cb0d72020-11-06 13:49:55 -080022 shared_libs: ["libcrypto"],
Victor Hsieh9a0ee7e2021-01-11 15:00:10 -080023 defaults: ["crosvm_defaults"],
Victor Hsieh1fe51c42020-11-05 11:08:10 -080024}
25
Victor Hsiehd1cb0d72020-11-06 13:49:55 -080026// TODO(b/172687320): remove once there is a canonical bindgen.
27rust_bindgen {
28 name: "libauthfs_crypto_bindgen",
29 wrapper_src: "src/crypto.hpp",
30 crate_name: "authfs_crypto_bindgen",
31 source_stem: "bindings",
32 shared_libs: [
33 "libcrypto",
34 ],
35 bindgen_flags: ["--size_t-is-usize"],
36 cflags: ["-D BORINGSSL_NO_CXX"],
Victor Hsiehd1cb0d72020-11-06 13:49:55 -080037}
38
Victor Hsieh88ac6ca2020-11-13 15:20:24 -080039rust_binary {
40 name: "authfs",
Victor Hsieh1fe51c42020-11-05 11:08:10 -080041 defaults: ["authfs_defaults"],
42}
43
Victor Hsieh1fe51c42020-11-05 11:08:10 -080044// TODO(victorhsieh): Enable the test once "undefined symbol: _Unwind_Resume" is fixed, then add to
45// TEST_MAPPING.
Victor Hsiehad46e0b2021-01-25 16:07:38 -080046rust_test {
47 name: "authfs_device_test_src_lib",
48 defaults: ["authfs_defaults"],
49}