diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-07-27 18:59:23 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-07-27 19:04:38 +0530 |
commit | b55dfb5313f1df702a3637efbd372b90cd12a300 (patch) | |
tree | ae7f255314e783be74b9201cd6dfcd8ca9da18b5 /sys/d3dvideosink | |
parent | 7ef303fa281b9226ebd0087fb377ca25887941e4 (diff) | |
download | gstreamer-plugins-bad-b55dfb5313f1df702a3637efbd372b90cd12a300.tar.gz |
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
Diffstat (limited to 'sys/d3dvideosink')
-rw-r--r-- | sys/d3dvideosink/meson.build | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/sys/d3dvideosink/meson.build b/sys/d3dvideosink/meson.build index 26c34b7c2..c9230dabd 100644 --- a/sys/d3dvideosink/meson.build +++ b/sys/d3dvideosink/meson.build @@ -3,14 +3,23 @@ d3dvideosink_sources = [ 'd3dvideosink.c', ] -if host_system == 'windows' and cc.has_header('d3d9.h') - d3dvideosink_dep = [cc.find_library('d3d9'), cc.find_library('gdi32')] +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 +if d3d_dep.found() and gdi_dep.found() and have_d3d9_h gstd3dvideosink = library('gstd3d', d3dvideosink_sources, c_args : gst_plugins_bad_args, include_directories : [configinc], - dependencies : [gstvideo_dep] + d3dvideosink_dep, + dependencies : [gstvideo_dep, d3d_dep, gdi_dep], install : true, install_dir : plugins_install_dir) pkgconfig.generate(gstd3dvideosink, install_dir : plugins_pkgconfig_install_dir) |