Support Rust in Product
Bug: 178565008 Bug: 165791368 Test: Build and link a Rust library into a product binary Change-Id: I9c5aa5f3a1f323af9aa2aee804635045f1b91bd4
This commit is contained in:
@@ -808,7 +808,11 @@ func (mod *Module) GenerateAndroidBuildActions(actx android.ModuleContext) {
|
||||
|
||||
// Differentiate static libraries that are vendor available
|
||||
if mod.UseVndk() {
|
||||
mod.Properties.SubName += cc.VendorSuffix
|
||||
if mod.InProduct() && !mod.OnlyInProduct() {
|
||||
mod.Properties.SubName += cc.ProductSuffix
|
||||
} else {
|
||||
mod.Properties.SubName += cc.VendorSuffix
|
||||
}
|
||||
} else if mod.InVendorRamdisk() && !mod.OnlyInVendorRamdisk() {
|
||||
mod.Properties.SubName += cc.VendorRamdiskSuffix
|
||||
} else if mod.InRecovery() && !mod.OnlyInRecovery() {
|
||||
|
Reference in New Issue
Block a user