Ted Bauer | 4dbf58a | 2024-02-08 18:46:52 +0000 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
| 5 | rust_defaults { |
| 6 | name: "aflags.defaults", |
| 7 | edition: "2021", |
| 8 | clippy_lints: "android", |
| 9 | lints: "android", |
| 10 | srcs: ["src/main.rs"], |
| 11 | rustlibs: [ |
Ted Bauer | 206d44a | 2024-03-15 17:04:06 +0000 | [diff] [blame] | 12 | "libaconfig_device_paths", |
Ted Bauer | b1edaae | 2024-09-11 19:07:44 +0000 | [diff] [blame] | 13 | "libaconfig_flags", |
Ted Bauer | 4dbf58a | 2024-02-08 18:46:52 +0000 | [diff] [blame] | 14 | "libaconfig_protos", |
Zhi Dou | 8ee1a5b | 2024-08-07 18:51:23 +0000 | [diff] [blame] | 15 | "libaconfigd_protos", |
Ted Bauer | 6d4db66 | 2024-03-06 18:08:32 -0500 | [diff] [blame] | 16 | "libaconfig_storage_read_api", |
| 17 | "libaconfig_storage_file", |
Ted Bauer | 4dbf58a | 2024-02-08 18:46:52 +0000 | [diff] [blame] | 18 | "libanyhow", |
| 19 | "libclap", |
Ted Bauer | a98448f | 2024-03-06 14:01:19 -0500 | [diff] [blame] | 20 | "libnix", |
Ted Bauer | 4dbf58a | 2024-02-08 18:46:52 +0000 | [diff] [blame] | 21 | "libprotobuf", |
| 22 | "libregex", |
Dennis Shen | e472adf | 2024-10-02 19:02:05 +0000 | [diff] [blame^] | 23 | // TODO: b/371021174 remove this fake dependency once we find a proper strategy to |
| 24 | // deal with test aconfig libs are not present in storage because they are never used |
| 25 | // by the actual build |
| 26 | "libaconfig_test_rust_library", |
Ted Bauer | 4dbf58a | 2024-02-08 18:46:52 +0000 | [diff] [blame] | 27 | ], |
| 28 | } |
| 29 | |
| 30 | rust_binary { |
| 31 | name: "aflags", |
Ted Bauer | b1edaae | 2024-09-11 19:07:44 +0000 | [diff] [blame] | 32 | host_supported: true, |
Ted Bauer | 4dbf58a | 2024-02-08 18:46:52 +0000 | [diff] [blame] | 33 | defaults: ["aflags.defaults"], |
| 34 | } |
| 35 | |
| 36 | rust_test_host { |
| 37 | name: "aflags.test", |
| 38 | defaults: ["aflags.defaults"], |
| 39 | test_suites: ["general-tests"], |
| 40 | } |