Use namespace path instead of id in phonies.
Otherwise the phones' names depend on the sorting order of all the namespaces, which add unnecessary dependencies. Bug: 358425833 Test: CI Change-Id: Ic88a329ff320e508ece8e3b20c7497a28a619276
This commit is contained in:
@@ -1647,9 +1647,10 @@ func (m *ModuleBase) generateModuleTarget(ctx *moduleContext) {
|
|||||||
|
|
||||||
var deps Paths
|
var deps Paths
|
||||||
|
|
||||||
namespacePrefix := ctx.Namespace().id
|
var namespacePrefix string
|
||||||
if namespacePrefix != "" {
|
nameSpace := ctx.Namespace().Path
|
||||||
namespacePrefix = namespacePrefix + "-"
|
if nameSpace != "." {
|
||||||
|
namespacePrefix = strings.ReplaceAll(nameSpace, "/", ".") + "-"
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(allInstalledFiles) > 0 {
|
if len(allInstalledFiles) > 0 {
|
||||||
|
Reference in New Issue
Block a user