Stub/Impl selection for sdk variants
If a dependency has ndk stubs, then the sdk variant of the library should link against the ndk stub variant and not the impl/apex_stubs variant Unlike module-libapi, the depdendency does not go through an @api_surfaces external repo indirection. This indirection was created to support Multi-tree, and will likely be removed in the future Test: Added a unit test Bug: 298085502 Change-Id: Ie081e153fa586b6c22db0b8e42f91149fd8e5d9b
This commit is contained in:
@@ -71,6 +71,7 @@ const (
|
||||
|
||||
AndroidAndInApex = "android-in_apex"
|
||||
AndroidPlatform = "system"
|
||||
Unbundled_app = "unbundled_app"
|
||||
|
||||
InApex = "in_apex"
|
||||
NonApex = "non_apex"
|
||||
@@ -207,6 +208,7 @@ var (
|
||||
osAndInApexMap = map[string]string{
|
||||
AndroidAndInApex: "//build/bazel/rules/apex:android-in_apex",
|
||||
AndroidPlatform: "//build/bazel/rules/apex:system",
|
||||
Unbundled_app: "//build/bazel/rules/apex:unbundled_app",
|
||||
OsDarwin: "//build/bazel/platforms/os:darwin",
|
||||
OsLinux: "//build/bazel/platforms/os:linux_glibc",
|
||||
osLinuxMusl: "//build/bazel/platforms/os:linux_musl",
|
||||
|
Reference in New Issue
Block a user