|
@@ -434,6 +434,7 @@ type compilerAttributes struct {
|
|
|
|
|
|
features bazel.StringListAttribute
|
|
|
|
|
|
+ stem bazel.StringAttribute
|
|
|
suffix bazel.StringAttribute
|
|
|
|
|
|
fdoProfile bazel.LabelAttribute
|
|
@@ -819,6 +820,9 @@ func bp2BuildParseBaseProps(ctx android.Bp2buildMutatorContext, module *Module)
|
|
|
compilerAttrs.stubsVersions.SetSelectValue(axis, cfg, versions)
|
|
|
}
|
|
|
}
|
|
|
+ if stem := libraryProps.Stem; stem != nil {
|
|
|
+ compilerAttrs.stem.SetSelectValue(axis, cfg, stem)
|
|
|
+ }
|
|
|
if suffix := libraryProps.Suffix; suffix != nil {
|
|
|
compilerAttrs.suffix.SetSelectValue(axis, cfg, suffix)
|
|
|
}
|
|
@@ -1737,6 +1741,7 @@ func bazelLabelForSharedDepsExcludes(ctx android.BazelConversionPathContext, mod
|
|
|
|
|
|
type binaryLinkerAttrs struct {
|
|
|
Linkshared *bool
|
|
|
+ Stem bazel.StringAttribute
|
|
|
Suffix bazel.StringAttribute
|
|
|
}
|
|
|
|
|
@@ -1754,6 +1759,9 @@ func bp2buildBinaryLinkerProps(ctx android.BazelConversionPathContext, m *Module
|
|
|
// nonconfigurable attribute. Only 4 AOSP modules use this feature, defer handling
|
|
|
ctx.ModuleErrorf("bp2build cannot migrate a module with arch/target-specific static_executable values")
|
|
|
}
|
|
|
+ if stem := linkerProps.Stem; stem != nil {
|
|
|
+ attrs.Stem.SetSelectValue(axis, config, stem)
|
|
|
+ }
|
|
|
if suffix := linkerProps.Suffix; suffix != nil {
|
|
|
attrs.Suffix.SetSelectValue(axis, config, suffix)
|
|
|
}
|