Assuming I have some project with tons of sub-projects, and in most cases I only need to compile few of them at once:
Project {
property stringList plugins: ["plugin3", "plugin4"] // this is set externally
references: plugins.map(function(p) { return "plugins/"+p+".qbs" })
}
Assuming plugin3
depends on plugin1
and plugin2
:
Depends { name: "plugin1" }
Depends { name: "plugin2" }
In that case, I would have to set plugins
property as:
plugins: ["plugin1", "plugin2", "plugin3", "plugin4"]
which is what I want to avoid. So, the question is: Is there a way to make subproject dependencies automatically added as project references
?
p.s. there is also an alternative way to make all sub-projects present, but conditionally disabled. Can I somehow make them enabled by dependent sub-project?