summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2020-08-11 21:56:39 +1000
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-08-15 02:55:30 +0000
commitbc95b5d99a844f590e04077a342f26ea877e2aad (patch)
tree3520e4ff7cc7d2bc8456676d39f972360cb46652 /docs
parent314a8c023fe7f722821c73a1d06ebf6f62dd8806 (diff)
downloadgstreamer-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')
-rw-r--r--docs/libs/vulkan-wayland/index.md6
-rw-r--r--docs/libs/vulkan-wayland/sitemap.txt1
-rw-r--r--docs/libs/vulkan-xcb/index.md6
-rw-r--r--docs/libs/vulkan-xcb/sitemap.txt1
-rw-r--r--docs/libs/vulkan/index.md6
-rw-r--r--docs/libs/vulkan/sitemap.txt1
-rw-r--r--docs/meson.build27
7 files changed, 46 insertions, 2 deletions
diff --git a/docs/libs/vulkan-wayland/index.md b/docs/libs/vulkan-wayland/index.md
new file mode 100644
index 000000000..ff444a498
--- /dev/null
+++ b/docs/libs/vulkan-wayland/index.md
@@ -0,0 +1,6 @@
+# Vulkan Wayland Library
+
+This library should be linked to by getting cflags and libs from
+gstreamer-vulkan-wayland-{{ gst_api_version.md }}
+
+> NOTE: This library API is considered *unstable*
diff --git a/docs/libs/vulkan-wayland/sitemap.txt b/docs/libs/vulkan-wayland/sitemap.txt
new file mode 100644
index 000000000..4f91fcd8a
--- /dev/null
+++ b/docs/libs/vulkan-wayland/sitemap.txt
@@ -0,0 +1 @@
+gi-index
diff --git a/docs/libs/vulkan-xcb/index.md b/docs/libs/vulkan-xcb/index.md
new file mode 100644
index 000000000..6b4c46fd3
--- /dev/null
+++ b/docs/libs/vulkan-xcb/index.md
@@ -0,0 +1,6 @@
+# Vulkan XCB Library
+
+This library should be linked to by getting cflags and libs from
+gstreamer-vulkan-{{ gst_api_version.md }}
+
+> NOTE: This library API is considered *unstable*
diff --git a/docs/libs/vulkan-xcb/sitemap.txt b/docs/libs/vulkan-xcb/sitemap.txt
new file mode 100644
index 000000000..4f91fcd8a
--- /dev/null
+++ b/docs/libs/vulkan-xcb/sitemap.txt
@@ -0,0 +1 @@
+gi-index
diff --git a/docs/libs/vulkan/index.md b/docs/libs/vulkan/index.md
new file mode 100644
index 000000000..7c14936fb
--- /dev/null
+++ b/docs/libs/vulkan/index.md
@@ -0,0 +1,6 @@
+# Vulkan Library
+
+This library should be linked to by getting cflags and libs from
+gstreamer-vulkan-{{ gst_api_version.md }}
+
+> NOTE: This library API is considered *unstable*
diff --git a/docs/libs/vulkan/sitemap.txt b/docs/libs/vulkan/sitemap.txt
new file mode 100644
index 000000000..4f91fcd8a
--- /dev/null
+++ b/docs/libs/vulkan/sitemap.txt
@@ -0,0 +1 @@
+gi-index
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