2020-10-01 19:15:33 +02:00
|
|
|
|
2020-11-18 20:14:45 +01:00
|
|
|
-- Psy-X (Psy-Cross) layer
|
|
|
|
project "Psy-X"
|
2020-10-01 19:15:33 +02:00
|
|
|
kind "StaticLib"
|
|
|
|
language "C++"
|
|
|
|
compileas "C++"
|
|
|
|
targetdir "bin/%{cfg.buildcfg}"
|
|
|
|
removeplatforms "psx"
|
|
|
|
|
|
|
|
defines { GAME_REGION }
|
|
|
|
|
|
|
|
files {
|
2020-11-18 20:14:45 +01:00
|
|
|
"**.h",
|
|
|
|
"**.H",
|
|
|
|
"**.c",
|
|
|
|
"**.C",
|
|
|
|
"**.cpp",
|
|
|
|
"**.CPP",
|
2020-10-01 19:15:33 +02:00
|
|
|
}
|
|
|
|
|
2020-10-24 19:38:33 +02:00
|
|
|
defines { }
|
2020-10-01 19:15:33 +02:00
|
|
|
|
|
|
|
includedirs {
|
|
|
|
SDL2_DIR.."/include",
|
|
|
|
OPENAL_DIR.."/include",
|
2020-10-24 19:38:33 +02:00
|
|
|
OPENAL_DIR.."/include",
|
2020-10-01 19:15:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
filter "system:Windows"
|
|
|
|
defines { "_WINDOWS" }
|
|
|
|
links {
|
|
|
|
"opengl32",
|
|
|
|
"SDL2",
|
|
|
|
"OpenAL32"
|
|
|
|
}
|
|
|
|
|
|
|
|
libdirs {
|
|
|
|
SDL2_DIR.."/lib/x86",
|
|
|
|
OPENAL_DIR.."/libs/Win32",
|
|
|
|
}
|
|
|
|
|
|
|
|
filter "system:linux"
|
|
|
|
buildoptions {
|
2020-10-08 04:42:37 +02:00
|
|
|
"-Wno-narrowing",
|
|
|
|
"-m32",
|
2020-10-01 19:15:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
includedirs {
|
|
|
|
"/usr/include/SDL2"
|
|
|
|
}
|
|
|
|
|
|
|
|
links {
|
|
|
|
"GL",
|
2020-10-08 04:42:37 +02:00
|
|
|
"openal",
|
2020-10-01 19:15:33 +02:00
|
|
|
"SDL2",
|
|
|
|
}
|
|
|
|
|
2020-10-08 04:42:37 +02:00
|
|
|
linkoptions {
|
|
|
|
"-m32"
|
|
|
|
}
|
|
|
|
|
2020-10-01 19:15:33 +02:00
|
|
|
filter "configurations:Release"
|
2020-10-24 20:52:13 +02:00
|
|
|
optimize "Full"
|
|
|
|
|
|
|
|
filter "configurations:Release Dev"
|
2020-10-01 19:15:33 +02:00
|
|
|
optimize "Full"
|