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/deploy/macosx.lua | |
| parent | c61d7bb40353b161da913bdcbc6fa399e36164a1 (diff) | |
Add `qt_host` option to enable cross-platform Qt Builds using host SDK tools
Diffstat (limited to 'xmake/rules/qt/deploy/macosx.lua')
| -rw-r--r-- | xmake/rules/qt/deploy/macosx.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/rules/qt/deploy/macosx.lua b/xmake/rules/qt/deploy/macosx.lua index 7cc056099..a184647fb 100644 --- a/xmake/rules/qt/deploy/macosx.lua +++ b/xmake/rules/qt/deploy/macosx.lua @@ -24,6 +24,7 @@ import("core.base.option") import("core.project.config") import("core.project.depend") import("core.tool.toolchain") +import("lib.detect.find_file") import("lib.detect.find_path") import("detect.sdks.find_qt") import("utils.progress") @@ -91,7 +92,10 @@ function main(target, opt) local qt = assert(find_qt(), "Qt SDK not found!") -- get macdeployqt - local macdeployqt = path.join(qt.bindir, "macdeployqt") + local search_dirs = {} + if qt.bindir_host then table.insert(search_dirs, qt.bindir_host) end + if qt.bindir then table.insert(search_dirs, qt.bindir) end + local macdeployqt = find_file("macdeployqt" .. (is_host("windows") and ".exe" or ""), search_dirs) assert(os.isexec(macdeployqt), "macdeployqt not found!") -- generate target app |
