From 39b914dee3b98dbf2a636c01c52cd2bbd66d22bc Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Thu, 13 Oct 2022 16:56:40 +0200 Subject: [PATCH] [tests] fixed build with -Dx=true --- meson.build | 1 + src/mime/backend/meson.build | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index f0f9c114..b1c4f2e2 100644 --- a/meson.build +++ b/meson.build @@ -369,6 +369,7 @@ if conf_data.get('CONFIG_IDN') deps += idndeps endif +x11deps = [] conf_data.set('HAVE_X11', false) if conf_data.get('CONFIG_X') x11deps = dependency('x11', static: st) diff --git a/src/mime/backend/meson.build b/src/mime/backend/meson.build index 9caa7bb7..7f83c90d 100644 --- a/src/mime/backend/meson.build +++ b/src/mime/backend/meson.build @@ -42,7 +42,7 @@ endif exe = executable('mailcap-cache', mailcap_cache_files, testdeps, c_args:['-DHAVE_CONFIG_H', '-DTEST_MAILCAP'], include_directories:['.','..','../..','../../..'], -build_by_default:false) +build_by_default:false, dependencies:[x11deps]) test_lib = environment({'TEST_LIB': meson.source_root()+'/test/libtest.sh'}) t = find_program('test-mailcap-cache') test('mailcap-cache', t, depends:[exe], env:test_lib, workdir:meson.current_build_dir())