Install multiple executables with DUB

glis-glis andreas.fueglistaler at
Thu Sep 3 12:41:46 UTC 2020

On Thursday, 3 September 2020 at 09:36:53 UTC, Jacob Carlborg 
> On Thursday, 3 September 2020 at 08:22:25 UTC, glis-glis wrote:
>> I usually would just write a makefile for that, but I thought 
>> I'd give DUB a go. Unfortunately, the DUB-documentation is a 
>> little thin and I cannot find a way to tell DUB
>> "compile all the files in the scripts folder and put the 
>> binary to the bin folder". How do I do that?
> By default Dub will compile all files in the `source` or `src` 
> directory and place the binary in the root directory of the 
> project. If you want to override that you can use the following 
> build settings `sourcePaths` or `sourceFiles` to override the 
> source directory. To override the output directory you can use 
> `targetPath` build setting. They are documented here [1][2].
> [1] For the SDL format: 
> [2] For the JSON format: 
> --
> /Jacob Carlborg

Yes I already tried that, but I get the error

Error: only one main allowed. Previously found main at 

Looks like DUB doesn't like multiple binaries?

More information about the Digitalmars-d-learn mailing list