aboutsummaryrefslogtreecommitdiff
path: root/src/meson.build
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2023-11-27 21:26:14 +0200
committeraqua <aqua@iserlohn-fortress.net>2023-11-27 21:26:14 +0200
commitd83d4ca8445384bb2d3597217873322f89e968f6 (patch)
tree1ebdf6af4a873170925e3ceb05b4a01fad58f7cf /src/meson.build
parentUse meson build system (diff)
downloadkernel-d83d4ca8445384bb2d3597217873322f89e968f6.tar.xz
Generate src/conf.h
Diffstat (limited to 'src/meson.build')
-rw-r--r--src/meson.build11
1 files changed, 11 insertions, 0 deletions
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('.')