diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2024-09-12 13:02:03 -0500 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2024-09-12 13:02:03 -0500 |
| commit | e0a950a484da0c8c62d93409d77dc08a3b796df3 (patch) | |
| tree | c2e8dded395053718fdb9e0581ea4440967cef49 /meta.lua | |
| parent | 74ce1948ccd6ee5fca878cfdaa22c611b83f1ae2 (diff) | |
| download | luajit-packaging-e0a950a484da0c8c62d93409d77dc08a3b796df3.tar.gz luajit-packaging-e0a950a484da0c8c62d93409d77dc08a3b796df3.tar.bz2 luajit-packaging-e0a950a484da0c8c62d93409d77dc08a3b796df3.zip | |
Add a meta step to build the linux binaries
Diffstat (limited to 'meta.lua')
| -rw-r--r-- | meta.lua | 16 |
1 files changed, 15 insertions, 1 deletions
| @@ -12,8 +12,20 @@ local debug = { | |||
| 12 | debug = "-g", | 12 | debug = "-g", |
| 13 | } | 13 | } |
| 14 | local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} | 14 | local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} |
| 15 | |||
| 16 | local builds = {} | 15 | local builds = {} |
| 16 | |||
| 17 | --2-part build since we need to compile some binaries for use during the rest of the build | ||
| 18 | builds["luajit-meta"] = { | ||
| 19 | requires = { | ||
| 20 | {"git","luajit"} | ||
| 21 | }, | ||
| 22 | produces = { | ||
| 23 | ["luajit/src/host/minilua"] = true, | ||
| 24 | ["luajit/src/host/buildvm"] = true | ||
| 25 | }, | ||
| 26 | entrypoint="init-nix" | ||
| 27 | } | ||
| 28 | |||
| 17 | for name, optimization, rel, flag, _, image in cartesian(optimizations, debug, compilers) do | 29 | for name, optimization, rel, flag, _, image in cartesian(optimizations, debug, compilers) do |
| 18 | local name = "luajit-" .. name .. "-" .. rel .. "-" .. image | 30 | local name = "luajit-" .. name .. "-" .. rel .. "-" .. image |
| 19 | builds[name] = { | 31 | builds[name] = { |
| @@ -21,6 +33,8 @@ for name, optimization, rel, flag, _, image in cartesian(optimizations, debug, c | |||
| 21 | requires = { | 33 | requires = { |
| 22 | {"git","luajit"}, | 34 | {"git","luajit"}, |
| 23 | {"cicd", "image-" .. image}, | 35 | {"cicd", "image-" .. image}, |
| 36 | {"cicd", "luajit-base:luajit/src/host/minilua"}, | ||
| 37 | {"cicd", "luajit-base:luajit/src/host/buildvm"}, | ||
| 24 | }, | 38 | }, |
| 25 | produces = { | 39 | produces = { |
| 26 | ["lua.exe"] = true, | 40 | ["lua.exe"] = true, |
