aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-07-27 17:25:38 +0400
committerJussi Pakkanen <jpakkane@gmail.com>2019-09-30 22:17:50 +0300
commit01569fee2e8130b3ac54659c119e73180d3dafee (patch)
tree7fc3b94f3aa921e548455caca7f118ad42b0f677 /docs/markdown
parente32b0f8fbbd16b6cdd795a9a596eb56813620055 (diff)
downloadmeson-01569fee2e8130b3ac54659c119e73180d3dafee.zip
meson-01569fee2e8130b3ac54659c119e73180d3dafee.tar.gz
meson-01569fee2e8130b3ac54659c119e73180d3dafee.tar.bz2
Add depfile to configure_file()
In qemu, minikconf generates a depfile that meson could use to automatically reconfigure on dependency change. Note: someone clever can perhaps find a way to express this with a ninja rule & depfile=. I didn't manage, so I wrote a simple depfile parser.
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/Reference-manual.md3
-rw-r--r--docs/markdown/snippets/configure_file_enhancements.md3
2 files changed, 6 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 6009d30..176cde4 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -260,6 +260,9 @@ These are all the supported keyword arguments:
substitutions.
- `copy` *(added 0.47.0)* as explained above, if specified Meson only
copies the file from input to output.
+- `depfile` *(added 0.52.0)* is a dependency file that the command can write listing
+ all the additional files this target depends on. A change
+ in any one of these files triggers a reconfiguration.
- `format` *(added 0.46.0)* the format of defines. It defaults to `meson`, and so substitutes
`#mesondefine` statements and variables surrounded by `@` characters, you can also use `cmake`
to replace `#cmakedefine` statements and variables with the `${variable}` syntax. Finally you can use
diff --git a/docs/markdown/snippets/configure_file_enhancements.md b/docs/markdown/snippets/configure_file_enhancements.md
index 35a64b4..7fee7b2 100644
--- a/docs/markdown/snippets/configure_file_enhancements.md
+++ b/docs/markdown/snippets/configure_file_enhancements.md
@@ -1,3 +1,6 @@
## Enhancements to `configure_file()`
`input:` now accepts multiple input file names for `command:`-configured file.
+
+`depfile:` keyword argument is now accepted. The dependency file can
+list all the additional files the configure target depends on.