add release snippet for declare_dependency

pull/10070/head
Remi Thebault 3 years ago committed by Dylan Baker
parent 87c3c8426f
commit 5e4ea9f0f4
  1. 14
      docs/markdown/snippets/declare_dependency-d-features.md

@ -0,0 +1,14 @@
## D features in `declare_dependency`
`declare_dependency`accepts parameters for D specific features.
Accepted new parameters are `d_module_features` and `d_import_dirs`.
This can be useful to propagate conditional compilation versions. E.g.:
```meson
my_lua_dep = declare_dependency(
# ...
d_module_features: ['LUA_53'],
d_import_dirs: include_directories('my_lua_folder'),
)
```
Loading…
Cancel
Save