summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAlessandro Decina <alessandro.d@gmail.com>2017-07-21 16:59:28 +1000
committerMatthew Waters <matthew@centricular.com>2018-08-03 12:53:10 +1000
commit06b8792a5ff220a3535bad2bcc8f131c0d97cbc1 (patch)
tree66ed78912bc76f6cf41bea790e2482fbc34523a4 /ext
parent574607702babc96d59cd01e837f2839715fbdee4 (diff)
gl/meson: OSX support (CGL and Cocoa)
[Matthew Waters]: minor additions such as -fobjc-arc and relying on dependency rather than cc.find_library()
Diffstat (limited to 'ext')
-rw-r--r--ext/gl/meson.build12
1 files changed, 8 insertions, 4 deletions
diff --git a/ext/gl/meson.build b/ext/gl/meson.build
index 475c71bfc8..0f588a0a52 100644
--- a/ext/gl/meson.build
+++ b/ext/gl/meson.build
@@ -89,10 +89,14 @@ if build_gstgl and gstgl_dep.found()
endif
endif
- if false # have cocoa
- opengl_sources += [
- 'caopengllayersink.m',
- ]
+ if glconf.has('GST_GL_HAVE_WINDOW_COCOA')
+ quartzcore_dep = dependency('QuartzCore', required : false)
+ if quartzcore_dep.found() # have cocoa
+ opengl_sources += [
+ 'caopengllayersink.m',
+ ]
+ optional_deps += quartzcore_dep
+ endif
endif
if x11_dep.found()