diff options
Diffstat (limited to 'rules/android_library/attrs.bzl')
-rw-r--r-- | rules/android_library/attrs.bzl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/rules/android_library/attrs.bzl b/rules/android_library/attrs.bzl index 8924e70..2bc3a0d 100644 --- a/rules/android_library/attrs.bzl +++ b/rules/android_library/attrs.bzl @@ -137,6 +137,29 @@ ATTRS = _attrs.add( "for information about what this means." ), ), + idl_uses_aosp_compiler = attr.bool( + default = False, + doc = ( + "Use the upstream AOSP compiler to generate Java files out of `idl_srcs`." + + "The upstream AOSP compiler provides several new language features that the " + + "Google3-only compiler doesn't provide. For example: structured parcelables, " + + "unions, enums, nested type declarations, constant expressions, annotations, " + + "and more. " + + "See [AIDL Doc](https://source.android.com/docs/core/architecture/aidl/overview) " + + "for more details. " + + "Note: the use of the AOSP compiler in google3 is restricted due to performance " + + "considerations. This should not be broadly used unless these features are " + + "strictly required." + ), + ), + idlopts = attr.string_list( + mandatory = False, + allow_empty = True, + default = [], + doc = ( + "Add these flags to the AIDL compiler command." + ), + ), neverlink = attr.bool( default = False, doc = ( |