1// Copyright (C) 2010 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
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20java_library_host {
21    name: "api-coverage",
22
23    srcs: [
24        "**/*.java",
25        "proto/**/*.proto",
26    ],
27
28    proto: {
29        type: "full",
30        local_include_dirs: ["proto"],
31    },
32
33    java_resource_dirs: ["res"],
34
35    static_libs: [
36        "compatibility-host-util",
37        "dexlib2",
38        // This tool is not checking any dependencies or metadata, so all of the
39        // dependencies of all of the tests must be on its classpath. This is
40        // super fragile.
41        "tradefed",
42        "platformprotos",
43    ],
44}
45
46java_binary_host {
47    name: "cts-api-coverage",
48    wrapper: "etc/cts-api-coverage",
49    static_libs: ["api-coverage"],
50    manifest: "MANIFEST.mf",
51}
52
53
54java_binary_host {
55    name: "ndk-api-report",
56    wrapper: "etc/ndk-api-report",
57    static_libs: ["api-coverage"],
58    manifest: "MANIFEST.mf",
59}
60