ack/build.lua

95 lines
1.3 KiB
Lua
Raw Normal View History

vars.cflags = {
2018-06-02 19:48:18 +00:00
"$(CFLAGS)"
}
vars.ackcflags = {
"-O6"
}
vars.ackldflags = {}
vars.plats = {
2024-02-22 15:13:52 +00:00
"pc65oo2",
}
vars.plats_with_tests = {
2024-02-22 15:13:52 +00:00
"pc65oo2",
}
local is_windows = os.getenv("OS") == "Windows_NT"
local int = {}
if not is_windows then
int[#int+1] = "util/int+pkg"
end
installable {
2019-06-10 22:12:10 +00:00
name = "ack-common",
map = {
2016-08-11 22:19:51 +00:00
"lang/basic/src+pkg",
2016-08-12 22:02:21 +00:00
"lang/cem/cemcom.ansi+pkg",
2024-02-22 15:13:52 +00:00
--"lang/m2/comp+pkg",
2016-08-13 11:03:06 +00:00
"lang/pc/comp+pkg",
"lang/b/compiler+pkg",
"util/ack+pkg",
"util/amisc+pkg",
"util/arch+pkg",
"util/ass+pkg",
"util/ego+pkg",
2016-08-14 12:40:01 +00:00
"util/led+pkg",
"util/misc+pkg",
2016-08-07 19:56:53 +00:00
"util/opt+pkg",
int
2019-06-10 22:12:10 +00:00
},
}
local plat_packages = {}
local test_packages = {}
for _, p in ipairs(vars.plats) do
local pkg = "plat/"..p.."+pkg"
plat_packages[#plat_packages+1] = pkg
installable {
name = "ack-"..p,
map = {
"+ack-common",
pkg,
},
}
end
for _, p in ipairs(vars.plats_with_tests) do
test_packages[#test_packages+1] = "plat/"..p.."/tests+tests"
end
installable {
name = "ack",
map = {
"+ack-common",
"examples+pkg",
plat_packages
},
}
if not is_windows then
normalrule {
name = "tests",
ins = {
"first/testsummary.sh",
test_packages
},
outleaves = {
"stamp"
},
commands = {
"%{ins}"
}
}
else
normalrule {
name = "tests",
ins = {},
outleaves = {
"stamp"
},
commands = {
"touch %{outs}"
}
}
end