diff options
| author | Xavier Claessens <xavier.claessens@collabora.com> | 2023-06-12 08:46:21 -0400 |
|---|---|---|
| committer | Xavier Claessens <xavier.claessens@collabora.com> | 2024-02-26 10:03:52 -0500 |
| commit | 435e881c18cda15fc4f8fc9e42f566cdc86cd791 (patch) | |
| tree | d913ae2b2e5fbad49276a228e55fe10aa7b49b4c /docs | |
| parent | 4d55645c397e2f338a09ebd1f0f564c64b98dafa (diff) | |
| download | meson-435e881c18cda15fc4f8fc9e42f566cdc86cd791.tar.gz | |
cargo: Call into meson subdir if it exists
This allows projects to manually add extra rust args and deps. This is
intended to replace build.rs logic.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/markdown/Wrap-dependency-system-manual.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/markdown/Wrap-dependency-system-manual.md b/docs/markdown/Wrap-dependency-system-manual.md index 70a7b3023..bba1971c4 100644 --- a/docs/markdown/Wrap-dependency-system-manual.md +++ b/docs/markdown/Wrap-dependency-system-manual.md @@ -356,6 +356,14 @@ project(..., ) ``` +In addition, if the file `meson/meson.build` exists, Meson will call `subdir('meson')` +where the project can add manual logic that would usually be part of `build.rs`. +Some naming conventions need to be respected: +- The `extra_args` variable is pre-defined and can be used to add any Rust arguments. + This is typically used as `extra_args += ['--cfg', 'foo']`. +- The `extra_deps` variable is pre-defined and can be used to add extra dependencies. + This is typically used as `extra_deps += dependency('foo')`. + ## Using wrapped projects Wraps provide a convenient way of obtaining a project into your |
