1313# limitations under the License.
1414"""Implementation."""
1515
16+ load ("@rules_cc//cc/common:cc_common.bzl" , "cc_common" )
17+ load ("@rules_cc//cc/common:cc_info.bzl" , "CcInfo" )
18+ load ("@rules_java//java/common:java_info.bzl" , "JavaInfo" )
19+ load ("@rules_java//java/common:java_plugin_info.bzl" , "JavaPluginInfo" )
20+ load ("@rules_java//java/common:proguard_spec_info.bzl" , "ProguardSpecInfo" )
1621load ("//providers:providers.bzl" , "AndroidCcLinkParamsInfo" , "AndroidIdlInfo" , "AndroidLibraryAarInfo" , "AndroidLintRulesInfo" , "AndroidNativeLibsInfo" , "BaselineProfileProvider" , "DataBindingV2Info" , "StarlarkAndroidResourcesInfo" , "StarlarkApkInfo" )
1722load ("//rules:acls.bzl" , "acls" )
1823load ("//rules:attrs.bzl" , _attrs = "attrs" )
2833)
2934load ("//rules:proguard.bzl" , _proguard = "proguard" )
3035load ("//rules:resources.bzl" , _resources = "resources" )
31- load ("//rules:utils.bzl" , "get_android_sdk" , "get_android_toolchain" , "log" , "utils" )
36+ load ("//rules:utils.bzl" , "ANDROID_PIPELINE_TOOLCHAIN_TYPE" , " get_android_sdk" , "get_android_toolchain" , "log" , "utils" )
3237load ("//rules:visibility.bzl" , "PROJECT_VISIBILITY" )
3338load ("//rules/flags:flags.bzl" , _flags = "flags" )
34- load ("@rules_cc//cc/common:cc_common.bzl" , "cc_common" )
35- load ("@rules_cc//cc/common:cc_info.bzl" , "CcInfo" )
36- load ("@rules_java//java/common:java_info.bzl" , "JavaInfo" )
37- load ("@rules_java//java/common:java_plugin_info.bzl" , "JavaPluginInfo" )
38- load ("@rules_java//java/common:proguard_spec_info.bzl" , "ProguardSpecInfo" )
3939
4040visibility (PROJECT_VISIBILITY )
4141
@@ -585,7 +585,7 @@ def finalize(
585585 ])
586586 return providers
587587
588- _PROCESSING_PIPELINE = processing_pipeline .make_processing_pipeline (
588+ PROCESSING_PIPELINE = processing_pipeline .make_processing_pipeline (
589589 processors = PROCESSORS ,
590590 finalize = finalize ,
591591)
@@ -600,4 +600,5 @@ def impl(ctx):
600600 A legacy struct provider.
601601 """
602602 java_package = _java .resolve_package_from_label (ctx .label , ctx .attr .custom_package )
603- return processing_pipeline .run (ctx , java_package , _PROCESSING_PIPELINE )
603+ pipeline = ctx .toolchains [ANDROID_PIPELINE_TOOLCHAIN_TYPE ]
604+ return processing_pipeline .run (ctx , java_package , pipeline or PROCESSING_PIPELINE )
0 commit comments