diff options
author | Matthew Waters <matthew@centricular.com> | 2020-08-11 21:56:39 +1000 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-08-15 02:55:30 +0000 |
commit | bc95b5d99a844f590e04077a342f26ea877e2aad (patch) | |
tree | 3520e4ff7cc7d2bc8456676d39f972360cb46652 /docs/meson.build | |
parent | 314a8c023fe7f722821c73a1d06ebf6f62dd8806 (diff) | |
download | gstreamer-plugins-bad-bc95b5d99a844f590e04077a342f26ea877e2aad.tar.gz |
build/vulkan: split vulkan gir
also add to docs
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1506>
Diffstat (limited to 'docs/meson.build')
-rw-r--r-- | docs/meson.build | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/docs/meson.build b/docs/meson.build index 8513b65dd..47d60ef3b 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -100,7 +100,8 @@ foreach f: [ 'ext/*/*.h', 'sys/*/*.h', 'gst/*/*.h', - 'gst-libs/gst/*/*-prelude.h' + 'gst-libs/gst/*/*-prelude.h', + 'gst-libs/gst/vulkan/vulkan_fwd.h' ] excludes += [join_paths(meson.current_source_dir(), root_rel, f)] endforeach @@ -119,7 +120,27 @@ if build_gir {'name': 'audio', 'gir': audio_gir, 'lib': gstbadaudio_dep, 'prefix': 'bad-'}, {'name': 'transcoder', 'gir': transcoder_gir, 'lib': gst_transcoder_dep}, {'name': 'codecs', 'gir': codecs_gir, 'lib': gstcodecs_dep}, - ] + ] + + if gstvulkan_dep.found() + libs += [ + {'name': 'vulkan', 'gir': vulkan_gir, 'lib': gstvulkan_dep, 'suffix': 'lib'}, + ] + if enabled_vulkan_winsys.contains('xcb') + libs += [ + {'name': 'vulkan-xcb', 'gir': vulkan_xcb_gir, 'lib': gstvulkanxcb_dep, 'extra_sources' : [ + join_paths(root_rel, 'gst-libs/gst/vulkan/xcb/gstvkdisplay_xcb.[ch]'), + ]}, + ] + endif + if enabled_vulkan_winsys.contains('wayland') + libs += [ + {'name': 'vulkan-wayland', 'gir': vulkan_wayland_gir, 'lib': gstvulkanwayland_dep, 'extra_sources' : [ + join_paths(root_rel, 'gst-libs/gst/vulkan/wayland/gstvkdisplay_wayland.[ch]'), + ]}, + ] + endif + endif endif has_gi_extension = hotdoc.has_extensions('gi-extension') @@ -128,12 +149,14 @@ libs_doc = [] foreach lib_def: libs name = lib_def['name'] lib = lib_def['lib'] + extra_sources = lib_def.get('extra_sources', []) c_source_patterns = lib_def.get('c_source_patterns', ['*.[hc]']) c_sources = [] foreach pattern: c_source_patterns c_sources += join_paths(root_rel, 'gst-libs/gst', name, pattern) endforeach + c_sources += extra_sources if lib_def.has_key('gir') if has_gi_extension |