digitalmars.D - How send parameters to DMD when using DUB
I need add Icon, resources, or manifest. But how can I make it using DUB?
Apr 19 2021
On Monday, 19 April 2021 at 23:31:58 UTC, Marcone wrote:I need add Icon, resources, or manifest. But how can I make it using DUB?I do it this way (only for compiled resource file that i edit using resource hacker) ```json "sourceFiles-windows": [ "ressources.res" ], ``` I'm not sure if that is the way to do it, i wish there was a simpler way, if anybody knows better, please let us know!
Apr 19 2021
And to reply to your original question "How send parameters to DMD when using DUB" It's easy: ```json "dflags": [ "-preview=rvaluerefparam" ], ``` For linker: ```json "lflags": [ "/SUBSYSTEM:windows", "/ENTRY:mainCRTStartup" ], ```
Apr 19 2021