AVFoundation: Improve config test

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>
This commit is contained in:
Andy Nichols
2014-03-02 21:07:06 +01:00
committed by The Qt Project
parent 4d31ec0793
commit 1f5b5cb473
2 changed files with 3 additions and 1 deletions

View File

@@ -1,3 +1,3 @@
OBJECTIVE_SOURCES += main.mm
LIBS += -framework AVFoundation
LIBS += -framework AVFoundation -framework Foundation

View File

@@ -39,9 +39,11 @@
**
****************************************************************************/
#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;
}