From f7d54c96c155baae311567e247ae116887d900db Mon Sep 17 00:00:00 2001 From: Ken Gilmer Date: Sat, 7 Dec 2019 13:34:32 -0800 Subject: Add brief description of configuring Vala's preprocessor via the add_project_arguments() function. [skip ci] --- docs/markdown/Vala.md | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.1