Idries Hamadi | 41ad4ed | 2018-01-25 21:13:36 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2018 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
Bob Badour | a3e6acb | 2021-02-12 17:08:32 -0800 | [diff] [blame] | 17 | // *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE |
| 18 | // CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE |
| 19 | // DEPENDING ON IT IN YOUR PROJECT. *** |
| 20 | package { |
| 21 | default_applicable_licenses: ["tools_apkzlib_license"], |
| 22 | } |
| 23 | |
| 24 | // Added automatically by a large-scale-change that took the approach of |
| 25 | // 'apply every license found to every target'. While this makes sure we respect |
| 26 | // every license restriction, it may not be entirely correct. |
| 27 | // |
| 28 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 29 | // |
| 30 | // Please consider splitting the single license below into multiple licenses, |
| 31 | // taking care not to lose any license_kind information, and overriding the |
| 32 | // default license using the 'licenses: [...]' property on targets as needed. |
| 33 | // |
| 34 | // For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| 35 | // to attach the license to, and including a comment whether the files may be |
| 36 | // used in the current project. |
| 37 | // See: http://go/android-license-faq |
| 38 | license { |
| 39 | name: "tools_apkzlib_license", |
| 40 | visibility: [":__subpackages__"], |
| 41 | license_kinds: [ |
| 42 | "SPDX-license-identifier-Apache-2.0", |
| 43 | "SPDX-license-identifier-GFDL", // by exception only |
| 44 | "SPDX-license-identifier-GPL", |
| 45 | "legacy_notice", |
| 46 | ], |
| 47 | // large-scale-change unable to identify any license_text files |
| 48 | } |
| 49 | |
Idries Hamadi | 41ad4ed | 2018-01-25 21:13:36 +0000 | [diff] [blame] | 50 | java_library_static { |
| 51 | name: "apkzlib_zip", |
Idries Hamadi | 2271048 | 2018-06-15 16:22:56 +0100 | [diff] [blame] | 52 | sdk_version: "24", |
Idries Hamadi | 41ad4ed | 2018-01-25 21:13:36 +0000 | [diff] [blame] | 53 | srcs: [ |
Idries Hamadi | fe54ae3 | 2018-06-08 19:34:42 +0100 | [diff] [blame] | 54 | "src/main/java/com/android/tools/build/apkzlib/utils/**/*.java", |
| 55 | "src/main/java/com/android/tools/build/apkzlib/zip/**/*.java", |
Idries Hamadi | 41ad4ed | 2018-01-25 21:13:36 +0000 | [diff] [blame] | 56 | ], |
| 57 | static_libs: ["guava"], |
| 58 | } |
| 59 | |
| 60 | java_library_host { |
| 61 | name: "apkzlib", |
Idries Hamadi | fe54ae3 | 2018-06-08 19:34:42 +0100 | [diff] [blame] | 62 | srcs: [ |
| 63 | "src/main/java/com/android/tools/build/apkzlib/**/*.java", |
| 64 | ], |
Idries Hamadi | 41ad4ed | 2018-01-25 21:13:36 +0000 | [diff] [blame] | 65 | static_libs: ["guava", "apksig"], |
| 66 | } |