summaryrefslogtreecommitdiffstats
blob: d35d06fa28655b4b0f85a750cccb03f62f538ba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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")