diff options
author | Andy Nichols <andy.nichols@digia.com> | 2014-03-02 21:07:06 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-03 14:55:17 +0100 |
commit | 1f5b5cb47318536cefde004d2253d368c868140f (patch) | |
tree | a6a42770122270d35da5b887b4c9cd15f787a12f /config.tests | |
parent | 4d31ec0793af1e4eb79f88888399641678d4a39e (diff) |
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>
Diffstat (limited to 'config.tests')
-rw-r--r-- | config.tests/avfoundation/avfoundation.pro | 2 | ||||
-rw-r--r-- | config.tests/avfoundation/main.mm | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/config.tests/avfoundation/avfoundation.pro b/config.tests/avfoundation/avfoundation.pro index 4554dc6a2..ac680d71b 100644 --- a/config.tests/avfoundation/avfoundation.pro +++ b/config.tests/avfoundation/avfoundation.pro @@ -1,3 +1,3 @@ OBJECTIVE_SOURCES += main.mm -LIBS += -framework AVFoundation +LIBS += -framework AVFoundation -framework Foundation diff --git a/config.tests/avfoundation/main.mm b/config.tests/avfoundation/main.mm index aa819cd17..bb383537c 100644 --- a/config.tests/avfoundation/main.mm +++ b/config.tests/avfoundation/main.mm @@ -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; } |