diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-06-19 07:48:42 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-06-19 07:48:42 (GMT) |
commit | 5d16ce2a51e866aae75b609e40c31c88a5aa4d80 (patch) | |
tree | c2cddc19fe34d6c794ca2c9abb2dbe3c060bbd68 /Swiften/QA/DNSSDTest/SConscript | |
parent | 76dc2c9991c5a8d6af2dff5247f78dd07599c1ee (diff) | |
download | swift-contrib-5d16ce2a51e866aae75b609e40c31c88a5aa4d80.zip swift-contrib-5d16ce2a51e866aae75b609e40c31c88a5aa4d80.tar.bz2 |
Added DNSSDTest.
Diffstat (limited to 'Swiften/QA/DNSSDTest/SConscript')
-rw-r--r-- | Swiften/QA/DNSSDTest/SConscript | 21 |
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") |