Set path to source port binary in Makefile
This commit is contained in:
parent
71fbd71195
commit
3243cc4968
|
@ -1,4 +1,5 @@
|
||||||
|
|
||||||
|
export SOURCE_PORT = $(shell which chocolate-doom)
|
||||||
export SDL_VIDEODRIVER = dummy
|
export SDL_VIDEODRIVER = dummy
|
||||||
export DOOMOPTS = -mb 16 -nodraw -noblit -nosound \
|
export DOOMOPTS = -mb 16 -nodraw -noblit -nosound \
|
||||||
-noautoload -nogui -nograbmouse
|
-noautoload -nogui -nograbmouse
|
||||||
|
|
|
@ -20,11 +20,13 @@ def read_config(path):
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
source_port = os.getenv("SOURCE_PORT")
|
||||||
|
assert source_port != "", "SOURCE_PORT environment variable not set."
|
||||||
lmp_file, out_file = sys.argv[1:]
|
lmp_file, out_file = sys.argv[1:]
|
||||||
cfg = read_config(lmp_file)
|
cfg = read_config(lmp_file)
|
||||||
|
|
||||||
args = [
|
args = [
|
||||||
"chocolate-doom", "-iwad", cfg["iwad"],
|
source_port, "-iwad", cfg["iwad"],
|
||||||
"-statdump", out_file,
|
"-statdump", out_file,
|
||||||
"-timedemo", lmp_file,
|
"-timedemo", lmp_file,
|
||||||
] + shlex.split(os.getenv("DOOMOPTS", ""))
|
] + shlex.split(os.getenv("DOOMOPTS", ""))
|
||||||
|
|
Loading…
Reference in New Issue