mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 05:00:00 +00:00
added partial bsd support (FreeBSD)
This commit is contained in:
parent
456cb01f16
commit
99d8e12207
20
premake5.lua
20
premake5.lua
|
@ -76,6 +76,10 @@ workspace "re3"
|
||||||
"linux-amd64-librw_gl3_glfw-oal",
|
"linux-amd64-librw_gl3_glfw-oal",
|
||||||
"linux-arm-librw_gl3_glfw-oal",
|
"linux-arm-librw_gl3_glfw-oal",
|
||||||
}
|
}
|
||||||
|
filter { "system:bsd" }
|
||||||
|
platforms {
|
||||||
|
"bsd-amd64-librw_gl3_glfw-oal"
|
||||||
|
}
|
||||||
|
|
||||||
filter "configurations:Debug"
|
filter "configurations:Debug"
|
||||||
defines { "DEBUG" }
|
defines { "DEBUG" }
|
||||||
|
@ -90,6 +94,9 @@ workspace "re3"
|
||||||
filter { "platforms:linux*" }
|
filter { "platforms:linux*" }
|
||||||
system "linux"
|
system "linux"
|
||||||
|
|
||||||
|
filter { "platforms:bsd*" }
|
||||||
|
system "bsd"
|
||||||
|
|
||||||
filter { "platforms:*x86*" }
|
filter { "platforms:*x86*" }
|
||||||
architecture "x86"
|
architecture "x86"
|
||||||
|
|
||||||
|
@ -147,6 +154,11 @@ project "librw"
|
||||||
targetdir "lib/%{cfg.platform}/%{cfg.buildcfg}"
|
targetdir "lib/%{cfg.platform}/%{cfg.buildcfg}"
|
||||||
files { path.join(Librw, "src/*.*") }
|
files { path.join(Librw, "src/*.*") }
|
||||||
files { path.join(Librw, "src/*/*.*") }
|
files { path.join(Librw, "src/*/*.*") }
|
||||||
|
|
||||||
|
filter "platforms:bsd*"
|
||||||
|
includedirs { "/usr/local/include" }
|
||||||
|
libdirs { "/usr/local/lib" }
|
||||||
|
|
||||||
filter "platforms:*RW33*"
|
filter "platforms:*RW33*"
|
||||||
flags { "ExcludeFromBuild" }
|
flags { "ExcludeFromBuild" }
|
||||||
filter {}
|
filter {}
|
||||||
|
@ -259,6 +271,9 @@ project "re3"
|
||||||
filter "platforms:linux*oal"
|
filter "platforms:linux*oal"
|
||||||
links { "openal", "mpg123", "sndfile", "pthread" }
|
links { "openal", "mpg123", "sndfile", "pthread" }
|
||||||
|
|
||||||
|
filter "platforms:linux*oal"
|
||||||
|
links { "openal", "mpg123", "sndfile", "pthread" }
|
||||||
|
|
||||||
if _OPTIONS["with-opus"] then
|
if _OPTIONS["with-opus"] then
|
||||||
filter {}
|
filter {}
|
||||||
links { "libogg" }
|
links { "libogg" }
|
||||||
|
@ -306,3 +321,8 @@ project "re3"
|
||||||
|
|
||||||
filter "platforms:linux*gl3_glfw*"
|
filter "platforms:linux*gl3_glfw*"
|
||||||
links { "GL", "GLEW", "glfw" }
|
links { "GL", "GLEW", "glfw" }
|
||||||
|
|
||||||
|
filter "platforms:bsd*gl3_glfw*"
|
||||||
|
links { "GL", "GLEW", "glfw", "sysinfo" }
|
||||||
|
includedirs { "/usr/local/include" }
|
||||||
|
libdirs { "/usr/local/lib" }
|
||||||
|
|
Loading…
Reference in a new issue