Using DUB packages with Meson

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Wed Apr 12 10:24:48 UTC 2023


I'm going to guess that you need to use the version specifier in the 
package name. Because I'm not seeing anything there to handle it 
specifically.

https://github.com/mesonbuild/meson/blob/master/mesonbuild/dependencies/dub.py

i.e. ``dub build [<package>[@<version-spec>]] [<options...>]``

So use ``package:sub at 1.0.2``.

Also I just noticed meson doesn't support shared libraries from dub, so 
something to keep in mind.


More information about the Digitalmars-d-learn mailing list