gstreamer/tests/examples/gl/gtk/meson.build
Philippe Normand 6c1dc1b129 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
2018-12-27 14:55:28 +01:00

28 lines
743 B
Meson

extra_args = []
if cc.has_argument ('-Wno-parentheses')
extra_args += '-Wno-parentheses'
endif
if host_system == 'darwin'
extra_c_args = ['-xobjective-c']
else
extra_c_args = []
endif
gstgtkhelper = static_library ('gstgtkhelper',
['gstgtk.c'],
c_args : gst_plugins_base_args + extra_c_args,
include_directories : [configinc, libsinc],
dependencies : [gst_base_dep, video_dep, gtk_dep],
install : false)
gstgtkhelper_dep = declare_dependency(link_with: gstgtkhelper,
compile_args : extra_args,
include_directories : include_directories('.'),
dependencies : [gst_base_dep, video_dep, gtk_dep])
subdir('filternovideooverlay')
subdir('filtervideooverlay')
subdir('fxtest')
subdir('switchvideooverlay')
subdir('3dvideo')