summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-07-29 14:52:17 +0200
committerGitHub <noreply@github.com>2020-07-29 14:52:17 +0200
commit57d5782588af765a12337aa9f17dd474d3713e9e (patch)
tree30e82f920b5c3ab2c24a652d13df68609f7aaa80 /premake5.lua
parentrename shit (diff)
parentfixes (diff)
downloadre3-57d5782588af765a12337aa9f17dd474d3713e9e.tar
re3-57d5782588af765a12337aa9f17dd474d3713e9e.tar.gz
re3-57d5782588af765a12337aa9f17dd474d3713e9e.tar.bz2
re3-57d5782588af765a12337aa9f17dd474d3713e9e.tar.lz
re3-57d5782588af765a12337aa9f17dd474d3713e9e.tar.xz
re3-57d5782588af765a12337aa9f17dd474d3713e9e.tar.zst
re3-57d5782588af765a12337aa9f17dd474d3713e9e.zip
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua32
1 files changed, 29 insertions, 3 deletions
diff --git a/premake5.lua b/premake5.lua
index 7381da1d..87cb9e2d 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -24,6 +24,11 @@ newoption {
description = "Build and use librw from this solution"
}
+newoption {
+ trigger = "with-opus",
+ description = "Build with opus"
+}
+
if(_OPTIONS["with-librw"]) then
Librw = "librw"
else
@@ -200,10 +205,24 @@ project "re3"
includedirs { "src/extras" }
includedirs { "eax" }
- filter "platforms:*mss"
- defines { "AUDIO_MSS" }
- includedirs { "milessdk/include" }
+ if _OPTIONS["with-opus"] then
+ includedirs { "ogg/include" }
+ includedirs { "opus/include" }
+ includedirs { "opusfile/include" }
+ end
+
libdirs { "milessdk/lib" }
+ libdirs { "openal-soft/libs/Win32" }
+ libdirs { "mpg123/lib" }
+ libdirs { "libsndfile/lib" }
+ if _OPTIONS["with-opus"] then
+ filter "platforms:win*"
+ libdirs { "ogg/win32/VS2015/Win32/%{cfg.buildcfg}" }
+ libdirs { "opus/win32/VS2015/Win32/%{cfg.buildcfg}" }
+ libdirs { "opusfile/win32/VS2015/Win32/Release-NoHTTP" }
+ filter {}
+ defines { "AUDIO_OPUS" }
+ end
filter "platforms:*oal"
defines { "AUDIO_OAL" }
@@ -238,6 +257,13 @@ project "re3"
filter "platforms:linux*oal"
links { "openal", "mpg123", "sndfile", "pthread" }
+
+ if _OPTIONS["with-opus"] then
+ filter {}
+ links { "libogg" }
+ links { "opus" }
+ links { "opusfile" }
+ end
filter "platforms:*RW33*"
staticruntime "on"