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 | |
Bob Badour | 20ac7ff | 2021-02-12 18:08:51 -0800 | [diff] [blame^] | 3 | package { |
| 4 | default_applicable_licenses: ["external_rust_crates_pin-utils_license"], |
| 5 | } |
| 6 | |
| 7 | // Added automatically by a large-scale-change that took the approach of |
| 8 | // 'apply every license found to every target'. While this makes sure we respect |
| 9 | // every license restriction, it may not be entirely correct. |
| 10 | // |
| 11 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 12 | // |
| 13 | // Please consider splitting the single license below into multiple licenses, |
| 14 | // taking care not to lose any license_kind information, and overriding the |
| 15 | // default license using the 'licenses: [...]' property on targets as needed. |
| 16 | // |
| 17 | // For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| 18 | // to attach the license to, and including a comment whether the files may be |
| 19 | // used in the current project. |
| 20 | // |
| 21 | // large-scale-change included anything that looked like it might be a license |
| 22 | // text as a license_text. e.g. LICENSE, NOTICE, COPYING etc. |
| 23 | // |
| 24 | // Please consider removing redundant or irrelevant files from 'license_text:'. |
| 25 | // See: http://go/android-license-faq |
| 26 | license { |
| 27 | name: "external_rust_crates_pin-utils_license", |
| 28 | visibility: [":__subpackages__"], |
| 29 | license_kinds: [ |
| 30 | "SPDX-license-identifier-Apache-2.0", |
| 31 | "SPDX-license-identifier-MIT", |
| 32 | ], |
| 33 | license_text: [ |
| 34 | "LICENSE-APACHE", |
| 35 | "LICENSE-MIT", |
| 36 | ], |
| 37 | } |
| 38 | |
Matthew Maurer | 2389863 | 2020-07-06 13:45:08 -0700 | [diff] [blame] | 39 | rust_library { |
Jason Macnak | dffb6a0 | 2020-03-18 02:00:53 +0000 | [diff] [blame] | 40 | name: "libpin_utils", |
Andrew Walbran | d296d1a | 2020-06-09 15:28:34 +0100 | [diff] [blame] | 41 | host_supported: true, |
Jason Macnak | dffb6a0 | 2020-03-18 02:00:53 +0000 | [diff] [blame] | 42 | crate_name: "pin_utils", |
| 43 | srcs: ["src/lib.rs"], |
| 44 | edition: "2018", |
Jiyong Park | 9f19043 | 2020-12-07 15:49:47 +0900 | [diff] [blame] | 45 | apex_available: [ |
| 46 | "//apex_available:platform", |
| 47 | "com.android.virt", |
| 48 | ], |
Jason Macnak | dffb6a0 | 2020-03-18 02:00:53 +0000 | [diff] [blame] | 49 | } |
Chih-Hung Hsieh | fdf4ae3 | 2020-05-07 17:09:22 -0700 | [diff] [blame] | 50 | |
Ivan Lozano | 92ed69e | 2020-06-11 13:42:23 -0400 | [diff] [blame] | 51 | rust_defaults { |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 52 | name: "pin-utils_defaults", |
| 53 | crate_name: "pin_utils", |
Chih-Hung Hsieh | 3caea99 | 2020-07-16 16:27:45 -0700 | [diff] [blame] | 54 | srcs: ["src/lib.rs"], |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 55 | test_suites: ["general-tests"], |
| 56 | auto_gen_config: true, |
| 57 | edition: "2018", |
| 58 | } |
| 59 | |
| 60 | rust_test_host { |
| 61 | name: "pin-utils_host_test_src_lib", |
| 62 | defaults: ["pin-utils_defaults"], |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | rust_test { |
| 66 | name: "pin-utils_device_test_src_lib", |
| 67 | defaults: ["pin-utils_defaults"], |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 68 | } |
| 69 | |
| 70 | rust_defaults { |
Chih-Hung Hsieh | cead160 | 2020-07-14 16:43:35 -0700 | [diff] [blame] | 71 | name: "pin-utils_defaults_pin_utils", |
Chih-Hung Hsieh | fdf4ae3 | 2020-05-07 17:09:22 -0700 | [diff] [blame] | 72 | crate_name: "pin_utils", |
Chih-Hung Hsieh | fdf4ae3 | 2020-05-07 17:09:22 -0700 | [diff] [blame] | 73 | test_suites: ["general-tests"], |
| 74 | auto_gen_config: true, |
| 75 | edition: "2018", |
Matthew Maurer | 2389863 | 2020-07-06 13:45:08 -0700 | [diff] [blame] | 76 | rustlibs: [ |
Chih-Hung Hsieh | fdf4ae3 | 2020-05-07 17:09:22 -0700 | [diff] [blame] | 77 | "libpin_utils", |
| 78 | ], |
| 79 | } |
| 80 | |
Chih-Hung Hsieh | e478371 | 2020-06-16 00:57:52 -0700 | [diff] [blame] | 81 | rust_test_host { |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 82 | name: "pin-utils_host_test_tests_projection", |
Chih-Hung Hsieh | cead160 | 2020-07-14 16:43:35 -0700 | [diff] [blame] | 83 | defaults: ["pin-utils_defaults_pin_utils"], |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 84 | srcs: ["tests/projection.rs"], |
Ivan Lozano | 92ed69e | 2020-06-11 13:42:23 -0400 | [diff] [blame] | 85 | } |
| 86 | |
Andrew Walbran | d296d1a | 2020-06-09 15:28:34 +0100 | [diff] [blame] | 87 | rust_test { |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 88 | name: "pin-utils_device_test_tests_projection", |
Chih-Hung Hsieh | cead160 | 2020-07-14 16:43:35 -0700 | [diff] [blame] | 89 | defaults: ["pin-utils_defaults_pin_utils"], |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 90 | srcs: ["tests/projection.rs"], |
Chih-Hung Hsieh | e478371 | 2020-06-16 00:57:52 -0700 | [diff] [blame] | 91 | } |
| 92 | |
| 93 | rust_test_host { |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 94 | name: "pin-utils_host_test_tests_stack_pin", |
Chih-Hung Hsieh | cead160 | 2020-07-14 16:43:35 -0700 | [diff] [blame] | 95 | defaults: ["pin-utils_defaults_pin_utils"], |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 96 | srcs: ["tests/stack_pin.rs"], |
Ivan Lozano | 92ed69e | 2020-06-11 13:42:23 -0400 | [diff] [blame] | 97 | } |
| 98 | |
Andrew Walbran | d296d1a | 2020-06-09 15:28:34 +0100 | [diff] [blame] | 99 | rust_test { |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 100 | name: "pin-utils_device_test_tests_stack_pin", |
Chih-Hung Hsieh | cead160 | 2020-07-14 16:43:35 -0700 | [diff] [blame] | 101 | defaults: ["pin-utils_defaults_pin_utils"], |
Chih-Hung Hsieh | 0152f34 | 2020-07-12 04:19:50 -0700 | [diff] [blame] | 102 | srcs: ["tests/stack_pin.rs"], |
Chih-Hung Hsieh | e478371 | 2020-06-16 00:57:52 -0700 | [diff] [blame] | 103 | } |