From 16d63f84c4edad63a48fe3ed58e043a8032e53b6 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 23 Apr 2018 22:51:33 +0800 Subject: add path for running qt bin on windows --- xmake/rules/qt/xmake.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xmake/rules/qt/xmake.lua b/xmake/rules/qt/xmake.lua index 941e800c8..435c36383 100644 --- a/xmake/rules/qt/xmake.lua +++ b/xmake/rules/qt/xmake.lua @@ -33,6 +33,14 @@ rule("qt.env") end end) + -- before run + before_run(function (target) + local qt = target:data("qt") + if qt and (is_plat("windows") or (is_plat("mingw") and is_host("windows"))) then + os.addenv("PATH", qt.bindir) + end + end) + -- define rule: *.ui rule("qt.ui") -- cgit v1.3.1