Skip to content

Commit 40152c5

Browse files
authored
Update xmake.lua
1 parent dbf4349 commit 40152c5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/b/bgfx/xmake.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ package("bgfx")
7777

7878
local configs = {}
7979
table.insert(configs, "/p:Configuration=" .. mode)
80-
table.insert(configs, "/p:Platform=" .. (package:is_arch("x64") and "x64" or "Win32"))
80+
table.insert(configs, "/p:Platform=" .. (package:is_arch("x86_64") and "x64" or (package:is_arch("arm64") and "ARM64" or (package:is_arch("arm") and "ARM" or "Win32"))))
8181
table.insert(configs, tonumber(msvc:config("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

85-
os.trycp("../../win*_vs*/bin/*.lib|*example*", package:installdir("lib"))
86-
os.trycp("../../win*_vs*/bin/*.dll", package:installdir("lib"))
87-
os.trycp("../../win*_vs*/bin/*.lib", package:installdir("lib"))
88-
os.trycp("../../win*_vs*/bin/*.exe", package:installdir("bin"))
85+
os.trycp("../../*_vs*/bin/*.lib|*example*", package:installdir("lib"))
86+
os.trycp("../../*_vs*/bin/*.dll", package:installdir("lib"))
87+
os.trycp("../../*_vs*/bin/*.lib", package:installdir("lib"))
88+
os.trycp("../../*_vs*/bin/*.exe", package:installdir("bin"))
8989
else
9090
import("package.tools.make")
9191

0 commit comments

Comments
 (0)