summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-08-18 13:35:36 +0200
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-08-18 21:00:35 +0000
commitef09640fb0ba358f17fda7b8f572f5e1e0239381 (patch)
tree1eb53af59539e40328224c26910205eebcc7d8af /tools
parentcc17811995b382280a65a30fdd93bc92c5c01478 (diff)
Fix qgltf tool invocation
When the installed bin directory is not in PATH, the tool was not found. The correct approach is to use qtPrepareTool(). Change-Id: I5f51a950975bc9372eac9e401bd3b89205a9ccd0 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/qgltf/qgltf.prf4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/qgltf/qgltf.prf b/tools/qgltf/qgltf.prf
index 7b4c590fb..06f2bc3e2 100644
--- a/tools/qgltf/qgltf.prf
+++ b/tools/qgltf/qgltf.prf
@@ -1,10 +1,12 @@
+qtPrepareTool(QMAKE_QGLTF, qgltf)
+
load(resources)
isEmpty(MODELS): error("qgltf must be loaded after specifying MODELS")
QGLTF_DIR = qmodels
-qgltf.commands = qgltf -d $$QGLTF_DIR $$QGLTF_PARAMS ${QMAKE_FILE_NAME}
+qgltf.commands = $$QMAKE_QGLTF -d $$QGLTF_DIR $$QGLTF_PARAMS ${QMAKE_FILE_NAME}
qgltf.input = MODELS
qgltf.output = $$QGLTF_DIR/${QMAKE_FILE_BASE}.gltf
qgltf.CONFIG += no_link target_predeps