aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/soong_build
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2015-03-17 13:24:18 -0700
committerColin Cross <ccross@android.com>2015-03-17 13:24:18 -0700
commit9454bfafcb0e4394acc83914414815939c391db3 (patch)
tree1bda5ffddb021c5063fc424401a96c9d27765442 /cmd/soong_build
parent3075ad07e4cb8bdc3074afbb364ca2b0bb296cd6 (diff)
downloadbuild_soong-9454bfafcb0e4394acc83914414815939c391db3.tar.gz
build_soong-9454bfafcb0e4394acc83914414815939c391db3.tar.bz2
build_soong-9454bfafcb0e4394acc83914414815939c391db3.zip
Add support for checkbuild target
Modules can choose to add "installed files", which are files that a product can depend on to cause the module to build, and "checkbuild files", which will only be built if another module that needs to build depends on them. For every target, add a module-install and a module-checkbuild target that create dependencies on those files, and then add a global checkbuild target that depends on all the module-checkbuild targets. Also add a module target for each module that depends on module-install and module-checkbuild. Change-Id: I801389ad6ab9806b71d92cd327a0f9cb7582e0df
Diffstat (limited to 'cmd/soong_build')
-rw-r--r--cmd/soong_build/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/soong_build/main.go b/cmd/soong_build/main.go
index c1999fe2..5c954a92 100644
--- a/cmd/soong_build/main.go
+++ b/cmd/soong_build/main.go
@@ -54,6 +54,7 @@ func main() {
ctx.RegisterEarlyMutator("link", cc.LinkageMutator)
// Singletons
+ ctx.RegisterSingletonType("checkbuild", common.CheckbuildSingleton)
configuration, err := config.New(srcDir)
if err != nil {