summaryrefslogtreecommitdiff
path: root/docs/markdown/Commands.md
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2022-02-19 18:17:28 +0200
committerEli Schwartz <eschwartz93@gmail.com>2022-03-09 18:02:04 -0500
commit04ef7ec45d2a6b1f008b8cb52314ae0e71f16fa3 (patch)
treedbfee8994d8cd06e8badb2fa1953265f8b997aa7 /docs/markdown/Commands.md
parent139020c2fc83c3e46d8f474bbda90fe1493e1d27 (diff)
downloadmeson-04ef7ec45d2a6b1f008b8cb52314ae0e71f16fa3.tar.gz
Add new env2mfile command.
Diffstat (limited to 'docs/markdown/Commands.md')
-rw-r--r--docs/markdown/Commands.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/markdown/Commands.md b/docs/markdown/Commands.md
index 3542aa48c..f905d2ca5 100644
--- a/docs/markdown/Commands.md
+++ b/docs/markdown/Commands.md
@@ -150,6 +150,35 @@ Create a project in `sourcedir`:
meson init -C sourcedir
```
+### env2mfile
+
+*This command is experimental and subject to change.*
+
+*{Since 0.62.0}*
+
+{{ env2mfile_usage.inc }}
+
+Create native and cross files from the current environment, typically
+by sniffing environment variables like `CC` and `CFLAGS`.
+
+{{ env2mfile_arguments.inc }}
+
+#### Examples:
+
+Autodetect the current cross build environment:
+
+```
+meson env2mfile --cross -o current_cross.txt --cpu=arm7a --cpu-family=arm --system=linux
+```
+
+Generate a cross build using Debian system information:
+
+```
+meson env2mfile --cross --debarch=armhf -o deb_arm_cross.txt
+```
+
+
+
### introspect
{{ introspect_usage.inc }}