As a side-effect from #8885 `find_program()` returns now `Executable` objects when `meson.override_find_program` is called with an executable target. To resolve this conflict the missing methods from `ExternalProgram` are added to `BuildTarget`.pull/8912/head
parent
2e8729a7e6
commit
5cd9f88d6c
6 changed files with 59 additions and 9 deletions
@ -0,0 +1,16 @@ |
||||
## New `build target` methods |
||||
|
||||
The [`build target` object](Reference-manual.md#build-target-object) now supports |
||||
the following two functions, to ensure feature compatebility with |
||||
[`external program` objects](Reference-manual.html#external-program-object): |
||||
|
||||
- `found()`: Always returns `true`. This function is meant |
||||
to make executables objects feature compatible with |
||||
`external program` objects. This simplifies |
||||
use-cases where an executable is used instead of an external program. |
||||
|
||||
- `path()`: **(deprecated)** does the exact same as `full_path()`. |
||||
**NOTE:** This function is solely kept for compatebility |
||||
with `external program` objects. It will be |
||||
removed once the, also deprecated, corresponding `path()` function in the |
||||
`external program` object is removed. |
Loading…
Reference in new issue