diff options
| author | Chan Lee <[email protected]> | 2025-01-22 17:25:06 +0800 |
|---|---|---|
| committer | Chan Lee <[email protected]> | 2025-01-22 17:25:06 +0800 |
| commit | bb89dfcc8a32c401b2208ce9c1f8a1862bb5a574 (patch) | |
| tree | 82f71a4c2cfc0343660297ac199fd2b7bc2e61a6 /xmake/rules/qt/env/xmake.lua | |
| parent | c61d7bb40353b161da913bdcbc6fa399e36164a1 (diff) | |
Add `qt_host` option to enable cross-platform Qt Builds using host SDK tools
Diffstat (limited to 'xmake/rules/qt/env/xmake.lua')
| -rw-r--r-- | xmake/rules/qt/env/xmake.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/rules/qt/env/xmake.lua b/xmake/rules/qt/env/xmake.lua index afaf62ae4..8737d6385 100644 --- a/xmake/rules/qt/env/xmake.lua +++ b/xmake/rules/qt/env/xmake.lua @@ -33,7 +33,12 @@ rule("qt.env") local qmlimportpath = target:values("qt.env.qmlimportpath") or {} if target:is_plat("windows") or (target:is_plat("mingw") and is_host("windows")) then - target:add("runenvs", "PATH", qt.bindir) + if qt.bindir_host then + target:add("runenvs", "PATH", qt.bindir_host) + end + if qt.bindir then + target:add("runenvs", "PATH", qt.bindir) + end table.insert(qmlimportpath, qt.qmldir) -- add targetdir in QML2_IMPORT_PATH in case of the user have qml plugins table.insert(qmlimportpath, target:targetdir()) |
