• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1winscreencap_sources = [
2  'gstdx9screencapsrc.c',
3  'gstgdiscreencapsrc.c',
4  'gstwinscreencap.c',
5]
6
7if host_system != 'windows' or get_option('winscreencap').disabled()
8  subdir_done()
9endif
10
11d3d_dep = cc.find_library('d3d9', required : get_option('winscreencap'))
12gdi_dep = cc.find_library('gdi32', required : get_option('winscreencap'))
13have_d3d9_h = cc.has_header('d3d9.h')
14if not have_d3d9_h and get_option('winscreencap').enabled()
15  error('winscreencap plugin enabled but d3d9.h not found')
16endif
17
18if d3d_dep.found() and gdi_dep.found() and have_d3d9_h
19  gstwinscreencap = library('gstwinscreencap',
20    winscreencap_sources,
21    c_args : gst_plugins_bad_args,
22    include_directories : [configinc],
23    dependencies : [gstbase_dep, gstvideo_dep, d3d_dep, gdi_dep],
24    install : true,
25    install_dir : plugins_install_dir,
26  )
27  pkgconfig.generate(gstwinscreencap, install_dir : plugins_pkgconfig_install_dir)
28endif
29