[SDL2] On Win, build and link statically.

Keep using system lib dynamically on Unix.
This commit is contained in:
Joel Linn
2020-03-30 13:23:25 +02:00
committed by Rick Gibbed
parent 9828e085b0
commit 804384c19c
12 changed files with 391 additions and 40 deletions

View File

@@ -79,7 +79,6 @@ project("xenia-app")
filter("platforms:Windows")
links({
"delayimp", -- This library implements delayed loading on Windows, an MSVC exclusive feature.
"xenia-apu-xaudio2",
"xenia-gpu-d3d12",
"xenia-hid-winkey",
@@ -87,11 +86,6 @@ project("xenia-app")
"xenia-ui-d3d12",
})
filter("platforms:Windows")
linkoptions({
"/DELAYLOAD:SDL2.dll", -- SDL is not mandatory on Windows, implementations using native APIs are prefered.
})
filter("platforms:Windows")
-- Only create the .user file if it doesn't already exist.
local user_file = project_root.."/build/xenia-app.vcxproj.user"