2016-08-12 15:51:45 +00:00
|
|
|
d3dvideosink_sources = [
|
|
|
|
'd3dhelpers.c',
|
|
|
|
'd3dvideosink.c',
|
|
|
|
]
|
|
|
|
|
2018-07-27 13:29:23 +00:00
|
|
|
if host_system != 'windows' or get_option('d3dvideosink').disabled()
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
|
|
|
d3d_dep = cc.find_library('d3d9', required : get_option('d3dvideosink'))
|
|
|
|
gdi_dep = cc.find_library('gdi32', required : get_option('d3dvideosink'))
|
|
|
|
have_d3d9_h = cc.has_header('d3d9.h')
|
|
|
|
if not have_d3d9_h and get_option('d3dvideosink').enabled()
|
|
|
|
error('d3dvideosink plugin enabled but d3d9.h not found')
|
|
|
|
endif
|
2016-08-12 15:51:45 +00:00
|
|
|
|
2018-07-27 13:29:23 +00:00
|
|
|
if d3d_dep.found() and gdi_dep.found() and have_d3d9_h
|
2017-07-20 14:29:18 +00:00
|
|
|
gstd3dvideosink = library('gstd3d',
|
2016-08-12 15:51:45 +00:00
|
|
|
d3dvideosink_sources,
|
|
|
|
c_args : gst_plugins_bad_args,
|
|
|
|
include_directories : [configinc],
|
2018-07-27 13:29:23 +00:00
|
|
|
dependencies : [gstvideo_dep, d3d_dep, gdi_dep],
|
2016-08-12 15:51:45 +00:00
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir)
|
2018-04-24 18:05:30 +00:00
|
|
|
pkgconfig.generate(gstd3dvideosink, install_dir : plugins_pkgconfig_install_dir)
|
2018-10-22 09:30:45 +00:00
|
|
|
plugins += [gstd3dvideosink]
|
2016-08-12 15:51:45 +00:00
|
|
|
endif
|