DUB: can I fully control the output file name?
rikki cattermole via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Aug 9 01:52:52 PDT 2016
On 09/08/2016 8:49 PM, timepp wrote:
> I'm writing a Total Commander plugin, which has the "wdx" file
> extension, so I wish to let dub generate xxx.wdx directly but not xxx.dll.
>
> How can I write my file to achieve this goal?
>
> ---
>
> my dub.json:
>
>
> {
> "name": "tckeyex",
> "targetType": "dynamicLibrary",
> "description": "A minimal D application.",
> "copyright": "Copyright 2016, idtong",
> "authors": ["idtong"],
> "sourceFiles": ["source/app.def"],
> "dependencies": {
> "wind": { "path": "thirdparty/wind" }
> }
> }
>
>
> and my build script:
>
> @echo off
>
> call makeversion.bat
>
> dub build -b release
> copy /y tckeyex.dll tckeyex.wdx
>
> dub build -b release -a x86_64
> copy /y tckeyex.dll tckeyex.wdx64
Sadly you can't set the extension, just the name.
I'm afraid you're stuck with postBuildCommands to change it.
More information about the Digitalmars-d-learn
mailing list