Loading bp2build/apex_conversion_test.go +3 −3 Original line number Diff line number Diff line Loading @@ -1192,7 +1192,7 @@ apex { }), MakeBazelTarget("cc_stub_suite", "foo_stub_libs", AttrNameToString{ "soname": `"foo.so"`, "source_library": `":foo"`, "source_library_label": `"//:foo"`, "symbol_file": `"foo.map.txt"`, "versions": `[ "28", Loading bp2build/cc_library_conversion_test.go +3 −3 Original line number Diff line number Diff line Loading @@ -2781,7 +2781,7 @@ func TestCcLibraryStubs(t *testing.T) { }) expectedBazelTargets = append(expectedBazelTargets, makeCcStubSuiteTargets("a", AttrNameToString{ "soname": `"a.so"`, "source_library": `":a"`, "source_library_label": `"//foo/bar:a"`, "stubs_symbol_file": `"a.map.txt"`, "stubs_versions": `[ "28", Loading bp2build/cc_library_shared_conversion_test.go +3 −3 Original line number Diff line number Diff line Loading @@ -541,7 +541,7 @@ cc_library_shared { Blueprint: soongCcLibraryPreamble, ExpectedBazelTargets: []string{makeCcStubSuiteTargets("a", AttrNameToString{ "soname": `"a.so"`, "source_library": `":a"`, "source_library_label": `"//foo/bar:a"`, "stubs_symbol_file": `"a.map.txt"`, "stubs_versions": `[ "28", Loading bp2build/testing.go +6 −4 Original line number Diff line number Diff line Loading @@ -626,13 +626,15 @@ func makeCcStubSuiteTargets(name string, attrs AttrNameToString) string { "stubs_symbol_file": "symbol_file", "stubs_versions": "versions", "soname": "soname", "source_library": "source_library", "source_library_label": "source_library_label", } stubSuiteAttrs := AttrNameToString{} for key, _ := range attrs { if _, stubSuiteAttr := STUB_SUITE_ATTRS[key]; stubSuiteAttr { stubSuiteAttrs[STUB_SUITE_ATTRS[key]] = attrs[key] } else { panic(fmt.Sprintf("unused cc_stub_suite attr %q\n", key)) } } return MakeBazelTarget("cc_stub_suite", name+"_stub_libs", stubSuiteAttrs) Loading cc/library.go +12 −12 Original line number Diff line number Diff line Loading @@ -458,7 +458,7 @@ func createStubsBazelTargetIfNeeded(ctx android.TopDownMutatorContext, m *Module Versions: compilerAttrs.stubsVersions, Export_includes: exportedIncludes.Includes, Soname: &soname, Source_library: *bazel.MakeLabelAttribute(":" + m.Name()), Source_library_label: proptools.StringPtr(m.GetBazelLabel(ctx, m)), Deps: baseAttributes.deps, } ctx.CreateBazelTargetModule(stubSuitesProps, Loading Loading @@ -3036,7 +3036,7 @@ type bazelCcStubSuiteAttributes struct { Symbol_file *string Versions bazel.StringListAttribute Export_includes bazel.StringListAttribute Source_library bazel.LabelAttribute Source_library_label *string Soname *string Deps bazel.LabelListAttribute } Loading Loading
bp2build/apex_conversion_test.go +3 −3 Original line number Diff line number Diff line Loading @@ -1192,7 +1192,7 @@ apex { }), MakeBazelTarget("cc_stub_suite", "foo_stub_libs", AttrNameToString{ "soname": `"foo.so"`, "source_library": `":foo"`, "source_library_label": `"//:foo"`, "symbol_file": `"foo.map.txt"`, "versions": `[ "28", Loading
bp2build/cc_library_conversion_test.go +3 −3 Original line number Diff line number Diff line Loading @@ -2781,7 +2781,7 @@ func TestCcLibraryStubs(t *testing.T) { }) expectedBazelTargets = append(expectedBazelTargets, makeCcStubSuiteTargets("a", AttrNameToString{ "soname": `"a.so"`, "source_library": `":a"`, "source_library_label": `"//foo/bar:a"`, "stubs_symbol_file": `"a.map.txt"`, "stubs_versions": `[ "28", Loading
bp2build/cc_library_shared_conversion_test.go +3 −3 Original line number Diff line number Diff line Loading @@ -541,7 +541,7 @@ cc_library_shared { Blueprint: soongCcLibraryPreamble, ExpectedBazelTargets: []string{makeCcStubSuiteTargets("a", AttrNameToString{ "soname": `"a.so"`, "source_library": `":a"`, "source_library_label": `"//foo/bar:a"`, "stubs_symbol_file": `"a.map.txt"`, "stubs_versions": `[ "28", Loading
bp2build/testing.go +6 −4 Original line number Diff line number Diff line Loading @@ -626,13 +626,15 @@ func makeCcStubSuiteTargets(name string, attrs AttrNameToString) string { "stubs_symbol_file": "symbol_file", "stubs_versions": "versions", "soname": "soname", "source_library": "source_library", "source_library_label": "source_library_label", } stubSuiteAttrs := AttrNameToString{} for key, _ := range attrs { if _, stubSuiteAttr := STUB_SUITE_ATTRS[key]; stubSuiteAttr { stubSuiteAttrs[STUB_SUITE_ATTRS[key]] = attrs[key] } else { panic(fmt.Sprintf("unused cc_stub_suite attr %q\n", key)) } } return MakeBazelTarget("cc_stub_suite", name+"_stub_libs", stubSuiteAttrs) Loading
cc/library.go +12 −12 Original line number Diff line number Diff line Loading @@ -458,7 +458,7 @@ func createStubsBazelTargetIfNeeded(ctx android.TopDownMutatorContext, m *Module Versions: compilerAttrs.stubsVersions, Export_includes: exportedIncludes.Includes, Soname: &soname, Source_library: *bazel.MakeLabelAttribute(":" + m.Name()), Source_library_label: proptools.StringPtr(m.GetBazelLabel(ctx, m)), Deps: baseAttributes.deps, } ctx.CreateBazelTargetModule(stubSuitesProps, Loading Loading @@ -3036,7 +3036,7 @@ type bazelCcStubSuiteAttributes struct { Symbol_file *string Versions bazel.StringListAttribute Export_includes bazel.StringListAttribute Source_library bazel.LabelAttribute Source_library_label *string Soname *string Deps bazel.LabelListAttribute } Loading