-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathwindows.py
More file actions
42 lines (35 loc) · 1.22 KB
/
windows.py
File metadata and controls
42 lines (35 loc) · 1.22 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
#!/usr/bin/env python3
from software.zstd import ZStd
from software.glfw import GLFW
from software.sdl import SDL
from software.openal import OpenAL
from software.fluidsynth import Fluidsynth
from software.freetype import Freetype
from software.angle import Angle
from common import Github, Software, SoftwareImpl, parse_args, dump_build_notes, filter_software_to_build, ARTIFACT_DIR, ROOT_DIR
if __name__ == "__main__":
args = parse_args()
to_build: list[SoftwareImpl] = [
ZStd,
GLFW,
SDL,
OpenAL,
Freetype,
Fluidsynth,
Angle
]
build_softwares = filter_software_to_build(to_build, args)
# We expect vcpkg_installed to exist on system, else Fluidsynth is going to fail
vcpkg_dir = ROOT_DIR.joinpath("vcpkg_installed")
if not vcpkg_dir.exists():
Github.notice("VCPkgs are not installed to {vcpkg_dir}, some builds may fail")
for build in build_softwares:
with Github.LogGroup(f"Building {build.name}"):
build.build()
build.publish()
dump_build_notes(
"native-build (Windows)",
ROOT_DIR,
ARTIFACT_DIR.joinpath("notes.md"),
[f"- {build.name}" for build in build_softwares],
)