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:
parent
3276cb75a1
commit
39b914dee3
@ -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)
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user