aboutsummaryrefslogtreecommitdiffstats
path: root/src/libexec/qbs_processlauncher/qbs_processlauncher.qbs
blob: 7aa7d3fc09ffa1a45d43a4f6c7c054d65e166023 (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
28
29
30
31
32
33
34
35
36
37
38
39
import qbs
import qbs.FileInfo

QbsProduct {
    type: "application"
    name: "qbs_processlauncher"
    consoleApplication: true

    Depends { name: "Qt.network" }

    cpp.includePaths: base.concat(pathToProtocolSources)

    files: [
        "launcherlogging.cpp",
        "launcherlogging.h",
        "launchersockethandler.cpp",
        "launchersockethandler.h",
        "processlauncher-main.cpp",
    ]

    property string pathToProtocolSources: sourceDirectory + "/../../lib/corelib/tools"
    Group {
        name: "protocol sources"
        prefix: pathToProtocolSources + '/'
        files: [
            "launcherpackets.cpp",
            "launcherpackets.h",
        ]
    }

    Group {
        fileTagsFilter: product.type
            .concat(qbs.buildVariant === "debug" ? ["debuginfo_app"] : [])
        qbs.install: true
        qbs.installDir: targetInstallDir
        qbs.installSourceBase: buildDirectory
    }
    targetInstallDir: qbsbuildconfig.libexecInstallDir
}