summaryrefslogtreecommitdiff
path: root/meta.lua
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-11-07 12:51:36 -0600
committerAlexander M Pickering <alex@cogarr.net>2024-11-07 12:51:36 -0600
commitff625e7287c6210a4b0e841eacfc58db38992623 (patch)
tree5c0c685a6e86060bc9385641d7e50de8af9132a1 /meta.lua
parent393798fbc8768c499c7523c45dc48ff8df3013b1 (diff)
downloadbusybox-w32-packaging-ff625e7287c6210a4b0e841eacfc58db38992623.tar.gz
busybox-w32-packaging-ff625e7287c6210a4b0e841eacfc58db38992623.tar.bz2
busybox-w32-packaging-ff625e7287c6210a4b0e841eacfc58db38992623.zip
Work on multiple builds
Diffstat (limited to 'meta.lua')
-rw-r--r--meta.lua31
1 files changed, 27 insertions, 4 deletions
diff --git a/meta.lua b/meta.lua
index b7f257c..9b6d799 100644
--- a/meta.lua
+++ b/meta.lua
@@ -1,12 +1,35 @@
1return { 1local optimizations = {
2 ["busybox-w32"] = { 2--[[
3 tiny = "-Oz",
4 size = "-Os",
5 debug = "-Og",
6 zero = "-O0",
7 one = "-O1",
8 two = "-O2",
9]]
10 three = "-O3",
11}
12local debug = {
13-- release = "",
14 debug = "-g",
15}
16local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]}
17local builds = {}
18for opti_k, opti_v, rel_k, rel_v, comp_k, comp_v in cartesian(optimizations, debug, compilers) do
19 builds["busybox-w32-" .. opti_k .. "-" .. rel_k .. "-" .. comp_k] = {
3 timeout=600, 20 timeout=600,
4 image="image-mingw64", 21 image="image-" .. comp_v,
5 requires = { 22 requires = {
6 {"git","busybox-w32"}, 23 {"git","busybox-w32"},
24 {"cicd","libressl-" .. opti_k .. "-" .. rel_k .. "-" .. comp_k .. ":include.tar.gz"},
25 {"cicd","libressl-" .. opti_k .. "-" .. rel_k .. "-" .. comp_k .. ":libtls.a"}
7 }, 26 },
8 produces = { 27 produces = {
9 ["busybox.exe"] = true 28 ["busybox.exe"] = true
10 }, 29 },
30 env = {
31 CFLAGS = opti_v .. " " .. rel_v,
32 }
11 } 33 }
12} 34end
35return builds