summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-06-19 07:48:42 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-06-19 07:48:42 (GMT)
commit5d16ce2a51e866aae75b609e40c31c88a5aa4d80 (patch)
treec2cddc19fe34d6c794ca2c9abb2dbe3c060bbd68 /Swiften/QA/DNSSDTest/SConscript
parent76dc2c9991c5a8d6af2dff5247f78dd07599c1ee (diff)
downloadswift-contrib-5d16ce2a51e866aae75b609e40c31c88a5aa4d80.zip
swift-contrib-5d16ce2a51e866aae75b609e40c31c88a5aa4d80.tar.bz2
Added DNSSDTest.
Diffstat (limited to 'Swiften/QA/DNSSDTest/SConscript')
-rw-r--r--Swiften/QA/DNSSDTest/SConscript21
1 files changed, 21 insertions, 0 deletions
diff --git a/Swiften/QA/DNSSDTest/SConscript b/Swiften/QA/DNSSDTest/SConscript
new file mode 100644
index 0000000..d35d06f
--- /dev/null
+++ b/Swiften/QA/DNSSDTest/SConscript
@@ -0,0 +1,21 @@
+import os
+
+Import("env")
+
+if env["TEST"] :
+ myenv = env.Clone()
+ myenv.MergeFlags(myenv["CHECKER_FLAGS"])
+ myenv.MergeFlags(myenv["SWIFTEN_FLAGS"])
+ myenv.MergeFlags(myenv["CPPUNIT_FLAGS"])
+ myenv.MergeFlags(myenv["BOOST_FLAGS"])
+ myenv.MergeFlags(myenv["LIBIDN_FLAGS"])
+ if myenv.get("HAVE_BONJOUR", 0) :
+ myenv.Append(CPPDEFINES = "HAVE_BONJOUR")
+ elif myenv.get("HAVE_AVAHI", 0) :
+ myenv.Append(CPPDEFINES = ["HAVE_AVAHI"])
+ myenv.MergeFlags(myenv["AVAHI_FLAGS"])
+
+ tester = myenv.Program("DNSSDTest", [
+ "DNSSDTest.cpp",
+ ])
+ myenv.Test(tester, "system")