From c1748e79f0b18d44891bda2b6aa877175d802660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Graff?= Date: Sat, 13 Jan 2024 12:06:12 +0100 Subject: [PATCH] meson: expose lzo as a meson option --- meson.build | 2 +- meson_options.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 4051a7c11..e45e441f3 100644 --- a/meson.build +++ b/meson.build @@ -198,7 +198,7 @@ else endif endif -lzo_dep = dependency('lzo2', required: false) +lzo_dep = dependency('lzo2', required: get_option('lzo')) if lzo_dep.found() conf.set('HAVE_LZO', 1) endif diff --git a/meson_options.txt b/meson_options.txt index f481ef3ea..8aa6814bb 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -16,6 +16,7 @@ option('zlib', type : 'feature', value : 'auto') # script, ps, pdf, xml surfaces option('tests', type : 'feature', value : 'auto') # Util deps +option('lzo', type : 'feature', value : 'auto') option('gtk2-utils', type : 'feature', value : 'disabled') # Misc deps