Create Stub targets for cc_library_(static|shared)

Fixes: 246958825
Test: Temporarily allowlist module and inspect BUILD.bazel
Change-Id: I4baeec2d873fefabd49ce77508630b82f759820a
This commit is contained in:
Trevor Radcliffe
2022-09-16 15:36:10 +00:00
parent a37ef6833b
commit 087af54772
4 changed files with 36 additions and 20 deletions

View File

@@ -487,6 +487,16 @@ cc_library_shared {
ExpectedBazelTargets: []string{MakeBazelTarget("cc_library_shared", "a", AttrNameToString{
"has_stubs": `True`,
}),
makeCcStubSuiteTargets("a", AttrNameToString{
"soname": `"a.so"`,
"source_library": `":a"`,
"stubs_symbol_file": `"a.map.txt"`,
"stubs_versions": `[
"28",
"29",
"current",
]`,
}),
},
},
)