mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-05-05 08:37:29 +02:00
34 lines
1.1 KiB
QML
34 lines
1.1 KiB
QML
import qbs 1.0
|
|
import qbs.Probes
|
|
|
|
Module {
|
|
readonly property bool found: probe.found
|
|
readonly property string packageVersion: probe.modversion
|
|
|
|
Depends { name: "cpp" }
|
|
|
|
cpp.defines: probe.defines == undefined ? [] : probe.defines
|
|
cpp.commonCompilerFlags: probe.compilerFlags == undefined ? [] : probe.compilerFlags
|
|
cpp.includePaths: probe.includePaths == undefined ? [] : probe.includePaths
|
|
cpp.libraryPaths: probe.libraryPaths == undefined ? [] : probe.libraryPaths
|
|
cpp.dynamicLibraries: probe.libraries == undefined ? [] : probe.libraries
|
|
cpp.linkerFlags: probe.linkerFlags == undefined ? [] : probe.linkerFlags
|
|
|
|
Probes.PkgConfigProbe {
|
|
id: probe
|
|
name: "zlib"
|
|
executable: {
|
|
if (qbs.targetOS.contains("windows"))
|
|
return "i686-w64-mingw32.shared-pkg-config"
|
|
else
|
|
return "pkg-config"
|
|
}
|
|
sysroot: {
|
|
if (qbs.targetOS.contains("macos"))
|
|
return undefined;
|
|
else
|
|
return qbs.sysroot;
|
|
}
|
|
}
|
|
}
|