Using DUB packages with Meson

Dmitry Olshansky dmitry.olsh at gmail.com
Wed Apr 12 10:51:49 UTC 2023


On Wednesday, 12 April 2023 at 10:24:48 UTC, Richard (Rikki) 
Andrew Cattermole wrote:
> 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.

Oh, Rikki, you are so helpful. Thanks!

--
Dmitry Olshansky


More information about the Digitalmars-d-learn mailing list