-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathxmake.lua
33 lines (27 loc) · 963 Bytes
/
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
function mingw_special_settings()
if is_plat("mingw") then
add_ldflags("-lstdc++exp", "-lws2_32")
end
end
set_languages("cxxlatest")
add_rules("mode.debug", "mode.release")
add_includedirs("src", "third-party/glad/include")
add_requires("asio", "glfw", "nlohmann_json", "spdlog")
add_requires("glm")
add_requires("imgui", { configs = { glfw = true, opengl3 = true, } })
mingw_special_settings()
target("lib")
set_kind("static")
add_files("src/*.cpp", "third-party/glad/src/gl.c")
add_defines("JSON_USE_IMPLICIT_CONVERSIONS=0")
add_packages("asio", "glm", "nlohmann_json", "spdlog")
target("little-sb-client")
set_kind("binary")
add_files("src/client/*.cpp")
add_deps("lib")
add_packages("asio", "glfw", "glm", "imgui", "nlohmann_json", "spdlog")
target("little-sb-server")
set_kind("binary")
add_files("src/server/*.cpp")
add_deps("lib")
add_packages("asio", "glm", "nlohmann_json", "spdlog")