add dependency recommendation [skip ci]

Co-authored-by: Eli Schwartz <eschwartz@archlinux.org>
This commit is contained in:
Michael Brockus 2020-11-23 10:51:16 -08:00 committed by GitHub
parent 58640bdff9
commit 9d651fe61e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,14 @@ in Meson build scripts as identifiers for variable.
Let say you would like to refer to your executable so something like `my_exe`.
## Dependency usage
The `dependency` function is the recommended way to handle dependencies. If your wrap files
have the necessary `[provide]` entries, everything will work automatically both when
compiling your own and when using system dependencies.
You should only need `subproject` when you need to extract non dependencies/programs.
## Naming options
There are two ways of naming project options. As an example for