Right now, to use the new JNI annotations you need to add two deps:
deps = ["//base:jni_processor_annotations_java"]
annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ]
We could make this simpler by adding an option to the java_library template that'll cause dependent java targets to run the processor. Ex:
// All targets that depend on this will now run the jni processor at compile time.
android_library("jni_processor_annotations_java") {
exported_annotation_processor_deps = "//base/android/jni_generator:jni_processor"
...
}
Comment 1 by agrieve@google.com
, Oct 25