diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-09-17 00:30:14 -0500 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-09-17 00:30:14 -0500 |
commit | ddda92602822527a60d0b050662ef35303d0ec54 (patch) | |
tree | 960b627e15f35369385effad7ba9d061852f6345 | |
parent | 3b02323e6fa69201203ac62e4524013f91ddb17d (diff) | |
download | portable-packaging-ddda92602822527a60d0b050662ef35303d0ec54.tar.gz portable-packaging-ddda92602822527a60d0b050662ef35303d0ec54.tar.bz2 portable-packaging-ddda92602822527a60d0b050662ef35303d0ec54.zip |
Add more builds with different flags
-rw-r--r-- | meta.lua | 50 |
1 files changed, 34 insertions, 16 deletions
@@ -1,4 +1,17 @@ | |||
1 | 1 | local optimizations = { | |
2 | tiny = "-Oz", | ||
3 | size = "-Os", | ||
4 | debug = "-Og", | ||
5 | zero = "-O0", | ||
6 | one = "-O1", | ||
7 | two = "-O2", | ||
8 | three = "-O3", | ||
9 | } | ||
10 | local debug = { | ||
11 | release = "", | ||
12 | debug = "-g", | ||
13 | } | ||
14 | local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} | ||
2 | local builds = {} | 15 | local builds = {} |
3 | builds["libressl-meta"] = { | 16 | builds["libressl-meta"] = { |
4 | image="image-mingw64", | 17 | image="image-mingw64", |
@@ -7,19 +20,24 @@ builds["libressl-meta"] = { | |||
7 | produces = {}, | 20 | produces = {}, |
8 | export=true, | 21 | export=true, |
9 | } | 22 | } |
10 | builds["libressl-mingw64"] = { | 23 | for opti_k, opti_v, rel_k, rel_v, comp_k, comp_v in cartesian(optimizations, debug, compilers) do |
11 | image="libressl-meta", | 24 | builds["libressl-" .. opti_k .. "-" .. rel_k .. "-" .. comp_k] = { |
12 | requires = { | 25 | image="libressl-meta", |
13 | {"git", "portable"}, | 26 | requires = { |
14 | }, | 27 | {"git", "portable"}, |
15 | produces = { | 28 | }, |
16 | ["libssl.a"] = true, | 29 | produces = { |
17 | ["libtls.a"] = true, | 30 | ["libssl.a"] = true, |
18 | ["libbs.a"] = true, | 31 | ["libtls.a"] = true, |
19 | ["libcompat.a"] = true, | 32 | ["libbs.a"] = true, |
20 | ["libcompatnoopt.a"] = true, | 33 | ["libcompat.a"] = true, |
21 | ["libcrypto.a"] = true, | 34 | ["libcompatnoopt.a"] = true, |
22 | }, | 35 | ["libcrypto.a"] = true, |
23 | timeout = 600, --Jeez this takes forever | 36 | }, |
24 | } | 37 | timeout = 600, --Jeez this takes forever |
38 | env = { | ||
39 | CFLAGS=" " .. opti_v .. " " .. rel_v | ||
40 | }, | ||
41 | } | ||
42 | end | ||
25 | return builds | 43 | return builds |