forked from davidgiven/wordgrinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.py
53 lines (51 loc) · 1.24 KB
/
build.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
from build.ab import export
from config import TEST_BINARY, VERSION, BUILDTYPE
export(
name="binaries",
items={
"bin/wordgrinder$(EXT)": TEST_BINARY,
}
| (
{"bin/xwordgrinder": "src/c+wordgrinder-glfw-x11"}
if BUILDTYPE == "unix"
else {}
)
| (
{"bin/wordgrinder-haiku": "src/c+wordgrinder-glfw-haiku"}
if BUILDTYPE == "haiku"
else {}
)
| (
{"bin/wordgrinder-osx": "src/c+wordgrinder-glfw-osx"}
if BUILDTYPE == "osx"
else {}
)
| (
{"bin/wordgrinder-windows$(EXT)": "src/c+wordgrinder-glfw-windows"}
if BUILDTYPE == "windows"
else {}
),
)
export(
name="all",
items=(
(
{
f"bin/WordGrinder-{VERSION}-setup.exe": "src/c/arch/win32+installer"
}
if BUILDTYPE == "windows"
else {}
)
| (
{f"bin/xwordgrinder.1": "extras+xwordgrinder.1"}
if BUILDTYPE in {"unix", "osx"}
else {}
)
| (
{"bin/wordgrinder.1": "extras+wordgrinder.1"}
if BUILDTYPE in {"unix", "osx"}
else {}
)
),
deps=["tests", "src/lua+typecheck", "+binaries"],
)