blob: 1fb6460b19ceaaf3b5bab15e5cf36bb5f207b632 [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
Bob Badour20ac7ff2021-02-12 18:08:51 -08003package {
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
26license {
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 Maurer23898632020-07-06 13:45:08 -070039rust_library {
Jason Macnakdffb6a02020-03-18 02:00:53 +000040 name: "libpin_utils",
Andrew Walbrand296d1a2020-06-09 15:28:34 +010041 host_supported: true,
Jason Macnakdffb6a02020-03-18 02:00:53 +000042 crate_name: "pin_utils",
43 srcs: ["src/lib.rs"],
44 edition: "2018",
Jiyong Park9f190432020-12-07 15:49:47 +090045 apex_available: [
46 "//apex_available:platform",
47 "com.android.virt",
48 ],
Jason Macnakdffb6a02020-03-18 02:00:53 +000049}
Chih-Hung Hsiehfdf4ae32020-05-07 17:09:22 -070050
Ivan Lozano92ed69e2020-06-11 13:42:23 -040051rust_defaults {
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070052 name: "pin-utils_defaults",
53 crate_name: "pin_utils",
Chih-Hung Hsieh3caea992020-07-16 16:27:45 -070054 srcs: ["src/lib.rs"],
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070055 test_suites: ["general-tests"],
56 auto_gen_config: true,
57 edition: "2018",
58}
59
60rust_test_host {
61 name: "pin-utils_host_test_src_lib",
62 defaults: ["pin-utils_defaults"],
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070063}
64
65rust_test {
66 name: "pin-utils_device_test_src_lib",
67 defaults: ["pin-utils_defaults"],
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070068}
69
70rust_defaults {
Chih-Hung Hsiehcead1602020-07-14 16:43:35 -070071 name: "pin-utils_defaults_pin_utils",
Chih-Hung Hsiehfdf4ae32020-05-07 17:09:22 -070072 crate_name: "pin_utils",
Chih-Hung Hsiehfdf4ae32020-05-07 17:09:22 -070073 test_suites: ["general-tests"],
74 auto_gen_config: true,
75 edition: "2018",
Matthew Maurer23898632020-07-06 13:45:08 -070076 rustlibs: [
Chih-Hung Hsiehfdf4ae32020-05-07 17:09:22 -070077 "libpin_utils",
78 ],
79}
80
Chih-Hung Hsiehe4783712020-06-16 00:57:52 -070081rust_test_host {
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070082 name: "pin-utils_host_test_tests_projection",
Chih-Hung Hsiehcead1602020-07-14 16:43:35 -070083 defaults: ["pin-utils_defaults_pin_utils"],
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070084 srcs: ["tests/projection.rs"],
Ivan Lozano92ed69e2020-06-11 13:42:23 -040085}
86
Andrew Walbrand296d1a2020-06-09 15:28:34 +010087rust_test {
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070088 name: "pin-utils_device_test_tests_projection",
Chih-Hung Hsiehcead1602020-07-14 16:43:35 -070089 defaults: ["pin-utils_defaults_pin_utils"],
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070090 srcs: ["tests/projection.rs"],
Chih-Hung Hsiehe4783712020-06-16 00:57:52 -070091}
92
93rust_test_host {
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070094 name: "pin-utils_host_test_tests_stack_pin",
Chih-Hung Hsiehcead1602020-07-14 16:43:35 -070095 defaults: ["pin-utils_defaults_pin_utils"],
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070096 srcs: ["tests/stack_pin.rs"],
Ivan Lozano92ed69e2020-06-11 13:42:23 -040097}
98
Andrew Walbrand296d1a2020-06-09 15:28:34 +010099rust_test {
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -0700100 name: "pin-utils_device_test_tests_stack_pin",
Chih-Hung Hsiehcead1602020-07-14 16:43:35 -0700101 defaults: ["pin-utils_defaults_pin_utils"],
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -0700102 srcs: ["tests/stack_pin.rs"],
Chih-Hung Hsiehe4783712020-06-16 00:57:52 -0700103}