mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[meson] build cookies/parsetst
This commit is contained in:
parent
6e83bbf23c
commit
88c82224b0
@ -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'})
|
||||
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')
|
||||
|
||||
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:['.', '..', '../..'])
|
||||
|
@ -10,6 +10,11 @@
|
||||
|
||||
#include "cookies/parser.h"
|
||||
|
||||
/* fake tty get function, needed for charsets.c */
|
||||
int get_ctl_handle()
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
|
Loading…
x
Reference in New Issue
Block a user