diff options
author | Mart Raudsepp <leio@gentoo.org> | 2019-02-16 14:44:44 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2021-04-15 13:47:10 +0000 |
commit | 2eb45242a939c8590a4689a37e91e0603640b4f7 (patch) | |
tree | f9efd8d1354ce90195b9438a0caadc0ece7a25ea | |
parent | ac76963d8649c539ea83b62232fdd58558487a7a (diff) | |
download | grilo-plugins-2eb45242a939c8590a4689a37e91e0603640b4f7.tar.gz |
build: Support controlling gnome-online-accounts dep
On Gentoo, some users prefer to disable gnome-online-accounts since it
brings in the large WebKitGTK dependency.
Since this commit adds a 'feature' option, raise the meson requirement
to 0.47.0 which is the version that introduced the feature.
-rw-r--r-- | meson.build | 4 | ||||
-rw-r--r-- | meson_options.txt | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 74a5d2a..5f8c7cd 100644 --- a/meson.build +++ b/meson.build @@ -13,7 +13,7 @@ project('grilo-plugins', 'c', 'warning_level=1' ], license: 'LGPL 2.1', - meson_version: '>= 0.44.0') + meson_version: '>= 0.47.0') plugin_version = meson.project_version() version_array = plugin_version.split('.') @@ -52,7 +52,7 @@ avahi_glib_dep = dependency('avahi-glib', required: false) avahi_gobject_dep = dependency('avahi-gobject', required: false) gio_dep = dependency('gio-2.0', required: false) gio_unix_dep = dependency('gio-unix-2.0', required: false) -goa_dep = dependency('goa-1.0', version: '>= 3.17.91', required: false) +goa_dep = dependency('goa-1.0', version: '>= 3.17.91', required: get_option('goa')) gom_dep = dependency('gom-1.0', version: '>= 0.4', required: false) grilo_net_dep = dependency('grilo-net-0.3', version: '>= 0.3.0', required: false, fallback: ['grilo', 'libgrlnet_dep']) diff --git a/meson_options.txt b/meson_options.txt index f513222..1e0ea09 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -21,4 +21,5 @@ option('enable-tmdb', type: 'combo', choices: [ 'auto', 'yes', 'no' ], value: 'a option('enable-tracker', type: 'combo', choices: [ 'auto', 'yes', 'no' ], value: 'auto', description: 'Enable Tracker plugin (DEPRECATED)') option('enable-tracker3', type: 'combo', choices: [ 'auto', 'yes', 'no' ], value: 'auto', description: 'Enable Tracker3 plugin') option('enable-youtube', type: 'combo', choices: [ 'auto', 'yes', 'no' ], value: 'auto', description: 'Enable YouTube plugin') +option('goa', type: 'feature', value: 'auto', description: 'Enable gnome-online-accounts usage') option('help', type: 'combo', choices: [ 'yes', 'no' ], value: 'yes', description: 'Build examples developers') |