zeroconf.qbs 999 Bytes
Newer Older
1
import qbs.base 1.0
2
import "../QtcLibrary.qbs" as QtcLibrary
3

4
QtcLibrary {
5 6 7 8 9 10
    name: "zeroconf"

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

    cpp.includePaths: "."
Orgad Shaneh's avatar
Orgad Shaneh committed
11 12
    cpp.defines: base.concat("ZEROCONF_LIBRARY")

13 14 15 16 17 18
    Properties {
        condition: qbs.targetOS == "windows"
        cpp.dynamicLibraries:  "ws2_32"
    }
    Properties {
        condition: qbs.targetOS == "linux"
Christian Kandeler's avatar
Christian Kandeler committed
19
        cpp.defines: base.concat([
20 21
            "_GNU_SOURCE",
            "HAVE_IPV6",
22 23 24 25
            "USES_NETLINK",
            "HAVE_LINUX",
            "TARGET_OS_LINUX"
        ])
26 27 28 29 30 31
    }

    files: [
        "avahiLib.cpp",
        "dnsSdLib.cpp",
        "dns_sd_types.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
32 33 34 35 36 37 38
        "embeddedLib.cpp",
        "mdnsderived.cpp",
        "mdnsderived.h",
        "servicebrowser.cpp",
        "servicebrowser.h",
        "servicebrowser_p.h",
        "syssocket.h",
39 40 41
        "zeroconf_global.h",
    ]

Joerg Bornemann's avatar
Joerg Bornemann committed
42 43
    ProductModule {
        Depends { name: "cpp" }
Yuchen Deng's avatar
Yuchen Deng committed
44
        cpp.includePaths: ["."]
Joerg Bornemann's avatar
Joerg Bornemann committed
45
    }
46
}