mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 18:32:42 +01:00
14aaa76a12
- removed VCX project files - fix build errors
108 lines
2.2 KiB
Lua
108 lines
2.2 KiB
Lua
-- premake5.lua
|
|
|
|
workspace "REDRIVER2"
|
|
configurations { "Debug", "Release" }
|
|
|
|
defines { "NTSC_VERSION" } -- or PAL_VERSION
|
|
|
|
filter "system:Windows"
|
|
defines { "USE_32_BIT_ADDR", "PGXP" }
|
|
|
|
-- EMULATOR layer
|
|
project "PSX"
|
|
kind "StaticLib"
|
|
language "C++"
|
|
compileas "C++"
|
|
targetdir "bin/%{cfg.buildcfg}"
|
|
|
|
includedirs {
|
|
".",
|
|
"EMULATOR"
|
|
}
|
|
|
|
files {
|
|
"EMULATOR/**.h",
|
|
"EMULATOR/**.c",
|
|
"EMULATOR/**.cpp",
|
|
}
|
|
|
|
defines { "OGL", "GLEW" }
|
|
|
|
includedirs {
|
|
"dependencies/SDL2/include",
|
|
"dependencies/glew/include",
|
|
"dependencies/openal-soft/include",
|
|
}
|
|
|
|
filter "system:Windows"
|
|
links {
|
|
"opengl32",
|
|
"glew32",
|
|
"SDL2",
|
|
"OpenAL32"
|
|
}
|
|
|
|
libdirs {
|
|
"dependencies/SDL2/lib/x86",
|
|
"dependencies/glew/lib/Release/Win32",
|
|
"dependencies/openal-soft/libs/Win32",
|
|
}
|
|
|
|
-- game iteslf
|
|
project "REDRIVER2"
|
|
kind "ConsoleApp"
|
|
language "C++"
|
|
compileas "C++"
|
|
targetdir "bin/%{cfg.buildcfg}"
|
|
|
|
includedirs {
|
|
".",
|
|
"EMULATOR"
|
|
}
|
|
|
|
files {
|
|
"GAME/**.h",
|
|
"GAME/**.c",
|
|
"redriver2_psxpc.c",
|
|
"DebugOverlay.cpp",
|
|
--"THISDUST.C",
|
|
"THISDUST.H",
|
|
}
|
|
|
|
filter "system:Windows"
|
|
dependson { "PSX" }
|
|
files {
|
|
"Windows/resource.h",
|
|
"Windows/Resource.rc",
|
|
"Windows/main.ico"
|
|
}
|
|
|
|
defines { "OGL", "GLEW" }
|
|
|
|
includedirs {
|
|
"dependencies/SDL2/include",
|
|
"dependencies/glew/include",
|
|
"dependencies/openal-soft/include",
|
|
}
|
|
|
|
links { "PSX" } -- only need to link emulator
|
|
|
|
linkoptions {
|
|
"/SAFESEH:NO", -- Image Has Safe Exception Handers: No. Because of openal-soft
|
|
}
|
|
|
|
filter "configurations:Debug"
|
|
defines {
|
|
"DEBUG",
|
|
"DEBUG_OPTIONS",
|
|
"COLLISION_DEBUG"
|
|
}
|
|
symbols "On"
|
|
|
|
filter "configurations:Release"
|
|
defines {
|
|
"NDEBUG",
|
|
"DEBUG_OPTIONS",
|
|
--"COLLISION_DEBUG"
|
|
}
|
|
optimize "On" |