diff options
| -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 | ||
