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.
14 lines
528 B
14 lines
528 B
1 year ago
|
## `@GLOBAL_SOURCE_ROOT@` and `@DIRNAME@` in machine files
|
||
|
|
||
|
Some tokens are now replaced in the machine file before parsing it:
|
||
|
- `@GLOBAL_SOURCE_ROOT@`: the absolute path to the project's source tree
|
||
|
- `@DIRNAME@`: the absolute path to the machine file's parent directory.
|
||
|
|
||
|
It can be used, for example, to have paths relative to the source directory, or
|
||
|
relative to toolchain's installation directory.
|
||
|
```ini
|
||
|
[binaries]
|
||
|
c = '@DIRNAME@/toolchain/gcc'
|
||
|
exe_wrapper = '@GLOBAL_SOURCE_ROOT@' / 'build-aux' / 'my-exe-wrapper.sh'
|
||
|
```
|