summaryrefslogtreecommitdiffstats
path: root/tools/processors/unsupportedappusage/Android.bp
blob: 0e33fddcde075e99388f01eb2485b5f8ff781b79 (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

java_plugin {
    name: "unsupportedappusage-annotation-processor",
    processor_class: "android.processor.unsupportedappusage.UnsupportedAppUsageProcessor",

    java_resources: [
        "META-INF/**/*",
    ],
    srcs: [
        "src/**/*.java",
    ],
    static_libs: [
        "guava",
        "unsupportedappusage-annotation"
    ],
    openjdk9: {
        javacflags: [
            "--add-modules=jdk.compiler",
            "--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
            "--add-exports jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
            "--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
            "--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
        ],
    },

    use_tools_jar: true,
}