Skip to content

Commit

Permalink
fix: don't download xbyak if not enabled (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
qudix authored Sep 28, 2024
1 parent 4317dc2 commit 40dca21
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ set_encodings("utf-8")
-- add rules
add_rules("mode.debug", "mode.releasedbg")

-- require packages
add_requires("xbyak")
add_requires("spdlog", { configs = { header_only = false, std_format = true } })

-- make extras available
includes("xmake-extra.lua")

Expand All @@ -25,6 +21,13 @@ option("sfse_xbyak", function()
add_defines("SFSE_SUPPORT_XBYAK=1")
end)

-- require packages
add_requires("spdlog", { configs = { header_only = false, std_format = true } })

if has_config("sfse_xbyak") then
add_requires("xbyak")
end

-- define targets
target("commonlibsf")
-- set target kind
Expand Down

0 comments on commit 40dca21

Please sign in to comment.