blob: 1f991698bc9b012327a0b5b7476dac442f6cbb93 (
plain) (
tree)
|
|
fonts = {}
for _, file in pairs(Collect('res/fonts/*.s')) do
local out = PathJoin('build', PathBase(file) .. '.bf')
AddJob(out, "nasm font " .. out, "nasm -o " .. out .. " " .. file)
AddDependency(out, file)
table.insert(fonts, out)
end
for _, file in pairs(Collect('res/fonts/*.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) .. '.bf')
AddJob(out, "call font " .. bin, "./" .. bin .. " > " .. out)
AddDependency(out, bin)
table.insert(fonts, out)
end
|