REDRIVER2/src_rebuild/PsyX/premake5.lua

67 lines
1.1 KiB
Lua
Raw Normal View History

2020-11-19 07:28:37 +01:00
-- Psy-Cross layer
project "Psy-X"
kind "StaticLib"
language "C++"
targetdir "bin/%{cfg.buildcfg}"
removeplatforms "psx"
defines { GAME_REGION }
files {
"**.h",
"**.H",
"**.c",
"**.C",
"**.cpp",
"**.CPP",
}
2020-10-24 19:38:33 +02:00
defines { }
includedirs {
SDL2_DIR.."/include",
OPENAL_DIR.."/include",
"include"
}
filter "system:Windows"
defines { "_WINDOWS" }
links {
"opengl32",
"SDL2",
"OpenAL32"
}
2020-12-10 22:06:44 +01:00
filter {"system:Windows", "platforms:x86"}
libdirs {
SDL2_DIR.."/lib/x86",
OPENAL_DIR.."/libs/Win32",
}
filter {"system:Windows", "platforms:x86_64"}
libdirs {
SDL2_DIR.."/lib/x64",
OPENAL_DIR.."/libs/Win64",
}
filter "system:linux"
includedirs {
"/usr/include/SDL2"
}
links {
"GL",
"openal",
"SDL2",
}
2021-01-18 16:17:54 +01:00
filter "configurations:Release"
2020-12-20 11:40:16 +01:00
optimize "Speed"
2021-01-18 16:17:54 +01:00
filter "configurations:Release_dev"
optimize "Speed"
filter { "files:**.c", "files:**.C" }
compileas "C++"