xref: /aosp_15_r20/external/jsr330/Android.bp (revision 3ff81872dd771505ae446579ad46cd1fa54f7475)
1// Copyright (C) 2016 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//
15
16//
17// Build support for jsr330 within the Android Open Source Project
18// See https://source.android.com/source/building.html for more information
19//
20
21// Target, host, and host-side dalvik build
22package {
23    default_applicable_licenses: ["external_jsr330_license"],
24}
25
26// Added automatically by a large-scale-change
27// See: http://go/android-license-faq
28license {
29    name: "external_jsr330_license",
30    visibility: [":__subpackages__"],
31    license_kinds: [
32        "SPDX-license-identifier-Apache-2.0",
33    ],
34    license_text: [
35        "NOTICE",
36    ],
37}
38
39java_library_static {
40    name: "jsr330",
41    host_supported: true,
42    hostdex: true,
43    sdk_version: "core_current",
44    srcs: ["src/**/*.java"],
45    apex_available: [
46        "//apex_available:platform",
47        "com.android.adservices",
48        "com.android.devicelock",
49        "com.android.extservices",
50        "com.android.healthfitness",
51        "com.android.mediaprovider",
52        "com.android.ondevicepersonalization",
53    ],
54}
55
56//
57// TCK (Test Compatibility Kit)
58// -- For DI frameworks that want to test compatibility with javax.
59java_library_host {
60    srcs: ["tck/**/*.java"],
61    name: "jsr330-tck",
62    libs: [
63        "jsr330",
64        "junit",
65    ],
66    errorprone: {
67        javacflags: [
68            "-Xep:OverridesJavaxInjectableMethod:WARN",
69        ],
70    },
71}
72