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
15droidstubs_host {
16    name: "ahat-docs-stubs",
17    srcs: [
18        "src/main/**/*.java",
19    ],
20    check_api: {
21        current: {
22            api_file: "etc/ahat_api.txt",
23            removed_api_file: "etc/ahat_removed_api.txt",
24        },
25    },
26    flags: ["-stubpackages com.android.ahat:com.android.ahat.*"],
27    create_doc_stubs: true,
28}
29
30droiddoc_host {
31    name: "ahat-docs",
32    srcs: [
33        ":ahat-docs-stubs",
34    ],
35    custom_template: "droiddoc-templates-sdk",
36    create_stubs: false,
37}
38
39// --- ahat.jar ----------------
40java_binary_host {
41    name: "ahat",
42    visibility: [
43        "//libcore/metrictests/memory/host",
44    ],
45    wrapper: "ahat",
46    srcs: ["src/main/**/*.java"],
47    manifest: "etc/ahat.mf",
48    java_resources: ["etc/style.css"],
49    javacflags: ["-Xdoclint:all/protected"],
50}
51
52// --- ahat-test-dump.jar --------------
53java_test_helper_library {
54    name: "ahat-test-dump",
55    srcs: ["src/test-dump/**/*.java"],
56    sdk_version: "core_platform",
57    optimize: {
58        obfuscate: true,
59        enabled: true,
60        proguard_flags_files: ["etc/test-dump.pro"],
61    },
62}
63
64// --- ahat-ri-test-dump.jar -------
65java_test_helper_library {
66    host_supported: true,
67    device_supported: false,
68    name: "ahat-ri-test-dump",
69    srcs: ["src/ri-test-dump/**/*.java"],
70}
71