summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-17 21:45:25 +0200
committeraap <aap@papnet.eu>2020-04-17 21:45:25 +0200
commit5c474b9c6881744c48254fb4ff9b3deb239b7455 (patch)
tree84eaf28320cf2f05ce094a048ccdf301502ffe0e /premake5.lua
parentfixed raster from image conversion (diff)
parentpremake fixes (diff)
downloadre3-5c474b9c6881744c48254fb4ff9b3deb239b7455.tar
re3-5c474b9c6881744c48254fb4ff9b3deb239b7455.tar.gz
re3-5c474b9c6881744c48254fb4ff9b3deb239b7455.tar.bz2
re3-5c474b9c6881744c48254fb4ff9b3deb239b7455.tar.lz
re3-5c474b9c6881744c48254fb4ff9b3deb239b7455.tar.xz
re3-5c474b9c6881744c48254fb4ff9b3deb239b7455.tar.zst
re3-5c474b9c6881744c48254fb4ff9b3deb239b7455.zip
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua19
1 files changed, 10 insertions, 9 deletions
diff --git a/premake5.lua b/premake5.lua
index 586996f8..c427211a 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -1,4 +1,4 @@
-Librw = os.getenv("LIBRW")
+Librw = os.getenv("LIBRW") or "librw"
workspace "re3"
configurations { "Debug", "Release", "ReleaseFH", "DebugRW", "ReleaseRW" }
@@ -54,9 +54,8 @@ workspace "re3"
filter "configurations:Debug or Release"
files { "src/fakerw/*.*" }
includedirs { "src/fakerw" }
- includedirs { "librw" }
- includedirs { "librw/src" }
- libdirs { path.join("librw", "lib/win-x86-d3d9/%{cfg.buildcfg}") }
+ includedirs { Librw }
+ libdirs { path.join(Librw, "lib/win-x86-d3d9/%{cfg.buildcfg}") }
links { "rw", "d3d9" }
filter {}
@@ -107,31 +106,33 @@ project "re3"
defines { "DEBUG", "LIBRW", "RW_D3D9" }
staticruntime "off"
symbols "Full"
- setpaths("$(GTA_III_RE_DIR)/", "re3.exe", "")
+ setpaths("$(GTA_III_RE_DIR)/", "$(TargetFileName)", "")
filter "configurations:Release"
defines { "NDEBUG", "LIBRW", "RW_D3D9" }
optimize "On"
staticruntime "off"
symbols "Full"
- setpaths("$(GTA_III_RE_DIR)/", "re3.exe", "")
+ setpaths("$(GTA_III_RE_DIR)/", "$(TargetFileName)", "")
filter "configurations:ReleaseFH"
defines { "NDEBUG" }
symbols "Full"
optimize "off"
staticruntime "on"
- setpaths("$(GTA_III_RE_DIR)/", "re3.exe", "")
+ setpaths("$(GTA_III_RE_DIR)/", "$(TargetFileName)", "")
filter "configurations:DebugRW"
defines { "DEBUG" }
staticruntime "on"
symbols "On"
- setpaths("$(GTA_III_RE_DIR)/", "re3.exe", "")
+ setpaths("$(GTA_III_RE_DIR)/", "$(TargetFileName)", "")
+ linkoptions "/SECTION:_rwcseg,ER!W /MERGE:_rwcseg=.text"
filter "configurations:ReleaseRW"
defines { "NDEBUG" }
optimize "On"
staticruntime "on"
- setpaths("$(GTA_III_RE_DIR)/", "re3.exe", "")
+ setpaths("$(GTA_III_RE_DIR)/", "$(TargetFileName)", "")
+ linkoptions "/SECTION:_rwcseg,ER!W /MERGE:_rwcseg=.text"