.bam/functions.lua: delete BuildExample() and BuildExamples()
This commit is contained in:
parent
315f2e9c41
commit
b913c2024d
1 changed files with 0 additions and 27 deletions
|
|
@ -75,30 +75,3 @@ function CopyDir(dst, src)
|
||||||
end
|
end
|
||||||
return r
|
return r
|
||||||
end
|
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
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue