diff options
author | Remi Thebault <remi.thebault@gmail.com> | 2022-03-02 23:36:30 +0100 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2022-03-03 08:42:56 -0800 |
commit | 037fa77c64b3ac9da3f45ec25f76d1393a06b325 (patch) | |
tree | f923d796785f8be3de4963552f92d2aff117942e /docs/markdown | |
parent | 17303e16c11518c29bce284ca6957c416067967f (diff) | |
download | meson-037fa77c64b3ac9da3f45ec25f76d1393a06b325.zip meson-037fa77c64b3ac9da3f45ec25f76d1393a06b325.tar.gz meson-037fa77c64b3ac9da3f45ec25f76d1393a06b325.tar.bz2 |
Document D features in `declare_dependency`
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/D.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/markdown/D.md b/docs/markdown/D.md index 4a00a3b..c740d4b 100644 --- a/docs/markdown/D.md +++ b/docs/markdown/D.md @@ -35,6 +35,23 @@ project('myapp', 'd') executable('myapp', 'app.d', d_debug: [3, 'DebugFeatureA']) ``` +## In `declare_dependency` + +*Since 0.62.0*, when declaring your own dependency using `declare_dependency`, it is +possible to add parameters for D specific features, e.g. to propagate +conditional compilation versions: + +```meson +my_dep = declare_dependency( + # ... + d_module_features: ['LUA_53'], + d_import_dirs: include_directories('my_lua_folder'), +) +``` + +Accepted D specific parameters are `d_module_features` and +`d_import_dirs`. + ## Using embedded unittests If you are using embedded [unittest |