www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Meson build system user new to D.

reply Mike Brockus <michaelbrockus icloud.com> writes:
Hello everyone I am a Meson build system user and I am new to the 
D language, just wondering if there are compiler flags that I 
should add, unit testing frameworks, any good practices I can 
follow and or anything like that also some resources would be 
helpful thanks. (:
May 06 2019
next sibling parent Petar Kirov [ZombineDev] <petar.p.kirov gmail.com> writes:
On Monday, 6 May 2019 at 19:52:23 UTC, Mike Brockus wrote:
 Hello everyone I am a Meson build system user and I am new to 
 the D language, just wondering if there are compiler flags that 
 I should add, unit testing frameworks, any good practices I can 
 follow and or anything like that also some resources would be 
 helpful thanks. (:
Perhaps a good place to start is examining existing D projects that use Meson - for example mir-algorithm: https://github.com/libmir/mir-algorithm/blob/master/meson.build.
May 07 2019
prev sibling next sibling parent reply Andre Pany <andre s-e-a-p.de> writes:
On Monday, 6 May 2019 at 19:52:23 UTC, Mike Brockus wrote:
 Hello everyone I am a Meson build system user and I am new to 
 the D language, just wondering if there are compiler flags that 
 I should add, unit testing frameworks, any good practices I can 
 follow and or anything like that also some resources would be 
 helpful thanks. (:
While I heard Meson is working for D, the prefered choice, in case you have D only applications/libraries is Dub. If you also want build to build C/C++ together with D, Meson or other build systems are preferable. What is your use case? Kind regards Andre
May 08 2019
parent Mike Brockus <michaelbrockus icloud.com> writes:
On Wednesday, 8 May 2019 at 10:28:26 UTC, Andre Pany wrote:
 On Monday, 6 May 2019 at 19:52:23 UTC, Mike Brockus wrote:
 Hello everyone I am a Meson build system user and I am new to 
 the D language, just wondering if there are compiler flags 
 that I should add, unit testing frameworks, any good practices 
 I can follow and or anything like that also some resources 
 would be helpful thanks. (:
While I heard Meson is working for D, the prefered choice, in case you have D only applications/libraries is Dub. If you also want build to build C/C++ together with D, Meson or other build systems are preferable. What is your use case? Kind regards Andre
I did have a particular use case yet as I am just discovering the capabilities of D and I may say that I appreciate that it looks like both Python and C mixed into one allegiant programming language which makes it easy for me to learn.
May 09 2019
prev sibling parent Firstname Lastname <email example.org> writes:
On Monday, 6 May 2019 at 19:52:23 UTC, Mike Brockus wrote:
 Hello everyone I am a Meson build system user and I am new to 
 the D language, just wondering if there are compiler flags that 
 I should add, unit testing frameworks, any good practices I can 
 follow and or anything like that also some resources would be 
 helpful thanks. (:
D has built in unittests: https://tour.dlang.org/tour/en/gems/unittesting as for build systems, dub is the official one for D.
May 08 2019