1
0
Fork 0

.bam/functions.lua: delete BuildExample() and BuildExamples()

This commit is contained in:
Henrik Hautakoski 2022-09-10 21:35:39 +02:00
parent 315f2e9c41
commit b913c2024d

View file

@ -75,30 +75,3 @@ function CopyDir(dst, src)
end
return r
end
-- Build example binary.
-- This function Imports "examples/<name>/bam.lua"
-- that file must define a table "src" that contains the source files.
function BuildExample(settings, name, dependencies)
Import("examples/" .. name .. "/bam.lua")
exe = Link(settings, PathJoin(paths.examples, name), Compile(settings, src))
if dependencies ~= nil and #dependencies > 0 then
AddDependency(exe, dependencies)
end
return exe
end
-- Build examples binaries.
-- Just a wrapper for BuildExample. taking a table of names instead.
function BuildExamples(settings, names, dependencies)
local r = {}
for i = 1, #names do
r[i] = BuildExample(settings, names[i], dependencies)
end
return r
end