gstreamer/sys/winscreencap/meson.build
Nirbheek Chauhan b55dfb5313 Add feature options for almost all plugins
The only plugins remaining are those that haven't been ported to Meson
yet, and msdk. Also, the tests are still automagic.

https://bugzilla.gnome.org/show_bug.cgi?id=795107
2018-07-27 19:04:38 +05:30

28 lines
927 B
Meson

winscreencap_sources = [
'gstdx9screencapsrc.c',
'gstgdiscreencapsrc.c',
'gstwinscreencap.c',
]
if host_system != 'windows' or get_option('winscreencap').disabled()
subdir_done()
endif
d3d_dep = cc.find_library('d3d9', required : get_option('winscreencap'))
gdi_dep = cc.find_library('gdi32', required : get_option('winscreencap'))
have_d3d9_h = cc.has_header('d3d9.h')
if not have_d3d9_h and get_option('winscreencap').enabled()
error('winscreencap plugin enabled but d3d9.h not found')
endif
if d3d_dep.found() and gdi_dep.found() and have_d3d9_h
gstwinscreencap = library('gstwinscreencap',
winscreencap_sources,
c_args : gst_plugins_bad_args,
include_directories : [configinc],
dependencies : [gstbase_dep, gstvideo_dep, d3d_dep, gdi_dep],
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstwinscreencap, install_dir : plugins_pkgconfig_install_dir)
endif