summaryrefslogtreecommitdiff
path: root/qtmultimedia.pro
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>2013-05-28 09:57:08 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-28 21:53:31 +0200
commit3196d3869eb564565e875929af6a913de5c30c53 (patch)
tree32b109d73acc90fec374fbdc88b77db8df2b236c /qtmultimedia.pro
parent0f94c426838360704abab890b04973173712caa4 (diff)
downloadqtmultimedia-3196d3869eb564565e875929af6a913de5c30c53.tar.gz
Android: Fix compilation on Windows
The qtCompileTest function in configure.prf does not work when cross-compiling on Windows because it detects the wrong make executable. And it's anyway not the best way to do this, since what we really want to check for is the existence of the SDK version, whereas the compile test could potentially hide a lot of other problems under the same error message. Task-number: QTBUG-31405 Change-Id: I2c16b214e40bac5751d4e7098edcc30318756621 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com> Reviewed-by: Christian Stromme <christian.stromme@digia.com>
Diffstat (limited to 'qtmultimedia.pro')
-rw-r--r--qtmultimedia.pro4
1 files changed, 3 insertions, 1 deletions
diff --git a/qtmultimedia.pro b/qtmultimedia.pro
index 53f6b9886..672cbc942 100644
--- a/qtmultimedia.pro
+++ b/qtmultimedia.pro
@@ -9,7 +9,9 @@ win32 {
} else:mac {
qtCompileTest(avfoundation)
} else:android {
- !qtCompileTest(android):error("QtMultimedia for Android requires API level 11")
+ SDK_ROOT = $$(ANDROID_SDK_ROOT)
+ isEmpty(SDK_ROOT): SDK_ROOT = $$DEFAULT_ANDROID_SDK_ROOT
+ !exists($$SDK_ROOT/platforms/android-11/android.jar): error("QtMultimedia for Android requires API level 11")
} else {
qtCompileTest(alsa)
qtCompileTest(pulseaudio)