AVFoundation: Improve config test
authorAndy Nichols <andy.nichols@digia.com>
Sun, 2 Mar 2014 20:07:06 +0000 (21:07 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 3 Mar 2014 13:55:17 +0000 (14:55 +0100)
This should prevent the avfoundation plugin from being built on system
that can not support using it (ex. 32bit builds on OS X 10.7)

Task-number: QTBUG-36239
Change-Id: I9f861b7580b0e015ddbc1231440d677bf6eee1ec
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
config.tests/avfoundation/avfoundation.pro
config.tests/avfoundation/main.mm

index 4554dc6..ac680d7 100644 (file)
@@ -1,3 +1,3 @@
 OBJECTIVE_SOURCES += main.mm
 
-LIBS += -framework AVFoundation
+LIBS += -framework AVFoundation -framework Foundation
index aa819cd..bb38353 100644 (file)
 **
 ****************************************************************************/
 
+#import <Foundation/Foundation.h>
 #import <AVFoundation/AVFoundation.h>
 
 int main(int argc, char** argv)
 {
+    AVPlayer *player = [AVPlayer playerWithURL:[NSURL URLWithString:@"http://doesnotmatter.com"]];
     return 0;
 }