xref: /aosp_15_r20/external/jarjar/Android.bp (revision 2ad288d840b55199d0b3f2e4799894000ba5aca9)
1// Copyright (C) 2014 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_applicable_licenses: ["external_jarjar_license"],
17}
18
19// Added automatically by a large-scale-change
20//
21// large-scale-change included anything that looked like it might be a license
22// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
23//
24// Please consider removing redundant or irrelevant files from 'license_text:'.
25// See: http://go/android-license-faq
26license {
27    name: "external_jarjar_license",
28    visibility: [":__subpackages__"],
29    license_kinds: [
30        "SPDX-license-identifier-Apache-2.0",
31    ],
32    license_text: [
33        "COPYING",
34        "LICENSE.txt",
35        "NOTICE",
36    ],
37}
38
39java_library_host {
40    name: "jarjar",
41    manifest: "manifest.txt",
42
43    srcs: [
44        "src/android/**/*.java",
45        "src/main/**/*.java",
46    ],
47    java_resource_dirs: ["res"],
48
49    static_libs: [
50        "ow2-asm",
51        "ow2-asm-commons",
52    ],
53
54    libs: [
55        "jarjar-maven-plugin-api",
56        "jarjar-apache-ant",
57    ],
58}
59
60java_test_host {
61    name: "jarjar-tests",
62    srcs: ["src/test/**/*.java"],
63    static_libs: [
64        "jarjar",
65        "junit",
66    ],
67    java_resource_dirs: ["src/test"],
68}
69
70//#################################################
71
72java_import_host {
73    name: "jarjar-maven-plugin-api",
74    jars: ["lib/maven-plugin-api.jar"],
75}
76
77java_import_host {
78    name: "jarjar-apache-ant",
79    jars: ["lib/apache-ant-1.9.4.jar"],
80}
81