mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-06 15:59:59 +00:00
Merge branch 'miami' into lcs
# Conflicts: # premake5.lua
This commit is contained in:
commit
5d5e0f62e8
18 changed files with 152 additions and 103 deletions
15
premake5.lua
15
premake5.lua
|
@ -27,14 +27,19 @@ newoption {
|
|||
description = "Build with opus"
|
||||
}
|
||||
|
||||
newoption {
|
||||
trigger = "with-lto",
|
||||
description = "Build with link time optimization"
|
||||
}
|
||||
|
||||
newoption {
|
||||
trigger = "no-git-hash",
|
||||
description = "Don't print git commit hash into binary"
|
||||
}
|
||||
|
||||
newoption {
|
||||
trigger = "lto",
|
||||
description = "Use link time optimization"
|
||||
trigger = "no-full-paths",
|
||||
description = "Don't print full paths into binary"
|
||||
}
|
||||
|
||||
if(_OPTIONS["with-librw"]) then
|
||||
|
@ -121,7 +126,7 @@ workspace "reLCS"
|
|||
filter "configurations:not Debug"
|
||||
defines { "NDEBUG" }
|
||||
optimize "Speed"
|
||||
if(_OPTIONS["lto"]) then
|
||||
if(_OPTIONS["with-lto"]) then
|
||||
flags { "LinkTimeOptimization" }
|
||||
end
|
||||
|
||||
|
@ -338,6 +343,10 @@ project "reLCS"
|
|||
linkoptions "/SAFESEH:NO"
|
||||
characterset ("MBCS")
|
||||
targetextension ".exe"
|
||||
if(_OPTIONS["no-full-paths"]) then
|
||||
usefullpaths "off"
|
||||
linkoptions "/PDBALTPATH:%_PDB%"
|
||||
end
|
||||
if(_OPTIONS["with-librw"]) then
|
||||
-- external librw is dynamic
|
||||
staticruntime "on"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue