Prototype buildsystem "Drake"

Jacob Carlborg doob at me.com
Fri Jul 15 02:18:40 PDT 2011


On 2011-07-14 04:53, Andrej Mitrovic wrote:
> Why build a tool anyway? Why not make a build library that we can use
> in our build scripts?
>
> Then we just import the library in our `build.d` script, write the
> build script with the help of those library functions, and let the
> user run `rdmd build.d`. No need to install any tools, just run rdmd.
>
> I'm already using this approach for DWinProj., the only issue is that
> the build script is a little large (~300 lines), but a lot of its code
> could be put into a library (e.g. it has file traversing, parallel
> builds, checking if all tools are present, checking if all libraries
> are present, converting header files, etc..).
>
> This would reduce the script to a few dozen lines. And that's probably
> what I'll do to make my other projects easier to build.

If you want to run arbitrary tasks with the build tool? You would need 
some handling of command line arguments. It just seems more complicated 
than having a dedicated build tool

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list