mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-12-22 07:41:52 +01:00
premake: add startrpoject; add lto option; fix copying of binary to gamedir; update premake5.exe
This commit is contained in:
parent
cc2cebffb6
commit
59825a5268
BIN
premake5.exe
BIN
premake5.exe
Binary file not shown.
13
premake5.lua
13
premake5.lua
@ -34,6 +34,11 @@ newoption {
|
||||
description = "Build with opus"
|
||||
}
|
||||
|
||||
newoption {
|
||||
trigger = "lto",
|
||||
description = "Use link time optimization"
|
||||
}
|
||||
|
||||
if(_OPTIONS["with-librw"]) then
|
||||
Librw = "vendor/librw"
|
||||
else
|
||||
@ -61,6 +66,7 @@ end
|
||||
workspace "re3"
|
||||
language "C++"
|
||||
configurations { "Debug", "Release" }
|
||||
startproject "re3"
|
||||
location "build"
|
||||
symbols "Full"
|
||||
staticruntime "off"
|
||||
@ -109,7 +115,10 @@ workspace "re3"
|
||||
|
||||
filter "configurations:Release"
|
||||
defines { "NDEBUG" }
|
||||
optimize "On"
|
||||
optimize "Speed"
|
||||
if(_OPTIONS["lto"]) then
|
||||
flags { "LinkTimeOptimization" }
|
||||
end
|
||||
|
||||
filter { "platforms:win*" }
|
||||
system "windows"
|
||||
@ -166,7 +175,7 @@ workspace "re3"
|
||||
scriptspath = scriptspath or ""
|
||||
if (gamepath) then
|
||||
postbuildcommands {
|
||||
'{COPY} "%{cfg.buildtarget.abspath}" "' .. gamepath .. scriptspath .. '%{cfg.buildtarget.name}"'
|
||||
'{COPYFILE} "%{cfg.buildtarget.abspath}" "' .. gamepath .. scriptspath .. '%{cfg.buildtarget.name}"'
|
||||
}
|
||||
debugdir (gamepath)
|
||||
if (exepath) then
|
||||
|
BIN
premake5Linux
BIN
premake5Linux
Binary file not shown.
Loading…
Reference in New Issue
Block a user