Skip to content

Commit 56ff110

Browse files
authored
Update xmake.lua
1 parent 2994229 commit 56ff110

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/b/bgfx/xmake.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ package("bgfx")
7878
local configs = {}
7979
table.insert(configs, "/p:Configuration=" .. mode)
8080
table.insert(configs, "/p:Platform=" .. (package:is_arch("x64") and "x64" or "Win32"))
81-
table.insert(configs, "bgfx.sln")
81+
table.insert(configs, tonumber(vs) >= 2026 and "bgfx.slnx" or "bgfx.sln")
8282
os.cd(format(".build/projects/vs%s", msvc:config("vs")))
8383
msbuild.build(package, configs)
8484

@@ -121,6 +121,9 @@ package("bgfx")
121121
if package:version() and package:version():ge("9392") and package:is_plat("iphoneos") then
122122
io.replace("scripts/bgfx.lua", 'configuration { "osx*" }', 'configuration { "ios*" }\n\t\tbuildoptions { "-x objective-c++" }\n\tconfiguration { "osx*" }', {plain = true})
123123
end
124+
if package:version() and package:version():ge("9392") and package:is_plat("macosx", "iphoneos") then
125+
io.replace("3rdparty/dawn/src/tint/lang/core/ir/transform/multiplanar_external_texture.cc", 'using MultiplanarTexture = tint::transform::multiplanar::MultiplanarTexture;', 'template <class... Ts>\noverloaded(Ts...) -> overloaded<Ts...>;\nusing MultiplanarTexture = tint::transform::multiplanar::MultiplanarTexture;', {plain = true})
126+
end
124127
os.vrunv(genie, args, {envs = envs})
125128

126129
if package:is_plat("linux") and os.isdir(".build/projects/gmake-linux-gcc") then

0 commit comments

Comments
 (0)