summaryrefslogtreecommitdiff
path: root/src/libs/zeroconf/zeroconf.qbs
blob: 935f63b4061c457772d46cfbb0402071ed26a202 (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
42
43
import qbs 1.0
import QtcLibrary

QtcLibrary {
    name: "zeroconf"

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

    cpp.defines: {
        var list = base;
        list.push("ZEROCONF_LIBRARY");
        if (qbs.targetOS.contains("linux")) {
            list.push(
                "_GNU_SOURCE",
                "HAVE_IPV6",
                "USES_NETLINK",
                "HAVE_LINUX",
                "TARGET_OS_LINUX"
            );
        }
        return list;
    }

    Properties {
        condition: qbs.targetOS.contains("windows")
        cpp.dynamicLibraries:  "ws2_32"
    }

    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",
    ]
}