Jooyung Han | 02ab070 | 2021-06-15 16:18:35 +0900 | [diff] [blame] | 1 | // This file is generated by cargo2android.py --config cargo2android.json. |
Joel Galenson | 78439eb | 2021-06-01 13:23:38 -0700 | [diff] [blame] | 2 | // Do not modify this file as changes will be overridden on upgrade. |
Jeff Vander Stoep | 52c1091 | 2020-10-14 23:27:21 +0200 | [diff] [blame] | 3 | |
Bob Badour | 2ca6853 | 2021-02-12 14:17:28 -0800 | [diff] [blame] | 4 | package { |
| 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 |
| 30 | license { |
| 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 Stoep | 52c1091 | 2020-10-14 23:27:21 +0200 | [diff] [blame] | 50 | rust_library { |
| 51 | name: "liblibz_sys", |
| 52 | host_supported: true, |
| 53 | crate_name: "libz_sys", |
Joel Galenson | 516f5da | 2021-11-29 14:04:13 -0800 | [diff] [blame] | 54 | cargo_env_compat: true, |
| 55 | cargo_pkg_version: "1.1.3", |
Jeff Vander Stoep | 52c1091 | 2020-10-14 23:27:21 +0200 | [diff] [blame] | 56 | srcs: ["src/lib.rs"], |
| 57 | edition: "2015", |
| 58 | features: [ |
| 59 | "default", |
| 60 | "libc", |
| 61 | "stock-zlib", |
| 62 | ], |
| 63 | rustlibs: [ |
| 64 | "liblibc", |
| 65 | ], |
Joel Galenson | 78439eb | 2021-06-01 13:23:38 -0700 | [diff] [blame] | 66 | shared_libs: ["libz"], |
Jooyung Han | 02ab070 | 2021-06-15 16:18:35 +0900 | [diff] [blame] | 67 | apex_available: [ |
| 68 | "//apex_available:platform", |
Roopa Sattiraju | 68ed6c6 | 2021-12-21 17:44:52 -0800 | [diff] [blame] | 69 | "com.android.bluetooth", |
Jooyung Han | 02ab070 | 2021-06-15 16:18:35 +0900 | [diff] [blame] | 70 | "com.android.virt", |
| 71 | ], |
Roopa Sattiraju | 68ed6c6 | 2021-12-21 17:44:52 -0800 | [diff] [blame] | 72 | min_sdk_version: "29", |
Jeff Vander Stoep | 52c1091 | 2020-10-14 23:27:21 +0200 | [diff] [blame] | 73 | } |