|
|
|
@ -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")) |
|
|
|
|