F4MP/tiltedcode/Code/components/xmake.lua
Jous99 37b16f1547 code upload
codigo original de f4mp y tilted para referencias
2026-01-06 18:45:00 +01:00

51 lines
No EOL
1.1 KiB
Lua

-- This function defines the core component idoms
function component(name)
target(name)
set_kind("static")
set_group("Components")
add_configfiles("BuildInfo.h.in")
add_includedirs(
".",
"../",
"../../",
"../../../build",
{public = true})
add_headerfiles("**.h")
add_files("**.cpp")
add_packages(
"tiltedcore",
"hopscotch-map",
"gtest",
"spdlog")
end
-- this isnt fully specified yet.
function unittest(name)
target(name .. "_Tests")
set_kind("binary")
set_group("Tests")
add_configfiles("BuildInfo.h.in")
add_includedirs(
".",
"../",
"../../",
"../../../build",
{public = true})
add_headerfiles(
"**.h")
add_files(
"**.cpp",
"../../TestMain.cpp")
add_packages(
"tiltedcore",
"hopscotch-map",
"gtest",
"spdlog")
end
-- List all components required below:
includes("console")
includes("imgui")
includes("es_loader")
includes("crash_handler")
includes("resources")