summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-22 16:40:19 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-22 16:40:19 +0200
commit0af4d57408842d501af2fce4617e19a3bf9466eb (patch)
treeecef62ff91adfd2a437f16b592f2184d89cc0ba7 /premake5.lua
parentsubmodules (diff)
downloadre3-0af4d57408842d501af2fce4617e19a3bf9466eb.tar
re3-0af4d57408842d501af2fce4617e19a3bf9466eb.tar.gz
re3-0af4d57408842d501af2fce4617e19a3bf9466eb.tar.bz2
re3-0af4d57408842d501af2fce4617e19a3bf9466eb.tar.lz
re3-0af4d57408842d501af2fce4617e19a3bf9466eb.tar.xz
re3-0af4d57408842d501af2fce4617e19a3bf9466eb.tar.zst
re3-0af4d57408842d501af2fce4617e19a3bf9466eb.zip
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/premake5.lua b/premake5.lua
index c8494884..c6551a21 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -17,6 +17,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
@@ -185,8 +190,25 @@ project "re3"
includedirs { "milessdk/include" }
includedirs { "eax" }
+
+ includedirs { "openal-soft/include" }
+ includedirs { "mpg123/include" }
+ includedirs { "libsndfile/include" }
+ includedirs { "ogg/include" }
+ includedirs { "opus/include" }
+ includedirs { "opusfile/include" }
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 {}
+ end
if(os.getenv("GTA_III_RE_DIR")) then
setpaths("$(GTA_III_RE_DIR)/", "%(cfg.buildtarget.name)", "")
@@ -202,6 +224,13 @@ project "re3"
filter "platforms:linux*"
defines { "OPENAL" }
links { "openal", "mpg123", "sndfile", "pthread" }
+
+ if _OPTIONS["with-opus"] then
+ filter {}
+ links { "libogg" }
+ links { "opus" }
+ links { "opusfile" }
+ end
filter "platforms:*RW33*"
staticruntime "on"