diff options
| author | ruki <[email protected]> | 2018-04-23 22:51:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-04-23 11:09:21 +0800 |
| commit | 16d63f84c4edad63a48fe3ed58e043a8032e53b6 (patch) | |
| tree | 88cca463b2042ce8b72ca75f276c8f946b4c40f4 | |
| parent | ef0cf64971eaa9a0b4331f7fa1518bf79dbf6178 (diff) | |
add path for running qt bin on windows
| -rw-r--r-- | xmake/rules/qt/xmake.lua | 8 |
1 files changed, 8 insertions, 0 deletions
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") |
