www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Wrapping a Dub project inside Meson

reply Adnan <contact.adnan.02 protonmail.com> writes:
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`.
Nov 21 2018
parent Andrea Fontana <nospam example.com> writes:
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
Nov 22 2018