1d3dvideosink_sources = [ 2 'd3dhelpers.c', 3 'd3dvideosink.c', 4 'gstd3d9overlay.c' 5] 6 7if host_system != 'windows' or get_option('d3dvideosink').disabled() 8 subdir_done() 9endif 10 11d3d_dep = cc.find_library('d3d9', required : get_option('d3dvideosink')) 12gdi_dep = cc.find_library('gdi32', required : get_option('d3dvideosink')) 13have_d3d9_h = cc.has_header('d3d9.h') 14if not have_d3d9_h and get_option('d3dvideosink').enabled() 15 error('d3dvideosink plugin enabled but d3d9.h not found') 16endif 17 18if d3d_dep.found() and gdi_dep.found() and have_d3d9_h 19 gstd3dvideosink = library('gstd3d', 20 d3dvideosink_sources, 21 c_args : gst_plugins_bad_args, 22 include_directories : [configinc], 23 dependencies : [gstvideo_dep, d3d_dep, gdi_dep], 24 install : true, 25 install_dir : plugins_install_dir) 26 pkgconfig.generate(gstd3dvideosink, install_dir : plugins_pkgconfig_install_dir) 27 plugins += [gstd3dvideosink] 28endif 29