summaryrefslogtreecommitdiffstats
path: root/QA
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-08-09 14:59:13 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-08-09 16:38:07 (GMT)
commit1633001df881c70f301b5894971612a08eedaf7f (patch)
tree919f149743d0d93ea450c82192a6b82c8a488195 /QA
parentb589aa3732712c31da44523fa60fc5c4bc92ea9b (diff)
downloadswift-contrib-1633001df881c70f301b5894971612a08eedaf7f.zip
swift-contrib-1633001df881c70f301b5894971612a08eedaf7f.tar.bz2
Add SConscript files.
Diffstat (limited to 'QA')
-rw-r--r--QA/UnitTest/SConscript20
1 files changed, 20 insertions, 0 deletions
diff --git a/QA/UnitTest/SConscript b/QA/UnitTest/SConscript
new file mode 100644
index 0000000..6382d56
--- /dev/null
+++ b/QA/UnitTest/SConscript
@@ -0,0 +1,20 @@
+import os
+
+Import("env")
+
+if "check" in COMMAND_LINE_TARGETS or env.GetOption("clean") :
+ myenv = env.Clone()
+ myenv.MergeFlags(env["SWIFT_CONTROLLERS_FLAGS"])
+ myenv.MergeFlags(env["SWIFTEN_FLAGS"])
+ myenv.MergeFlags(env["CPPUNIT_FLAGS"])
+ myenv.MergeFlags(env["LIBIDN_FLAGS"])
+ myenv.MergeFlags(env["BOOST_FLAGS"])
+ myenv.MergeFlags(env["SQLITE_FLAGS"])
+ myenv.MergeFlags(env["EXPAT_FLAGS"])
+ myenv.MergeFlags(env["ZLIB_FLAGS"])
+ checker = myenv.Program("checker", ["checker.cpp"] + env["UNITTEST_SOURCES"])
+ for i in ["HOME", "USERPROFILE", "APPDATA"]:
+ if os.environ.get(i, "") :
+ myenv["ENV"][i] = os.environ[i]
+ check = myenv.Alias("check", checker, checker[0].abspath)
+ myenv.AlwaysBuild(check)