diff options
author | aqua <aqua@iserlohn-fortress.net> | 2023-10-08 19:50:00 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2023-11-27 21:02:22 +0200 |
commit | fc13fb2ba5993d06d9d6ae5e80bc337aebbdc119 (patch) | |
tree | 9607ab4d5f1d4069d4f761a0b25eada36088bd6b /lib/libk | |
parent | rules.mk: make include paths absolute (diff) | |
download | kernel-fc13fb2ba5993d06d9d6ae5e80bc337aebbdc119.tar.xz |
Use meson build system
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' +) |