mirror of https://github.com/mpv-player/mpv
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:
parent
eb0db4d6fd
commit
8e80b3fd2f
|
@ -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')
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
2
wscript
2
wscript
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue