• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1if host_system == 'windows'
2  executable('d3d11videosink',
3    ['d3d11videosink.c', 'd3d11videosink-kb.c'],
4    c_args : gst_plugins_bad_args,
5    include_directories : [configinc, libsinc],
6    dependencies: [gst_dep, gstbase_dep, gstvideo_dep],
7    install: false,
8  )
9
10  executable('d3d11screencapturesrc',
11    ['d3d11screencapturesrc.cpp'],
12    c_args : gst_plugins_bad_args,
13    include_directories : [configinc, libsinc],
14    dependencies: [gst_dep, gstbase_dep, gstvideo_dep],
15    install: false,
16  )
17
18  d3d11_lib = cc.find_library('d3d11', required : false)
19  dxgi_lib = cc.find_library('dxgi', required : false)
20  d3dcompiler_lib = cc.find_library('d3dcompiler', required: false)
21  have_d3d11_h = cc.has_header('d3d11.h')
22  have_dxgi_h = cc.has_header('dxgi1_2.h')
23  have_d3d11compiler_h = cc.has_header('d3dcompiler.h')
24
25  d3d9_dep = cc.find_library('d3d9', required : false)
26  have_d3d9_h = cc.has_header('d3d9.h')
27
28  if d3d11_lib.found() and dxgi_lib.found() and d3dcompiler_lib.found() and have_d3d11_h and have_dxgi_h and have_d3d11compiler_h
29    executable('d3d11videosink-shared-texture',
30      ['d3d11videosink-shared-texture.cpp', 'd3d11device.cpp'],
31      c_args : gst_plugins_bad_args,
32      include_directories : [configinc, libsinc],
33      dependencies: [gst_dep, gstbase_dep, gstvideo_dep, d3d11_lib, dxgi_lib, d3dcompiler_lib],
34      install: false,
35    )
36
37    if d3d_dep.found() and have_d3d9_h
38      executable('d3d11videosink-shared-texture-d3d9ex',
39        ['d3d11videosink-shared-texture-d3d9ex.cpp', 'd3d11device.cpp'],
40        c_args : gst_plugins_bad_args,
41        include_directories : [configinc, libsinc],
42        dependencies: [gst_dep, gstbase_dep, gstvideo_dep, d3d11_lib, dxgi_lib, d3dcompiler_lib, d3d9_dep],
43        install: false,
44      )
45    endif
46  endif
47endif
48