diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-10-11 16:16:25 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2016-10-13 07:03:13 +0000 |
commit | 6a7c0d101bfaef9b35881d2e6aa2cc979a6f21c8 (patch) | |
tree | 7ebf09226f3d8e32bb8ffcc4d5e5ac1dad567646 /tools | |
parent | a9567edd777a2406b941ab29345e424fee462530 (diff) |
Give better error on unsupported platforms
Add check for our supported and semi-supported platforms.
Task-number: QTBUG-56465
Change-Id: Ic2f934ceac1b21ab5c688fa67e1c1a74ddf4a43b
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qmake/mkspecs/features/functions.prf | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/qmake/mkspecs/features/functions.prf b/tools/qmake/mkspecs/features/functions.prf index cd4f4a007..23be1d2fa 100644 --- a/tools/qmake/mkspecs/features/functions.prf +++ b/tools/qmake/mkspecs/features/functions.prf @@ -55,9 +55,19 @@ defineTest(isPlatformSupported) { return(false) } !isPythonVersionSupported(): return(false) + !isArchSupported(): return(false) return(true) } +defineTest(isArchSupported) { + contains(QT_ARCH, "i386")|contains(QT_ARCH, "x86_64"): return(true) + contains(QT_ARCH, "arm")|contains(QT_ARCH, "arm64"): return(true) + contains(QT_ARCH, "mips")|contains(QT_ARCH, "mips64"): return(true) + + skipBuild("QtWebEngine can only be built for x86, x86-64, ARM, Aarch64, MIPSel, and MIPS64 architectures.") + return(false) +} + defineTest(isPythonVersionSupported) { python_error_msg = "Python version 2 (2.7.5 or later) is required to build Qt WebEngine." python_version = $$system('python -c "import sys; print(sys.version_info[0:3])"') |