mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 23:58:17 +00:00
examples/gl/gtk: Fix build on macOS
The gdkquartz.h include pulls into Apple Obj-C frameworks so the compiler needs to handle the gstgtkhelper library as such. Fixes #518
This commit is contained in:
parent
e1e958fcd7
commit
6c1dc1b129
2 changed files with 7 additions and 5 deletions
|
@ -3,9 +3,15 @@ if cc.has_argument ('-Wno-parentheses')
|
||||||
extra_args += '-Wno-parentheses'
|
extra_args += '-Wno-parentheses'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if host_system == 'darwin'
|
||||||
|
extra_c_args = ['-xobjective-c']
|
||||||
|
else
|
||||||
|
extra_c_args = []
|
||||||
|
endif
|
||||||
|
|
||||||
gstgtkhelper = static_library ('gstgtkhelper',
|
gstgtkhelper = static_library ('gstgtkhelper',
|
||||||
['gstgtk.c'],
|
['gstgtk.c'],
|
||||||
c_args : gst_plugins_base_args,
|
c_args : gst_plugins_base_args + extra_c_args,
|
||||||
include_directories : [configinc, libsinc],
|
include_directories : [configinc, libsinc],
|
||||||
dependencies : [gst_base_dep, video_dep, gtk_dep],
|
dependencies : [gst_base_dep, video_dep, gtk_dep],
|
||||||
install : false)
|
install : false)
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
subdir('cocoa')
|
subdir('cocoa')
|
||||||
subdir('generic')
|
subdir('generic')
|
||||||
# FIXME: gtk is temporarily disabled.
|
|
||||||
# See. https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/518
|
|
||||||
if host_system != 'darwin'
|
|
||||||
subdir('gtk', if_found : gtk_dep)
|
subdir('gtk', if_found : gtk_dep)
|
||||||
endif
|
|
||||||
# FIXME: subdir('qt')
|
# FIXME: subdir('qt')
|
||||||
subdir('sdl')
|
subdir('sdl')
|
||||||
|
|
Loading…
Reference in a new issue