1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-03 08:07:17 -05:00

[meson] build cookies/parsetst

This commit is contained in:
Witold Filipczyk 2022-10-08 10:43:13 +02:00
parent 6e83bbf23c
commit 88c82224b0
2 changed files with 13 additions and 0 deletions

View File

@ -4,3 +4,11 @@ exe = executable('cookies-t', 'cookies-t.c', 'path.c', include_directories:['..'
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-cookies-t') t = find_program('test-cookies-t')
test('cookies', t, depends:[exe], env:test_lib, workdir:meson.current_build_dir()) test('cookies', t, depends:[exe], env:test_lib, workdir:meson.current_build_dir())
parsetstdeps = files('parser.c', 'parsetst.c')
if conf_data.get('CONFIG_DEBUG')
parsetsdeps += files(meson.source_root()+'/src/util/memdebug.c')
endif
executable('parsetst', parsetstdeps, testdeps, c_args:['-DHAVE_CONFIG_H'], include_directories:['.', '..', '../..'])

View File

@ -10,6 +10,11 @@
#include "cookies/parser.h" #include "cookies/parser.h"
/* fake tty get function, needed for charsets.c */
int get_ctl_handle()
{
return -1;
}
int int
main(int argc, char *argv[]) main(int argc, char *argv[])