kolibrios/programs/games/c4/trunk/Tupfile.lua
Ivan Baravy 142ed3aef0 Fix autobuild for games/c4 (nasm)
git-svn-id: svn://kolibrios.org@10044 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-05-21 15:44:29 +00:00

8 lines
404 B
Lua

if tup.getconfig("NO_NASM") ~= "" then return end
-- tup.rule is too unmannerly to %define
tup.definerule{
command = "echo %%define lang '" .. ((tup.getconfig("LANG") == "") and "en" or tup.getconfig("LANG")) .. "'> %o",
outputs = {"lang_nasm.inc"}
}
tup.rule({"c4.asm", extra_inputs = {"lang_nasm.inc"}}, "nasm -I" .. tup.getvariantdir() .. "/ -f bin -o %o %f " .. tup.getconfig("KPACK_CMD"), "c4")