[Qbs] Specify custom applications and application arguments in qbs project

Christian Kandeler christian.kandeler at qt.io
Mon Sep 21 16:24:29 CEST 2020


On Mon, 21 Sep 2020 13:15:58 +0000
Jochen Ulrich <jochen.ulrich at clausmark.com> wrote:

> PS: And if you want to run an executable which is built as part of your project, then the product should of course depend on that executable to make sure it is built before.

Yes.

> And the rule should use the executable's `Product.targetName` and ` Product.destinationDirectory` properties to determine the path of the executable.

No. Instead, the rule should take "application" (or a more unique tag if necessary) as "explicitlyDependsOnFromDependencies" and access the executable via the artifact, i.e. "explicitlyDependsOn.application[0].filePath".


Christian


More information about the Qbs mailing list