diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/meson.build | 25 | ||||
-rwxr-xr-x | src/mk | 25 |
2 files changed, 25 insertions, 25 deletions
diff --git a/src/meson.build b/src/meson.build new file mode 100644 index 0000000..128a7b5 --- /dev/null +++ b/src/meson.build @@ -0,0 +1,25 @@ + +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' +) + @@ -1,25 +0,0 @@ -#!../mach - -INCLUDES := -isystem${ROOTDIR}grub -I${ROOTDIR}${ARCH} -I${ROOTDIR}devices -${ARCH}_CFLAGS += ${INCLUDES} -${ARCH}_CXXFLAGS += ${INCLUDES} - -TARGETLIB += kernel -kernel.SRCS := multiboot2.c mmap.c kernel.cpp mem/vmm.c - -HOSTTARGETBIN += sched/test_taskqueue -sched/test_taskqueue.SRCS = sched/test_taskqueue.cc - -HOSTTARGETBIN += sched/test_roundrobin -sched/test_roundrobin.SRCS = sched/test_roundrobin.cc - -TESTS += \ - sched/test_taskqueue sched/test_roundrobin - -kernel.c: conf.h -conf.h: conf.h.in - @echo ' GEN $@' - @cp conf.h.in conf.h - @sed -i 's/@VERSION@/$(shell git describe)/' conf.h - @sed -i 's/@CC@/${${ARCH}_CCID}/' conf.h - |