Jiyong Park | 9f19043 | 2020-12-07 15:49:47 +0900 | [diff] [blame] | 1 | // This file is generated by cargo2android.py --run --dependencies --device --tests --patch=patches/Android.bp.patch. |
Jason Macnak | dffb6a0 | 2020-03-18 02:00:53 +0000 | [diff] [blame] | 2 | |
Matthew Maurer | 2389863 | 2020-07-06 13:45:08 -0700 | [diff] [blame] | 3 | rust_library { |
Jason Macnak | dffb6a0 | 2020-03-18 02:00:53 +0000 | [diff] [blame] | 4 | name: "libpin_utils", |
Andrew Walbran | d296d1a | 2020-06-09 15:28:34 +0100 | [diff] [blame] | 5 | host_supported: true, |
Jason Macnak | dffb6a0 | 2020-03-18 02:00:53 +0000 | [diff] [blame] | 6 | crate_name: "pin_utils", |
| 7 | srcs: ["src/lib.rs"], |
| 8 | edition: "2018", |
Jiyong Park | 9f19043 | 2020-12-07 15:49:47 +0900 | [diff] [blame] | 9 | apex_available: [ |
| 10 | "//apex_available:platform", |
| 11 | "com.android.virt", |
| 12 | ], |
Jason Macnak | dffb6a0 | 2020-03-18 02:00:53 +0000 | [diff] [blame] | 13 | } |
Chih-Hung Hsieh | fdf4ae3 | 2020-05-07 17:09:22 -0700 | [diff] [blame] | 14 | |
Ivan Lozano | 92ed69e | 2020-06-11 13:42:23 -0400 | [diff] [blame] | 15 | rust_defaults { |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 16 | name: "pin-utils_defaults", |
| 17 | crate_name: "pin_utils", |
Chih-Hung Hsieh | 3caea99 | 2020-07-16 16:27:45 -0700 | [diff] [blame] | 18 | srcs: ["src/lib.rs"], |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 19 | test_suites: ["general-tests"], |
| 20 | auto_gen_config: true, |
| 21 | edition: "2018", |
| 22 | } |
| 23 | |
| 24 | rust_test_host { |
| 25 | name: "pin-utils_host_test_src_lib", |
| 26 | defaults: ["pin-utils_defaults"], |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | rust_test { |
| 30 | name: "pin-utils_device_test_src_lib", |
| 31 | defaults: ["pin-utils_defaults"], |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | rust_defaults { |
Chih-Hung Hsieh | cead160 | 2020-07-14 16:43:35 -0700 | [diff] [blame] | 35 | name: "pin-utils_defaults_pin_utils", |
Chih-Hung Hsieh | fdf4ae3 | 2020-05-07 17:09:22 -0700 | [diff] [blame] | 36 | crate_name: "pin_utils", |
Chih-Hung Hsieh | fdf4ae3 | 2020-05-07 17:09:22 -0700 | [diff] [blame] | 37 | test_suites: ["general-tests"], |
| 38 | auto_gen_config: true, |
| 39 | edition: "2018", |
Matthew Maurer | 2389863 | 2020-07-06 13:45:08 -0700 | [diff] [blame] | 40 | rustlibs: [ |
Chih-Hung Hsieh | fdf4ae3 | 2020-05-07 17:09:22 -0700 | [diff] [blame] | 41 | "libpin_utils", |
| 42 | ], |
| 43 | } |
| 44 | |
Chih-Hung Hsieh | e478371 | 2020-06-16 00:57:52 -0700 | [diff] [blame] | 45 | rust_test_host { |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 46 | name: "pin-utils_host_test_tests_projection", |
Chih-Hung Hsieh | cead160 | 2020-07-14 16:43:35 -0700 | [diff] [blame] | 47 | defaults: ["pin-utils_defaults_pin_utils"], |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 48 | srcs: ["tests/projection.rs"], |
Ivan Lozano | 92ed69e | 2020-06-11 13:42:23 -0400 | [diff] [blame] | 49 | } |
| 50 | |
Andrew Walbran | d296d1a | 2020-06-09 15:28:34 +0100 | [diff] [blame] | 51 | rust_test { |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 52 | name: "pin-utils_device_test_tests_projection", |
Chih-Hung Hsieh | cead160 | 2020-07-14 16:43:35 -0700 | [diff] [blame] | 53 | defaults: ["pin-utils_defaults_pin_utils"], |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 54 | srcs: ["tests/projection.rs"], |
Chih-Hung Hsieh | e478371 | 2020-06-16 00:57:52 -0700 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | rust_test_host { |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 58 | name: "pin-utils_host_test_tests_stack_pin", |
Chih-Hung Hsieh | cead160 | 2020-07-14 16:43:35 -0700 | [diff] [blame] | 59 | defaults: ["pin-utils_defaults_pin_utils"], |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 60 | srcs: ["tests/stack_pin.rs"], |
Ivan Lozano | 92ed69e | 2020-06-11 13:42:23 -0400 | [diff] [blame] | 61 | } |
| 62 | |
Andrew Walbran | d296d1a | 2020-06-09 15:28:34 +0100 | [diff] [blame] | 63 | rust_test { |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 64 | name: "pin-utils_device_test_tests_stack_pin", |
Chih-Hung Hsieh | cead160 | 2020-07-14 16:43:35 -0700 | [diff] [blame] | 65 | defaults: ["pin-utils_defaults_pin_utils"], |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 66 | srcs: ["tests/stack_pin.rs"], |
Chih-Hung Hsieh | e478371 | 2020-06-16 00:57:52 -0700 | [diff] [blame] | 67 | } |