summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-11-08 18:32:31 +0100
committerRoman Masanin <36927roma@gmail.com>2020-11-08 18:32:31 +0100
commite269809bfd9d2277eaa5d2e80763e54449bc25ce (patch)
tree166ecdb72eb8d337b6e9a699912170b9fe94e092 /premake5.lua
parentsome "optimizations". same like I did in VC (diff)
parentMerge pull request #809 from erorcun/master (diff)
downloadre3-e269809bfd9d2277eaa5d2e80763e54449bc25ce.tar
re3-e269809bfd9d2277eaa5d2e80763e54449bc25ce.tar.gz
re3-e269809bfd9d2277eaa5d2e80763e54449bc25ce.tar.bz2
re3-e269809bfd9d2277eaa5d2e80763e54449bc25ce.tar.lz
re3-e269809bfd9d2277eaa5d2e80763e54449bc25ce.tar.xz
re3-e269809bfd9d2277eaa5d2e80763e54449bc25ce.tar.zst
re3-e269809bfd9d2277eaa5d2e80763e54449bc25ce.zip
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua23
1 files changed, 22 insertions, 1 deletions
diff --git a/premake5.lua b/premake5.lua
index b5b885b3..b8ab1491 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -122,9 +122,11 @@ workspace "re3"
filter { "platforms:*x86*" }
architecture "x86"
+ floatingpoint "Fast"
filter { "platforms:*amd64*" }
architecture "amd64"
+ floatingpoint "Fast"
filter { "platforms:*arm*" }
architecture "ARM"
@@ -184,6 +186,18 @@ project "librw"
files { path.join(Librw, "src/*.*") }
files { path.join(Librw, "src/*/*.*") }
+ filter { "platforms:*x86*" }
+ architecture "x86"
+ floatingpoint "Fast"
+
+ filter { "platforms:*amd64*" }
+ architecture "amd64"
+ floatingpoint "Fast"
+
+ filter "platforms:win*"
+ staticruntime "on"
+ buildoptions { "/Zc:sizedDealloc-" }
+
filter "platforms:bsd*"
includedirs { "/usr/local/include" }
libdirs { "/usr/local/lib" }
@@ -194,6 +208,9 @@ project "librw"
includedirs {"/usr/local/include" }
libdirs { "/opt/local/lib" }
libdirs { "/usr/local/lib" }
+
+ filter "platforms:*gl3_glfw*"
+ staticruntime "off"
filter "platforms:*RW33*"
flags { "ExcludeFromBuild" }
@@ -284,9 +301,14 @@ project "re3"
filter "platforms:win*"
files { addSrcFiles("src/skel/win") }
includedirs { "src/skel/win" }
+ buildoptions { "/Zc:sizedDealloc-" }
linkoptions "/SAFESEH:NO"
characterset ("MBCS")
targetextension ".exe"
+ staticruntime "on"
+
+ filter "platforms:win*glfw*"
+ staticruntime "off"
filter "platforms:win*oal"
includedirs { "vendor/openal-soft/include" }
@@ -322,7 +344,6 @@ project "re3"
end
filter "platforms:*RW33*"
- staticruntime "on"
includedirs { "sdk/rwsdk/include/d3d8" }
libdirs { "sdk/rwsdk/lib/d3d8/release" }
links { "rwcore", "rpworld", "rpmatfx", "rpskin", "rphanim", "rtbmp", "rtquat", "rtcharse" }