From b913c2024d1c7c06c72f701d9d254d0fd2399c3a Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sat, 10 Sep 2022 21:35:39 +0200 Subject: [PATCH] .bam/functions.lua: delete BuildExample() and BuildExamples() --- .bam/functions.lua | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/.bam/functions.lua b/.bam/functions.lua index 38ff1d6..40ffc04 100644 --- a/.bam/functions.lua +++ b/.bam/functions.lua @@ -75,30 +75,3 @@ function CopyDir(dst, src) end return r end - --- Build example binary. --- This function Imports "examples//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