diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/conf.h.in | 4 | ||||
-rw-r--r-- | src/meson.build | 11 |
2 files changed, 11 insertions, 4 deletions
diff --git a/src/conf.h.in b/src/conf.h.in deleted file mode 100644 index 52093a8..0000000 --- a/src/conf.h.in +++ /dev/null @@ -1,4 +0,0 @@ -#pragma once - -#define VERSION "@VERSION@" -#define CC "@CC@" diff --git a/src/meson.build b/src/meson.build index 128a7b5..881dffa 100644 --- a/src/meson.build +++ b/src/meson.build @@ -1,4 +1,15 @@ +# 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('.') |