From: Debian Multimedia Maintainers Date: Tue, 13 Jun 2023 18:18:20 +0000 (+0200) Subject: fix meson.build to allow for some vars to be empty X-Git-Tag: archive/raspbian/2.5.1+ds-1+rpi1~1^2^2^2^2^2^2^2^2^2^2^2^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2353de4a8ac0c1f799dbb16ebecc1be54e97ba0b;p=jacktrip.git fix meson.build to allow for some vars to be empty Origin: Debian Bug: https://github.com/jacktrip/jacktrip/issues/1069 Last-Update: 2023-06-13 the CLI-configuration has no resources nor UI elements, but the qt5-meson module doesn't like this... Last-Update: 2023-06-13 Gbp-Pq: Name meson.patch --- diff --git a/meson.build b/meson.build index a579e02..4d0a960 100644 --- a/meson.build +++ b/meson.build @@ -231,9 +231,15 @@ if host_machine.system() == 'darwin' and get_option('novs') == false deps += apple_av_dep endif -qres_files = qt.compile_resources(sources: qres) +qres_files = [] +if qres.length() > 0 + qres_files = qt.compile_resources(sources: qres) +endif moc_files = qt.compile_moc(headers: moc_h, extra_args: defines) -ui_files = qt.compile_ui(sources: ui_h) +ui_files = [] +if ui_h.length() > 0 + ui_files = qt.compile_ui(sources: ui_h) +endif jacktrip = executable('jacktrip', src, qres_files, ui_files, moc_files, include_directories: incdirs, dependencies: deps, c_args: c_defines, cpp_args: defines, install: true )