add qt private header for window and linux
@@ -167,6 +167,17 @@ function main(target, opt)
-- translate qt frameworks
if framework:startswith("Qt") then
+ if (framework:lower():endswith("private")) then
+ -- add private includedirs
+ print("private")
+ if is_plat("macosx") then
+ print("macosx")
+ else
+ local private_dir = framework:sub(1, -string.len("private") - 1);
+ target:add("includedirs", path.join(qt.sdkdir, "include", private_dir, qt.sdkver, private_dir))
+ target:add("includedirs", path.join(qt.sdkdir, "include", private_dir, qt.sdkver))
+ end
+ else
-- add defines
target:add("defines", "QT_" .. framework:sub(3):upper() .. "_LIB")
@@ -186,6 +197,7 @@ function main(target, opt)
end
end
end
+ end
-- add some static third-party links if exists, e.g. libqtmain.a, libqtfreetype.q, libqtlibpng.a
-- and exclude qt framework libraries, e.g. libQt5xxx.a, Qt5xxx.lib
