diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-04-18 13:20:49 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-04-18 13:20:49 +0200 |
commit | 444d6462c5dadc976f8f0f3c2f649888c21bf4d9 (patch) | |
tree | 59f8434ff331ce2c41e8eb67285e81b96d81c966 | |
parent | Merge pull request #467 from Nick007J/master (diff) | |
download | re3-444d6462c5dadc976f8f0f3c2f649888c21bf4d9.tar re3-444d6462c5dadc976f8f0f3c2f649888c21bf4d9.tar.gz re3-444d6462c5dadc976f8f0f3c2f649888c21bf4d9.tar.bz2 re3-444d6462c5dadc976f8f0f3c2f649888c21bf4d9.tar.lz re3-444d6462c5dadc976f8f0f3c2f649888c21bf4d9.tar.xz re3-444d6462c5dadc976f8f0f3c2f649888c21bf4d9.tar.zst re3-444d6462c5dadc976f8f0f3c2f649888c21bf4d9.zip |
-rw-r--r-- | premake5.lua | 51 |
1 files changed, 20 insertions, 31 deletions
diff --git a/premake5.lua b/premake5.lua index ce637640..6037b01c 100644 --- a/premake5.lua +++ b/premake5.lua @@ -60,7 +60,6 @@ workspace "re3" filter {} filter "configurations:DebugRW or ReleaseRW" - defines { "RWLIBS" } includedirs { "rwsdk/include/d3d8" } libdirs { "rwsdk/lib/d3d8/release" } links { "rwcore", "rpworld", "rpmatfx", "rpskin", "rphanim", "rtbmp" } @@ -102,39 +101,29 @@ project "re3" characterset ("MBCS") linkoptions "/SAFESEH:NO" - prebuildcommands { "cd \"../librw\" && premake5 " .. _ACTION .. " && msbuild \"build/librw.sln\" /property:Configuration=%{cfg.longname} /property:Platform=\"win-x86-d3d9\"" } - - filter "configurations:Debug" - defines { "DEBUG", "LIBRW", "RW_D3D9" } - staticruntime "off" - symbols "Full" - 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)/", "$(TargetFileName)", "") - - filter "configurations:ReleaseFH" - defines { "NDEBUG" } - symbols "Full" - optimize "off" - staticruntime "on" - setpaths("$(GTA_III_RE_DIR)/", "$(TargetFileName)", "") - - filter "configurations:DebugRW" - defines { "DEBUG" } + setpaths("$(GTA_III_RE_DIR)/", "$(TargetFileName)", "") + symbols "Full" + staticruntime "off" + + filter "configurations:not *RW" + prebuildcommands { "cd \"../librw\" && premake5 " .. _ACTION .. " && msbuild \"build/librw.sln\" /property:Configuration=%{cfg.longname} /property:Platform=\"win-x86-d3d9\"" } + defines { "LIBRW", "RW_D3D9" } + + filter "configurations:*RW" + defines { "RWLIBS" } staticruntime "on" - symbols "On" - setpaths("$(GTA_III_RE_DIR)/", "$(TargetFileName)", "") linkoptions "/SECTION:_rwcseg,ER!W /MERGE:_rwcseg=.text" - - filter "configurations:ReleaseRW" + + filter "configurations:Debug*" + defines { "DEBUG" } + + filter "configurations:Release*" defines { "NDEBUG" } optimize "On" + + + filter "configurations:ReleaseFH" + prebuildcommands {} + optimize "off" staticruntime "on" - setpaths("$(GTA_III_RE_DIR)/", "$(TargetFileName)", "") - linkoptions "/SECTION:_rwcseg,ER!W /MERGE:_rwcseg=.text" |