1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-26 02:46:13 -04:00
elinks/src/protocol/ftp/meson.build
2024-06-03 17:22:24 +02:00

12 lines
601 B
Meson

srcs += files('ftp.c')
if get_option('test')
exe = executable('ftp-parser', 'ftp-parser.c', meson.source_root() / 'src/protocol/date.c', meson.source_root() / 'src/protocol/ftpparse.c', testdeps, dependencies:[iconvdeps],
c_args:['-DHAVE_CONFIG_H'], cpp_args:['-DHAVE_CONFIG_H'], include_directories:['.','../..','../../..'],
build_by_default:false)
test_lib = environment({'TEST_LIB': meson.source_root() / 'test/libtest.sh'})
t = find_program('test-ftp-parser')
test('ftp-parser', t, depends:[exe], env:test_lib, workdir:meson.current_build_dir(), is_parallel:false)
endif