dub: JSON, SDL, YAML, TOML, what color should we paint it ?
Adam D Ruppe
destructionator at gmail.com
Tue Feb 28 16:32:42 UTC 2023
On Tuesday, 28 February 2023 at 16:10:19 UTC, Steven
Schveighoffer wrote:
> module buildfile;
This isn't what I'm talking about at all.
I don't want to run D to build, I want to *introspect* D for
build info. You can read module names, dependencies (including
platform-specific and configuration-specific ones) right out of D
code. Author, description, license, etc., have standard ddoc
sections in D code.
Other things dub.json define like flags could easily be a UDA on
the module declaration and be pulled out pretty easily by
compilers or even relatively basic parsers.
Even subconfigurations can... kinda be pulled out of D code by
looking for version blocks though that's probably another thing
I'd put on a UDA.
More information about the Digitalmars-d
mailing list