Merge "Differentiate between public and module-lib stub variants" am: 9e1117bf66

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2536351

Change-Id: Ib6c39451e239c6fc92aab62c3b2e2435a524481b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2023-04-14 03:12:45 +00:00
committed by Automerger Merge Worker

View File

@@ -1858,6 +1858,10 @@ func GetSubnameProperty(actx android.ModuleContext, c LinkableInterface) string
if c.SplitPerApiLevel() {
subName += "." + c.SdkVersion()
}
} else if c.IsStubs() && c.IsSdkVariant() {
// Public API surface (NDK)
// Add a suffix to this stub variant to distinguish it from the module-lib stub variant.
subName = sdkSuffix
}
return subName