summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-06 09:24:12 +0200
committeraap <aap@papnet.eu>2020-05-06 09:24:12 +0200
commitbb0541404d79e91cde0ffe2dac8506df134e18b7 (patch)
treef1481e8bf30d5cbb6b217a0e339d2b37b636f66f /premake5.lua
parentRemove #endif (diff)
downloadre3-bb0541404d79e91cde0ffe2dac8506df134e18b7.tar
re3-bb0541404d79e91cde0ffe2dac8506df134e18b7.tar.gz
re3-bb0541404d79e91cde0ffe2dac8506df134e18b7.tar.bz2
re3-bb0541404d79e91cde0ffe2dac8506df134e18b7.tar.lz
re3-bb0541404d79e91cde0ffe2dac8506df134e18b7.tar.xz
re3-bb0541404d79e91cde0ffe2dac8506df134e18b7.tar.zst
re3-bb0541404d79e91cde0ffe2dac8506df134e18b7.zip
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" }