diff --git a/bakara/premake5.lua b/bakara/premake5.lua index d2f3e05..5f32637 100644 --- a/bakara/premake5.lua +++ b/bakara/premake5.lua @@ -23,4 +23,35 @@ project "bakara" links { "glm" + } + +filter "configurations:Debug" + defines + { + "BK_DEBUG", + "DEBUG" + } + runtime "Debug" + symbols "on" + + +filter "configurations:Release" + defines + { + "BK_RELEASE", + "NDEBUG" + } + runtime "Release" + optimize "on" + +filter "system:windows" + defines + { + "BK_PLATFORM_WINDOWS" + } + +filter "system:linux" + defines + { + "BK_PLATFORM_LINUX" } \ No newline at end of file diff --git a/premake5.lua b/premake5.lua index 9fdc26e..e45a3ed 100644 --- a/premake5.lua +++ b/premake5.lua @@ -3,6 +3,11 @@ workspace "Bakara" configurations { "Debug", "Release" } startproject "sandbox" + flags + { + "MultiProcessorCompile" + } + outputdir = "%{cfg.system}-%{cfg.architecture}-%{cfg.buildcfg}" IncludeDirs = {} diff --git a/sandbox/premake5.lua b/sandbox/premake5.lua index b982f86..1a610bd 100644 --- a/sandbox/premake5.lua +++ b/sandbox/premake5.lua @@ -7,7 +7,6 @@ project "sandbox" targetdir("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}") objdir("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}") - files { "src/**.h", @@ -25,3 +24,35 @@ project "sandbox" { "bakara" } + + +filter "configurations:Debug" + defines + { + "BK_DEBUG", + "DEBUG" + } + runtime "Debug" + symbols "on" + + +filter "configurations:Release" + defines + { + "BK_RELEASE", + "NDEBUG" + } + runtime "Release" + optimize "on" + +filter "system:windows" + defines + { + "BK_PLATFORM_WINDOWS" + } + +filter "system:linux" + defines + { + "BK_PLATFORM_LINUX" + }