diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-09-17 10:27:25 -0500 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-09-17 10:27:25 -0500 |
commit | cf0c122e007d21c7e6ee683f278823aa1c55deb3 (patch) | |
tree | ce18219bb6fcb5670ad6702bf116e575e412e96a | |
parent | 2a5bfff40d0e5108a4ee15b68e746969bff97fcc (diff) | |
download | zlib-packaging-cf0c122e007d21c7e6ee683f278823aa1c55deb3.tar.gz zlib-packaging-cf0c122e007d21c7e6ee683f278823aa1c55deb3.tar.bz2 zlib-packaging-cf0c122e007d21c7e6ee683f278823aa1c55deb3.zip |
Start working on libz
-rwxr-xr-x | init | 5 | ||||
-rw-r--r-- | meta.lua | 33 |
2 files changed, 34 insertions, 4 deletions
@@ -1 +1,6 @@ | |||
1 | #!/bin/sh -ex | 1 | #!/bin/sh -ex |
2 | |||
3 | cd zlib | ||
4 | ./configure | ||
5 | make "CFLAGS=$CFLAGS" libz.a | ||
6 | cp libz.a /root | ||
@@ -1,6 +1,31 @@ | |||
1 | return { | 1 | |
2 | ["zlib"] = { | 2 | local optimizations = { |
3 | tiny = "-Oz", | ||
4 | size = "-Os", | ||
5 | debug = "-Og", | ||
6 | zero = "-O0", | ||
7 | one = "-O1", | ||
8 | two = "-O2", | ||
9 | three = "-O3", | ||
10 | } | ||
11 | local debug = { | ||
12 | release = "", | ||
13 | debug = "-g", | ||
14 | } | ||
15 | local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} | ||
16 | local builds = {} | ||
17 | |||
18 | for opti_k, opti_v, rel_k, rel_v, comp_k, comp_v in cartesian(optimizations, debug, compilers) do | ||
19 | builds["libz-" .. opti_k .. "-" .. rel_k .. "-" .. comp_k] = { | ||
20 | image = "image-" .. comp_k, | ||
3 | requires = {}, | 21 | requires = {}, |
4 | produces = {}, | 22 | produces = { |
23 | ["libz.a"] = true | ||
24 | }, | ||
25 | env = { | ||
26 | CFLAGS=" " .. opti_v .. " " .. rel_v | ||
27 | } | ||
5 | } | 28 | } |
6 | } | 29 | end |
30 | |||
31 | return builds | ||