2022-06-23 22:06:00 +00:00
|
|
|
if host_system != 'windows'
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
|
|
|
executable('d3d11videosink',
|
|
|
|
['d3d11videosink.c', '../key-handler.c'],
|
|
|
|
c_args : gst_plugins_bad_args,
|
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
dependencies: [gst_dep, gstbase_dep, gstvideo_dep],
|
|
|
|
install: false,
|
|
|
|
)
|
|
|
|
|
|
|
|
executable('d3d11screencapturesrc',
|
|
|
|
['d3d11screencapturesrc.cpp'],
|
|
|
|
c_args : gst_plugins_bad_args,
|
|
|
|
cpp_args : gst_plugins_bad_args,
|
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
dependencies: [gst_dep, gstbase_dep, gstvideo_dep],
|
|
|
|
install: false,
|
|
|
|
)
|
|
|
|
|
|
|
|
d3d11_lib = cc.find_library('d3d11', required : false)
|
|
|
|
dxgi_lib = cc.find_library('dxgi', required : false)
|
|
|
|
d3dcompiler_lib = cc.find_library('d3dcompiler', required: false)
|
|
|
|
have_d3d11_h = cc.has_header('d3d11.h')
|
|
|
|
have_dxgi_h = cc.has_header('dxgi1_2.h')
|
|
|
|
have_d3d11compiler_h = cc.has_header('d3dcompiler.h')
|
2020-12-10 20:23:20 +00:00
|
|
|
|
2022-06-23 22:06:00 +00:00
|
|
|
d3d9_dep = cc.find_library('d3d9', required : false)
|
|
|
|
have_d3d9_h = cc.has_header('d3d9.h')
|
|
|
|
|
|
|
|
if d3d11_lib.found() and dxgi_lib.found() and d3dcompiler_lib.found() and have_d3d11_h and have_dxgi_h and have_d3d11compiler_h
|
|
|
|
executable('d3d11videosink-shared-texture',
|
|
|
|
['d3d11videosink-shared-texture.cpp', 'd3d11device.cpp'],
|
2021-10-10 08:04:13 +00:00
|
|
|
c_args : gst_plugins_bad_args,
|
2022-06-23 22:06:00 +00:00
|
|
|
cpp_args : gst_plugins_bad_args,
|
2021-10-10 08:04:13 +00:00
|
|
|
include_directories : [configinc, libsinc],
|
2022-06-23 22:06:00 +00:00
|
|
|
dependencies: [gst_dep, gstbase_dep, gstvideo_dep, d3d11_lib, dxgi_lib, d3dcompiler_lib],
|
2021-10-10 08:04:13 +00:00
|
|
|
install: false,
|
|
|
|
)
|
|
|
|
|
2022-06-23 22:06:00 +00:00
|
|
|
if gstd3d11_dep.found ()
|
2022-07-17 15:41:00 +00:00
|
|
|
executable('d3d11converter', ['d3d11converter.cpp', '../key-handler.c'],
|
|
|
|
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
|
|
|
|
cpp_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
|
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
dependencies: [gst_dep, gstbase_dep, gstvideo_dep, d3d11_lib, dxgi_lib, gstd3d11_dep, gstapp_dep],
|
|
|
|
install: false,
|
|
|
|
)
|
|
|
|
|
2022-06-23 22:06:00 +00:00
|
|
|
executable('d3d11decoder-appsink', ['d3d11decoder-appsink.cpp'],
|
|
|
|
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
|
|
|
|
cpp_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
|
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
dependencies: [gst_dep, gstbase_dep, gstvideo_dep, d3d11_lib, dxgi_lib, gstd3d11_dep, gstapp_dep],
|
|
|
|
install: false,
|
|
|
|
)
|
2022-06-24 16:15:17 +00:00
|
|
|
|
|
|
|
executable('d3d11videosink-appsrc', ['d3d11videosink-appsrc.cpp'],
|
|
|
|
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
|
|
|
|
cpp_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
|
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
dependencies: [gst_dep, gstbase_dep, gstvideo_dep, d3d11_lib, dxgi_lib, gstd3d11_dep, gstapp_dep],
|
|
|
|
install: false,
|
|
|
|
)
|
2022-06-23 22:06:00 +00:00
|
|
|
endif
|
2020-12-10 20:23:20 +00:00
|
|
|
|
2022-06-23 22:06:00 +00:00
|
|
|
if d3d_dep.found() and have_d3d9_h
|
|
|
|
executable('d3d11videosink-shared-texture-d3d9ex',
|
|
|
|
['d3d11videosink-shared-texture-d3d9ex.cpp', 'd3d11device.cpp'],
|
2020-12-10 20:23:20 +00:00
|
|
|
c_args : gst_plugins_bad_args,
|
2022-06-23 22:06:00 +00:00
|
|
|
cpp_args : gst_plugins_bad_args,
|
2020-12-10 20:23:20 +00:00
|
|
|
include_directories : [configinc, libsinc],
|
2022-06-23 22:06:00 +00:00
|
|
|
dependencies: [gst_dep, gstbase_dep, gstvideo_dep, d3d11_lib, dxgi_lib, d3dcompiler_lib, d3d9_dep],
|
2020-12-10 20:23:20 +00:00
|
|
|
install: false,
|
|
|
|
)
|
|
|
|
endif
|
2019-12-17 11:49:52 +00:00
|
|
|
endif
|