quakeforge/tools/build_scripts/qf-win32.py
Bill Currie e34f0178b6 Build GLSL clients for SDL.
Just about to do a release, and I realized windows users wouldn't have any
way of checking out the new renderer. I'll add wglsl when I get a chance to
do some testing.
2012-02-08 22:05:58 +09:00

136 lines
2.3 KiB
Python
Executable file

#! /usr/bin/env python
from os import system
import sys
version = ""
prefix = "qf-win32"
dir = prefix
if len (sys.argv) >= 2:
version = "-" + sys.argv[1]
if len (sys.argv) >= 3:
prefix = sys.argv[2]
if len (sys.argv) >= 4:
dir = sys.argv[3]
if dir and dir[-1] != '/':
dir += '/'
server = [
dir,
dir + "bin",
dir + "bin/hw-master.exe",
dir + "bin/nq-server.exe",
dir + "bin/qw-master.exe",
dir + "bin/qw-server.exe",
dir + "bin/qtv.exe",
]
client_wgl = [
dir,
dir + "bin",
dir + "bin/nq-wgl.exe",
dir + "bin/qw-client-wgl.exe",
dir + "QF",
dir + "QF/menu.dat.gz",
dir + "QF/menu.plist",
]
client_sgl = [
dir,
dir + "bin",
dir + "bin/nq-sgl.exe",
dir + "bin/qw-client-sgl.exe",
dir + "QF",
dir + "QF/menu.dat.gz",
dir + "QF/menu.plist",
]
client_sglsl = [
dir,
dir + "bin",
dir + "bin/nq-sglsl.exe",
dir + "bin/qw-client-sglsl.exe",
dir + "QF",
dir + "QF/menu.dat.gz",
dir + "QF/menu.plist",
]
client_sdl = [
dir,
dir + "bin",
dir + "bin/nq-sdl.exe",
dir + "bin/qw-client-sdl.exe",
dir + "QF",
dir + "QF/menu.dat.gz",
dir + "QF/menu.plist",
]
client_sdl32 = [
dir,
dir + "bin",
dir + "bin/nq-sdl32.exe",
dir + "bin/qw-client-sdl32.exe",
dir + "QF",
dir + "QF/menu.dat.gz",
dir + "QF/menu.plist",
]
tools = [
dir,
dir + "bin",
dir + "bin/bsp2img.exe",
dir + "bin/pak.exe",
dir + "bin/qfbsp.exe",
dir + "bin/qflight.exe",
dir + "bin/qfmodelgen.exe",
dir + "bin/qfvis.exe",
dir + "bin/qfwavinfo.exe",
dir + "bin/wad.exe",
dir + "bin/zpak",
]
qfcc = [
dir,
dir + "bin",
dir + "bin/qfcc.exe",
dir + "bin/qfprogs.exe",
dir + "bin/qfpreqcc",
dir + "qfcc.1",
dir + "qfcc.pc",
]
qfcc_r = [
dir + "lib/qfcc",
]
devel = [
dir,
dir + "quakeforge.pc",
]
devel_r = [
dir + "include",
dir + "lib",
]
packages = [
(prefix + "-" + "server", server),
(prefix + "-" + "client-wgl", client_wgl),
(prefix + "-" + "client-sgl", client_sgl),
(prefix + "-" + "client-sglsl", client_sglsl),
(prefix + "-" + "client-sdl", client_sdl),
(prefix + "-" + "client-sdl32", client_sdl32),
(prefix + "-" + "tools", tools),
(prefix + "-" + "devel", devel),
(prefix + "-" + "devel", devel_r, "-r"),
("qfcc", qfcc),
("qfcc", qfcc_r, "-r"),
]
for p in packages:
opt = ""
if len (p) >= 3:
opt = p[2] + " "
cmd = "zip -9 " + opt + p[0] + version + ".zip " + " ".join (p[1])
print cmd
system (cmd)