Fixed premake5 excludes
- Fixed mistakes from previous fix... :/ - It seems like premake5 can't do nested filters therefore I have to use multiple tokens in the same filter
This commit is contained in:
parent
7e870970a9
commit
b50564c833
1 changed files with 9 additions and 18 deletions
|
@ -58,12 +58,7 @@ project "Engine"
|
|||
defines "LIGHT_PLATFORM_WINDOWS"
|
||||
systemversion "latest"
|
||||
staticruntime "on"
|
||||
|
||||
filter "files:%{prj.location}/src/Platform/OS/Linux/**"
|
||||
flags "ExcludeFromBuild"
|
||||
filter "files:%{prj.location}/src/Platform/OS/Mac/**"
|
||||
flags "ExcludeFromBuild"
|
||||
|
||||
|
||||
links
|
||||
{
|
||||
"d3d11.lib" ,
|
||||
|
@ -71,6 +66,9 @@ project "Engine"
|
|||
"D3DCompiler.lib" ,
|
||||
}
|
||||
|
||||
filter { "system:windows", "files:src/Platform/OS/Linux/**.**" }
|
||||
flags { "ExcludeFromBuild" }
|
||||
|
||||
-- linux
|
||||
filter "system:linux"
|
||||
defines "LIGHT_PLATFORM_LINUX"
|
||||
|
@ -85,11 +83,11 @@ project "Engine"
|
|||
"-lpthread",
|
||||
}
|
||||
|
||||
filter "files:src/Platform/GraphicsAPI/DirectX/**.**"
|
||||
filter { "system:linux", "files:src/Platform/GraphicsAPI/DirectX/**.**" }
|
||||
flags { "ExcludeFromBuild" }
|
||||
filter { "system:linux", "files:src/Platform/OS/Windows/**.**" }
|
||||
flags "ExcludeFromBuild"
|
||||
filter "files:src/Platform/OS/Windows/**.**"
|
||||
flags "ExcludeFromBuild"
|
||||
|
||||
|
||||
-- debug
|
||||
filter "configurations:Debug"
|
||||
defines "LIGHT_DEBUG"
|
||||
|
@ -103,11 +101,4 @@ project "Engine"
|
|||
-- distribution
|
||||
filter "configurations:Distribution"
|
||||
defines "LIGHT_DIST"
|
||||
optimize "on"
|
||||
|
||||
--- Excludes ---
|
||||
-- !windows
|
||||
filter "system:not linux"
|
||||
|
||||
-- !linux #todo:
|
||||
-- !mac #todo:
|
||||
optimize "on"
|
Loading…
Add table
Reference in a new issue