aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Gilmer <kgilmer@gmail.com>2019-12-07 13:34:32 -0800
committerJussi Pakkanen <jpakkane@gmail.com>2019-12-07 23:34:32 +0200
commitf7d54c96c155baae311567e247ae116887d900db (patch)
treeb26003965aed18f445ba0894c381db5ba0e6cbd2
parenta17746e2aba63a7e55778a29012aaceb78fb2ba1 (diff)
downloadmeson-f7d54c96c155baae311567e247ae116887d900db.zip
meson-f7d54c96c155baae311567e247ae116887d900db.tar.gz
meson-f7d54c96c155baae311567e247ae116887d900db.tar.bz2
Add brief description of configuring Vala's preprocessor via the add_project_arguments() function. [skip ci]
-rw-r--r--docs/markdown/Vala.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/markdown/Vala.md b/docs/markdown/Vala.md
index 7081f8e..cbb58a9 100644
--- a/docs/markdown/Vala.md
+++ b/docs/markdown/Vala.md
@@ -251,7 +251,12 @@ The `find_library()` method of the Vala compiler object needs to have the `dir`
keyword added to include the project VAPI directory. This is not added
automatically by `add_project_arguments()`.
+### Working with the Vala Preprocessor
+Passing arguments to [Vala's preprocessor](https://wiki.gnome.org/Projects/Vala/Manual/Preprocessor) requires specifying the language as `c`. For example, the following statement sets the preprocessor symbol `FUSE_USE_VERSION` to the value `26`:
+```meson
+add_project_arguments('-DFUSE_USE_VERSION=26', language: 'c')
+```
## Building libraries