Skip to content

Commit

Permalink
Update xmake
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxwellGengYF committed Jan 7, 2025
1 parent 26f680c commit 8315aff
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 23 deletions.
22 changes: 0 additions & 22 deletions build_proj.lua

This file was deleted.

19 changes: 18 additions & 1 deletion xmake.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
includes("build_proj.lua")
if not _config_project then
function _config_project(config)
local batch_size = config["batch_size"]
if type(batch_size) == "number" and batch_size > 1 and (not _disable_unity_build) then
add_rules("c.unity_build", {
batchsize = batch_size
})
add_rules("c++.unity_build", {
batchsize = batch_size
})
end
if type(_config_rules) == "table" then
add_rules(_config_rules, config)
end
end
end


target("spdlog")
_config_project({
project_kind = "static",
Expand Down

0 comments on commit 8315aff

Please sign in to comment.