xref: /aosp_15_r20/external/jsr330/Android.bp (revision 3ff81872dd771505ae446579ad46cd1fa54f7475)
1*3ff81872SXin Li// Copyright (C) 2016 The Android Open Source Project
2*3ff81872SXin Li//
3*3ff81872SXin Li// Licensed under the Apache License, Version 2.0 (the "License");
4*3ff81872SXin Li// you may not use this file except in compliance with the License.
5*3ff81872SXin Li// You may obtain a copy of the License at
6*3ff81872SXin Li//
7*3ff81872SXin Li//      http://www.apache.org/licenses/LICENSE-2.0
8*3ff81872SXin Li//
9*3ff81872SXin Li// Unless required by applicable law or agreed to in writing, software
10*3ff81872SXin Li// distributed under the License is distributed on an "AS IS" BASIS,
11*3ff81872SXin Li// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*3ff81872SXin Li// See the License for the specific language governing permissions and
13*3ff81872SXin Li// limitations under the License.
14*3ff81872SXin Li//
15*3ff81872SXin Li
16*3ff81872SXin Li//
17*3ff81872SXin Li// Build support for jsr330 within the Android Open Source Project
18*3ff81872SXin Li// See https://source.android.com/source/building.html for more information
19*3ff81872SXin Li//
20*3ff81872SXin Li
21*3ff81872SXin Li// Target, host, and host-side dalvik build
22*3ff81872SXin Lipackage {
23*3ff81872SXin Li    default_applicable_licenses: ["external_jsr330_license"],
24*3ff81872SXin Li}
25*3ff81872SXin Li
26*3ff81872SXin Li// Added automatically by a large-scale-change
27*3ff81872SXin Li// See: http://go/android-license-faq
28*3ff81872SXin Lilicense {
29*3ff81872SXin Li    name: "external_jsr330_license",
30*3ff81872SXin Li    visibility: [":__subpackages__"],
31*3ff81872SXin Li    license_kinds: [
32*3ff81872SXin Li        "SPDX-license-identifier-Apache-2.0",
33*3ff81872SXin Li    ],
34*3ff81872SXin Li    license_text: [
35*3ff81872SXin Li        "NOTICE",
36*3ff81872SXin Li    ],
37*3ff81872SXin Li}
38*3ff81872SXin Li
39*3ff81872SXin Lijava_library_static {
40*3ff81872SXin Li    name: "jsr330",
41*3ff81872SXin Li    host_supported: true,
42*3ff81872SXin Li    hostdex: true,
43*3ff81872SXin Li    sdk_version: "core_current",
44*3ff81872SXin Li    srcs: ["src/**/*.java"],
45*3ff81872SXin Li    apex_available: [
46*3ff81872SXin Li        "//apex_available:platform",
47*3ff81872SXin Li        "com.android.adservices",
48*3ff81872SXin Li        "com.android.devicelock",
49*3ff81872SXin Li        "com.android.extservices",
50*3ff81872SXin Li        "com.android.healthfitness",
51*3ff81872SXin Li        "com.android.mediaprovider",
52*3ff81872SXin Li        "com.android.ondevicepersonalization",
53*3ff81872SXin Li    ],
54*3ff81872SXin Li}
55*3ff81872SXin Li
56*3ff81872SXin Li//
57*3ff81872SXin Li// TCK (Test Compatibility Kit)
58*3ff81872SXin Li// -- For DI frameworks that want to test compatibility with javax.
59*3ff81872SXin Lijava_library_host {
60*3ff81872SXin Li    srcs: ["tck/**/*.java"],
61*3ff81872SXin Li    name: "jsr330-tck",
62*3ff81872SXin Li    libs: [
63*3ff81872SXin Li        "jsr330",
64*3ff81872SXin Li        "junit",
65*3ff81872SXin Li    ],
66*3ff81872SXin Li    errorprone: {
67*3ff81872SXin Li        javacflags: [
68*3ff81872SXin Li            "-Xep:OverridesJavaxInjectableMethod:WARN",
69*3ff81872SXin Li        ],
70*3ff81872SXin Li    },
71*3ff81872SXin Li}
72