aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2022-04-20 15:17:51 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2022-05-06 23:04:11 +0300
commitf9200ca8f7429d614dcb8c4144269461c6a7d9d9 (patch)
tree192030b5e3d301e3a5be272ecfd2e4ca2ab1b267 /docs
parent1e4d4fce2250ab415964ad89c1d8b2c649b0b00d (diff)
downloadmeson-f9200ca8f7429d614dcb8c4144269461c6a7d9d9.zip
meson-f9200ca8f7429d614dcb8c4144269461c6a7d9d9.tar.gz
meson-f9200ca8f7429d614dcb8c4144269461c6a7d9d9.tar.bz2
devenv: Set WINEPATH when cross compiling for Windows
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/Commands.md6
-rw-r--r--docs/markdown/snippets/devenv_winepath.md4
2 files changed, 10 insertions, 0 deletions
diff --git a/docs/markdown/Commands.md b/docs/markdown/Commands.md
index b137166..762cd2f 100644
--- a/docs/markdown/Commands.md
+++ b/docs/markdown/Commands.md
@@ -351,4 +351,10 @@ top build directory, that file is loaded by gdb automatically. In the case of
python scripts that needs to load other python modules, `PYTHONPATH` may need
to be modified using `meson.add_devenv()`.
+Since *Since 0.63.0* when cross compiling for Windows `WINEPATH` is used instead
+of `PATH` which allows running Windows executables using wine. Note that since
+`WINEPATH` size is currently limited to 1024 characters, paths relative to the
+root of build directory are used. That means current workdir must be the root of
+build directory when running wine.
+
{{ devenv_arguments.inc }}
diff --git a/docs/markdown/snippets/devenv_winepath.md b/docs/markdown/snippets/devenv_winepath.md
new file mode 100644
index 0000000..b9e24a0
--- /dev/null
+++ b/docs/markdown/snippets/devenv_winepath.md
@@ -0,0 +1,4 @@
+## Running Windows executables with Wine in `meson devenv`
+
+When cross compiling for Windows, `meson devenv` now sets `WINEPATH` pointing to
+all directories containing needed DLLs and executables.