-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
25 lines (22 loc) · 898 Bytes
/
xmake.lua
File metadata and controls
25 lines (22 loc) · 898 Bytes
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
add_rules("mode.debug", "mode.release")
add_requires("nlohmann_json", "cpp-httplib", "openssl3", "cpr")
add_requireconfs("cpp-httplib", {configs = {ssl = true}})
add_requireconfs("cpr", {configs = {ssl = true}})
add_requireconfs("*", {configs = {vs_runtime = "MD"}})
target("MSLogin")
set_kind("shared")
set_languages("clatest", "cxxlatest")
add_files("src/**.cpp")
add_includedirs("src", {public = true})
add_packages("nlohmann_json", "cpp-httplib", "boost", "openssl3", "cpr", {public = true})
add_defines("WIN32_LEAN_AND_MEAN", "NOMINMAX", "MSLOGIN_EXPORTS")
if is_plat("windows") then
add_cxflags("/Zc:preprocessor", {public = true})
end
target("MSLoginTest")
set_kind("binary")
set_languages("clatest", "cxxlatest")
add_files("test/**.cpp")
add_deps("MSLogin")
add_defines("WIN32_LEAN_AND_MEAN", "NOMINMAX")
set_default(false)