November 22, 2018
Does anyone have experience with using meson to wrap around a dub project?

I have a typical dub project, meaning I have a dub dependency but I want to use meson for two reasons:

1. I want to distribute the application in form of a snap package (https://snapcraft.io/). Snapcraft does not recognize dub as a build tool afaik.

2. dub lacks very basic options like installing an app in users' PATH (https://github.com/dlang/dub/issues/839). The issue seems to be stalled for a while, which is quite a shame.

What I want to do is basically when I write `ninja` it should invoke `dub build`.
November 22, 2018
On Thursday, 22 November 2018 at 02:46:03 UTC, Adnan wrote:
> Does anyone have experience with using meson to wrap around a dub project?
>
> I have a typical dub project, meaning I have a dub dependency but I want to use meson for two reasons:
>
> 1. I want to distribute the application in form of a snap package (https://snapcraft.io/). Snapcraft does not recognize dub as a build tool afaik.
>
> 2. dub lacks very basic options like installing an app in users' PATH (https://github.com/dlang/dub/issues/839). The issue seems to be stalled for a while, which is quite a shame.
>
> What I want to do is basically when I write `ninja` it should invoke `dub build`.

I would like to have a "dub plugin" for snapcraft (and other packaging systems).
Adding "install" to dub sounds it's like re-inventing the wheel to me.

Andrea