diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2020-02-05 23:34:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-05 23:34:16 +0200 |
commit | 8978717b6b51652bd455efbb6867f3f5799726c9 (patch) | |
tree | 711bfac83d629ab25de0544247ea449b925f8614 /docs/markdown/snippets | |
parent | 42931a82e12f79bf2c428fded0f1a9609e1dcb83 (diff) | |
parent | a4e4d2e75a25d4254e13ce0d6e3486f87e2d027a (diff) | |
download | meson-8978717b6b51652bd455efbb6867f3f5799726c9.zip meson-8978717b6b51652bd455efbb6867f3f5799726c9.tar.gz meson-8978717b6b51652bd455efbb6867f3f5799726c9.tar.bz2 |
Merge pull request #6161 from scivision/native_property
add meson.get_external_property()
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/native_property.md | 18 |
1 files changed, 18 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..d3808d8 --- /dev/null +++ b/docs/markdown/snippets/native_property.md @@ -0,0 +1,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.
\ No newline at end of file |