Android: Added config tests for multimedia on android.

The Android multimedia plug-in requires API level 11 to compile, so the
config test will check and issue a message about the requirement if the
API level can't be satisfied.

Change-Id: I6c21fe1255024e853023bd8168dfa917b00c4c23
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
Christian Strømme
2013-04-26 14:49:45 +02:00
committed by The Qt Project
parent 081395a749
commit ffb26b07c8
3 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
CONFIG += java
API_VERSION = android-11
JAVASOURCES += main.java

View File

@@ -0,0 +1,6 @@
import android.graphics.SurfaceTexture;
class BuildTest
{
public static void main(String [] args) { }
}

View File

@@ -8,6 +8,8 @@ win32 {
qtCompileTest(evr)
} else:mac {
qtCompileTest(avfoundation)
} else:android {
!qtCompileTest(android):error("QtMultimedia for Android requires API level 11")
} else {
qtCompileTest(alsa)
qtCompileTest(pulseaudio)