From 8495bc3169939d034622dcbf6fb84016a7430ef2 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 22 Mar 2023 15:15:10 +0100 Subject: tilemap build system done --- scripts/manifest2header.awk | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 scripts/manifest2header.awk (limited to 'scripts/manifest2header.awk') diff --git a/scripts/manifest2header.awk b/scripts/manifest2header.awk new file mode 100755 index 0000000..15cd682 --- /dev/null +++ b/scripts/manifest2header.awk @@ -0,0 +1,13 @@ +#!/bin/awk -f +BEGIN { + offset = 0 + print "#pragma once" +} +1 { + print "#define HH_TM_"toupper($1)"_OFFSET "offset + print "#define HH_TM_"toupper($1)"_SIZE "$2 + offset += $2 +} +END { + print "#define HH_TM_SIZE "offset +} -- cgit v1.2.3