summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua92
1 files changed, 92 insertions, 0 deletions
diff --git a/premake5.lua b/premake5.lua
index 1c313a10..cfba8e01 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -192,3 +192,95 @@ project "re3"
libdirs { path.join(_OPTIONS["glewdir"], "lib/Release/Win32") }
libdirs { path.join(_OPTIONS["glfwdir"], "lib-" .. string.gsub(_ACTION, "vs", "vc")) }
links { "opengl32", "glew32s", "glfw3" }
+
+
+project "reVC"
+ kind "WindowedApp"
+ targetname "reVC"
+ targetdir "bin/%{cfg.platform}/%{cfg.buildcfg}"
+ targetextension ".exe"
+ characterset ("MBCS")
+ linkoptions "/SAFESEH:NO"
+
+ defines { "MIAMI" }
+
+ files { "src/*.*" }
+ files { "src/animation/*.*" }
+ files { "src/audio/*.*" }
+ files { "src/control/*.*" }
+ files { "src/core/*.*" }
+ files { "src/entities/*.*" }
+ files { "src/math/*.*" }
+ files { "src/modelinfo/*.*" }
+ files { "src/objects/*.*" }
+ files { "src/peds/*.*" }
+ files { "src/render/*.*" }
+ files { "src/rw/*.*" }
+ files { "src/save/*.*" }
+ files { "src/skel/*.*" }
+ files { "src/skel/win/*.*" }
+ files { "src/skel/glfw/*.*" }
+ files { "src/text/*.*" }
+ files { "src/vehicles/*.*" }
+ files { "src/weapons/*.*" }
+ files { "src/extras/*.*" }
+ files { "eax/*.*" }
+
+ includedirs { "src" }
+ includedirs { "src/animation" }
+ includedirs { "src/audio" }
+ includedirs { "src/control" }
+ includedirs { "src/core" }
+ includedirs { "src/entities" }
+ includedirs { "src/math" }
+ includedirs { "src/modelinfo" }
+ includedirs { "src/objects" }
+ includedirs { "src/peds" }
+ includedirs { "src/render" }
+ includedirs { "src/rw" }
+ includedirs { "src/save/" }
+ includedirs { "src/skel/" }
+ includedirs { "src/skel/win" }
+ includedirs { "src/skel/glfw" }
+ includedirs { "src/text" }
+ includedirs { "src/vehicles" }
+ includedirs { "src/weapons" }
+ includedirs { "src/extras" }
+ includedirs { "eax" }
+
+ includedirs { "milessdk/include" }
+ includedirs { "eax" }
+
+ libdirs { "milessdk/lib" }
+
+ setpaths("$(GTA_VC_RE_DIR)/", "$(TargetFileName)", "")
+
+ filter "platforms:*RW33*"
+ staticruntime "on"
+ includedirs { "rwsdk/include/d3d8" }
+ libdirs { "rwsdk/lib/d3d8/release" }
+ links { "rwcore", "rpworld", "rpmatfx", "rpskin", "rphanim", "rtbmp", "rtquat", "rtcharse" }
+ defines { "RWLIBS" }
+ linkoptions "/SECTION:_rwcseg,ER!W /MERGE:_rwcseg=.text"
+
+ filter "platforms:*librw*"
+ defines { "LIBRW" }
+ files { "src/fakerw/*.*" }
+ includedirs { "src/fakerw" }
+ includedirs { Librw }
+ if(_OPTIONS["with-librw"]) then
+ libdirs { "lib/%{cfg.platform}/%{cfg.buildcfg}" }
+ end
+ links { "rw" }
+
+ filter "platforms:*d3d*"
+ includedirs { "dxsdk/include" }
+ libdirs { "dxsdk/lib" }
+
+ filter "platforms:*d3d9*"
+ links { "d3d9" }
+
+ filter "platforms:*gl3_glfw*"
+ libdirs { path.join(_OPTIONS["glewdir"], "lib/Release/Win32") }
+ libdirs { path.join(_OPTIONS["glfwdir"], "lib-" .. string.gsub(_ACTION, "vs", "vc")) }
+ links { "opengl32", "glew32s", "glfw3" }