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
				
			
		| 
						 | 
					@ -59,11 +59,6 @@ project "Engine"
 | 
				
			||||||
		systemversion "latest"
 | 
							systemversion "latest"
 | 
				
			||||||
		staticruntime "on"
 | 
							staticruntime "on"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		filter "files:%{prj.location}/src/Platform/OS/Linux/**"
 | 
					 | 
				
			||||||
			flags "ExcludeFromBuild"	
 | 
					 | 
				
			||||||
		filter "files:%{prj.location}/src/Platform/OS/Mac/**"
 | 
					 | 
				
			||||||
			flags "ExcludeFromBuild"	
 | 
					 | 
				
			||||||
		
 | 
					 | 
				
			||||||
		links
 | 
							links
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			"d3d11.lib"       ,
 | 
								"d3d11.lib"       ,
 | 
				
			||||||
| 
						 | 
					@ -71,6 +66,9 @@ project "Engine"
 | 
				
			||||||
			"D3DCompiler.lib" ,
 | 
								"D3DCompiler.lib" ,
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
 | 
						filter { "system:windows", "files:src/Platform/OS/Linux/**.**" }
 | 
				
			||||||
 | 
							flags { "ExcludeFromBuild" }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	-- linux
 | 
						-- linux
 | 
				
			||||||
	filter "system:linux"
 | 
						filter "system:linux"
 | 
				
			||||||
		defines "LIGHT_PLATFORM_LINUX"
 | 
							defines "LIGHT_PLATFORM_LINUX"
 | 
				
			||||||
| 
						 | 
					@ -85,9 +83,9 @@ project "Engine"
 | 
				
			||||||
			"-lpthread",
 | 
								"-lpthread",
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		filter "files:src/Platform/GraphicsAPI/DirectX/**.**"
 | 
							filter { "system:linux", "files:src/Platform/GraphicsAPI/DirectX/**.**" }
 | 
				
			||||||
			flags "ExcludeFromBuild"
 | 
								flags { "ExcludeFromBuild" }
 | 
				
			||||||
		filter "files:src/Platform/OS/Windows/**.**"
 | 
							filter { "system:linux", "files:src/Platform/OS/Windows/**.**" }
 | 
				
			||||||
			flags "ExcludeFromBuild"
 | 
								flags "ExcludeFromBuild"
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
	-- debug
 | 
						-- debug
 | 
				
			||||||
| 
						 | 
					@ -104,10 +102,3 @@ project "Engine"
 | 
				
			||||||
	filter "configurations:Distribution"
 | 
						filter "configurations:Distribution"
 | 
				
			||||||
		defines "LIGHT_DIST"
 | 
							defines "LIGHT_DIST"
 | 
				
			||||||
		optimize "on"
 | 
							optimize "on"
 | 
				
			||||||
 | 
					 | 
				
			||||||
	--- Excludes ---
 | 
					 | 
				
			||||||
	-- !windows
 | 
					 | 
				
			||||||
	filter "system:not linux"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	-- !linux #todo:
 | 
					 | 
				
			||||||
	-- !mac #todo:
 | 
					 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue