add mingw for raylib (#1205)

pull/1206/head
ruki 3 years ago committed by GitHub
parent 19cd2ac64b
commit 4dd06825e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/r/raylib/xmake.lua

@ -32,7 +32,7 @@ package("raylib")
if is_plat("macosx") then
add_frameworks("CoreVideo", "CoreGraphics", "AppKit", "IOKit", "CoreFoundation", "Foundation")
elseif is_plat("windows") then
elseif is_plat("windows", "mingw") then
add_syslinks("gdi32", "user32", "winmm", "shell32")
elseif is_plat("linux") then
add_syslinks("pthread", "dl", "m")
@ -45,7 +45,7 @@ package("raylib")
os.cp("lib/libraylib.a", package:installdir("lib"))
end)
on_install("windows", "linux", "macosx|arm64", function (package)
on_install("windows", "linux", "macosx|arm64", "mingw", function (package)
local configs = {"-DBUILD_EXAMPLES=OFF"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))

Loading…
Cancel
Save