diff options
author | Ken Gilmer <kgilmer@gmail.com> | 2019-12-07 13:34:32 -0800 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-12-07 23:34:32 +0200 |
commit | f7d54c96c155baae311567e247ae116887d900db (patch) | |
tree | b26003965aed18f445ba0894c381db5ba0e6cbd2 | |
parent | a17746e2aba63a7e55778a29012aaceb78fb2ba1 (diff) | |
download | meson-f7d54c96c155baae311567e247ae116887d900db.tar.gz |
Add brief description of configuring Vala's preprocessor via the add_project_arguments() function. [skip ci]
-rw-r--r-- | docs/markdown/Vala.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/markdown/Vala.md b/docs/markdown/Vala.md index 7081f8eb9..cbb58a962 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 |