summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-23 23:45:45 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-23 23:45:45 +0200
commitbd67db523aa4e711e60a16abbf738b8b4462d572 (patch)
tree4df6ecc0b4051228d93e922fbc6e00771778041d /premake5.lua
parentmore checks in premake (diff)
parentEven more small audio cleanup (diff)
downloadre3-bd67db523aa4e711e60a16abbf738b8b4462d572.tar
re3-bd67db523aa4e711e60a16abbf738b8b4462d572.tar.gz
re3-bd67db523aa4e711e60a16abbf738b8b4462d572.tar.bz2
re3-bd67db523aa4e711e60a16abbf738b8b4462d572.tar.lz
re3-bd67db523aa4e711e60a16abbf738b8b4462d572.tar.xz
re3-bd67db523aa4e711e60a16abbf738b8b4462d572.tar.zst
re3-bd67db523aa4e711e60a16abbf738b8b4462d572.zip
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua24
1 files changed, 17 insertions, 7 deletions
diff --git a/premake5.lua b/premake5.lua
index 95c03b21..c7321dcb 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -56,6 +56,9 @@ workspace "re3"
"win-x86-RW33_d3d8-mss",
"win-x86-librw_d3d9-mss",
"win-x86-librw_gl3_glfw-mss",
+ "win-x86-RW33_d3d8-oal",
+ "win-x86-librw_d3d9-oal",
+ "win-x86-librw_gl3_glfw-oal",
}
filter { "system:linux" }
@@ -188,19 +191,15 @@ project "re3"
includedirs { "src/extras" }
includedirs { "eax" }
- includedirs { "milessdk/include" }
includedirs { "eax" }
- includedirs { "openal-soft/include" }
- includedirs { "mpg123/include" }
- includedirs { "libsndfile/include" }
if _OPTIONS["with-opus"] then
includedirs { "ogg/include" }
includedirs { "opus/include" }
includedirs { "opusfile/include" }
end
- libdirs { "milessdk/lib" }
+ libdirs { "milessdk/lib" }
libdirs { "openal-soft/libs/Win32" }
libdirs { "mpg123/lib" }
libdirs { "libsndfile/lib" }
@@ -211,7 +210,11 @@ project "re3"
libdirs { "opusfile/win32/VS2015/Win32/Release-NoHTTP" }
filter {}
end
+
+ filter "platforms:*oal"
+ defines { "AUDIO_OAL" }
+ filter {}
if(os.getenv("GTA_III_RE_DIR")) then
setpaths("$(GTA_III_RE_DIR)/", "%(cfg.buildtarget.name)", "")
end
@@ -223,8 +226,15 @@ project "re3"
characterset ("MBCS")
targetextension ".exe"
- filter "platforms:linux*"
- defines { "OPENAL" }
+ filter "platforms:win*oal"
+ includedirs { "openal-soft/include" }
+ includedirs { "libsndfile/include" }
+ includedirs { "mpg123/include" }
+ libdirs { "openal-soft/libs/Win32" }
+ libdirs { "libsndfile/lib" }
+ libdirs { "mpg123/lib" }
+
+ filter "platforms:linux*oal"
links { "openal", "mpg123", "sndfile", "pthread" }
if _OPTIONS["with-opus"] then