mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-11 10:54:15 +02:00
fix lua related compiling errors on windows
This commit is contained in:
11
SConscript
11
SConscript
@@ -179,6 +179,7 @@ if not GetOption("macosx"):
|
|||||||
|
|
||||||
# if lua is enabled try to parse the lua pgk-config, or the lua-dir option if given
|
# if lua is enabled try to parse the lua pgk-config, or the lua-dir option if given
|
||||||
|
|
||||||
|
if not GetOption("nolua"):
|
||||||
if(GetOption("lua-dir")):
|
if(GetOption("lua-dir")):
|
||||||
if not conf.CheckCHeader(GetOption("lua-dir") + '/lua.h'):
|
if not conf.CheckCHeader(GetOption("lua-dir") + '/lua.h'):
|
||||||
print "lua5.1 headers not found or not installed"
|
print "lua5.1 headers not found or not installed"
|
||||||
@@ -189,7 +190,9 @@ if not GetOption("macosx"):
|
|||||||
try:
|
try:
|
||||||
env.ParseConfig('pkg-config --cflags lua5.1')
|
env.ParseConfig('pkg-config --cflags lua5.1')
|
||||||
except:
|
except:
|
||||||
print "lua5.1 headers not found or not installed"
|
#Check for Lua lib
|
||||||
|
if not conf.CheckLib('lua5.1') and not conf.CheckLib('lua-5.1') and not conf.CheckLib('lua51') and not conf.CheckLib('lua'):
|
||||||
|
print "liblua5.1 not found or not installed"
|
||||||
raise SystemExit(1)
|
raise SystemExit(1)
|
||||||
|
|
||||||
# if fft is enabled try to parse its config, fail otherwise.
|
# if fft is enabled try to parse its config, fail otherwise.
|
||||||
@@ -216,12 +219,6 @@ if not GetOption("macosx"):
|
|||||||
print "bzip2 headers not found"
|
print "bzip2 headers not found"
|
||||||
raise SystemExit(1)
|
raise SystemExit(1)
|
||||||
|
|
||||||
#Check for Lua lib
|
|
||||||
if not GetOption("nolua"):
|
|
||||||
if not conf.CheckLib('lua5.1') and not conf.CheckLib('lua-5.1') and not conf.CheckLib('lua51') and not conf.CheckLib('lua'):
|
|
||||||
print "liblua not found or not installed"
|
|
||||||
raise SystemExit(1)
|
|
||||||
|
|
||||||
# finish the configuration
|
# finish the configuration
|
||||||
|
|
||||||
env = conf.Finish();
|
env = conf.Finish();
|
||||||
|
Reference in New Issue
Block a user