blob: bcdbb1dbee22eff41bab4c2b1d1081684ea262c4 [file] [log] [blame]
Jooyung Han02ab0702021-06-15 16:18:35 +09001// This file is generated by cargo2android.py --config cargo2android.json.
Joel Galenson78439eb2021-06-01 13:23:38 -07002// Do not modify this file as changes will be overridden on upgrade.
Jeff Vander Stoep52c10912020-10-14 23:27:21 +02003
Bob Badour2ca68532021-02-12 14:17:28 -08004package {
5 default_applicable_licenses: ["external_rust_crates_libz-sys_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//
27// large-scale-change filtered out the below license kinds as false-positives:
28// SPDX-license-identifier-GPL
29// See: http://go/android-license-faq
30license {
31 name: "external_rust_crates_libz-sys_license",
32 visibility: [":__subpackages__"],
33 license_kinds: [
34 "SPDX-license-identifier-Apache-2.0",
35 "SPDX-license-identifier-BSD",
36 "SPDX-license-identifier-BSL-1.0",
37 "SPDX-license-identifier-CC-BY",
38 "SPDX-license-identifier-ISC",
39 "SPDX-license-identifier-MIT",
40 "SPDX-license-identifier-Zlib",
41 "legacy_permissive",
42 "legacy_unencumbered",
43 ],
44 license_text: [
45 "LICENSE-APACHE",
46 "LICENSE-MIT",
47 ],
48}
49
Jeff Vander Stoep52c10912020-10-14 23:27:21 +020050rust_library {
51 name: "liblibz_sys",
52 host_supported: true,
53 crate_name: "libz_sys",
Joel Galenson516f5da2021-11-29 14:04:13 -080054 cargo_env_compat: true,
55 cargo_pkg_version: "1.1.3",
Jeff Vander Stoep52c10912020-10-14 23:27:21 +020056 srcs: ["src/lib.rs"],
57 edition: "2015",
58 features: [
59 "default",
60 "libc",
61 "stock-zlib",
62 ],
63 rustlibs: [
64 "liblibc",
65 ],
Joel Galenson78439eb2021-06-01 13:23:38 -070066 shared_libs: ["libz"],
Jooyung Han02ab0702021-06-15 16:18:35 +090067 apex_available: [
68 "//apex_available:platform",
Roopa Sattiraju68ed6c62021-12-21 17:44:52 -080069 "com.android.bluetooth",
Jooyung Han02ab0702021-06-15 16:18:35 +090070 "com.android.virt",
71 ],
Roopa Sattiraju68ed6c62021-12-21 17:44:52 -080072 min_sdk_version: "29",
Jeff Vander Stoep52c10912020-10-14 23:27:21 +020073}