blob: fe038cd057b3c725961c32288c9a05f4621dda9c [file] [log] [blame]
Victor Hsieh1fe51c42020-11-05 11:08:10 -08001rust_defaults {
2 name: "authfs_defaults",
3 crate_name: "authfs",
4 srcs: [
5 "src/lib.rs",
6 ],
7 edition: "2018",
8 rustlibs: [
Victor Hsiehd1cb0d72020-11-06 13:49:55 -08009 "libauthfs_crypto_bindgen",
Victor Hsieh1fe51c42020-11-05 11:08:10 -080010 "liblibc",
Victor Hsiehd1cb0d72020-11-06 13:49:55 -080011 "libthiserror",
Victor Hsieh1fe51c42020-11-05 11:08:10 -080012 ],
13 host_supported: true,
Victor Hsiehd1cb0d72020-11-06 13:49:55 -080014 shared_libs: ["libcrypto"],
Victor Hsieh1fe51c42020-11-05 11:08:10 -080015 clippy_lints: "android",
16}
17
Victor Hsiehd1cb0d72020-11-06 13:49:55 -080018// TODO(b/172687320): remove once there is a canonical bindgen.
19rust_bindgen {
20 name: "libauthfs_crypto_bindgen",
21 wrapper_src: "src/crypto.hpp",
22 crate_name: "authfs_crypto_bindgen",
23 source_stem: "bindings",
24 shared_libs: [
25 "libcrypto",
26 ],
27 bindgen_flags: ["--size_t-is-usize"],
28 cflags: ["-D BORINGSSL_NO_CXX"],
29 host_supported: true,
30}
31
Victor Hsieh1fe51c42020-11-05 11:08:10 -080032rust_library {
33 name: "libauthfs",
34 defaults: ["authfs_defaults"],
35}
36
37rust_test_host {
38 name: "authfs_host_test_src_lib",
39 test_suites: ["general-tests"],
40 defaults: ["authfs_defaults"],
41}
42
43// TODO(victorhsieh): Enable the test once "undefined symbol: _Unwind_Resume" is fixed, then add to
44// TEST_MAPPING.
45//rust_test {
46// name: "authfs_device_test_src_lib",
47// defaults: ["authfs_defaults"],
48//}