diff --git a/packages/o/ois/xmake.lua b/packages/o/ois/xmake.lua index 749f608154d..4ec6a69cbdb 100644 --- a/packages/o/ois/xmake.lua +++ b/packages/o/ois/xmake.lua @@ -10,9 +10,11 @@ package("ois") add_deps("cmake") - if is_plat("linux", "bsd", "android", "wasm", "cross") then + if is_plat("linux", "bsd", "android", "cross") then add_deps("libx11") - elseif is_plat("macosx") then + elseif is_plat("wasm") then + add_syslinks("x11") + elseif is_plat("macosx", "iphoneos") then add_frameworks("Cocoa", "Foundation", "Carbon", "IOKit") elseif is_plat("windows", "mingw") then add_syslinks("dinput8", "dxguid", "ole32", "oleaut32", "user32", "uuid", "xinput", "winmm")