remove stub dependency on source_library

Since the source_library attribute of _cc_stub_library_shared was a
label attribute, the source library was added as a dependency of the
stub which doesn't always make sense. E.g. it caused validation actions
for the source library to run even when we weren't building the source
library.

This change converts the label attriubte to a string attribute so that
we don't add the dependency.

Bug: 263390551
Change-Id: I19c62d1e14847dff68ab37156452addaa119eaf9
This commit is contained in:
Sam Delmerico
2023-03-15 18:06:18 -04:00
parent a8c1cacaf9
commit 5f90649036
5 changed files with 27 additions and 25 deletions

View File

@@ -540,9 +540,9 @@ cc_library_shared {
},
Blueprint: soongCcLibraryPreamble,
ExpectedBazelTargets: []string{makeCcStubSuiteTargets("a", AttrNameToString{
"soname": `"a.so"`,
"source_library": `":a"`,
"stubs_symbol_file": `"a.map.txt"`,
"soname": `"a.so"`,
"source_library_label": `"//foo/bar:a"`,
"stubs_symbol_file": `"a.map.txt"`,
"stubs_versions": `[
"28",
"29",