Commit 09d74f05 authored by Max Kellermann's avatar Max Kellermann

python/meson: set exe_wrapper=wine for Windows builds

Allows running the unit tests on Linux.
parent 1af8694e
import os.path, subprocess, sys import os.path, subprocess, sys
import platform
from build.project import Project from build.project import Project
...@@ -43,9 +44,12 @@ strip = '{toolchain.strip}' ...@@ -43,9 +44,12 @@ strip = '{toolchain.strip}'
pkgconfig = '{toolchain.pkg_config}' pkgconfig = '{toolchain.pkg_config}'
""") """)
if toolchain.is_windows: if toolchain.is_windows and platform.system() != 'Windows':
f.write(f"windres = '{toolchain.windres}'\n") f.write(f"windres = '{toolchain.windres}'\n")
# Run unit tests with WINE when cross-building for Windows
print("exe_wrapper = 'wine'", file=f)
f.write(f""" f.write(f"""
[properties] [properties]
root = '{toolchain.install_prefix}' root = '{toolchain.install_prefix}'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment