summaryrefslogtreecommitdiff
path: root/src/libs/zeroconf/zeroconf.qbs
blob: 04274fd6f69d600922d8d71e1ac6de9b948c9aa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import qbs.base 1.0
import "../QtcLibrary.qbs" as QtcLibrary

QtcLibrary {
    name: "zeroconf"

    Depends { name: "cpp" }
    Depends { name: "Qt.network" }
    cpp.includePaths: base.concat(".")

    cpp.defines: base.concat("ZEROCONF_LIBRARY")

    Properties {
        condition: qbs.targetOS == "windows"
        cpp.dynamicLibraries:  "ws2_32"
    }
    Properties {
        condition: qbs.targetOS == "linux"
        cpp.defines: base.concat([
            "_GNU_SOURCE",
            "HAVE_IPV6",
            "USES_NETLINK",
            "HAVE_LINUX",
            "TARGET_OS_LINUX"
        ])
    }

    files: [
        "avahiLib.cpp",
        "dnsSdLib.cpp",
        "dns_sd_types.h",
        "embeddedLib.cpp",
        "mdnsderived.cpp",
        "mdnsderived.h",
        "servicebrowser.cpp",
        "servicebrowser.h",
        "servicebrowser_p.h",
        "syssocket.h",
        "zeroconf_global.h",
    ]
}