Files
frameworks_base/tools/processors/unsupportedappusage/Android.bp
Mathew Inwood 4e2a44234e Fix SignatureBuilder.
It seems the compiler has started adding a top level MODULE which broke
assumptions made in here.

Also add some tests to verify this and other basic functionality, so that
future such breaks may be caught sooner.

Test: m framework-annotation-proc-index
Test: atest unsupportedappusage-processor-test
Bug: 144495446
Change-Id: I43efb25c1600af15809d48aa84498a6800f713b1
2019-11-15 15:13:03 +00:00

35 lines
948 B
Plaintext

java_library_host {
name: "unsupportedappusage-annotation-processor-lib",
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",
],
},
}
java_plugin {
name: "unsupportedappusage-annotation-processor",
processor_class: "android.processor.unsupportedappusage.UnsupportedAppUsageProcessor",
java_resources: [
"META-INF/**/*",
],
static_libs: [
"unsupportedappusage-annotation-processor-lib"
],
use_tools_jar: true,
}