Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bull <me@justinbull.ca>2020-03-22 13:22:15 +0300
committerJean-Baptiste Kempf <jb@videolan.org>2020-03-22 13:22:15 +0300
commit0c0b9ef4585c6cc5217b505d5ea6486828b30fce (patch)
tree425702f0902eb6efd59fc5e3cb1efe729f65f77c /README.md
parent7783a5baf419999d74f36305f64ee1c58c023eff (diff)
Add crosscompile config files for 32, 64-bit Windows and 32-bit Linux
Diffstat (limited to 'README.md')
-rw-r--r--README.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/README.md b/README.md
index b833ec1..edccb2f 100644
--- a/README.md
+++ b/README.md
@@ -78,6 +78,28 @@ The [VideoLAN Code of Conduct](https://wiki.videolan.org/CoC) applies to this pr
3. Run `meson ..` to configure meson, add `--default-library=static` if static linking is desired
4. Run `ninja` to compile
+## Cross-Compilation for 32- or 64-bit Windows, 32-bit Linux
+
+If you're on a linux build machine trying to compile .exe for a Windows target/host machine, run
+
+```
+meson build --cross-file=package/crossfiles/x86_64-w64-mingw32.meson
+```
+
+or, for 32-bit:
+
+```
+meson build --cross-file=package/crossfiles/i686-w64-mingw32.meson
+```
+
+`mingw-w64` is a pre-requisite and should be installed on your linux machine via your preferred method or package manager. Note the binary name formats may differ between distributions. Verify the names, and use `alias` if certain binaries cannot be found.
+
+For 32-bit linux, run
+
+```
+meson build --cross-file=package/crossfiles/i686-linux32.meson
+```
+
# Run tests
1. In the root directory, run `git clone https://code.videolan.org/videolan/dav1d-test-data.git tests/dav1d-test-data` to fetch the test data repository