[vlc-commits] contrib: qt: fix building for windows on windows

Steve Lhomme git at videolan.org
Tue May 15 18:35:02 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon May 14 15:56:21 2018 +0200| [15f986e7ee72c9ddc0e56f1f554558a8cc708f2e] | committer: Steve Lhomme

contrib: qt: fix building for windows on windows

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=15f986e7ee72c9ddc0e56f1f554558a8cc708f2e
---

 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 48b5077a17..fe972038e5 100644
--- a/contrib/src/qt/rules.mak
+++ b/contrib/src/qt/rules.mak
@@ -43,7 +43,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 \



More information about the vlc-commits mailing list