diff options
Diffstat (limited to 'lib/libk')
-rw-r--r-- | lib/libk/include/endian.h (renamed from lib/libk/endian.h) | 0 | ||||
-rw-r--r-- | lib/libk/include/stdio.h (renamed from lib/libk/stdio.h) | 0 | ||||
-rw-r--r-- | lib/libk/include/stdlib.h (renamed from lib/libk/stdlib.h) | 0 | ||||
-rw-r--r-- | lib/libk/include/string.h (renamed from lib/libk/string.h) | 0 | ||||
-rw-r--r-- | lib/libk/meson.build | 41 |
5 files changed, 41 insertions, 0 deletions
diff --git a/lib/libk/endian.h b/lib/libk/include/endian.h index 6aa2669..6aa2669 100644 --- a/lib/libk/endian.h +++ b/lib/libk/include/endian.h diff --git a/lib/libk/stdio.h b/lib/libk/include/stdio.h index 7a6e663..7a6e663 100644 --- a/lib/libk/stdio.h +++ b/lib/libk/include/stdio.h diff --git a/lib/libk/stdlib.h b/lib/libk/include/stdlib.h index 143c931..143c931 100644 --- a/lib/libk/stdlib.h +++ b/lib/libk/include/stdlib.h diff --git a/lib/libk/string.h b/lib/libk/include/string.h index 45b05a5..45b05a5 100644 --- a/lib/libk/string.h +++ b/lib/libk/include/string.h diff --git a/lib/libk/meson.build b/lib/libk/meson.build new file mode 100644 index 0000000..669780b --- /dev/null +++ b/lib/libk/meson.build @@ -0,0 +1,41 @@ + +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' +) |