1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
From 918ffe8e1be66f7451452431385095b4cc7e6801 Mon Sep 17 00:00:00 2001
From: Mart Raudsepp <leio@gentoo.org>
Date: Thu, 19 Sep 2019 22:26:08 +0300
Subject: [PATCH] build: Optional gstreamer
---
extensions/meson.build | 4 +++-
meson.build | 2 ++
meson_options.txt | 6 ++++++
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/extensions/meson.build b/extensions/meson.build
index 46c7b0393..bcce4fbfe 100644
--- a/extensions/meson.build
+++ b/extensions/meson.build
@@ -1,3 +1,5 @@
subdir('image-properties')
-subdir('audio-video-properties')
+if get_option('gstreamer')
+ subdir('audio-video-properties')
+endif
subdir('sendto')
diff --git a/meson.build b/meson.build
index e8b044490..10cf06fd6 100644
--- a/meson.build
+++ b/meson.build
@@ -99,8 +99,10 @@ libm = cc.find_library('m')
if get_option('extensions')
gexiv = dependency('gexiv2', version: '>= 0.14.0')
+ if get_option('gstreamer')
gst_tag_dep = dependency('gstreamer-tag-1.0')
gst_pbutils_dep = dependency('gstreamer-pbutils-1.0')
+ endif
endif
gio = dependency('gio-2.0', version: glib_ver)
gio_unix = dependency('gio-unix-2.0', version: glib_ver)
diff --git a/meson_options.txt b/meson_options.txt
index 6e781c4ef..9ad8d8196 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -13,6 +13,12 @@ option(
value: true,
description: 'Build stock extensions',
)
+option(
+ 'gstreamer',
+ type: 'boolean',
+ value: true,
+ description: 'Build audio-video properties extension (requires "extensions")',
+)
option(
'introspection',
type: 'boolean',
--
2.34.1
|