Joel Galenson | d6683f2 | 2021-04-27 14:13:41 -0700 | [diff] [blame] | 1 | // This file is generated by cargo2android.py --config cargo2android.json. |
Joel Galenson | 5068367 | 2021-04-08 10:31:43 -0700 | [diff] [blame] | 2 | // Do not modify this file as changes will be overridden on upgrade. |
Chih-Hung Hsieh | 0eebe63 | 2020-07-12 05:49:18 -0700 | [diff] [blame] | 3 | |
Bob Badour | 3de2ee5 | 2021-02-03 17:53:22 -0800 | [diff] [blame] | 4 | package { |
| 5 | default_applicable_licenses: ["external_rust_crates_libc_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 | // http://go/android-license-faq |
| 27 | license { |
| 28 | name: "external_rust_crates_libc_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 | a8dfa12 | 2020-07-06 13:17:45 -0700 | [diff] [blame] | 40 | rust_library { |
Chih-Hung Hsieh | 863f21d | 2019-10-31 11:54:09 -0700 | [diff] [blame] | 41 | name: "liblibc", |
Ivan Lozano | da7b119 | 2019-09-06 09:08:23 -0700 | [diff] [blame] | 42 | host_supported: true, |
Chih-Hung Hsieh | e5870cf | 2019-10-25 17:35:48 -0700 | [diff] [blame] | 43 | crate_name: "libc", |
Joel Galenson | 99a0042 | 2021-09-22 11:09:44 -0700 | [diff] [blame] | 44 | cargo_env_compat: true, |
David LeGare | b38fde0 | 2022-03-02 16:21:11 +0000 | [diff] [blame] | 45 | cargo_pkg_version: "0.2.119", |
Chih-Hung Hsieh | e5870cf | 2019-10-25 17:35:48 -0700 | [diff] [blame] | 46 | srcs: ["src/lib.rs"], |
| 47 | edition: "2015", |
Ivan Lozano | da7b119 | 2019-09-06 09:08:23 -0700 | [diff] [blame] | 48 | features: [ |
Ivan Lozano | da7b119 | 2019-09-06 09:08:23 -0700 | [diff] [blame] | 49 | "default", |
Andrew Walbran | 638223c | 2020-09-28 15:14:36 +0100 | [diff] [blame] | 50 | "extra_traits", |
Chih-Hung Hsieh | e5870cf | 2019-10-25 17:35:48 -0700 | [diff] [blame] | 51 | "std", |
Ivan Lozano | da7b119 | 2019-09-06 09:08:23 -0700 | [diff] [blame] | 52 | ], |
Joel Galenson | 5087ec3 | 2021-04-15 07:38:32 -0700 | [diff] [blame] | 53 | cfgs: [ |
| 54 | "freebsd11", |
| 55 | "libc_align", |
| 56 | "libc_cfg_target_vendor", |
| 57 | "libc_const_size_of", |
| 58 | "libc_core_cvoid", |
David LeGare | b38fde0 | 2022-03-02 16:21:11 +0000 | [diff] [blame] | 59 | "libc_non_exhaustive", |
Joel Galenson | 5087ec3 | 2021-04-15 07:38:32 -0700 | [diff] [blame] | 60 | "libc_packedN", |
| 61 | "libc_priv_mod_use", |
David LeGare | b38fde0 | 2022-03-02 16:21:11 +0000 | [diff] [blame] | 62 | "libc_ptr_addr_of", |
Joel Galenson | 5087ec3 | 2021-04-15 07:38:32 -0700 | [diff] [blame] | 63 | "libc_union", |
Ivan Lozano | da7b119 | 2019-09-06 09:08:23 -0700 | [diff] [blame] | 64 | ], |
Jiyong Park | dfcef8f | 2020-11-17 22:21:47 +0900 | [diff] [blame] | 65 | apex_available: [ |
| 66 | "//apex_available:platform", |
Roopa Sattiraju | 7e773ff | 2021-12-21 15:39:42 -0800 | [diff] [blame] | 67 | "com.android.bluetooth", |
Victor Hsieh | c13eda8 | 2021-05-11 12:36:08 -0700 | [diff] [blame] | 68 | "com.android.compos", |
Bernie Innocenti | c5361ae | 2020-12-14 23:36:12 +0900 | [diff] [blame] | 69 | "com.android.resolv", |
Joel Galenson | f3815da | 2021-11-03 10:41:35 -0700 | [diff] [blame] | 70 | "com.android.uwb", |
Jiyong Park | 2aa3cfb | 2020-12-17 14:39:41 +0900 | [diff] [blame] | 71 | "com.android.virt", |
Jiyong Park | dfcef8f | 2020-11-17 22:21:47 +0900 | [diff] [blame] | 72 | ], |
Joel Galenson | 2ed4ab9 | 2021-11-29 14:04:09 -0800 | [diff] [blame] | 73 | vendor_available: true, |
Bernie Innocenti | c5361ae | 2020-12-14 23:36:12 +0900 | [diff] [blame] | 74 | min_sdk_version: "29", |
Ivan Lozano | da7b119 | 2019-09-06 09:08:23 -0700 | [diff] [blame] | 75 | } |