Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,53 @@ if has_config("async") and has_config("serde") and has_config("serde_simdjson")
end)
end

target("eventide", function()
set_default(false)
set_kind("static")
if not has_config("test") then
add_rules("utils.merge.archive")
set_policy("build.merge_archive", true)
end
add_includedirs("include", { public = true })
add_headerfiles("include/(eventide/**)")

add_deps("common", "reflection", { public = true })

if has_config("serde") then
add_deps("serde", { public = true })
if has_config("serde_simdjson") then
add_deps("serde_json", { public = true })
add_packages("simdjson", "yyjson", { public = true })
end
if has_config("serde_flatbuffers") then
add_deps("serde_flatbuffers", { public = true })
add_packages("flatbuffers", { public = true })
end
if has_config("serde_toml") then
add_deps("serde_toml", { public = true })
add_packages("toml++", { public = true })
end
end

if has_config("option") then
add_deps("option", { public = true })
end
if has_config("deco") and has_config("option") then
add_deps("deco", { public = true })
end
if has_config("ztest") then
add_deps("ztest", { public = true })
add_packages("cpptrace", { public = true })
end
if has_config("async") then
add_deps("async", { public = true })
add_packages("libuv", { public = true })
end
if has_config("async") and has_config("serde") and has_config("serde_simdjson") then
add_deps("ipc", "language", { public = true })
end
end)

if has_config("test") and has_config("ztest") then
target("unit_tests", function()
set_default(false)
Expand Down
Loading