DUB conditional subPackage possible?
wjoe
fake at example.com
Thu Apr 11 14:41:56 UTC 2019
I want to include subPackages depending either on the presence of
command line options, or the availability of dependencies; think
Gentoo USE flags.
As far as I can tell it's not possible to specify configurations
in a modular way, e.g.
dub --config=withGUI --config=supportGTK --config=supportOpenGL
--config=supportPhysFS
And specifying a non-existent dependency halts the build.
"subConfiguration" looks like what I want but I can't really make
sense of it. There's just a one liner about it in the manual.
Is there a more verbose example ?
More information about the Digitalmars-d-learn
mailing list