added example XMake

This commit is contained in:
Alexander Popov 2024-05-22 22:15:19 +03:00
parent bbed68cff2
commit 216cbf5a61

26
code/XMake/example.lua Normal file
View File

@ -0,0 +1,26 @@
set_project("example")
set_languages("c99", "cxx17")
add_rules("mode.debug", "mode.release")
if is_mode("debug") then
set_symbols("debug")
set_optimize("none")
end
add_includedirs(
"include" -- APPLICATION
)
add_linkdirs(
)
-- rxi | log.c
target("log.c")
set_kind("static")
add_defines("LOG_USE_COLOR")
add_files("third/log.c/log.c")
target("example")
set_kind("binary")
add_syslinks()
add_files("src/*.cpp")
add_deps("log.c")