summaryrefslogtreecommitdiff
path: root/src/libs/zeroconf/zeroconf.qbs
blob: fcc98878a150cd9d050b0259793ecbb0ff533f91 (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
44
45
46
import qbs.base 1.0
import "../QtcLibrary.qbs" as QtcLibrary

QtcLibrary {
    name: "zeroconf"

    Depends { name: "cpp" }
    Depends { name: "Qt.network" }

    cpp.includePaths: "."
    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: [
        "servicebrowser.cpp",
        "servicebrowser.h",
        "servicebrowser_p.h",
        "embeddedLib.cpp",
        "mdnsderived.cpp",
        "mdnsderived.h",
        "avahiLib.cpp",
        "dnsSdLib.cpp",
        "dns_sd_types.h",
        "zeroconf_global.h",
        "syssocket.h"
    ]

    ProductModule {
        Depends { name: "cpp" }
        cpp.includePaths: ["."]
    }
}