summaryrefslogtreecommitdiff
path: root/meta.lua
blob: 6282d008ebdcbd09dd60bc4f5bedbc1dc6203e45 (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
40
41
42
43
44
45
46
47
48
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 = {}
builds["libressl-meta"] = {
	image="image-mingw64",
	entrypoint="image",
	requires = {},
	produces = {},
	export=true,
}
local libressl="v4.0.0" -- pin a verson since master is unstable
for opti_k, opti_v, rel_k, rel_v, comp_k, comp_v in cartesian(optimizations, debug, compilers) do
	builds["libressl-" .. opti_k .. "-" .. rel_k .. "-" .. comp_v] = {
		image="libressl-meta",
		requires = {
			{"git", "portable#" .. libressl},
			{"git", "openbsd#libressl-" .. libressl}
		},
		produces = {
			["libssl.a"] = true,
			["libtls.a"] = true,
			["libbs.a"] = true,
			["libcompat.a"] = true,
			["libcompatnoopt.a"] = true,
			["libcrypto.a"] = true,
			["openssl.exe"] = true,
			["include.tar.gz"] = true
		},
		timeout = 600, --Jeez this takes forever
		env = {
			CFLAGS=" " .. opti_v .. " " .. rel_v,
			LIBRESSL_VERSION=libressl
		},
	}
end
return builds