Debian Codegraph @

subprojects/meson-docs/docs/yaml/functions/subdir_done.yaml

raw
1 name: subdir_done
2 returns: void
3 since: 0.46.0
4 description: |
5 Stops further interpretation of the Meson script file from the point
6 of the invocation. All steps executed up to this point are valid and
7 will be executed by Meson. This means that all targets defined before
8 the call of [[subdir_done]] will be built.
9
10 If the current script was called by `subdir`, the execution returns to
11 the calling directory and continues as if the script had reached the
12 end. If the current script is the top level script, Meson configures
13 the project as defined up to this point.
14
15 example: |
16 ```meson
17 project('example exit', 'cpp')
18 executable('exe1', 'exe1.cpp')
19 subdir_done()
20 executable('exe2', 'exe2.cpp')
21 ```
22
23 The executable `exe1` will be built, while the executable `exe2` is not
24 built.