Merge "Apply native_bridge suffix to all cc_modules"
am: 7636b362e1
Change-Id: I271439f2533475b074f68ad8119b13432fad5341
This commit is contained in:
@@ -28,10 +28,6 @@ import (
|
|||||||
"github.com/google/blueprint/bootstrap"
|
"github.com/google/blueprint/bootstrap"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
|
||||||
NativeBridgeSuffix = ".native_bridge"
|
|
||||||
)
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
RegisterSingletonType("androidmk", AndroidMkSingleton)
|
RegisterSingletonType("androidmk", AndroidMkSingleton)
|
||||||
}
|
}
|
||||||
@@ -165,10 +161,6 @@ func (a *AndroidMkEntries) fillInEntries(config Config, bpPath string, mod bluep
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if amod.Target().NativeBridge {
|
|
||||||
a.SubName += NativeBridgeSuffix
|
|
||||||
}
|
|
||||||
|
|
||||||
fmt.Fprintln(&a.header, "\ninclude $(CLEAR_VARS)")
|
fmt.Fprintln(&a.header, "\ninclude $(CLEAR_VARS)")
|
||||||
|
|
||||||
// Collect make variable assignment entries.
|
// Collect make variable assignment entries.
|
||||||
|
@@ -24,8 +24,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
vendorSuffix = ".vendor"
|
nativeBridgeSuffix = ".native_bridge"
|
||||||
recoverySuffix = ".recovery"
|
vendorSuffix = ".vendor"
|
||||||
|
recoverySuffix = ".recovery"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AndroidMkContext interface {
|
type AndroidMkContext interface {
|
||||||
@@ -105,6 +106,10 @@ func (c *Module) AndroidMk() android.AndroidMkData {
|
|||||||
}
|
}
|
||||||
c.subAndroidMk(&ret, c.installer)
|
c.subAndroidMk(&ret, c.installer)
|
||||||
|
|
||||||
|
if c.Target().NativeBridge == android.NativeBridgeEnabled {
|
||||||
|
ret.SubName += nativeBridgeSuffix
|
||||||
|
}
|
||||||
|
|
||||||
if c.useVndk() && c.hasVendorVariant() {
|
if c.useVndk() && c.hasVendorVariant() {
|
||||||
// .vendor suffix is added only when we will have two variants: core and vendor.
|
// .vendor suffix is added only when we will have two variants: core and vendor.
|
||||||
// The suffix is not added for vendor-only module.
|
// The suffix is not added for vendor-only module.
|
||||||
|
2
cc/cc.go
2
cc/cc.go
@@ -1826,7 +1826,7 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
|
|||||||
} else if ccDep.inRecovery() && !ccDep.onlyInRecovery() {
|
} else if ccDep.inRecovery() && !ccDep.onlyInRecovery() {
|
||||||
return libName + recoverySuffix
|
return libName + recoverySuffix
|
||||||
} else if ccDep.Target().NativeBridge == android.NativeBridgeEnabled {
|
} else if ccDep.Target().NativeBridge == android.NativeBridgeEnabled {
|
||||||
return libName + android.NativeBridgeSuffix
|
return libName + nativeBridgeSuffix
|
||||||
} else {
|
} else {
|
||||||
return libName
|
return libName
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user