[vlc-devel] [PATCH 3.0 02/41] contrib: qt: fix building for windows on windows
Steve Lhomme
robux4 at ycbcr.xyz
Tue Jul 7 15:11:01 CEST 2020
(cherry picked from commit 15f986e7ee72c9ddc0e56f1f554558a8cc708f2e)
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
---
contrib/src/qt/rules.mak | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/contrib/src/qt/rules.mak b/contrib/src/qt/rules.mak
index d70bcbc3a9..d2c0038f93 100644
--- a/contrib/src/qt/rules.mak
+++ b/contrib/src/qt/rules.mak
@@ -47,7 +47,11 @@ QT_SPEC := win32-clang-g++
else
QT_SPEC := win32-g++
endif
+ifdef HAVE_CROSS_COMPILE
QT_PLATFORM := -xplatform $(QT_SPEC) -device-option CROSS_COMPILE=$(HOST)-
+else
+QT_PLATFORM := -platform $(QT_SPEC)
+endif
endif
QT_CONFIG := -static -opensource -confirm-license -no-pkg-config \
--
2.26.2
More information about the vlc-devel
mailing list