mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-18 19:01:45 +02:00
add premake5 build script for unix systems (#318)
This commit is contained in:
24
src/platform/nix/premake5.lua
Normal file
24
src/platform/nix/premake5.lua
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
workspace "OpenLara"
|
||||||
|
configurations { "Debug", "Release" }
|
||||||
|
|
||||||
|
project "OpenLara"
|
||||||
|
kind "ConsoleApp"
|
||||||
|
language "C++"
|
||||||
|
includedirs { "../../" }
|
||||||
|
exceptionhandling "Off"
|
||||||
|
rtti "Off"
|
||||||
|
|
||||||
|
files { "main.cpp", "../../libs/stb_vorbis/stb_vorbis.c", "../../libs/minimp3/minimp3.cpp", "../../libs/tinf/tinflate.c" }
|
||||||
|
|
||||||
|
filter "system:Linux"
|
||||||
|
filter "toolset:gcc or clang"
|
||||||
|
links { "X11", "GL", "m", "pthread", "pulse-simple", "pulse" }
|
||||||
|
defines { "POSIX_THREADS", "POSIX_READER_WRITER_LOCKS" }
|
||||||
|
|
||||||
|
filter "configurations:Debug"
|
||||||
|
defines { "DEBUG" }
|
||||||
|
symbols "On"
|
||||||
|
|
||||||
|
filter "configurations:Release"
|
||||||
|
defines { "NDEBUG" }
|
||||||
|
optimize "Speed"
|
Reference in New Issue
Block a user