add:添加xmake编译脚本

This commit is contained in:
taynpg 2025-01-08 10:24:48 +08:00
parent 57269a5e73
commit 1bf2550248
2 changed files with 13 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
build build
.vs .vs
.cache .cache
.xmake
cmake-* cmake-*

12
xmake.lua Normal file
View File

@ -0,0 +1,12 @@
add_rules("mode.debug", "mode.release")
set_languages("c++17")
if is_plat("windows") then
add_cxxflags("/source-charset:utf-8")
end
if is_mode("debug") then
set_suffixname("d")
end
add_includedirs(path.join(os.scriptdir(), "include"), {public = true})
target("ofen")
set_kind("static")
add_files("src/*.cpp")