From 84ae6dd007842a7b8f2abcc152ba0e3a5be34462 Mon Sep 17 00:00:00 2001 From: Aydar Zarifullin Date: Sat, 6 Feb 2021 13:12:38 +0400 Subject: [PATCH] add premake5 build script for unix systems (#318) --- src/platform/nix/premake5.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/platform/nix/premake5.lua diff --git a/src/platform/nix/premake5.lua b/src/platform/nix/premake5.lua new file mode 100644 index 0000000..8eb46da --- /dev/null +++ b/src/platform/nix/premake5.lua @@ -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"