From 7e870970a9cac251e2db2c080765f7eba4f5c55e Mon Sep 17 00:00:00 2001 From: Light3039 Date: Sun, 27 Jun 2021 13:06:57 +0430 Subject: [PATCH] Fixed premake5 excludes - Premake now excludes non-Linux folders from Linux builds - Premake now excludes non-Windows folders from Windows builds --- Engine/premake5.lua | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/Engine/premake5.lua b/Engine/premake5.lua index 07324e1..9d126f5 100644 --- a/Engine/premake5.lua +++ b/Engine/premake5.lua @@ -59,12 +59,10 @@ project "Engine" systemversion "latest" staticruntime "on" - excludes - { - "%{prj.location}/src/Platform/OS/Linux/**", - "%{prj.location}/src/Platform/OS/Mac/**", - - } + filter "files:%{prj.location}/src/Platform/OS/Linux/**" + flags "ExcludeFromBuild" + filter "files:%{prj.location}/src/Platform/OS/Mac/**" + flags "ExcludeFromBuild" links { @@ -87,14 +85,10 @@ project "Engine" "-lpthread", } - -- why this no work? :c - excludes - { - "%{prj.location}/src/Platform/GraphicsAPI/DirectX/**", - - "%{prj.location}/src/Platform/OS/Windows/**", - "%{prj.location}/src/Platform/OS/Mac/**", - } + filter "files:src/Platform/GraphicsAPI/DirectX/**.**" + flags "ExcludeFromBuild" + filter "files:src/Platform/OS/Windows/**.**" + flags "ExcludeFromBuild" -- debug filter "configurations:Debug"