diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-09-17 13:33:36 -0500 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-09-17 13:33:36 -0500 |
commit | 7822ce049ab81676adda2e72e5ac32178c3c506a (patch) | |
tree | 588459e9b2cecb98f3d18a99d1fa961af54ad482 | |
parent | 6a8cd8416fb2ced081eba03b0880fecdeeb0cd53 (diff) | |
download | bzip2-packaging-7822ce049ab81676adda2e72e5ac32178c3c506a.tar.gz bzip2-packaging-7822ce049ab81676adda2e72e5ac32178c3c506a.tar.bz2 bzip2-packaging-7822ce049ab81676adda2e72e5ac32178c3c506a.zip |
Start work on bz2
-rw-r--r-- | meta.lua | 39 |
1 files changed, 34 insertions, 5 deletions
@@ -1,6 +1,35 @@ | |||
1 | return { | 1 | local optimizations = { |
2 | ["bzip2"] = { | 2 | tiny = "-Oz", |
3 | requires = {}, | 3 | --[[ |
4 | produces = {}, | 4 | size = "-Os", |
5 | } | 5 | debug = "-Og", |
6 | zero = "-O0", | ||
7 | one = "-O1", | ||
8 | two = "-O2", | ||
9 | three = "-O3", | ||
10 | ]] | ||
11 | } | ||
12 | local debug = { | ||
13 | --[[ | ||
14 | release = "", | ||
15 | ]] | ||
16 | debug = "-g", | ||
6 | } | 17 | } |
18 | local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} | ||
19 | |||
20 | local builds = {} | ||
21 | for opti_k, opti_v, debug_k, debug_v, comp_k, comp_v in cartesian(optimizations, debug, compilers) do | ||
22 | builds["bzip2-" .. "-" .. opti_k .. "-" .. debug_k .. "-" .. comp_v] = { | ||
23 | image="image-" .. comp_v, | ||
24 | requires = { | ||
25 | {"git", "bzip2"}, | ||
26 | }, | ||
27 | produces = { | ||
28 | ["bzip2.a"] = true, | ||
29 | }, | ||
30 | env = { | ||
31 | CFLAGS = " " .. opti_v .. " " .. debug_v, | ||
32 | } | ||
33 | } | ||
34 | end | ||
35 | return builds | ||