From d83d4ca8445384bb2d3597217873322f89e968f6 Mon Sep 17 00:00:00 2001 From: aqua Date: Mon, 27 Nov 2023 21:26:14 +0200 Subject: Generate src/conf.h --- src/conf.h.in | 4 ---- src/meson.build | 11 +++++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) delete mode 100644 src/conf.h.in 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('.') -- cgit v1.2.1