diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-01-20 14:14:50 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-03-09 22:55:04 -0800 |
commit | 39bb7aa31f1b2e659eeaf35cea87b933b2d56e99 (patch) | |
tree | 9102b81ad5953f7887cb7ea3f437e98e47032047 /docs | |
parent | d4bdd8318b4cc668325637def9098570e7e12256 (diff) | |
download | meson-39bb7aa31f1b2e659eeaf35cea87b933b2d56e99.zip meson-39bb7aa31f1b2e659eeaf35cea87b933b2d56e99.tar.gz meson-39bb7aa31f1b2e659eeaf35cea87b933b2d56e99.tar.bz2 |
docs: add a couple words about system dependencies
Diffstat (limited to 'docs')
-rw-r--r-- | docs/markdown/Dependencies.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/markdown/Dependencies.md b/docs/markdown/Dependencies.md index 2ac775b..c785e3c 100644 --- a/docs/markdown/Dependencies.md +++ b/docs/markdown/Dependencies.md @@ -152,6 +152,7 @@ The dependency method order for `auto` is: 1. `pkg-config` 2. `cmake` 3. `extraframework` (OSX only) + 4. `system` ## CMake @@ -266,6 +267,22 @@ dep = dependency('appleframeworks', modules : 'foundation') These dependencies can never be found for non-OSX hosts. +## System + +Some dependencies provide no valid methods for discovery, or do so only in +some cases. Some examples of this are Zlib, which provides both pkg-config +and cmake, except when it is part of the base OS image (such as in FreeBSD +and macOS); OpenGL which has pkg-config on Unices from glvnd or mesa, but has +no pkg-config on macOS and Windows. + +In these cases meson provides convenience wrappers in the form of `system` +dependencies. Internally these dependencies do exactly what a user would do +in the build system DSL or with a script, likely calling +`compiler.find_library()`, setting `link_with` and `include_directories`. By +putting these in meson upstream the barrier of using them is lowered, as +projects using meson don't have to re-implement the logic. + + ## Blocks Enable support for Clang's blocks extension. |