summaryrefslogtreecommitdiff
path: root/meta.lua
diff options
context:
space:
mode:
Diffstat (limited to 'meta.lua')
-rw-r--r--meta.lua49
1 files changed, 41 insertions, 8 deletions
diff --git a/meta.lua b/meta.lua
index 6fd3d9b..7ac570f 100644
--- a/meta.lua
+++ b/meta.lua
@@ -1,11 +1,44 @@
1local lua_versions = {"5.1","5.2","5.3","5.4"} 1local lua_versions = {
2 ["51"] = "https://www.lua.org/ftp/lua-5.1.5.tar.gz",
3 --[[
4 ["52"] = "https://www.lua.org/ftp/lua-5.2.4.tar.gz",
5 ["53"] = "https://www.lua.org/ftp/lua-5.3.6.tar.gz",
6 ["54"] = "https://www.lua.org/ftp/lua-5.4.7.tar.gz",
7 ]]
8}
9local optimizations = {
10 size = "-Os",
11 --[[
12 zero = "-O0",
13 one = "-O1",
14 two = "-O2",
15 three = "-O3",
16 ]]
17}
18local debug = {
19 release = "",
20 --[[
21 debug = "-g",
22 ]]
23}
24local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]}
25-- We can't actually use the git version from github, it's missing luac.c, which is needed to build the luac executable.
26-- Even though early makefiles, and later `onelua.c` files suggest it should exist.
2 27
3return { 28local builds = {}
4 { 29for version, link, name, optimization, rel, flag, _, image in cartesian(lua_versions, optimizations, debug, compilers) do
5 name = "lua51", 30 table.insert(builds,{
31 image = "image-" .. compilers,
32 name = "lua" .. version .. optimization .. "-" .. rel .. "-" .. name .. "-" .. image,
6 requires = { 33 requires = {
7 {"git","lua#v5.1"}, 34 {"http", link},
8 }, 35 },
9 produces = {}, 36 produces = {
10 } 37 "lua.exe",
11} 38 "lua" .. version .. ".dll",
39 "luac.exe",
40 },
41 entrypoint = "init " .. rel .. " " .. flag,
42 })
43end
44return builds