aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/native_property.md
blob: d3808d89502b41f00aa2d1f12b3d30aa57d78122 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## Native file properties

As of Meson 0.54.0, the `--native-file nativefile.ini` can contain:

* binaries
* paths
* properties

which are defined and used the same way as in cross files.
The `properties` are new for Meson 0.54.0, and are read like:

```meson
x = meson.get_external_property('foobar', 'foo')
```

where `foobar` is the property name, and the optional `foo` is the fallback string value.

For cross-compiled projects, `get_external_property()` reads the cross-file unless `native: true` is specified.