mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed build.py
This commit is contained in:
parent
24151cb553
commit
b2aa4add16
|
@ -107,10 +107,12 @@ if 1:
|
||||||
print "*** building bam ***"
|
print "*** building bam ***"
|
||||||
os.chdir("bam")
|
os.chdir("bam")
|
||||||
output = "bam"
|
output = "bam"
|
||||||
|
bam_cmd = "./bam"
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
if os.system("make_win32_msvc2005.bat") != 0:
|
if os.system("make_win32_msvc2005.bat") != 0:
|
||||||
bail("failed to build bam")
|
bail("failed to build bam")
|
||||||
output += ".exe"
|
output += ".exe"
|
||||||
|
bam_cmd = "bam"
|
||||||
else:
|
else:
|
||||||
if os.system("sh make_unix.sh") != 0:
|
if os.system("sh make_unix.sh") != 0:
|
||||||
bail("failed to build bam")
|
bail("failed to build bam")
|
||||||
|
@ -121,7 +123,7 @@ if 1:
|
||||||
if 1:
|
if 1:
|
||||||
print "*** building teewars ***"
|
print "*** building teewars ***"
|
||||||
os.chdir(src_dir)
|
os.chdir(src_dir)
|
||||||
if os.system("./bam server_release client_release") != 0:
|
if os.system("%s server_release client_release" % bam_cmd) != 0:
|
||||||
bail("failed to build teewars")
|
bail("failed to build teewars")
|
||||||
os.chdir(root_dir)
|
os.chdir(root_dir)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue