From 5d5a2407e039a687e26c102ffad10f596fb009e2 Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Tue, 30 Jul 2024 08:42:22 +0200 Subject: [PATCH] Make qt6 build optional --- meson.build | 2 +- meson_options.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 269a9da7..071b710f 100644 --- a/meson.build +++ b/meson.build @@ -98,7 +98,7 @@ dep_libelf = cc.find_library('elf', required : get_option('bpf')) dep_libm = cc.find_library('m') dep_librt = cc.find_library('rt') dep_qt6 = dependency('qt6', modules: ['Core', 'Gui', 'Widgets', 'Core5Compat'], required: false) -if dep_qt6.found() +if get_option('qt6') and dep_qt6.found() dep_qt_opengl = dependency('qt6', modules: ['OpenGL', 'OpenGLWidgets'], required : get_option('qvidcap').enabled()) dep_qt = dep_qt6 diff --git a/meson_options.txt b/meson_options.txt index 53cf832f..12369423 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -54,3 +54,7 @@ option('doxygen-html', type : 'boolean', description : 'Generate doxygen plain HTML documentation') option('doxygen-man', type : 'boolean', value : false, description : 'Generate doxygen manual pages') + +# qt option +option('qt6', type : 'boolean', value : 'false', + description : 'Enable qt6 support') -- 2.45.2