summaryrefslogtreecommitdiff
path: root/tools/processors/view_inspector/Android.bp
blob: 877a1d2b5fb36e3b4b9cef09c39516478ddfb0c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "frameworks_base_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["frameworks_base_license"],
}

java_library_host {
    name: "libview-inspector-annotation-processor",

    srcs: ["src/java/**/*.java"],
    java_resource_dirs: ["src/resources"],

    static_libs: [
        "javapoet",
        "stub-annotations",
    ],

    use_tools_jar: true,
}

java_plugin {
    name: "view-inspector-annotation-processor",

    processor_class: "android.processor.view.inspector.PlatformInspectableProcessor",

    static_libs: [
        "libview-inspector-annotation-processor",
    ],
}

java_test_host {
    name: "view-inspector-annotation-processor-test",

    srcs: ["test/java/**/*.java"],
    java_resource_dirs: ["test/resources"],

    static_libs: [
        "junit",
        "guava",
        "libview-inspector-annotation-processor",
    ],

    test_suites: ["general-tests"],
}