mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 18:32:42 +01:00
67 lines
1.1 KiB
Lua
67 lines
1.1 KiB
Lua
|
|
-- 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",
|
|
}
|
|
|
|
defines { }
|
|
|
|
includedirs {
|
|
SDL2_DIR.."/include",
|
|
OPENAL_DIR.."/include",
|
|
"include"
|
|
}
|
|
|
|
filter "system:Windows"
|
|
defines { "_WINDOWS" }
|
|
links {
|
|
"opengl32",
|
|
"SDL2",
|
|
"OpenAL32"
|
|
}
|
|
|
|
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",
|
|
}
|
|
|
|
filter "configurations:Release"
|
|
optimize "Speed"
|
|
|
|
filter "configurations:Release_dev"
|
|
optimize "Speed"
|
|
|
|
filter { "files:**.c", "files:**.C" }
|
|
compileas "C++"
|