The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.1 KiB
48 lines
1.1 KiB
name: external_program |
|
long_name: External program |
|
description: Opaque object representing an external program |
|
|
|
methods: |
|
- name: found |
|
returns: bool |
|
description: Returns whether the executable was found. |
|
|
|
- name: path |
|
returns: str |
|
deprecated: 0.55.0 |
|
description: | |
|
*Deprecated:* Use [[external_program.full_path]] instead. |
|
|
|
Returns a string pointing to the script or executable. |
|
|
|
**NOTE:** You should not need to use this method. Passing the object itself |
|
should work in all cases. |
|
|
|
For example: |
|
|
|
```meson |
|
run_command(find_program('foo'), 'arg1', 'arg2') |
|
``` |
|
|
|
- name: version |
|
returns: str |
|
since: 0.62.0 |
|
description: | |
|
The version number as a string, for example `1.2.8`. |
|
|
|
`unknown` if the program cannot determine the version via a `--version` argument. |
|
|
|
- name: full_path |
|
returns: str |
|
since: 0.55.0 |
|
description: | |
|
Returns a string pointing to the script or executable. |
|
|
|
**NOTE:** You should not need to use this method. Passing the object itself |
|
should work in all cases. |
|
|
|
For example: |
|
|
|
```meson |
|
run_command(find_program('foo'), 'arg1', 'arg2') |
|
```
|
|
|