DWT Support Docs for Windows
JamesD via Digitalmars-d-dwt
digitalmars-d-dwt at puremagic.com
Sun Feb 19 20:25:51 PST 2017
On Friday, 10 February 2017 at 07:44:15 UTC, Jacob Carlborg wrote:
> On 2017-02-10 03:11, JamesD wrote:
>
>> The Eclipse DDT plugin creates a shell dub.json. My doc
>> "Config DWT GUI
>> for Eclipse DDT on Windows" shows how to edit this dub.json to
>> reference
>> the DWT imports and libraries.
>>
>> The Eclipse DDT plugin basically executes the "dub build -b"
>> command.
>> By default, it is the debug version. Also by default, dub
>> reads the
>> dub.json file so the app.d can link to the DWT libraries.
>>
>> The user can certainly execute the commands manually or in a
>> windows
>> batch file - I'm working on another doc for that process as
>> well.
>
> Claiming that there are only two build targets, default and
> unittest, is not correct. Perhaps it's only possible to build
> these two targets from DDT.
>
> I don't think it's the right approach to hijack the "unittest"
> target to build a release build. If the issue is that DDT can
> only build two targets than that should: A. be fixed, B. be
> properly explained in your docs and that it's possible to build
> the release target from the command line.
>
> Since DDT, I assume, is leveraging Dub to do all the dependency
> tracking, configuration and building it's very simple to build
> in the same way as DDT does on the command line.
Thank you for your constructive feedback!
Correct, only 2 build targets in DDT at this time;
(default)
(default):unittest
I agree that hijacking unittest is not the best approach. What I
am doing now is to edit the (default) build target as follows.
Original: ${DUB_TOOL_PATH} build
Modified: ${DUB_TOOL_PATH} build -b=release
I leave the (default):unittest unmodified as follows.
Original: ${DUB_TOOL_PATH} build -b unittest
Thanks for your suggestions about updating my docs. I plan to as
I learn and time permitting.
Yes, DDT is indeed leveraging DUB to do the builds. Obviously,
DDT will allow me to crate a batch file or whatever for other
build methods, but DUB is convenient for linking with the DWT
library.
More information about the Digitalmars-d-dwt
mailing list