From 1f5b5cb47318536cefde004d2253d368c868140f Mon Sep 17 00:00:00 2001 From: Andy Nichols Date: Sun, 2 Mar 2014 21:07:06 +0100 Subject: [PATCH] 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 --- config.tests/avfoundation/avfoundation.pro | 2 +- config.tests/avfoundation/main.mm | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.tests/avfoundation/avfoundation.pro b/config.tests/avfoundation/avfoundation.pro index 4554dc6..ac680d7 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 aa819cd..bb38353 100644 --- a/config.tests/avfoundation/main.mm +++ b/config.tests/avfoundation/main.mm @@ -39,9 +39,11 @@ ** ****************************************************************************/ +#import #import int main(int argc, char** argv) { + AVPlayer *player = [AVPlayer playerWithURL:[NSURL URLWithString:@"http://doesnotmatter.com"]]; return 0; } -- 2.7.4