libk_srcs = files( 'endian/little.c', 'stdio/printf.c', 'stdio/fprintf.c', 'stdio/vfprintf.c', 'stdlib/memcpy.c', 'stdlib/memset.c', 'stdlib/linked_list_allocator.c', 'string/itoa.c') libk_incl = include_directories('include') libk = declare_dependency( link_with: static_library('k', libk_srcs, include_directories: libk_incl), include_directories: libk_incl, ) # tests test('endian little', executable('test_endian_little', 'endian/test_endian_little.cc', dependencies: [ gtest ], native: true), suite: 'libk' ) test('linked list allocator', executable('test_linked_list_allocator', 'stdlib/test_linked_list_allocator.cc', dependencies: [ gtest ], native: true), suite: 'libk' ) test('mem', executable('test_mem', 'stdlib/test_mem.cc', dependencies: [ gtest ], native: true), suite: 'libk' ) test('string', executable('test_string', 'string/test_string.cc', dependencies: [ gtest ], native: true), suite: 'libk' )