aboutsummaryrefslogtreecommitdiff
path: root/lib/libk/meson.build
blob: 669780b1ec1e30d4c85fc283656d139dc56008a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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'
)