Commit 0d6c47e4 authored by Christian Kandeler's avatar Christian Kandeler

Start adding qbs support for src/tools.

Change-Id: I70b9f13c6dffa107b12eac09ed4495a5318fdb1e
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@nokia.com>
parent f1f87065
......@@ -109,7 +109,6 @@ src/tools/qml/qmldump/qmldump
src/tools/examplesscanner/examplesscanner
src/tools/valgrindfake/valgrind-fake
bin/*.exe
src/tools/mdnssd
# Tests
#------
......
......@@ -69,6 +69,7 @@ Project {
"src/plugins/valgrind/valgrind.qbs",
"src/plugins/vcsbase/vcsbase.qbs",
"src/plugins/welcome/welcome.qbs",
"src/tools/mdnssd/mdnssd.qbs"
]
Product {
......
import qbs.base 1.0
Application {
destination: "bin"
}
import qbs.base 1.0
import "../QtcTool.qbs" as QtcTool
QtcTool {
name: "mdnssd"
cpp.defines: [ "PID_FILE=\"/tmp/mdnsd.pid\"", "MDNS_UDS_SERVERPATH=\"/tmp/mdnsd\"",
"MDNS_DEBUGMSGS=0", "HAVE_IPV6" ]
cpp.includePaths: [ ".", buildDirectory ]
Depends { name: "cpp" }
Depends { name: "Qt"; submodules: ['network' ] }
files: [
"uds_daemon.c", "uds_daemon.h",
"uDNS.c", "uDNS.h",
"mDNSDebug.c", "mDNSDebug.h",
"GenLinkedList.c", "GenLinkedList.h",
"dnssd_ipc.c", "dnssd_ipc.h",
"DNSDigest.c",
"DNSCommon.c",
"mDNSUNP.h",
"mDNSEmbeddedAPI.h",
"DNSCommon.h",
"DebugServices.h",
"dns_sd.h",
"mDNS.c",
]
Group {
condition: qbs.targetOS === "linux"
files: [
"mDNSPosix.c", "mDNSPosix.h",
"PlatformCommon.c", "PlatformCommon.h",
"PosixDaemon.c",
"mDNSUNP.c"
]
}
Properties {
condition: qbs.targetOS === "linux"
cpp.defines: [ "_GNU_SOURCE", , "NOT_HAVE_SA_LEN", "USES_NETLINK", "HAVE_LINUX",
"TARGET_OS_LINUX" ]
}
Properties {
condition: qbs.targetOS === "macx"
cpp.defines: [ "__MAC_OS_X_VERSION_MIN_REQUIRED=__MAC_OS_X_VERSION_10_4",
"__APPLE_USE_RFC_2292" ]
}
Group {
condition: qbs.targetOS === "windows"
files: [
"Firewall.h", "Firewall.cpp",
"mDNSWin32.h", "mDNSWin32.c",
"Poll.h", "Poll.c",
"Secret.h", "Secret.c",
"Service.h", "Service.c",
"DebugServices.c",
"LegacyNATTraversal.c",
"resource.h",
"RegNames.h",
"CommonServices.h",
"main.c",
"EventLog.mc",
"Service.rc"
]
}
Properties {
condition: qbs.targetOS === "windows"
cpp.defines: [ "_WIN32_WINNT=0x0501", "NDEBUG", "MDNS_DEBUGMSGS=0", "TARGET_OS_WIN32",
"WIN32_LEAN_AND_MEAN", "USE_TCP_LOOPBACK", "PLATFORM_NO_STRSEP",
"PLATFORM_NO_EPIPE", "PLATFORM_NO_RLIMIT", "UNICODE", "_UNICODE",
"_CRT_SECURE_NO_DEPRECATE", "_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES=1",
"_LEGACY_NAT_TRAVERSAL_" ]
cpp.dynamicLibraries: [ "ws2_32.lib", "advapi32.lib", "ole32.lib", "oleaut32.lib",
"iphlpapi.lib", "netapi32.lib", "user32.lib", "powrprof.lib", "shell32.lib" ]
}
Properties {
condition: qbs.toolchain === 'mingw' || qbs.toolchain === 'gcc'
cpp.cFlags: [ "-Wno-unused-but-set-variable", "-Wno-strict-aliasing" ]
cpp.cxxFlags: [ "-Wno-unused-but-set-variable" ]
}
FileTagger {
pattern: "*.mc"
fileTags: "mc"
}
Rule {
inputs: "mc"
Artifact {
fileName: input.baseName + ".h"
fileTags: "hpp"
}
prepare: {
var cmd = new Command("mc", input.fileName)
cmd.description = "mc"
return cmd
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment