blob: e783dfefd038fd14c1537d82589a098f145af56f [file] [log] [blame]
Jiyong Park9f190432020-12-07 15:49:47 +09001// This file is generated by cargo2android.py --run --dependencies --device --tests --patch=patches/Android.bp.patch.
Jason Macnakdffb6a02020-03-18 02:00:53 +00002
Matthew Maurer23898632020-07-06 13:45:08 -07003rust_library {
Jason Macnakdffb6a02020-03-18 02:00:53 +00004 name: "libpin_utils",
Andrew Walbrand296d1a2020-06-09 15:28:34 +01005 host_supported: true,
Jason Macnakdffb6a02020-03-18 02:00:53 +00006 crate_name: "pin_utils",
7 srcs: ["src/lib.rs"],
8 edition: "2018",
Jiyong Park9f190432020-12-07 15:49:47 +09009 apex_available: [
10 "//apex_available:platform",
11 "com.android.virt",
12 ],
Jason Macnakdffb6a02020-03-18 02:00:53 +000013}
Chih-Hung Hsiehfdf4ae32020-05-07 17:09:22 -070014
Ivan Lozano92ed69e2020-06-11 13:42:23 -040015rust_defaults {
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070016 name: "pin-utils_defaults",
17 crate_name: "pin_utils",
Chih-Hung Hsieh3caea992020-07-16 16:27:45 -070018 srcs: ["src/lib.rs"],
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070019 test_suites: ["general-tests"],
20 auto_gen_config: true,
21 edition: "2018",
22}
23
24rust_test_host {
25 name: "pin-utils_host_test_src_lib",
26 defaults: ["pin-utils_defaults"],
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070027}
28
29rust_test {
30 name: "pin-utils_device_test_src_lib",
31 defaults: ["pin-utils_defaults"],
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070032}
33
34rust_defaults {
Chih-Hung Hsiehcead1602020-07-14 16:43:35 -070035 name: "pin-utils_defaults_pin_utils",
Chih-Hung Hsiehfdf4ae32020-05-07 17:09:22 -070036 crate_name: "pin_utils",
Chih-Hung Hsiehfdf4ae32020-05-07 17:09:22 -070037 test_suites: ["general-tests"],
38 auto_gen_config: true,
39 edition: "2018",
Matthew Maurer23898632020-07-06 13:45:08 -070040 rustlibs: [
Chih-Hung Hsiehfdf4ae32020-05-07 17:09:22 -070041 "libpin_utils",
42 ],
43}
44
Chih-Hung Hsiehe4783712020-06-16 00:57:52 -070045rust_test_host {
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070046 name: "pin-utils_host_test_tests_projection",
Chih-Hung Hsiehcead1602020-07-14 16:43:35 -070047 defaults: ["pin-utils_defaults_pin_utils"],
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070048 srcs: ["tests/projection.rs"],
Ivan Lozano92ed69e2020-06-11 13:42:23 -040049}
50
Andrew Walbrand296d1a2020-06-09 15:28:34 +010051rust_test {
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070052 name: "pin-utils_device_test_tests_projection",
Chih-Hung Hsiehcead1602020-07-14 16:43:35 -070053 defaults: ["pin-utils_defaults_pin_utils"],
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070054 srcs: ["tests/projection.rs"],
Chih-Hung Hsiehe4783712020-06-16 00:57:52 -070055}
56
57rust_test_host {
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070058 name: "pin-utils_host_test_tests_stack_pin",
Chih-Hung Hsiehcead1602020-07-14 16:43:35 -070059 defaults: ["pin-utils_defaults_pin_utils"],
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070060 srcs: ["tests/stack_pin.rs"],
Ivan Lozano92ed69e2020-06-11 13:42:23 -040061}
62
Andrew Walbrand296d1a2020-06-09 15:28:34 +010063rust_test {
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070064 name: "pin-utils_device_test_tests_stack_pin",
Chih-Hung Hsiehcead1602020-07-14 16:43:35 -070065 defaults: ["pin-utils_defaults_pin_utils"],
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070066 srcs: ["tests/stack_pin.rs"],
Chih-Hung Hsiehe4783712020-06-16 00:57:52 -070067}