xref: /aosp_15_r20/cts/tools/lint/Android.bp (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1// Copyright (C) 2024 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
15java_library_host {
16    name: "CtsLintChecker",
17    srcs: [
18        "checks/src/main/**/*.kt",
19    ],
20    plugins: ["auto_service_plugin"],
21    libs: [
22        "auto_service_annotations",
23        "lint_api",
24    ],
25    static_libs: [
26        "AndroidCommonLint",
27    ],
28    kotlincflags: [
29        "-Xjvm-default=all",
30    ],
31}
32
33java_test_host {
34    name: "CtsLintCheckerTest",
35    defaults: [
36        "AndroidLintCheckerTestDefaults",
37    ],
38    srcs: [
39        "checks/src/test/java/**/*.kt",
40    ],
41    static_libs: [
42        "CtsLintChecker",
43    ],
44}
45