Re: How add "version.txt" Version File by Command Line or by resources.res using dmd.exe
On Sunday, 8 December 2019 at 20:50:05 UTC, Marcone wrote: I want to add version to my program. I have configurated my version file "version.txt", but I dont know how link this file to my program. If Need spec file, please send the exemple code of spec. Or is is possible add version file by dmd command line or resources. Thank you. If you have a compiled Windows resource file (resources.res), you can pass it to DMD like any source file (dmd foo.d bar.d resources.res...).
Re: What's the difference between sourcePaths and importPaths in DUB?
On Monday, 18 November 2019 at 21:44:06 UTC, WhatMeWorry wrote: The documentation doesn't go into much detail: sourcePaths "" ["" [...]] Allows to customize the path where to look for source files (any folder "source" or "src" is automatically used as a source path if no sourcePaths setting is specified) - note that you usually also need to define "importPaths" as "sourcePaths" don't influence those sourcePaths are used when the package is compiled, importPaths are used for looking up imports so other packages which depends on the package knows where to look for them.
Re: How can I structure a Meson build project in D to use DUB.
On Tuesday, 28 May 2019 at 18:13:17 UTC, GoaLitiuM wrote: On Tuesday, 28 May 2019 at 18:11:09 UTC, Mike Brockus wrote: How can I structure a Meson build project in D to use dub as a method for dependencies like urld, d2sqlite or unit-threaded? If that is not what Meson users of D do then what is the pure Meson of things way? C https://github.com/squidfarts/c-example D https://github.com/squidfarts/d-example You simply change the method to dub for dependencies, as shown here: https://github.com/mesonbuild/meson/blob/master/test%20cases/d/11%20dub/meson.build#L8 (Maybe I posted too quickly without reading the post fully...) As for structuring, there is no special handling for dub projects specifically in Meson, but the dub dependencies must be fetched and built for the same compiler you have setup your Meson build to use, as Meson does not try to build the dependencies for you.
Re: How can I structure a Meson build project in D to use DUB.
On Tuesday, 28 May 2019 at 18:11:09 UTC, Mike Brockus wrote: How can I structure a Meson build project in D to use dub as a method for dependencies like urld, d2sqlite or unit-threaded? If that is not what Meson users of D do then what is the pure Meson of things way? C https://github.com/squidfarts/c-example D https://github.com/squidfarts/d-example You simply change the method to dub for dependencies, as shown here: https://github.com/mesonbuild/meson/blob/master/test%20cases/d/11%20dub/meson.build#L8