summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-09-17 13:33:36 -0500
committerAlexander M Pickering <alex@cogarr.net>2024-09-17 13:33:36 -0500
commit7822ce049ab81676adda2e72e5ac32178c3c506a (patch)
tree588459e9b2cecb98f3d18a99d1fa961af54ad482
parent6a8cd8416fb2ced081eba03b0880fecdeeb0cd53 (diff)
downloadbzip2-packaging-7822ce049ab81676adda2e72e5ac32178c3c506a.tar.gz
bzip2-packaging-7822ce049ab81676adda2e72e5ac32178c3c506a.tar.bz2
bzip2-packaging-7822ce049ab81676adda2e72e5ac32178c3c506a.zip
Start work on bz2
-rw-r--r--meta.lua39
1 files changed, 34 insertions, 5 deletions
diff --git a/meta.lua b/meta.lua
index 7caa256..bd9a67d 100644
--- a/meta.lua
+++ b/meta.lua
@@ -1,6 +1,35 @@
1return { 1local 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}
12local debug = {
13 --[[
14 release = "",
15 ]]
16 debug = "-g",
6} 17}
18local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]}
19
20local builds = {}
21for 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 }
34end
35return builds