summaryrefslogtreecommitdiffstats
blob: d9c9b044f22a1b79400b5d7dd0983cde6ba01fb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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["GOOGLETEST_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"])
    myenv.MergeFlags(myenv["PLATFORM_FLAGS"])

    tester = myenv.Program("DNSSDTest", [
            "DNSSDTest.cpp",
        ])
    myenv.Test(tester, "system")