1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-26 01:15:37 +00:00
elinks/src/mime/backend/meson.build
Witold Filipczyk 6e83bbf23c [tests] build_by_default: false for executables.
It does not work, but this as a meson issue.
2022-10-07 19:56:54 +02:00

19 lines
681 B
Meson

if conf_data.get('CONFIG_DGI')
srcs += files('dgi.c')
endif
if conf_data.get('CONFIG_MAILCAP')
srcs += files('mailcap.c')
endif
if conf_data.get('CONFIG_MIMETYPES')
srcs += files('mimetypes.c')
endif
srcs += files('common.c', 'default.c')
exe = executable('mailcap-cache', 'common.c', 'mailcap.c', meson.source_root()+'/src/osdep/osdep.c', testdeps,
c_args:['-DHAVE_CONFIG_H', '-DTEST_MAILCAP'], include_directories:['.','..','../..','../../..'],
build_by_default:false)
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())