aboutsummaryrefslogtreecommitdiff
path: root/res/keymaps/bam.lua
blob: f078dd0ccff498267ab9efc0af875a9cad8f8d48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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