aboutsummaryrefslogtreecommitdiff
path: root/src/meson.build
blob: 881dffa23973e2e672dfd7599e7da4c8cfe28fa3 (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

# generated files
conf_h = configure_file(
  #input: 'conf.h.in',
  output: 'conf.h',
  configuration: {
    'VERSION': '"@0@"'.format(meson.project_version()),
    'CC': '"@0@-@1@"'.format(meson.get_compiler('c').version(),
                             meson.get_compiler('c').get_id()),
  }
)

kernel_srcs = files('multiboot2.c', 'mmap.c', 'kernel.c', 'mem/vmm.c')
kernel_incl = include_directories('.')

glitch_elf = executable('glitch.elf', kernel_srcs,
  include_directories: [ kernel_incl, grub_incl ],
  dependencies: [ libk, devs, i686 ],
  link_args: [ '-static', '-nostdlib', '-T', '../i686/linker.ld' ],
)

# tests
test('taskqueue',
  executable('test_taskqueue', 'sched/test_taskqueue.cc',
    dependencies: [ gtest ],
    native: true),
  suite: 'kernel'
)

test('roundrobin',
  executable('test_roundrobin', 'sched/test_roundrobin.cc',
    dependencies: [ gtest ],
    native: true),
  suite: 'kernel'
)