summaryrefslogtreecommitdiff
path: root/docs/yaml/functions/find_program.yaml
AgeCommit message (Collapse)Author
2025-07-22Docs: standardize between list and array as arrayDylan Baker
When arrays were added they were called arrays. Because the are implemented with Python lists, that language started leaking into talking about Meson types. This is confusing. I've attempted, as much as possible, to move to using one name, array. I picked array because 1) It's the original name used, and 2) what Meson has are more properly arrays as they have a fixed length, while a critical property of lists are the ability to link and unlink them. There are a couple of places where the list language has leaked into the names of keyword arguments. I have not made any attempt to change those, I don't know if it's that useful or not.
2024-06-23find_program: add a kwarg to specify custom version argumentDudemanguy
When trying to get the version of a program, meson was previously hardcoded to run the binary with `--version`. This does work with the vast majority of programs, but there are a few outliers (e.g. ffmpeg) which have an unusual argument for printing out the version. Support these programs by introducing a version_argument kwarg in find_program which allows users to override `--version` with whatever the custom argument for printing the version may be for the program.
2024-02-18doc: fix descriptions of dependency and find_programEisuke Kawashima
They accept list as documented
2023-08-04Add default_options argument to find_program()Nomura
2023-06-06Override find_program('meson')Tristan Partin
This override transparently upgrades anyone using it to this better functionality. Fixes #8511
2022-03-31docs: note that find_program accepts file objectsEli Schwartz
This was implemented in commit 280346da3ac5904ec097afe89ef45ad34bd4a173 but never properly documented (it predated the version-controlled docs).
2022-01-29docs: find_program can return the current Python3 interpreterAndrea Pappacoda
This was the case since 067ff7eeae26eda8edc9f7f7432f551c3e373eaa, i.e. version 0.50.0. Fixes #3856
2021-11-05Fix markdown formating in find_program.yamlrusty-snake
fixes #9528
2021-10-03docs: Add the YAML Reference manualDaniel Mensinger