zeroconf.qbs 935 Bytes
Newer Older
1
import qbs 1.0
2
import QtcLibrary
3

4
QtcLibrary {
5 6 7
    name: "zeroconf"

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

10 11 12
    cpp.defines: {
        var list = base;
        list.push("ZEROCONF_LIBRARY");
Joerg Bornemann's avatar
Joerg Bornemann committed
13
        if (qbs.targetOS.contains("linux")) {
14 15 16 17 18 19 20 21 22 23
            list.push(
                "_GNU_SOURCE",
                "HAVE_IPV6",
                "USES_NETLINK",
                "HAVE_LINUX",
                "TARGET_OS_LINUX"
            );
        }
        return list;
    }
Orgad Shaneh's avatar
Orgad Shaneh committed
24

25
    Properties {
Joerg Bornemann's avatar
Joerg Bornemann committed
26
        condition: qbs.targetOS.contains("windows")
27 28 29 30 31 32 33
        cpp.dynamicLibraries:  "ws2_32"
    }

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