diff options
Diffstat (limited to 'share/qbs/modules/protobuf/protobuf.js')
-rw-r--r-- | share/qbs/modules/protobuf/protobuf.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/share/qbs/modules/protobuf/protobuf.js b/share/qbs/modules/protobuf/protobuf.js index 0fd89856b..999da6988 100644 --- a/share/qbs/modules/protobuf/protobuf.js +++ b/share/qbs/modules/protobuf/protobuf.js @@ -92,7 +92,7 @@ function objcArtifact(outputDir, input, tags, suffix) { } } -function doPrepare(module, product, input, outputs, generator, plugin) +function doPrepare(module, product, input, outputs, generator, plugin, generatorOptions) { var outputDir = module.outputDir; var args = []; @@ -101,6 +101,10 @@ function doPrepare(module, product, input, outputs, generator, plugin) args.push("--plugin=" + plugin) args.push("--" + generator + "_out", outputDir); + if (!!generatorOptions) { + for (var i = 0; i < generatorOptions.length; ++i) + args.push("--" + generator + "_opt=" + generatorOptions[i]) + } var importPaths = module.importPaths; if (importPaths.length === 0) |