Thread overview
How send parameters to DMD when using DUB
Apr 19, 2021
Marcone
Apr 20, 2021
ryuukk_
Apr 20, 2021
ryuukk_
April 19, 2021

I need add Icon, resources, or manifest. But how can I make it using DUB?

April 20, 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)

"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!

April 20, 2021

And to reply to your original question

"How send parameters to DMD when using DUB"

It's easy:

"dflags": [
    "-preview=rvaluerefparam"
],

For linker:

"lflags": [
    "/SUBSYSTEM:windows",
    "/ENTRY:mainCRTStartup"
],