diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-08-11 17:29:21 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-08-11 17:29:21 (GMT) |
commit | a6104246c55cd567d67fb512098ff80d25dc8837 (patch) | |
tree | f8489f2c5a6dd4194a9261610b9001fab2ac2b7c /SConstruct | |
parent | d07a31cc74304b942a320f5d17330e83c17e152a (diff) | |
download | swift-a6104246c55cd567d67fb512098ff80d25dc8837.zip swift-a6104246c55cd567d67fb512098ff80d25dc8837.tar.bz2 |
Add Qt scons variable.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -14,6 +14,7 @@ if os.name != "nt" : if os.name == "mac" : vars.Add(BoolVariable("universal", "Create universal binaries", "no")) vars.Add(PackageVariable("openssl", "OpenSSL location", "yes")) +vars.Add(PathVariable("qt", "Qt location", "", PathVariable.PathAccept)) ################################################################################ # Set up default build & configure environment @@ -141,6 +142,7 @@ if conf.CheckCHeader("expat.h") and conf.CheckLib("expat") : conf.Finish() +# Bundled expat bundledExpat = False if not env.get("HAVE_EXPAT", 0) : print "Expat or LibXML not found. Using bundled Expat" @@ -148,6 +150,10 @@ if not env.get("HAVE_EXPAT", 0) : env["HAVE_EXPAT"] = 1 bundledExpat = True +# Qt +if env["qt"] : + env["QTDIR"] = env["qt"] + # OpenSSL openssl_env = conf_env.Clone() use_openssl = bool(env["openssl"]) |