2024-07-27 14:24:46 +08:00
|
|
|
rule("engine.tool")
|
2024-07-27 15:03:10 +08:00
|
|
|
after_build(function (target)
|
|
|
|
|
local tooldir = path.join(os.projectdir(), "tools", target:name())
|
|
|
|
|
if not os.isdir(tooldir) then
|
|
|
|
|
os.mkdir(tooldir)
|
|
|
|
|
end
|
|
|
|
|
local exefile = target:targetfile()
|
|
|
|
|
os.cp(exefile, path.join(tooldir, path.filename(exefile)))
|
|
|
|
|
end)
|