Android: Support APK Java targets using @NativeMethods.
Currently, trying to use proxy natives in an APK target will result in multiple copies of GEN_JNI.class being added to the final jar since: * The jni_processor creates a GEN_JNI for the library target it runs on * The java_library_impl inside the APK target also adds a GEN_JNI to the output .jar because the final JNI step is a srcjar_dep APK targets now support the annotation_processor_deps and processor_args_javac args and must provide "org.chromium.chrome.skipGenJni" to use proxy natives. This CL also converts chromium_linker_test_apk__apk to use annotation_processor_deps directly instead of the workaround added in http://crrev.com/c/1758655. Bug: 1001595 Change-Id: Ifb31b7c52327b2793540142eb013d0c39cb6435e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1842297Reviewed-by:Andrew Grieve <agrieve@chromium.org> Commit-Queue: Eric Stevenson <estevenson@chromium.org> Cr-Commit-Position: refs/heads/master@{#706955}
Showing
Please register or sign in to comment