libk_srcs = ['memcpy.c', 'memset.c', 'string/itoa.c'] libk = static_library('k', [libk_srcs, 'stdio/printf.c'], include_directories: ['.', '..'], override_options: 'b_coverage=false' ) tk = library('tk', libk_srcs, include_directories: ['.', '..'], native: true ) test('mem', executable('mem', 'test/mem.c', c_args: '-fno-builtin', link_with: tk, native: true), suite: 'libk') test('string', executable('string', 'test/string.c', c_args: '-fno-builtin', link_with: tk, native: true), suite: 'libk')