I just created a dub package. Frankly, the whole thign is backward.

Adam D Ruppe destructionator at gmail.com
Tue Apr 26 20:40:22 UTC 2022


On Tuesday, 26 April 2022 at 17:19:24 UTC, H. S. Teoh wrote:
> Can dub handle building multiple executables from different 
> subsets of source files in the same source tree?

Yes, you can define them as subpackages in the config. See my 
terminal emulator for example:

https://github.com/adamdruppe/terminal-emulator/blob/master/dub.json

dub run adr-terminalemulator:mactabs

for example.

The makefile is in many ways simpler though

https://github.com/adamdruppe/terminal-emulator/blob/master/Makefile

(and that makefile precedes dmd -i, which is how i'd do it now)



More information about the Digitalmars-d mailing list