blob: ef6507da9e2c51b91ce695286d7c2fbdfdf0a4fd [file] [log] [blame]
Idries Hamadi41ad4ed2018-01-25 21:13:36 +00001//
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 Badoura3e6acb2021-02-12 17:08:32 -080017// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
18// CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
19// DEPENDING ON IT IN YOUR PROJECT. ***
20package {
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
38license {
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 Hamadi41ad4ed2018-01-25 21:13:36 +000050java_library_static {
51 name: "apkzlib_zip",
Idries Hamadi22710482018-06-15 16:22:56 +010052 sdk_version: "24",
Idries Hamadi41ad4ed2018-01-25 21:13:36 +000053 srcs: [
Idries Hamadife54ae32018-06-08 19:34:42 +010054 "src/main/java/com/android/tools/build/apkzlib/utils/**/*.java",
55 "src/main/java/com/android/tools/build/apkzlib/zip/**/*.java",
Idries Hamadi41ad4ed2018-01-25 21:13:36 +000056 ],
57 static_libs: ["guava"],
58}
59
60java_library_host {
61 name: "apkzlib",
Idries Hamadife54ae32018-06-08 19:34:42 +010062 srcs: [
63 "src/main/java/com/android/tools/build/apkzlib/**/*.java",
64 ],
Idries Hamadi41ad4ed2018-01-25 21:13:36 +000065 static_libs: ["guava", "apksig"],
66}