blob: 43f47e9da52d6b4b37dcb9642368182efd61e835 [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 {
Bob Badour4e6f02e2022-01-19 17:11:43 -080021 // See: http://go/android-license-faq
22 default_applicable_licenses: ["Android-Apache-2.0"],
Bob Badoura3e6acb2021-02-12 17:08:32 -080023}
24
Bob Badoura3e6acb2021-02-12 17:08:32 -080025license {
Bob Badour4e6f02e2022-01-19 17:11:43 -080026 name: "tools_apkzlib_testdata_license",
27 visibility: ["//visibility:private"],
Bob Badoura3e6acb2021-02-12 17:08:32 -080028 license_kinds: [
Bob Badoura3e6acb2021-02-12 17:08:32 -080029 "SPDX-license-identifier-GFDL", // by exception only
30 "SPDX-license-identifier-GPL",
31 "legacy_notice",
32 ],
Bob Badour4e6f02e2022-01-19 17:11:43 -080033}
34
35filegroup {
36 name: "tools_apkzlib_testdata",
37 srcs: ["src/test/resources/testData/**/*"],
38 visibility: ["//visibility:private"],
39 licenses: ["tools_apkzlib_testdata_license"],
Bob Badoura3e6acb2021-02-12 17:08:32 -080040}
41
Idries Hamadi41ad4ed2018-01-25 21:13:36 +000042java_library_static {
43 name: "apkzlib_zip",
Idries Hamadi22710482018-06-15 16:22:56 +010044 sdk_version: "24",
Idries Hamadi41ad4ed2018-01-25 21:13:36 +000045 srcs: [
Idries Hamadife54ae32018-06-08 19:34:42 +010046 "src/main/java/com/android/tools/build/apkzlib/utils/**/*.java",
47 "src/main/java/com/android/tools/build/apkzlib/zip/**/*.java",
Idries Hamadi41ad4ed2018-01-25 21:13:36 +000048 ],
49 static_libs: ["guava"],
50}
51
52java_library_host {
53 name: "apkzlib",
Idries Hamadife54ae32018-06-08 19:34:42 +010054 srcs: [
55 "src/main/java/com/android/tools/build/apkzlib/**/*.java",
56 ],
Idries Hamadi41ad4ed2018-01-25 21:13:36 +000057 static_libs: ["guava", "apksig"],
58}