mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-02 08:57:19 -04:00
[meson] Do not build mailcap test when mailcap is not enabled
This commit is contained in:
parent
3d208c3135
commit
f73503cb7a
@ -10,6 +10,7 @@ endif
|
|||||||
|
|
||||||
srcs += files('common.c', 'default.c')
|
srcs += files('common.c', 'default.c')
|
||||||
|
|
||||||
|
if conf_data.get('CONFIG_MAILCAP')
|
||||||
mailcap_cache_files = files('common.c', 'mailcap.c', meson.source_root()+'/src/osdep/osdep.c')
|
mailcap_cache_files = files('common.c', 'mailcap.c', meson.source_root()+'/src/osdep/osdep.c')
|
||||||
|
|
||||||
if conf_data.get('CONFIG_NLS') and not conf_data.get('CONFIG_GETTEXT')
|
if conf_data.get('CONFIG_NLS') and not conf_data.get('CONFIG_GETTEXT')
|
||||||
@ -46,3 +47,4 @@ build_by_default:false, dependencies:[x11deps])
|
|||||||
test_lib = environment({'TEST_LIB': meson.source_root()+'/test/libtest.sh'})
|
test_lib = environment({'TEST_LIB': meson.source_root()+'/test/libtest.sh'})
|
||||||
t = find_program('test-mailcap-cache')
|
t = find_program('test-mailcap-cache')
|
||||||
test('mailcap-cache', t, depends:[exe], env:test_lib, workdir:meson.current_build_dir())
|
test('mailcap-cache', t, depends:[exe], env:test_lib, workdir:meson.current_build_dir())
|
||||||
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user