aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/cli/mono.qbs
blob: f16387dd7308b96d8f880e3e83e6c061e07a9044 (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
import qbs.File
import qbs.Host
import qbs.Probes

CLIModule {
    condition: qbs.toolchain && qbs.toolchain.includes("mono")

    debugInfoSuffix: ".mdb"
    csharpCompilerName: "mcs"
    vbCompilerName: "vbnc"
    fsharpCompilerName: "fsharpc"

    Probes.PathProbe {
        id: monoProbe
        names: ["mono"]
        platformSearchPaths: {
            var paths = [];
            if (Host.os().includes("macos"))
                paths.push("/Library/Frameworks/Mono.framework/Commands");
            if (Host.os().includes("unix"))
                paths.push("/usr/bin");
            return paths;
        }
    }

    toolchainInstallPath: monoProbe.path
}