From 4dd06825e3c821732a036da0760c48b1521cab40 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 3 May 2022 16:39:33 +0800 Subject: [PATCH] add mingw for raylib (#1205) --- packages/r/raylib/xmake.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/r/raylib/xmake.lua b/packages/r/raylib/xmake.lua index 3e94e48d0..ee66bb649 100644 --- a/packages/r/raylib/xmake.lua +++ b/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"))