diff options
Diffstat (limited to 'docs/markdown/snippets/native_property.md')
-rw-r--r-- | docs/markdown/snippets/native_property.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/markdown/snippets/native_property.md b/docs/markdown/snippets/native_property.md new file mode 100644 index 0000000..6c49e80 --- /dev/null +++ b/docs/markdown/snippets/native_property.md @@ -0,0 +1,16 @@ +## Native file properties + +As of Meson 0.53.0, the `--native-file foo.txt` can contain: + +* binaries +* paths +* properties + +which are defined and used the same way as in cross files. +The `properties` are new for Meson 0.53.0, and are read like: + +```meson +x = meson.get_native_property('foobar', 'foo') +``` + +where `foobar` is the property name, and the optional `foo` is the fallback string value.
\ No newline at end of file |