blob: bc01f772538a31281e602d50034c95feef04e83c [file] [log] [blame]
Joel Galensond6683f22021-04-27 14:13:41 -07001// This file is generated by cargo2android.py --config cargo2android.json.
Joel Galenson50683672021-04-08 10:31:43 -07002// Do not modify this file as changes will be overridden on upgrade.
Chih-Hung Hsieh0eebe632020-07-12 05:49:18 -07003
Bob Badour3de2ee52021-02-03 17:53:22 -08004package {
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
27license {
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 Maurera8dfa122020-07-06 13:17:45 -070040rust_library {
Chih-Hung Hsieh863f21d2019-10-31 11:54:09 -070041 name: "liblibc",
Ivan Lozanoda7b1192019-09-06 09:08:23 -070042 host_supported: true,
Chih-Hung Hsiehe5870cf2019-10-25 17:35:48 -070043 crate_name: "libc",
Joel Galenson99a00422021-09-22 11:09:44 -070044 cargo_env_compat: true,
David LeGareb38fde02022-03-02 16:21:11 +000045 cargo_pkg_version: "0.2.119",
Chih-Hung Hsiehe5870cf2019-10-25 17:35:48 -070046 srcs: ["src/lib.rs"],
47 edition: "2015",
Ivan Lozanoda7b1192019-09-06 09:08:23 -070048 features: [
Ivan Lozanoda7b1192019-09-06 09:08:23 -070049 "default",
Andrew Walbran638223c2020-09-28 15:14:36 +010050 "extra_traits",
Chih-Hung Hsiehe5870cf2019-10-25 17:35:48 -070051 "std",
Ivan Lozanoda7b1192019-09-06 09:08:23 -070052 ],
Joel Galenson5087ec32021-04-15 07:38:32 -070053 cfgs: [
54 "freebsd11",
55 "libc_align",
56 "libc_cfg_target_vendor",
57 "libc_const_size_of",
58 "libc_core_cvoid",
David LeGareb38fde02022-03-02 16:21:11 +000059 "libc_non_exhaustive",
Joel Galenson5087ec32021-04-15 07:38:32 -070060 "libc_packedN",
61 "libc_priv_mod_use",
David LeGareb38fde02022-03-02 16:21:11 +000062 "libc_ptr_addr_of",
Joel Galenson5087ec32021-04-15 07:38:32 -070063 "libc_union",
Ivan Lozanoda7b1192019-09-06 09:08:23 -070064 ],
Jiyong Parkdfcef8f2020-11-17 22:21:47 +090065 apex_available: [
66 "//apex_available:platform",
Roopa Sattiraju7e773ff2021-12-21 15:39:42 -080067 "com.android.bluetooth",
Victor Hsiehc13eda82021-05-11 12:36:08 -070068 "com.android.compos",
Bernie Innocentic5361ae2020-12-14 23:36:12 +090069 "com.android.resolv",
Joel Galensonf3815da2021-11-03 10:41:35 -070070 "com.android.uwb",
Jiyong Park2aa3cfb2020-12-17 14:39:41 +090071 "com.android.virt",
Jiyong Parkdfcef8f2020-11-17 22:21:47 +090072 ],
Joel Galenson2ed4ab92021-11-29 14:04:09 -080073 vendor_available: true,
Bernie Innocentic5361ae2020-12-14 23:36:12 +090074 min_sdk_version: "29",
Ivan Lozanoda7b1192019-09-06 09:08:23 -070075}