From 3196d3869eb564565e875929af6a913de5c30c53 Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Tue, 28 May 2013 09:57:08 +0200 Subject: 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 Reviewed-by: Paul Olav Tvete Reviewed-by: Christian Stromme --- qtmultimedia.pro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qtmultimedia.pro') 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) -- cgit v1.2.3