aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/protobuf/cpp
diff options
context:
space:
mode:
authorThe Qt Project <gerrit-noreply@qt-project.org>2020-07-27 14:47:46 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2020-07-27 14:47:46 +0000
commit34349e6574500e087ced56cc9504431b3e3b6469 (patch)
treed1e822daf5382d536d3b2c8940152526fd2a8f04 /share/qbs/modules/protobuf/cpp
parent31a841ade7b1a3b10d5a132cc58a476295e2e0b5 (diff)
parenteb6adb2a65902ca507dd1fdcd97fde333f324068 (diff)
Merge "Merge branch 1.17 into master"
Diffstat (limited to 'share/qbs/modules/protobuf/cpp')
-rw-r--r--share/qbs/modules/protobuf/cpp/protobufcpp.qbs9
1 files changed, 5 insertions, 4 deletions
diff --git a/share/qbs/modules/protobuf/cpp/protobufcpp.qbs b/share/qbs/modules/protobuf/cpp/protobufcpp.qbs
index 2697eb227..bd3d94929 100644
--- a/share/qbs/modules/protobuf/cpp/protobufcpp.qbs
+++ b/share/qbs/modules/protobuf/cpp/protobufcpp.qbs
@@ -54,14 +54,15 @@ ProtobufBase {
inputs: ["protobuf.input", "protobuf.grpc"]
outputFileTags: ["hpp", "cpp"]
outputArtifacts: {
+ var outputDir = HelperFunctions.getOutputDir(input.protobuf.cpp, input);
var result = [
- HelperFunctions.cppArtifact(input.protobuf.cpp, input, "hpp", ".pb.h"),
- HelperFunctions.cppArtifact(input.protobuf.cpp, input, "cpp", ".pb.cc")
+ HelperFunctions.cppArtifact(outputDir, input, "hpp", ".pb.h"),
+ HelperFunctions.cppArtifact(outputDir, input, "cpp", ".pb.cc")
];
if (input.fileTags.contains("protobuf.grpc")) {
result.push(
- HelperFunctions.cppArtifact(input.protobuf.cpp, input, "hpp", ".grpc.pb.h"),
- HelperFunctions.cppArtifact(input.protobuf.cpp, input, "cpp", ".grpc.pb.cc"));
+ HelperFunctions.cppArtifact(outputDir, input, "hpp", ".grpc.pb.h"),
+ HelperFunctions.cppArtifact(outputDir, input, "cpp", ".grpc.pb.cc"));
}
return result;