diff options
| author | 2018-09-05 10:01:21 -0700 | |
|---|---|---|
| committer | 2018-09-05 10:01:21 -0700 | |
| commit | 88924e0e24c70cbb6aaa4e8362c16ebccd6a98eb (patch) | |
| tree | 15bb674ae398e0c3a1d438f886031bbc83bcec08 /Android.bp | |
| parent | cf1c58cd473d927f4c12dbecd33cd99d02dd1e25 (diff) | |
| parent | d20588332d546ff9b7f145a45b00ebf05c37d9fe (diff) | |
Merge "Processor for @UnsupportedAppUsage annotations." am: e5440456ca am: 22ea0b7a52
am: d20588332d
Change-Id: I097550eeaf0307e3518aaf2d8e3f30338f9fa9dc
Diffstat (limited to 'Android.bp')
| -rw-r--r-- | Android.bp | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/Android.bp b/Android.bp index 970d66b6144d..dd49a67a79cf 100644 --- a/Android.bp +++ b/Android.bp @@ -25,8 +25,8 @@ // // READ ME: ######################################################## -java_library { - name: "framework", +java_defaults { + name: "framework-defaults", installable: true, srcs: [ @@ -703,12 +703,38 @@ java_library { "libmedia2_jni", ], - javac_shard_size: 150, - dxflags: [ "--core-library", "--multi-dex", ], + +} + +java_library { + name: "framework", + defaults: ["framework-defaults"], + javac_shard_size: 150, +} + +java_library { + name: "framework-annotation-proc", + defaults: ["framework-defaults"], + // Use UsedByApps annotation processor + annotation_processors: ["unsupportedappusage-annotation-processor"], + // b/25860419: annotation processors must be explicitly specified for grok + annotation_processor_classes: [ + "android.processor.unsupportedappusage.UsedByAppsProcessor", + ], +} + +// A host library including just UnsupportedAppUsage.java so that the annotation +// processor can also use this annotation. +java_library_host { + name: "unsupportedappusage-annotation", + srcs: [ + "core/java/android/annotation/IntDef.java", + "core/java/android/annotation/UnsupportedAppUsage.java", + ], } // A temporary build target that is conditionally included on the bootclasspath if |