diff options
author | Joerg Bornemann <joerg.bornemann@digia.com> | 2013-04-03 12:16:10 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@digia.com> | 2013-04-05 11:19:31 +0200 |
commit | b368cf7437500bbbe601b5751c5c19ea3f5080bd (patch) | |
tree | 1d39b73cd5d58527a6f8c993ab3d3b18407c8fa7 /share | |
parent | ffb6be9612e270372d3fa9887d74cdaa1d9306cc (diff) |
make use of Rule.condition in dSYM rule
Instead of creating a fake command we turn the rule off
if buildDsym is false.
Change-Id: I4e436b88010df7bbc6b1cd0c164223f94db793b8
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'share')
-rw-r--r-- | share/qbs/modules/cpp/DarwinGCC.qbs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/share/qbs/modules/cpp/DarwinGCC.qbs b/share/qbs/modules/cpp/DarwinGCC.qbs index 10dc2ae1d..413c91274 100644 --- a/share/qbs/modules/cpp/DarwinGCC.qbs +++ b/share/qbs/modules/cpp/DarwinGCC.qbs @@ -45,6 +45,7 @@ UnixGCC { } Rule { + condition: product.moduleProperty("cpp", "buildDsym") inputs: ["application"] Artifact { @@ -53,13 +54,6 @@ UnixGCC { } prepare: { - if (!product.moduleProperty("cpp", "buildDsym")) { - // to be removed when dynamic dependencies work - var cmd = new JavaScriptCommand(); - cmd.description = "skipping dsym generation"; - cmd.highlight = "codegen"; - return cmd; - } var cmd = new Command("dsymutil", ["--out=" + outputs.dsym[0].fileName, input.fileName]); cmd.description = "generating dsym"; cmd.highlight = "codegen"; |