Add gensrcs module type

gensrcs allows sources to be generated by a specified command.

Change-Id: I725086fcdcd72bfe6c07fb8903e7b520678a247f
This commit is contained in:
Colin Cross
2015-03-18 13:28:46 -07:00
parent 70a255f3c9
commit 5049f02e60
7 changed files with 200 additions and 15 deletions

View File

@@ -26,6 +26,7 @@ import (
"android/soong/cc"
"android/soong/common"
"android/soong/config"
"android/soong/genrule"
)
func main() {
@@ -50,6 +51,8 @@ func main() {
ctx.RegisterModuleType("cc_library_host_shared", cc.NewCCLibraryHostShared)
ctx.RegisterModuleType("cc_binary_host", cc.NewCCBinaryHost)
ctx.RegisterModuleType("gensrcs", genrule.NewGenSrcs)
// Mutators
ctx.RegisterEarlyMutator("arch", common.ArchMutator)
ctx.RegisterEarlyMutator("link", cc.LinkageMutator)