-
Notifications
You must be signed in to change notification settings - Fork 50
/
xmake.lua
22 lines (18 loc) · 902 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
set_project("cpp-freegpt-webui")
set_version("0.0.1", {build = "%Y%m%d%H%M"})
set_xmakever("2.7.8")
add_repositories("my_private_repo https://github.com/fantasy-peak/xmake-repo.git")
add_requires("openssl", {system = false})
add_requires("zlib", {system = false})
add_requires("yaml_cpp_struct v1.0.4", "nlohmann_json", "spdlog", "inja", "plusaes", "concurrentqueue")
add_requires("boost", {configs = {iostreams = true}})
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("cpp-freegpt-webui")
set_kind("binary")
add_files("src/*.cpp")
add_packages("openssl", "yaml_cpp_struct", "nlohmann_json", "spdlog", "boost", "inja", "plusaes", "zlib", "concurrentqueue")
add_syslinks("pthread", "curl-impersonate-chrome")
target_end()