1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-30 03:26:23 -04:00
elinks/src/cookies/meson.build
Witold Filipczyk f03d1ea44d [meson] Do not build test programs by default
If you want run tests, pass -Dtest=true to meson
and run "meson test" at the end.
2022-11-30 10:17:49 +01:00

13 lines
609 B
Meson

srcs += files('cookies.c', 'dialogs.c', 'path.c', 'parser.c')
if get_option('test')
exe = executable('cookies-t', 'cookies-t.c', 'path.c', include_directories:['..'], build_by_default:false)
test_lib = environment({'TEST_LIB': meson.source_root()+'/test/libtest.sh'})
t = find_program('test-cookies-t')
test('cookies', t, depends:[exe], env:test_lib, workdir:meson.current_build_dir())
parsetstdeps = files('parser.c', 'parsetst.c')
executable('parsetst', parsetstdeps, testdeps, dependencies:[iconvdeps], c_args:['-DHAVE_CONFIG_H'], include_directories:['.', '..', '../..'])
endif