fix: add support to build with custom phosh version

This commit is contained in:
Maxim Slipenko 2025-01-01 02:34:28 +03:00
parent 809c52d62d
commit 5b59b42746
2 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,9 @@ gtk_dep = dependency('gtk+-3.0', version: '>=3.22')
libhandy_dep = dependency('libhandy-1', version: '>=1.1.90', fallback: ['libhandy', 'libhandy_dep'], default_options: ['introspection=disabled'])
libnm_dep = dependency('libnm', version: '>=1.14')
phosh_plugins_dep = dependency('phosh-plugins', required: true, method: 'pkg-config')
libphosh_dep = dependency('libphosh-0.43', required: true, method: 'pkg-config')
libphosh_version = get_option('libphosh_version') != '' ? get_option('libphosh_version') : '0.44'
libphosh_dep = dependency('libphosh-' + libphosh_version, required: true, method: 'pkg-config')
plugin_deps = [
gobject_dep,

1
meson_options.txt Normal file
View File

@ -0,0 +1 @@
option('libphosh_version', type: 'string', value: '', description: 'Custom version of libphosh to use (default: 0.44)')