diff options
author | aap <aap@papnet.eu> | 2021-01-12 10:29:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-12 10:29:19 +0100 |
commit | fe1d82c9c3bacdf7a19edfb0df13060c83c624ee (patch) | |
tree | edc4fea1fde99a62206bbbf4364de1a526192bee | |
parent | Fix collective commands (diff) | |
parent | premake: add startrpoject; add lto option; fix copying of binary to gamedir; update premake5.exe (diff) | |
download | re3-fe1d82c9c3bacdf7a19edfb0df13060c83c624ee.tar re3-fe1d82c9c3bacdf7a19edfb0df13060c83c624ee.tar.gz re3-fe1d82c9c3bacdf7a19edfb0df13060c83c624ee.tar.bz2 re3-fe1d82c9c3bacdf7a19edfb0df13060c83c624ee.tar.lz re3-fe1d82c9c3bacdf7a19edfb0df13060c83c624ee.tar.xz re3-fe1d82c9c3bacdf7a19edfb0df13060c83c624ee.tar.zst re3-fe1d82c9c3bacdf7a19edfb0df13060c83c624ee.zip |
-rw-r--r-- | premake5.exe | bin | 1362432 -> 1395712 bytes | |||
-rw-r--r-- | premake5.lua | 13 | ||||
-rwxr-xr-x | premake5Linux | bin | 2035312 -> 2035312 bytes |
3 files changed, 11 insertions, 2 deletions
diff --git a/premake5.exe b/premake5.exe Binary files differindex 9048d51e..a8483721 100644 --- a/premake5.exe +++ b/premake5.exe diff --git a/premake5.lua b/premake5.lua index e6f34c9f..0d77ae2c 100644 --- a/premake5.lua +++ b/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
diff --git a/premake5Linux b/premake5Linux Binary files differindex 2fd412da..1ca75167 100755 --- a/premake5Linux +++ b/premake5Linux |