Hide windows genrules from make
Make doesn't allow windows modules. Some genrules will need to support
windows so that they can be used by windows cc modules. Hide the windows
genrules from make so that it doesn't complain.
Bug: 372091092
Test: m nothing
Change-Id: I2153d87f2b36681389af5315d76df103b2bb5393
diff --git a/genrule/genrule.go b/genrule/genrule.go
index c029167..349615f 100644
--- a/genrule/genrule.go
+++ b/genrule/genrule.go
@@ -645,6 +645,12 @@
}
g.setOutputFiles(ctx)
+
+ if ctx.Os() == android.Windows {
+ // Make doesn't support windows:
+ // https://cs.android.com/android/platform/superproject/main/+/main:build/make/core/module_arch_supported.mk;l=66;drc=f264690860bb6ee7762784d6b7201aae057ba6f2
+ g.HideFromMake()
+ }
}
func (g *Module) setOutputFiles(ctx android.ModuleContext) {