From 807cbcb350d2a0255cc71f753cce980a081289fb Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 16 Jun 2022 11:29:41 -0400 Subject: external-project: Add depends kwarg The unit test was racy but surprisingly never failed on CI. The reason is we need to ensure ninja build somelib.so before running `make` into the external project. --- docs/markdown/External-Project-module.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/markdown') diff --git a/docs/markdown/External-Project-module.md b/docs/markdown/External-Project-module.md index 162d39d..f0bf2f7 100644 --- a/docs/markdown/External-Project-module.md +++ b/docs/markdown/External-Project-module.md @@ -87,6 +87,11 @@ Keyword arguments: and install the project will be printed onto Meson's stdout. - `env` : environment variables to set, such as `['NAME1=value1', 'NAME2=value2']`, a dictionary, or an [[@env]] object. +- `depends` : *Since 0.63.0* Specifies that this project depends on the specified + target(s) that must be built before running `make` to build this external + project. This should be used for example when the external project links to a + Meson `library()` that the `configure` script will find using the + `-uninstalled.pc` pkg-config file generated by Meson. Returns an [`ExternalProject`](#ExternalProject_object) object -- cgit v1.1