From d7e56f5ec9c2a69c14102333c653bce2146bb6bd Mon Sep 17 00:00:00 2001 From: Remi Thebault Date: Sun, 1 May 2022 15:42:47 +0200 Subject: complete documentation of declare_dependency --- docs/markdown/D.md | 3 ++- docs/yaml/functions/declare_dependency.yaml | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/markdown/D.md b/docs/markdown/D.md index 501f1db..7ade5c8 100644 --- a/docs/markdown/D.md +++ b/docs/markdown/D.md @@ -49,7 +49,8 @@ my_dep = declare_dependency( ) ``` -Accepted D specific parameters are `d_module_versions` and `d_import_dirs`. +Accepted D specific parameters are `d_module_versions` and `d_import_dirs` +(DMD `-J` switch). ## Using embedded unittests diff --git a/docs/yaml/functions/declare_dependency.yaml b/docs/yaml/functions/declare_dependency.yaml index f043d1d..bcc8343 100644 --- a/docs/yaml/functions/declare_dependency.yaml +++ b/docs/yaml/functions/declare_dependency.yaml @@ -57,3 +57,17 @@ kwargs: this is meant to be used in subprojects where special variables would be provided via cmake or pkg-config. *since 0.56.0* it can also be a list of `'key=value'` strings. + + d_module_versions: + type: str | list[str] + since: 0.62.0 + description: | + a string or a list of strings, + the D versions to add during the compilation of D source files + + d_import_dirs: + type: list[inc | str] + since: 0.62.0 + description: | + the directories to add to the string search path (i.e. `-J` switch for DMD). + Must be [[@inc]] objects or plain strings. -- cgit v1.1