-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathxmake.lua
More file actions
22 lines (17 loc) · 709 Bytes
/
Copy pathxmake.lua
File metadata and controls
22 lines (17 loc) · 709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
set_project("frpc")
set_version("1.0.0", {build = "%Y%m%d%H%M"})
set_xmakever("2.8.9")
add_defines("VERSION=\"1.0.0\"")
add_repositories("my_private_repo https://github.com/fantasy-peak/xmake-repo.git")
add_requires("boost", {configs={cmake=false}})
add_requires("spdlog", {configs={std_format=true}})
add_requires("yaml-cpp", "nlohmann_json", "inja")
set_languages("c++23")
set_policy("check.auto_ignore_flags", false)
add_cxflags("-O2 -Wall -Wextra -pedantic-errors -Wno-missing-field-initializers -Wno-ignored-qualifiers")
add_includedirs("include")
target("frpc")
set_kind("binary")
add_files("src/*.cpp")
add_packages("yaml-cpp", "nlohmann_json", "spdlog", "inja", "boost")
target_end()