summaryrefslogtreecommitdiffstats
path: root/waftools
diff options
context:
space:
mode:
Diffstat (limited to 'waftools')
-rw-r--r--waftools/checks/custom.py2
-rw-r--r--waftools/fragments/cocoa.m2
2 files changed, 3 insertions, 1 deletions
diff --git a/waftools/checks/custom.py b/waftools/checks/custom.py
index 97bcf9cc5c..d168d9e977 100644
--- a/waftools/checks/custom.py
+++ b/waftools/checks/custom.py
@@ -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')
diff --git a/waftools/fragments/cocoa.m b/waftools/fragments/cocoa.m
index 8096afb613..3c6230401d 100644
--- a/waftools/fragments/cocoa.m
+++ b/waftools/fragments/cocoa.m
@@ -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);
}
}