aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/protobuf/protobufbase.qbs
blob: aa7f28eb9caf86b0046184ad4ea3536a945b48a5 (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
import qbs
import qbs.File
import qbs.FileInfo
import qbs.Probes
import "protobuf.js" as HelperFunctions

Module {
    property string compilerName: "protoc"
    property string compilerPath: compilerProbe.filePath

    property pathList importPaths: []

    property string _outputDir: product.buildDirectory + "/protobuf"

    FileTagger {
        patterns: ["*.proto"]
        fileTags: ["protobuf.input"];
    }

    Probes.BinaryProbe {
        id: compilerProbe
        names: [compilerName]
    }
}