Skip to content

Commit 1c755f4

Browse files
authored
Add linux arm architecture check for bgfx package
Added a check for linux arm architecture support for bgfx version 9392.
1 parent a38ae29 commit 1c755f4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/b/bgfx/xmake.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ package("bgfx")
3636

3737
add_deps("genie")
3838

39+
on_check("linux", function (package)
40+
assert(package:version() and package:version():eq("9392") and package:is_arch("arm.*"), "package(bgfx == 9393): unsupport linux arm")
41+
end)
42+
3943
on_load("windows", "macosx", "linux", "iphoneos", function (package)
4044
local suffix = package:is_debug() and "Debug" or "Release"
4145
for _, lib in ipairs({"bgfx", "bimg", "bx"}) do
@@ -44,7 +48,7 @@ package("bgfx")
4448
package:add("defines", "BX_CONFIG_DEBUG=" .. (package:is_debug() and "1" or "0"))
4549
end)
4650

47-
on_install("windows|native", "macosx", "linux|x86_64", "iphoneos", function (package)
51+
on_install("windows|native", "macosx", "linux", "iphoneos", function (package)
4852
local bxdir = package:resourcefile("bx")
4953
local bimgdir = package:resourcefile("bimg")
5054
local genie = is_host("windows") and "genie.exe" or "genie"

0 commit comments

Comments
 (0)