Android: Refactor GN templates to unify prebuilt & non-prebuilt logic

Makes it easier to add a java_annotation_processor() template

This removes main_class from java_prebuilt() in favor of using
java_binary() with a jar_path.

Bug: 792170
Cq-Include-Trybots: master.tryserver.chromium.android:android_cronet_tester;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I8b92addae2228398f911d9456b9c55d5ebf48529
Reviewed-on: https://chromium-review.googlesource.com/810032
Reviewed-by: Andrei Kapishnikov <[email protected]>
Reviewed-by: Eric Stevenson <[email protected]>
Commit-Queue: agrieve <[email protected]>
Cr-Commit-Position: refs/heads/master@{#522220}
GitOrigin-RevId: 4227e23c8166bcf278455bc553c3fec566c2075d
1 file changed
tree: 05e499a3ac9ba6d619f98351da88fa4571fcf9b5
  1. src/
  2. BUILD.gn
  3. OWNERS