Add initial support for use_version_lib.

Test: Resolves build error for BP2BUILD_VERBOSE=1 b build //packages/modules/adb:libadbd_core
Test: Added unit test

Bug: 208481704

Change-Id: I4022c686c7baf050de3f97295fe4654515622a66
This commit is contained in:
Rupert Shuttleworth
2021-12-10 07:22:53 -05:00
parent 8d0bd355fd
commit 484aa25875
4 changed files with 64 additions and 20 deletions

View File

@@ -450,3 +450,18 @@ func TestCcLibrarySharedProto(t *testing.T) {
},
})
}
func TestCcLibrarySharedUseVersionLib(t *testing.T) {
runCcLibrarySharedTestCase(t, bp2buildTestCase{
blueprint: soongCcProtoPreamble + `cc_library_shared {
name: "foo",
use_version_lib: true,
include_build_directory: false,
}`,
expectedBazelTargets: []string{
makeBazelTarget("cc_library_shared", "foo", attrNameToString{
"use_version_lib": "True",
}),
},
})
}