diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2024-11-07 12:51:36 -0600 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2024-11-07 12:51:36 -0600 |
| commit | ff625e7287c6210a4b0e841eacfc58db38992623 (patch) | |
| tree | 5c0c685a6e86060bc9385641d7e50de8af9132a1 /meta.lua | |
| parent | 393798fbc8768c499c7523c45dc48ff8df3013b1 (diff) | |
| download | busybox-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.lua | 31 |
1 files changed, 27 insertions, 4 deletions
| @@ -1,12 +1,35 @@ | |||
| 1 | return { | 1 | local 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 | } | ||
| 12 | local debug = { | ||
| 13 | -- release = "", | ||
| 14 | debug = "-g", | ||
| 15 | } | ||
| 16 | local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} | ||
| 17 | local builds = {} | ||
| 18 | for 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 | } | 34 | end |
| 35 | return builds | ||
