blob: 53fe4fc5f6032d180d342c0f22384478214df1a9 [file] [log] [blame]
Jiyong Park59144aa2020-12-14 16:08:40 +09001// This file is generated by cargo2android.py --run --dependencies --device --patch=patches/Android.bp.patch.
Joel Galenson4993e632020-10-23 08:06:45 -07002
Bob Badour3073e722021-02-03 18:56:18 -08003package {
4 default_applicable_licenses: ["external_rust_crates_num_cpus_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// http://go/android-license-faq
26license {
27 name: "external_rust_crates_num_cpus_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
Joel Galenson4993e632020-10-23 08:06:45 -070039rust_library {
40 name: "libnum_cpus",
41 host_supported: true,
42 crate_name: "num_cpus",
43 srcs: ["src/lib.rs"],
44 edition: "2015",
45 rustlibs: [
46 "liblibc",
47 ],
Jiyong Park59144aa2020-12-14 16:08:40 +090048 apex_available: [
49 "//apex_available:platform",
50 "com.android.virt",
51 ],
Joel Galenson4993e632020-10-23 08:06:45 -070052}
53
54// dependent_library ["feature_list"]
Jiyong Park59144aa2020-12-14 16:08:40 +090055// libc-0.2.81 "default,std"