diff --git a/meson.build b/meson.build index ef238c1..91a7be5 100644 --- a/meson.build +++ b/meson.build @@ -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, diff --git a/meson_options.txt b/meson_options.txt new file mode 100644 index 0000000..f5fa9ed --- /dev/null +++ b/meson_options.txt @@ -0,0 +1 @@ +option('libphosh_version', type: 'string', value: '', description: 'Custom version of libphosh to use (default: 0.44)') \ No newline at end of file