summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-08-10 18:15:51 +0200
committerSergeanur <s.anureev@yandex.ua>2020-08-10 18:15:51 +0200
commit1c1fa25e6cb8b6b49523abf11c88bc4b326668cd (patch)
tree3c595b1c81bb2ffb3390631673af1b3ab30c2bcd /premake5.lua
parentMerge pull request #677 from majesticCoding/miami (diff)
parentupdate librw (diff)
downloadre3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.tar
re3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.tar.gz
re3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.tar.bz2
re3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.tar.lz
re3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.tar.xz
re3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.tar.zst
re3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.zip
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/premake5.lua b/premake5.lua
index acb15555..94f38ea9 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -77,6 +77,11 @@ workspace "reVC"
"linux-arm-librw_gl3_glfw-oal",
}
+ filter { "system:bsd" }
+ platforms {
+ "bsd-amd64-librw_gl3_glfw-oal"
+ }
+
filter "configurations:Debug"
defines { "DEBUG" }
@@ -90,6 +95,9 @@ workspace "reVC"
filter { "platforms:linux*" }
system "linux"
+ filter { "platforms:bsd*" }
+ system "bsd"
+
filter { "platforms:*x86*" }
architecture "x86"
@@ -147,6 +155,11 @@ project "librw"
targetdir "lib/%{cfg.platform}/%{cfg.buildcfg}"
files { path.join(Librw, "src/*.*") }
files { path.join(Librw, "src/*/*.*") }
+
+ filter "platforms:bsd*"
+ includedirs { "/usr/local/include" }
+ libdirs { "/usr/local/lib" }
+
filter "platforms:*RW34*"
flags { "ExcludeFromBuild" }
filter {}
@@ -259,6 +272,9 @@ project "reVC"
filter "platforms:linux*oal"
links { "openal", "mpg123", "sndfile", "pthread" }
+
+ filter "platforms:bsd*oal"
+ links { "openal", "mpg123", "sndfile", "pthread" }
if _OPTIONS["with-opus"] then
filter {}
@@ -307,3 +323,8 @@ project "reVC"
filter "platforms:linux*gl3_glfw*"
links { "GL", "GLEW", "glfw" }
+
+ filter "platforms:bsd*gl3_glfw*"
+ links { "GL", "GLEW", "glfw", "sysinfo" }
+ includedirs { "/usr/local/include" }
+ libdirs { "/usr/local/lib" }