diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-10-04 22:19:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-04 22:19:07 +0300 |
commit | 2d65472c725f18b343aee00bf91b9ac98c08b95f (patch) | |
tree | 530a0d6ffee4ee96e875302cbeba660c93056d41 /docs/markdown/Vala.md | |
parent | 75dd9fb67f793c687fa45744f3b276e35c87ca09 (diff) | |
parent | b672ebca886dd6dc9b0f775eb769764750fd302c (diff) | |
download | meson-2d65472c725f18b343aee00bf91b9ac98c08b95f.zip meson-2d65472c725f18b343aee00bf91b9ac98c08b95f.tar.gz meson-2d65472c725f18b343aee00bf91b9ac98c08b95f.tar.bz2 |
Merge pull request #8960 from mensinda/yamlDoc
Reference Manual 2.0
Diffstat (limited to 'docs/markdown/Vala.md')
-rw-r--r-- | docs/markdown/Vala.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/markdown/Vala.md b/docs/markdown/Vala.md index 606cf0d..919e305 100644 --- a/docs/markdown/Vala.md +++ b/docs/markdown/Vala.md @@ -30,7 +30,7 @@ runtime type system. ## Using libraries -Meson uses the [`dependency()`](Reference-manual.md#dependency) +Meson uses the [[dependency]] function to find the relevant VAPI, C headers and linker flags when it encounters a Vala source file in a build target. Vala needs a VAPI file and a C header or headers to use a library. The VAPI file helps @@ -39,7 +39,7 @@ map Vala code to the library's C programming interface. It is the tool that makes finding these installed files all work seamlessly behind the scenes. When a `pkg-config` file doesn't exist for the library then the `find_library()` -method of the [compiler object](Reference-manual.md#compiler-object) +method of the [[@compiler]] object needs to be used. Examples are given later. Note Vala uses libraries that follow the C Application Binary Interface (C ABI). @@ -86,7 +86,7 @@ standard search path and so works just as seamlessly using the ### Targeting a version of GLib -Meson's [`dependency()`](Reference-manual.md#dependency) function +Meson's [[dependency]] function allows a version check of a library. This is often used to check a minimum version is installed. When setting a minimum version of GLib, Meson will also pass this to the Vala compiler using the @@ -287,7 +287,7 @@ add_project_arguments('-DFUSE_USE_VERSION=26', language: 'c') ### Changing C header and VAPI names -Meson's [`library`](Reference-manual.md#library) target automatically +Meson's [[library]] target automatically outputs the C header and the VAPI. They can be renamed by setting the `vala_header` and `vala_vapi` arguments respectively: |