Merge "bp2build special case for libcrypto_for_testing" am: c120ab33bc
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2178197 Change-Id: Ib0c72a093dbd343a79bbd7ac46a151f1c8c1bcdb Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -400,7 +400,7 @@ func libraryBp2Build(ctx android.TopDownMutatorContext, m *Module) {
|
||||
if props, ok := props.(*LibraryProperties); ok {
|
||||
if props.Inject_bssl_hash != nil {
|
||||
// This is an edge case applies only to libcrypto
|
||||
if m.Name() == "libcrypto" {
|
||||
if m.Name() == "libcrypto" || m.Name() == "libcrypto_for_testing" {
|
||||
sharedTargetAttrs.Inject_bssl_hash.SetSelectValue(axis, config, props.Inject_bssl_hash)
|
||||
} else {
|
||||
ctx.PropertyErrorf("inject_bssl_hash", "only applies to libcrypto")
|
||||
|
Reference in New Issue
Block a user