blob: 92d4e809a6e53162b21dee7e7f6d2ce0407f29df [file] [log] [blame]
Andrew Scull11638792022-04-25 18:13:21 +00001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5rust_defaults {
6 name: "libapexutil_rust.defaults",
7 crate_name: "apexutil",
Nikita Ioffeda1b2732023-09-04 13:46:56 +01008 defaults: ["avf_build_flags_rust"],
Andrew Scull11638792022-04-25 18:13:21 +00009 host_supported: true,
10 srcs: ["src/lib.rs"],
Alan Stokes6472ccd2022-08-31 13:41:28 +010011 edition: "2021",
Andrew Scull11638792022-04-25 18:13:21 +000012 rustlibs: [
Andrew Scull11638792022-04-25 18:13:21 +000013 "liblog_rust",
14 "libthiserror",
Andrew Scull38127252022-06-13 13:11:00 +000015 "libvbmeta_rust",
Andrew Scull11638792022-04-25 18:13:21 +000016 "libzip",
17 ],
18}
19
20rust_library {
21 name: "libapexutil_rust",
22 defaults: ["libapexutil_rust.defaults"],
23}
24
25rust_test {
26 name: "libapexutil_rust.test",
27 defaults: ["libapexutil_rust.defaults"],
Andrew Scull38127252022-06-13 13:11:00 +000028 prefer_rlib: true,
Andrew Scull11638792022-04-25 18:13:21 +000029 test_suites: ["general-tests"],
30 data: ["tests/data/*"],
Alice Wangc276b802022-10-12 13:14:47 +000031 rustlibs: [
32 "libhex",
33 ],
Alice Wangca554c82022-12-13 21:19:35 +000034 target: {
35 host: {
36 // TODO(b/204562227): remove once the build does this automatically
37 data_libs: [
38 "libc++",
39 "libcrypto",
40 "libz",
41 ],
42 },
43 },
Andrew Scull11638792022-04-25 18:13:21 +000044}