waf: Implement module dependency checking in the build system

- Do not build a test if a dependency is not enabled.

- Perform a dependency check and generate an error if an enabled module
  depends on a disabled module.

Closes #4077
This commit is contained in:
Chris Johns
2020-09-15 11:20:44 +10:00
parent c38f93b0c6
commit 7f7363f5f4
5 changed files with 143 additions and 104 deletions

View File

@@ -150,6 +150,7 @@ try:
build = builder.ModuleManager()
libbsd.load(build)
build.loadConfig()
build.generateBuild(only_enabled=False)
dups = build.duplicateCheck()