summaryrefslogtreecommitdiff
path: root/meta.lua
blob: 6d5a0b7908fa9f4938f329f7438fd3c5e6a7f8d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
local optimizations = {
	tiny = "-Oz",
	size = "-Os",
	debug = "-Og",
	zero = "-O0",
	one = "-O1",
	two = "-O2",
	three = "-O3",
}
local debug = {
	release = "",
	debug = "-g",
}
local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]}
local builds = {}
for opti_k, opti_v, rel_k, rel_v, _, comp_v in cartesian(optimizations, debug, compilers) do
	local build = {
		timeout=600,
		image="image-" .. comp_v,
		requires = {
			{"git","busybox-w32"},
			{"cicd","libressl-" .. opti_k .. "-" .. rel_k .. "-" .. comp_v .. ":include.tar.gz"},
			{"cicd","libressl-" .. opti_k .. "-" .. rel_k .. "-" .. comp_v .. ":libtls.a"},
			{"cicd","libressl-" .. opti_k .. "-" .. rel_k .. "-" .. comp_v .. ":libssl.a"},
			{"cicd","libressl-" .. opti_k .. "-" .. rel_k .. "-" .. comp_v .. ":libcrypto.a"},
		},
		produces = {
			["busybox.exe"] = true
		},
		env = {
			CFLAGS = opti_v .. " " .. rel_v .. " -fdiagnostics-color=always",
		}
	}
	if opti_k == "zero" then
		build.env.ZERO_PATCH="true"
	end
	builds["busybox-w32-" .. opti_k .. "-" .. rel_k .. "-" .. comp_v] = build
end
return builds