vaapi: meson: Fail if static build.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 16 Nov 2021 16:21:52 +0000 (17:21 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 18 Nov 2021 07:32:26 +0000 (07:32 +0000)
And initialize the plugin array.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1357>

subprojects/gstreamer-vaapi/meson.build

index c631d60..b7bd10f 100644 (file)
@@ -4,12 +4,17 @@ project('gstreamer-vaapi', 'c',
   default_options : [ 'warning_level=1',
                       'buildtype=debugoptimized' ])
 
+if get_option('default_library') == 'static'
+  error('GStreamer-VAAPI plugin not supported with `static` builds yet.')
+endif
+
 gst_version = meson.project_version()
 version_arr = gst_version.split('.')
 gst_version_major = version_arr[0].to_int()
 gst_version_minor = version_arr[1].to_int()
 gst_version_micro = version_arr[2].to_int()
- if version_arr.length() == 4
+
+if version_arr.length() == 4
   gst_version_nano = version_arr[3].to_int()
 else
   gst_version_nano = 0
@@ -189,6 +194,8 @@ gstreamer_vaapi_args = ['-DHAVE_CONFIG_H']
 configinc = include_directories('.')
 libsinc = include_directories('gst-libs')
 
+plugins = []
+
 subdir('gst-libs')
 subdir('gst')
 subdir('tests')