2024-01-06 12:26:46 +00:00
|
|
|
if host_system != 'windows'
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
2024-05-10 13:59:15 +00:00
|
|
|
have_d2d_h = cc.has_header('d2d1_3.h')
|
|
|
|
have_dwrite_h = cc.has_header('dwrite.h')
|
|
|
|
have_d3d12video_h = cc.has_header('d3d12video.h')
|
|
|
|
dwrite_dep = cc.find_library('dwrite', required: false)
|
|
|
|
|
2024-01-06 12:26:46 +00:00
|
|
|
executable('d3d12enc-dynamic-reconfigure',
|
|
|
|
['d3d12enc-dynamic-reconfigure.c', '../key-handler.c'],
|
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies: [gst_dep, gstbase_dep, gstvideo_dep],
|
|
|
|
c_args : gst_plugins_bad_args,
|
2024-06-10 14:40:55 +00:00
|
|
|
install: false
|
|
|
|
)
|
|
|
|
|
|
|
|
executable('d3d12videosink-switch',
|
|
|
|
['d3d12videosink-switch.cpp', '../key-handler.c'],
|
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies: [gst_dep, gstbase_dep, gstvideo_dep],
|
|
|
|
c_args : gst_plugins_bad_args,
|
|
|
|
install: false
|
|
|
|
)
|
2024-05-10 13:59:15 +00:00
|
|
|
|
|
|
|
if gstd3d12_dep.found()
|
|
|
|
if have_d2d_h and have_dwrite_h and have_d3d12video_h and dwrite_dep.found()
|
|
|
|
executable('d3d12videosink-overlay', ['d3d12videosink-overlay.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, gstvideo_dep, gstd3d12_dep, dwrite_dep],
|
|
|
|
install: false,
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
endif
|