aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-11-13 16:05:00 -0500
committerMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2020-02-05 13:23:55 -0500
commit554d35c3f3eb8710d1a265dccd173cbf653258bf (patch)
tree3fcedb2bf48c32aecb2360e3b1e1980839199f79 /docs/markdown/snippets
parent6c963726cf7b9781fed55fd4ba41f81bca2d4dbb (diff)
downloadmeson-554d35c3f3eb8710d1a265dccd173cbf653258bf.zip
meson-554d35c3f3eb8710d1a265dccd173cbf653258bf.tar.gz
meson-554d35c3f3eb8710d1a265dccd173cbf653258bf.tar.bz2
add get_external_property to replace get_cross_property
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/native_property.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/markdown/snippets/native_property.md b/docs/markdown/snippets/native_property.md
index 6c49e80..3845fa1 100644
--- a/docs/markdown/snippets/native_property.md
+++ b/docs/markdown/snippets/native_property.md
@@ -1,6 +1,6 @@
## Native file properties
-As of Meson 0.53.0, the `--native-file foo.txt` can contain:
+As of Meson 0.53.0, the `--native-file nativefile.ini` can contain:
* binaries
* paths
@@ -10,7 +10,9 @@ 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')
+x = meson.get_external_property('foobar', 'foo')
```
-where `foobar` is the property name, and the optional `foo` is the fallback string value. \ No newline at end of file
+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