www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - How send parameters to DMD when using DUB

reply Marcone <marcone email.com> writes:
I need add Icon, resources, or manifest. But how can I make it 
using DUB?
Apr 19 2021
parent reply ryuukk_ <ryuukk_ gmail.com> writes:
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
parent ryuukk_ <ryuukk_ gmail.com> writes:
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