1// Copyright 2018 Google Inc. All rights reserved.
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
15package {
16    // See: http://go/android-license-faq
17    // A large-scale-change added 'default_applicable_licenses' to import
18    // all of the 'license_kinds' from "art_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-Apache-2.0
21    default_applicable_licenses: ["art_license"],
22}
23
24droidstubs_host {
25    name: "ahat-docs-stubs",
26    srcs: [
27        "src/main/**/*.java",
28    ],
29    check_api: {
30        current: {
31            api_file: "etc/ahat_api.txt",
32            removed_api_file: "etc/ahat_removed_api.txt",
33        },
34    },
35    flags: ["-stubpackages com.android.ahat:com.android.ahat.*"],
36    create_doc_stubs: true,
37}
38
39droiddoc_host {
40    name: "ahat-docs",
41    srcs: [
42        ":ahat-docs-stubs",
43    ],
44    custom_template: "droiddoc-templates-sdk",
45}
46
47// --- ahat.jar ----------------
48java_binary_host {
49    name: "ahat",
50    visibility: [
51        "//libcore/metrictests/memory/host",
52    ],
53    wrapper: "ahat",
54    srcs: ["src/main/**/*.java"],
55    manifest: "etc/ahat.mf",
56    java_resources: ["etc/style.css"],
57    javacflags: ["-Xdoclint:all/protected"],
58}
59
60// --- ahat-test-dump.jar --------------
61java_test_helper_library {
62    name: "ahat-test-dump",
63    srcs: ["src/test-dump/**/*.java"],
64    sdk_version: "core_platform",
65    optimize: {
66        obfuscate: true,
67        enabled: true,
68        proguard_flags_files: ["etc/test-dump.pro"],
69    },
70}
71
72// --- ahat-ri-test-dump.jar -------
73java_test_helper_library {
74    host_supported: true,
75    device_supported: false,
76    name: "ahat-ri-test-dump",
77    srcs: ["src/ri-test-dump/**/*.java"],
78}
79