From 360da84db0d7165c84d160b518f39cd16006c758 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 13 Jul 2016 22:31:46 +0200 Subject: Migrate to BAM build tool --- res/keymaps/bam.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 res/keymaps/bam.lua (limited to 'res/keymaps') diff --git a/res/keymaps/bam.lua b/res/keymaps/bam.lua new file mode 100644 index 0000000..f078dd0 --- /dev/null +++ b/res/keymaps/bam.lua @@ -0,0 +1,12 @@ +keymaps = {} + +for _, file in pairs(Collect('res/keymaps/*.c')) do + local obj = Compile(host_settings, file) + local tgt = PathJoin('build', PathBase(file) .. '_tmp') + local bin = Link(host_settings, tgt, obj) + + local out = PathJoin('build', PathBase(file) .. '.km') + AddJob(out, "call font " .. bin, "./" .. bin .. " > " .. out) + AddDependency(out, bin) + table.insert(keymaps, out) +end -- cgit v1.2.3