xref: /aosp_15_r20/external/xz-java/Android.bp (revision 21943e31f48dee19de75c78c0efeb8417c9a67d0)
1//
2// Copyright (C) 2011 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
16package {
17    default_applicable_licenses: ["external_xz-java_license"],
18}
19
20// Added automatically by a large-scale-change
21// See: http://go/android-license-faq
22license {
23    name: "external_xz-java_license",
24    visibility: [":__subpackages__"],
25    license_kinds: [
26        "legacy_unencumbered",
27    ],
28    license_text: [
29        "COPYING",
30    ],
31}
32
33java_library_static {
34    name: "xz-java",
35
36    srcs: ["src/**/*.java"],
37    java_resource_dirs: ["src"],
38
39    host_supported: true,
40    sdk_version: "current",
41    // TODO(b/237039251) use "apex_inherit" when Java modules support it
42    min_sdk_version: "29",
43    // b/267831518: Pin tradefed and dependencies to Java 11.
44    java_version: "11",
45    apex_available: [
46        "//apex_available:platform",
47        "com.android.virt",
48    ],
49}
50