From 5b59b42746879b35734a34fd2a9c0c9f7ade6a40 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Wed, 1 Jan 2025 02:34:28 +0300 Subject: [PATCH] fix: add support to build with custom phosh version --- meson.build | 4 +++- meson_options.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 meson_options.txt 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