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