-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathbuild.py
More file actions
58 lines (57 loc) · 1.42 KB
/
Copy pathbuild.py
File metadata and controls
58 lines (57 loc) · 1.42 KB
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
54
55
56
57
58
from build.ab import export
from config import (
TEST_BINARY,
VERSION,
BUILDTYPE,
HAS_OSX,
HAS_NCURSES,
HAS_XWORDGRINDER,
HAS_HAIKU,
IS_WINDOWS,
)
export(
name="all",
items={
"bin/wordgrinder$(EXT)": TEST_BINARY,
}
| (
{"bin/xwordgrinder": "src/c+wordgrinder-glfw-x11"}
if HAS_XWORDGRINDER
else {}
)
| (
{"bin/wordgrinder-haiku": "src/c+wordgrinder-glfw-haiku"}
if HAS_HAIKU
else {}
)
| (
{
"bin/wordgrinder-osx": "src/c+wordgrinder-glfw-osx",
"bin/wordgrinder-osx-ncurses": "src/c+wordgrinder-ncurses",
"bin/wordgrinder-osx.app.zip": "src/c+wordgrinder_app",
f"bin/WordGrinder-{VERSION}-setup.pkg": "src/c+wordgrinder_pkg",
}
if HAS_OSX
else {}
)
| (
{
"bin/wordgrinder-windows$(EXT)": "src/c+wordgrinder-glfw-windows",
"bin/wordgrinder-wincon$(EXT)": "src/c+wordgrinder-wincon",
f"bin/WordGrinder-{VERSION}-setup.exe": "src/c/arch/win32+installer",
}
if IS_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"],
)