1// This file is generated by cargo2android.py --config cargo2android.json. 2// Do not modify this file as changes will be overridden on upgrade. 3 4package { 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 50rust_library { 51 name: "liblibz_sys", 52 host_supported: true, 53 crate_name: "libz_sys", 54 cargo_env_compat: true, 55 cargo_pkg_version: "1.1.3", 56 srcs: ["src/lib.rs"], 57 edition: "2015", 58 features: [ 59 "default", 60 "libc", 61 "stock-zlib", 62 ], 63 rustlibs: [ 64 "liblibc", 65 ], 66 shared_libs: ["libz"], 67 apex_available: [ 68 "//apex_available:platform", 69 "com.android.bluetooth", 70 "com.android.virt", 71 ], 72 min_sdk_version: "29", 73} 74