mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Add SDL2 linking configuration to premake
This commit is contained in:
@@ -627,6 +627,15 @@ extern_lib_defs = {
|
||||
link_settings = function()
|
||||
if os.istarget("windows") then
|
||||
add_default_lib_paths("sdl2")
|
||||
add_default_links({
|
||||
win_names = { "SDL2", "SDL2main" },
|
||||
no_delayload = 1,
|
||||
})
|
||||
|
||||
-- SDL2maind.pdb dont provide debug info, so we ignore the warning
|
||||
filter { "system:windows", "configurations:Debug" }
|
||||
linkoptions { "/IGNORE:4099" }
|
||||
filter{}
|
||||
elseif not _OPTIONS["android"] then
|
||||
pkgconfig.add_links("sdl2")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user