summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2013-04-21 14:45:37 (GMT)
committerRemko Tronçon <git@el-tramo.be>2013-04-21 14:45:37 (GMT)
commit5eff3391c316d5ab325b78024296e74127c6747c (patch)
treea86008521ec5d1b5704c76aae72545344536ad2b /Sluift/SConscript
parentf5946a1273b363f46ae0753eccdf6bd96a72e997 (diff)
downloadswift-5eff3391c316d5ab325b78024296e74127c6747c.zip
swift-5eff3391c316d5ab325b78024296e74127c6747c.tar.bz2
Fix compilation when 3rdParty/ is not there.
Change-Id: I6d86bf7d8dcc750ff69ff08500c9987b3c1de43e
Diffstat (limited to 'Sluift/SConscript')
-rw-r--r--Sluift/SConscript7
1 files changed, 6 insertions, 1 deletions
diff --git a/Sluift/SConscript b/Sluift/SConscript
index f6388a0..2c247d8 100644
--- a/Sluift/SConscript
+++ b/Sluift/SConscript
@@ -2,7 +2,12 @@ import Version, os.path
Import(["env", "conf_env"])
-if env["SCONS_STAGE"] == "build" :
+if env["SCONS_STAGE"] == "build" and not GetOption("help") and not env.get("HAVE_LUA", 0) :
+ print "Warning: Lua was not found. Sluift will not be built."
+ if "Sluift" in env["PROJECTS"] :
+ env["PROJECTS"].remove("Sluift")
+
+elif env["SCONS_STAGE"] == "build" :
lib_env = env.Clone()
lib_env.UseFlags(env["LUA_FLAGS"])
lib_env.UseFlags(env["SWIFTEN_FLAGS"])