diff options
author | Romain Jobredeaux <jobredeaux@google.com> | 2023-10-09 20:02:08 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-10-09 20:02:08 +0000 |
commit | 9e965d6fece27a77de5377433c2f7e6999b8cc0b (patch) | |
tree | a58049c9682d6fd38e8408479340bf3911b87515 /rules/android_library/rule.bzl | |
parent | 8d58e75763b3b83025a5d9402750b2033e184474 (diff) | |
parent | 2cec01026035db73c124100fa37115758f43e603 (diff) | |
download | bazelbuild-rules_android-main.tar.gz |
Merge remote-tracking branch 'aosp/upstream-main' into HEAD am: 39292a3354 am: 3956589553 am: c86e585873 am: fcbd2d1e8b am: 2cec010260HEADandroid-14.0.0_r51android-14.0.0_r50mastermainandroid14-qpr3-release
Original change: https://android-review.googlesource.com/c/platform/external/bazelbuild-rules_android/+/2777173
Change-Id: Ie236d2ec96dd9c2a4450131f4094623c8d3df462
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'rules/android_library/rule.bzl')
-rw-r--r-- | rules/android_library/rule.bzl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rules/android_library/rule.bzl b/rules/android_library/rule.bzl index e36bdd3..cd7af67 100644 --- a/rules/android_library/rule.bzl +++ b/rules/android_library/rule.bzl @@ -140,7 +140,8 @@ def make_rule( attrs = _ATTRS, implementation = _impl, outputs = _outputs, - additional_toolchains = []): + additional_toolchains = [], + additional_providers = []): """Makes the rule. Args: @@ -148,6 +149,7 @@ def make_rule( implementation: A function. The rule's implementation method. outputs: A dict, function, or None. The rule's outputs. additional_toolchains: A list. Additional toolchains passed to pass to rule(toolchains). + additional_providers: A list. Additional providers passed to pass to rule(providers). Returns: A rule. @@ -167,7 +169,7 @@ def make_rule( AndroidLibraryResourceClassJarProvider, AndroidNativeLibsInfo, JavaInfo, - ], + ] + additional_providers, outputs = outputs, toolchains = [ "//toolchains/android:toolchain_type", |