build: move QuartzCore linking to the cocoa check

It's needed for the DisplayLink functions so it must be enabled for the basic
cocoa code.
This commit is contained in:
Stefano Pigozzi 2015-02-25 22:13:07 +01:00
parent eb0db4d6fd
commit 8e80b3fd2f
3 changed files with 4 additions and 2 deletions

View File

@ -106,7 +106,7 @@ def check_cocoa(ctx, dependency_identifier):
fn = check_cc(
fragment = load_fragment('cocoa.m'),
compile_filename = 'test.m',
framework_name = ['Cocoa', 'IOKit', 'OpenGL'],
framework_name = ['Cocoa', 'IOKit', 'OpenGL', 'QuartzCore'],
includes = ctx.srcnode.abspath(),
linkflags = '-fobjc-arc')

View File

@ -9,5 +9,7 @@ int main(int argc, char **argv) {
NSArray *ary = @[@1, @2, @3];
NSLog(@"test subscripting: %@", ary[0]);
NSApplicationLoad();
CVDisplayLinkRef link;
CVDisplayLinkCreateWithCGDisplay(0, &link);
}
}

View File

@ -712,7 +712,7 @@ hwaccel_features = [
'deps': [ 'gl-cocoa', 'vda-hwaccel' ],
# apparently a bug in waf causes msg= to be needed when passing only
# framework= (it probably fails to infer it)
'func': check_cc(msg='QuartzCore', framework='QuartzCore')
'func': check_true
}, {
'name': '--vdpau-hwaccel',
'desc': 'libavcodec VDPAU hwaccel',