diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-10-04 22:19:07 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-04 22:19:07 +0300 |
| commit | 2d65472c725f18b343aee00bf91b9ac98c08b95f (patch) | |
| tree | 530a0d6ffee4ee96e875302cbeba660c93056d41 /docs/yaml/objects/external_program.yaml | |
| parent | 75dd9fb67f793c687fa45744f3b276e35c87ca09 (diff) | |
| parent | b672ebca886dd6dc9b0f775eb769764750fd302c (diff) | |
| download | meson-2d65472c725f18b343aee00bf91b9ac98c08b95f.tar.gz | |
Merge pull request #8960 from mensinda/yamlDoc
Reference Manual 2.0
Diffstat (limited to 'docs/yaml/objects/external_program.yaml')
| -rw-r--r-- | docs/yaml/objects/external_program.yaml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/docs/yaml/objects/external_program.yaml b/docs/yaml/objects/external_program.yaml new file mode 100644 index 000000000..02bf48f6b --- /dev/null +++ b/docs/yaml/objects/external_program.yaml @@ -0,0 +1,40 @@ +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: 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') + ``` |
