-
Notifications
You must be signed in to change notification settings - Fork 3
/
xmake.lua
37 lines (31 loc) · 1.21 KB
/
xmake.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
set_xmakever("2.6.3")
set_project("QQC2-WinUI3Style")
add_rules("mode.debug", "mode.release", "mode.asan")
set_allowedmodes("debug", "release", "asan")
set_allowedplats("windows", "mingw")
set_allowedarchs("windows|x64", "mingw|x86_64")
includes("style/**.lua")
includes("impl/**.lua")
includes("addons/**.lua")
includes("addons-impl/**.lua")
includes("example/**.lua")
if is_mode("debug") then
set_symbols("debug", "hidden")
add_defines("QT_QML_DEBUG")
else
set_symbols("hidden")
end
if is_plat("windows") then
if is_mode("debug") then
set_runtimes("MDd")
else
set_runtimes("MD")
end
add_defines("NOMINMAX", "WIN32_LEAN_AND_MEAN", { public = true })
add_defines("_CRT_SECURE_NO_WARNINGS")
add_cxxflags("/bigobj", "/permissive-", "/Zc:__cplusplus", "/Zc:externConstexpr", "/Zc:inline", "/Zc:lambda", "/Zc:preprocessor", "/Zc:referenceBinding", "/Zc:strictStrings", "/Zc:throwingNew")
add_cxflags("/w44062") -- Enable warning: switch case not handled
add_cxflags("/wd4251") -- Disable warning: class needs to have dll-interface to be used by clients of class blah blah blah
add_cxflags("/wd4297")
end
set_values("qt.deploy.flags", "--no-translations", "--no-virtualkeyboard")