2019-04-08 11:35:22 +00:00
|
|
|
if get_option('vulkan').disabled()
|
|
|
|
subdir_done()
|
|
|
|
endif
|
2019-11-01 05:22:46 +00:00
|
|
|
|
|
|
|
if not gstvulkan_dep.found()
|
|
|
|
if get_option('vulkan').enabled()
|
|
|
|
error('GStreamer Vulkan plugin required via options, but needed dependencies not found.')
|
|
|
|
else
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2020-05-28 21:48:15 +00:00
|
|
|
# Should already have checked for this
|
|
|
|
assert(glslc.found(), 'Expected glslc to be available')
|
2019-05-16 09:48:24 +00:00
|
|
|
|
|
|
|
subdir('shaders')
|
2019-04-08 11:35:22 +00:00
|
|
|
|
2016-09-09 06:55:23 +00:00
|
|
|
vulkan_sources = [
|
|
|
|
'gstvulkan.c',
|
2021-02-24 17:45:15 +00:00
|
|
|
'gstvulkanelement.c',
|
2019-06-13 08:05:40 +00:00
|
|
|
'vkcolorconvert.c',
|
2019-06-13 07:05:44 +00:00
|
|
|
'vkdownload.c',
|
2019-09-16 05:29:26 +00:00
|
|
|
'vkdeviceprovider.c',
|
2019-05-16 09:48:24 +00:00
|
|
|
'vkimageidentity.c',
|
2016-09-09 06:55:23 +00:00
|
|
|
'vksink.c',
|
|
|
|
'vkupload.c',
|
2019-07-04 07:22:07 +00:00
|
|
|
'vkviewconvert.c',
|
2016-09-09 06:55:23 +00:00
|
|
|
]
|
|
|
|
|
2019-07-04 07:22:07 +00:00
|
|
|
vulkan_plugin_enum_headers = [
|
|
|
|
'vkviewconvert.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
vulkan_plugin_enums = gnome.mkenums_simple('gstvulkan-plugins-enumtypes',
|
|
|
|
sources : vulkan_plugin_enum_headers,
|
|
|
|
body_prefix : '#ifdef HAVE_CONFIG_H\n#include "config.h"\n#endif',
|
|
|
|
header_prefix : '#include <gst/gst.h>')
|
|
|
|
vulkan_plugin_enumtypes_c = vulkan_plugin_enums[0]
|
|
|
|
vulkan_plugin_enumtypes_h = vulkan_plugin_enums[1]
|
|
|
|
vulkan_plugin_gen_sources = [vulkan_plugin_enumtypes_h]
|
|
|
|
|
2019-04-08 11:35:22 +00:00
|
|
|
gstvulkan_plugin = library('gstvulkan',
|
2019-07-04 07:22:07 +00:00
|
|
|
vulkan_sources, vulkan_compiled_shader_sources, vulkan_plugin_enumtypes_c, vulkan_plugin_enumtypes_h,
|
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]
|