2019-04-08 11:35:22 +00:00
|
|
|
if get_option('vulkan').disabled()
|
|
|
|
subdir_done()
|
|
|
|
endif
|
2019-05-16 09:48:24 +00:00
|
|
|
glslc = find_program('glslc', required: get_option('vulkan'))
|
|
|
|
if not glslc.found()
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
|
|
|
subdir('shaders')
|
2019-04-08 11:35:22 +00:00
|
|
|
|
2016-09-09 06:55:23 +00:00
|
|
|
vulkan_sources = [
|
|
|
|
'gstvulkan.c',
|
2019-05-16 09:48:24 +00:00
|
|
|
'vkimageidentity.c',
|
2016-09-09 06:55:23 +00:00
|
|
|
'vksink.c',
|
2019-05-08 04:50:29 +00:00
|
|
|
'vkshader.c',
|
2016-09-09 06:55:23 +00:00
|
|
|
'vkswapper.c',
|
2016-11-04 04:21:36 +00:00
|
|
|
'vktrash.c',
|
2016-09-09 06:55:23 +00:00
|
|
|
'vkupload.c',
|
|
|
|
]
|
|
|
|
|
2019-04-08 11:35:22 +00:00
|
|
|
gstvulkan_plugin = library('gstvulkan',
|
2019-05-16 09:48:24 +00:00
|
|
|
vulkan_sources, vulkan_compiled_shader_sources,
|
2019-04-08 11:35:22 +00:00
|
|
|
c_args : gst_plugins_bad_args,
|
|
|
|
objc_args : gst_plugins_bad_args,
|
|
|
|
link_args : noseh_link_args,
|
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [gstvideo_dep, gstbase_dep, gstvulkan_dep, vulkan_dep],
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
|
|
|
pkgconfig.generate(gstvulkan_plugin, install_dir : plugins_pkgconfig_install_dir)
|
|
|
|
plugins += [gstvulkan_plugin]
|