1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 00:20:01 +00:00

Merge pull request #945 from withmorten/master

premake: add startrpoject; add lto option; fix copying of binary to gamedir; update premake5.exe
This commit is contained in:
aap 2021-01-12 10:29:19 +01:00 committed by GitHub
commit fe1d82c9c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

Binary file not shown.

View file

@ -34,6 +34,11 @@ newoption {
description = "Build with opus" description = "Build with opus"
} }
newoption {
trigger = "lto",
description = "Use link time optimization"
}
if(_OPTIONS["with-librw"]) then if(_OPTIONS["with-librw"]) then
Librw = "vendor/librw" Librw = "vendor/librw"
else else
@ -61,6 +66,7 @@ end
workspace "re3" workspace "re3"
language "C++" language "C++"
configurations { "Debug", "Release" } configurations { "Debug", "Release" }
startproject "re3"
location "build" location "build"
symbols "Full" symbols "Full"
staticruntime "off" staticruntime "off"
@ -109,7 +115,10 @@ workspace "re3"
filter "configurations:Release" filter "configurations:Release"
defines { "NDEBUG" } defines { "NDEBUG" }
optimize "On" optimize "Speed"
if(_OPTIONS["lto"]) then
flags { "LinkTimeOptimization" }
end
filter { "platforms:win*" } filter { "platforms:win*" }
system "windows" system "windows"
@ -166,7 +175,7 @@ workspace "re3"
scriptspath = scriptspath or "" scriptspath = scriptspath or ""
if (gamepath) then if (gamepath) then
postbuildcommands { postbuildcommands {
'{COPY} "%{cfg.buildtarget.abspath}" "' .. gamepath .. scriptspath .. '%{cfg.buildtarget.name}"' '{COPYFILE} "%{cfg.buildtarget.abspath}" "' .. gamepath .. scriptspath .. '%{cfg.buildtarget.name}"'
} }
debugdir (gamepath) debugdir (gamepath)
if (exepath) then if (exepath) then

Binary file not shown.