1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[tests] fixed build with -Dx=true

This commit is contained in:
Witold Filipczyk 2022-10-13 16:56:40 +02:00
parent 3276cb75a1
commit 39b914dee3
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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())