Re: how to use dub to run all / chosen dependency lib's unittests

2022-09-19 Thread mw via Digitalmars-d-learn
On Monday, 19 September 2022 at 23:57:31 UTC, Steven Schveighoffer wrote: I don't see any specific command to do it in dub itself. I've recently discovered that `dub describe` gives you the directories of all your dependencies in a JSON format. I used this to write an install script for

Re: how to use dub to run all / chosen dependency lib's unittests

2022-09-19 Thread Steven Schveighoffer via Digitalmars-d-learn
On 9/19/22 7:48 PM, mw wrote: Hi, I'm using dub.json to specify the dependencies libs for my project. I'm just wondering how I can use dub to run all the tests of those dependencies libs (of the transitive closure of *all* the libs) to make sure my project is built on a very solid

how to use dub to run all / chosen dependency lib's unittests

2022-09-19 Thread mw via Digitalmars-d-learn
Hi, I'm using dub.json to specify the dependencies libs for my project. I'm just wondering how I can use dub to run all the tests of those dependencies libs (of the transitive closure of *all* the libs) to make sure my project is built on a very solid foundation? I know this could be very

Re: Setting import paths - project (dub) and also rdmd or dmd

2022-09-19 Thread Christian Köstlin via Digitalmars-d-learn
On 19.09.22 16:24, David wrote: Hi, New to D (and enjoying the learning..) I've probably missed something obvious but I'm slightly confused with the best way to achieve a simple build. I like to keep my reusable modules in a directory outside of the project directory so I can use them on

Re: Setting import paths - project (dub) and also rdmd or dmd

2022-09-19 Thread Steven Schveighoffer via Digitalmars-d-learn
On 9/19/22 10:24 AM, David wrote: TLDR: How do I automatically specify the -I to the compilers so I don't need to specify it manually each time ? For dmd, dmd.conf: https://dlang.org/dmd-osx.html#dmd-conf I believe for all compilers, there's an equivalent config file. -Steve

Setting import paths - project (dub) and also rdmd or dmd

2022-09-19 Thread David via Digitalmars-d-learn
Hi, New to D (and enjoying the learning..) I've probably missed something obvious but I'm slightly confused with the best way to achieve a simple build. I like to keep my reusable modules in a directory outside of the project directory so I can use them on another project for example. I

Override dub dflags for a single source file only

2022-09-19 Thread Per Nordlöw via Digitalmars-d-learn
In dub, is it possible to override the dflags, in my case `-cov`, for a single file only without it affecting the rest of the compiling and linking? Currently, dub enforces static linking of the dependencies when the `-cov` flag is set via `dflags "-cov"` in dub.sdl which makes our build

Re: Compiling dynamic library but not its dependencies with specific dflags

2022-09-19 Thread Per Nordlöw via Digitalmars-d-learn
On Sunday, 18 September 2022 at 08:24:27 UTC, Per Nordlöw wrote: Given shared library `X` depending on other shared libraries `Ys`, is it possible, using dub, to use extra `dflags` `F` when building the sources of `X` only and not have those extra flags `F` be used when (re)compiling `Ys`. In