From 04ef7ec45d2a6b1f008b8cb52314ae0e71f16fa3 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 19 Feb 2022 18:17:28 +0200 Subject: Add new env2mfile command. --- docs/markdown/Commands.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'docs/markdown/Commands.md') 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 }} -- cgit v1.2.3