diff options
| author | ruki <[email protected]> | 2021-09-01 12:15:20 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-09-01 12:15:20 +0800 |
| commit | 6bdaa62dd2f12524d3fcfab3834901d7c91a8f72 (patch) | |
| tree | aba09bf3108c52e96ab98134855c00fcf6cde34b | |
| parent | 77cbb790c47b771eabcf0726f678fbca18200a53 (diff) | |
Update load.lua
| -rw-r--r-- | xmake/rules/qt/load.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/rules/qt/load.lua b/xmake/rules/qt/load.lua index 03599f7e2..1c4627f11 100644 --- a/xmake/rules/qt/load.lua +++ b/xmake/rules/qt/load.lua @@ -36,7 +36,11 @@ function _link(linkdirs, framework, qt_sdkver) elseif is_plat("android") or is_plat("linux") then debug_suffix = "" end - framework = "Qt" .. qt_sdkver:major() .. framework:sub(3) .. (is_mode("debug") and debug_suffix or "") + if qt_sdkver:ge("5.0") then + framework = "Qt" .. qt_sdkver:major() .. framework:sub(3) .. (is_mode("debug") and debug_suffix or "") + else -- for qt4.x, e.g. QtGui4.lib + framework = "Qt" .. framework:sub(3) .. (is_mode("debug") and debug_suffix or "") .. qt_sdkver:major() + end if is_plat("android") then --> -lQt5Core_armeabi/-lQt5CoreDebug_armeabi for 5.14.x local libinfo = find_library(framework .. "_" .. config.arch(), linkdirs) if libinfo and libinfo.link then |
