Add PlatformSDL2_Path config
This commit is contained in:
parent
7d23cafa35
commit
71c11c5d6f
|
|
@ -26,4 +26,5 @@ ServerMode = false
|
|||
UniteModules = false
|
||||
|
||||
-- Use SDL2 platform
|
||||
PlatformSDL2 = true
|
||||
PlatformSDL2 = true
|
||||
PlatformSDL2_Path = "../../SDL2"
|
||||
|
|
@ -15,6 +15,17 @@ if (Config.PlatformSDL2) then
|
|||
|
||||
table.insert(MODULE.Libraries, "SDL2")
|
||||
|
||||
assert(Config.PlatformSDL2_Path)
|
||||
MODULE.Includes = Config.PlatformSDL2_Path .. "/include"
|
||||
MODULE.LibraryPaths.x64 = {
|
||||
Config.PlatformSDL2_Path .. "/lib/x64/",
|
||||
Config.PlatformSDL2_Path .. "/bin/x64/"
|
||||
}
|
||||
MODULE.LibraryPaths.x86 = {
|
||||
Config.PlatformSDL2_Path .. "/lib/x86/",
|
||||
Config.PlatformSDL2_Path .. "/bin/x86/"
|
||||
}
|
||||
|
||||
MODULE.FilesExcluded = {
|
||||
"../src/Nazara/Platform/Win32/**",
|
||||
"../src/Nazara/Platform/X11/**"
|
||||
|
|
|
|||
|
|
@ -20,6 +20,17 @@ if (Config.PlatformSDL2) then
|
|||
|
||||
table.insert(MODULE.Libraries, "SDL2")
|
||||
|
||||
assert(Config.PlatformSDL2_Path)
|
||||
MODULE.Includes = Config.PlatformSDL2_Path .. "/include"
|
||||
MODULE.LibraryPaths.x64 = {
|
||||
Config.PlatformSDL2_Path .. "/lib/x64/",
|
||||
Config.PlatformSDL2_Path .. "/bin/x64/"
|
||||
}
|
||||
MODULE.LibraryPaths.x86 = {
|
||||
Config.PlatformSDL2_Path .. "/lib/x86/",
|
||||
Config.PlatformSDL2_Path .. "/bin/x86/"
|
||||
}
|
||||
|
||||
MODULE.FilesExcluded = {
|
||||
"../src/Nazara/Renderer/Win32/**",
|
||||
"../src/Nazara/Renderer/GLX/**.cpp"
|
||||
|
|
|
|||
|
|
@ -17,6 +17,9 @@ EXAMPLE.Libraries = {
|
|||
"NazaraUtility"
|
||||
}
|
||||
|
||||
if Config.PlatformSDL2 then
|
||||
if (Config.PlatformSDL2) then
|
||||
table.insert(EXAMPLE.Defines, "NAZARA_PLATFORM_SDL2")
|
||||
|
||||
assert(Config.PlatformSDL2_Path)
|
||||
EXAMPLE.Includes = Config.PlatformSDL2_Path .. "/include"
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue