Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't download xbyak if not enabled #276

Merged
merged 1 commit into from
Sep 28, 2024
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
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