Merge "Add -{checkbuild,tidy} targets only for modules in mm" am: 7b2239f648
am: 6ac43742fc
am: 8044ebf38b
am: 9b872ac262
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1858736 Change-Id: I3f4649b20d93b7509ccdf1accdd227d4dc152173
This commit is contained in:
@@ -1768,8 +1768,14 @@ func (m *ModuleBase) generateModuleTarget(ctx ModuleContext) {
|
|||||||
ctx.VisitAllModuleVariants(func(module Module) {
|
ctx.VisitAllModuleVariants(func(module Module) {
|
||||||
a := module.base()
|
a := module.base()
|
||||||
allInstalledFiles = append(allInstalledFiles, a.installFiles...)
|
allInstalledFiles = append(allInstalledFiles, a.installFiles...)
|
||||||
allCheckbuildFiles = append(allCheckbuildFiles, a.checkbuildFiles...)
|
// A module's -{checkbuild,tidy} phony targets should
|
||||||
allTidyFiles = append(allTidyFiles, a.tidyFiles...)
|
// not be created if the module is not exported to make.
|
||||||
|
// Those could depend on the build target and fail to compile
|
||||||
|
// for the current build target.
|
||||||
|
if !ctx.Config().KatiEnabled() || !shouldSkipAndroidMkProcessing(a) {
|
||||||
|
allCheckbuildFiles = append(allCheckbuildFiles, a.checkbuildFiles...)
|
||||||
|
allTidyFiles = append(allTidyFiles, a.tidyFiles...)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
var deps Paths
|
var deps Paths
|
||||||
|
Reference in New Issue
Block a user