{ 'tname': 'knot_pkt_t', 'incl' : '#include <libknot/packet/pkt.h>', 'dep': libknot },
]
# Construct the lua tester as a meson string.
+ if meson.version().version_compare('>=1.4')
+ kres_gen_lua_path = kres_gen_lua.full_path()
+ else
+ kres_gen_lua_path = '@0@/../../@1@'.format(meson.current_build_dir(), kres_gen_lua)
+ endif
kres_gen_test_luastr = '''
- dofile('@0@/../../@1@')
+ dofile('@0@')
local ffi = require('ffi')
- '''.format(meson.current_build_dir(), kres_gen_lua)
+ '''.format(kres_gen_lua_path)
foreach ttc: types_to_check
# We're careful with adding just includes; otherwise it's more fragile (e.g. linking flags).
if 'dep' in ttc
conftest_env.prepend('PATH', sbin_dir)
conftest_env.set('KRESD_NO_LISTEN', '1')
conftest_env.set('SOURCE_PATH', meson.current_source_dir())
- conftest_env.set(
- 'TEST_FILE', '@0@/@1@'.format(meson.source_root(), config_test[1][0]))
+ if meson.version().version_compare('>=1.4')
+ conftest_env.set('TEST_FILE', '@0@'.format(config_test[1][0].full_path()))
+ else
+ conftest_env.set('TEST_FILE', '@0@/@1@'.format(meson.source_root(), config_test[1][0]))
+ endif
test(
'config.' + config_test[0],