Added shaderc
This commit is contained in:
		
							parent
							
								
									70529ec65f
								
							
						
					
					
						commit
						28eb805520
					
				
					 7 changed files with 45 additions and 15 deletions
				
			
		
							
								
								
									
										9
									
								
								.gitmodules
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.gitmodules
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -10,3 +10,12 @@
 | 
				
			||||||
[submodule "Dependencies/imgui"]
 | 
					[submodule "Dependencies/imgui"]
 | 
				
			||||||
	path = Dependencies/imgui
 | 
						path = Dependencies/imgui
 | 
				
			||||||
	url = https://github.com/Light3039/imgui
 | 
						url = https://github.com/Light3039/imgui
 | 
				
			||||||
 | 
					[submodule "Dependencies/shaderc"]
 | 
				
			||||||
 | 
						path = Dependencies/shaderc
 | 
				
			||||||
 | 
						url = https://github.com/Light3039/shaderc
 | 
				
			||||||
 | 
					[submodule "Dependencies/glslang"]
 | 
				
			||||||
 | 
						path = Dependencies/glslang
 | 
				
			||||||
 | 
						url = https://github.com/Light3039/glslang
 | 
				
			||||||
 | 
					[submodule "Dependencies/spirv-headers"]
 | 
				
			||||||
 | 
						path = Dependencies/spirv-headers
 | 
				
			||||||
 | 
						url = https://github.com/KhronosGroup/SPIRV-Headers
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -30,3 +30,5 @@ group "Dependencies"
 | 
				
			||||||
	include "../Dependencies/imgui/build.lua"
 | 
						include "../Dependencies/imgui/build.lua"
 | 
				
			||||||
	include "../Dependencies/stb_image/build.lua"
 | 
						include "../Dependencies/stb_image/build.lua"
 | 
				
			||||||
	include "../Dependencies/entt/build.lua"
 | 
						include "../Dependencies/entt/build.lua"
 | 
				
			||||||
 | 
						include "../Dependencies/shaderc/build.lua"
 | 
				
			||||||
 | 
						include "../Dependencies/glslang/build.lua"
 | 
				
			||||||
| 
						 | 
					@ -4,21 +4,24 @@ vulkan_sdk_env_dir = os.getenv("VULKAN_SDK")
 | 
				
			||||||
-- include directories
 | 
					-- include directories
 | 
				
			||||||
include_dirs = {}
 | 
					include_dirs = {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
include_dirs["entt"] = "%{wks.location}/Dependencies/entt/";
 | 
					include_dirs["entt"] = "%{wks.location}/Dependencies/entt/"
 | 
				
			||||||
include_dirs["glad"] = "%{wks.location}/Dependencies/GLAD/include";
 | 
					include_dirs["glad"] = "%{wks.location}/Dependencies/GLAD/include"
 | 
				
			||||||
include_dirs["glfw"] = "%{wks.location}/Dependencies/GLFW/include";
 | 
					include_dirs["glfw"] = "%{wks.location}/Dependencies/GLFW/include"
 | 
				
			||||||
include_dirs["glm"] = "%{wks.location}/Dependencies/glm";
 | 
					include_dirs["glm"] = "%{wks.location}/Dependencies/glm"
 | 
				
			||||||
include_dirs["imgui"] = "%{wks.location}/Dependencies/imgui";
 | 
					include_dirs["imgui"] = "%{wks.location}/Dependencies/imgui"
 | 
				
			||||||
include_dirs["imgui_backends"] = "%{wks.location}/Dependencies/imgui/backends";
 | 
					include_dirs["imgui_backends"] = "%{wks.location}/Dependencies/imgui/backends"
 | 
				
			||||||
include_dirs["spdlog"] = "%{wks.location}/Dependencies/spdlog/include";
 | 
					include_dirs["spdlog"] = "%{wks.location}/Dependencies/spdlog/include"
 | 
				
			||||||
include_dirs["stb_image"] = "%{wks.location}/Dependencies/stb_image";
 | 
					include_dirs["stb_image"] = "%{wks.location}/Dependencies/stb_image"
 | 
				
			||||||
include_dirs["volk"] = "%{wks.location}/Dependencies/volk";
 | 
					include_dirs["volk"] = "%{wks.location}/Dependencies/volk"
 | 
				
			||||||
 | 
					include_dirs["shaderc"] = "%{wks.location}/Dependencies/shaderc/libshaderc/include"
 | 
				
			||||||
 | 
					include_dirs["glslang"] = "%{wks.location}/Dependencies/glslang/"
 | 
				
			||||||
 | 
					include_dirs["spirv"] = "%{wks.location}/Dependencies/spirv-headers/include"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
include_dirs["engine"] = "%{wks.location}/Engine/src/Engine";
 | 
					include_dirs["engine"] = "%{wks.location}/Engine/src/Engine"
 | 
				
			||||||
include_dirs["engine_platform_graphics"] = "%{wks.location}/Engine/src/Platform/GraphicsAPI";
 | 
					include_dirs["engine_platform_graphics"] = "%{wks.location}/Engine/src/Platform/GraphicsAPI"
 | 
				
			||||||
include_dirs["engine_platform_os"] = "%{wks.location}/Engine/src/Platform/OS";
 | 
					include_dirs["engine_platform_os"] = "%{wks.location}/Engine/src/Platform/OS"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
include_dirs["vulkan_sdk"] = "%{vulkan_sdk_env_dir}/Include";
 | 
					include_dirs["vulkan_sdk"] = "%{vulkan_sdk_env_dir}/Include"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- library directories
 | 
					-- library directories
 | 
				
			||||||
lib_dirs = {}
 | 
					lib_dirs = {}
 | 
				
			||||||
| 
						 | 
					@ -29,3 +32,4 @@ libs = {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
libs["shaderc"] = "%{vulkan_sdk_env_dir}/Lib/shaderc_shared.lib"
 | 
					libs["shaderc"] = "%{vulkan_sdk_env_dir}/Lib/shaderc_shared.lib"
 | 
				
			||||||
libs["spirv_cross"] = "%{vulkan_sdk_env_dir}/Lib/spirv-cross-core.lib"
 | 
					libs["spirv_cross"] = "%{vulkan_sdk_env_dir}/Lib/spirv-cross-core.lib"
 | 
				
			||||||
 | 
					libs["spirv_tools"] = "%{vulkan_sdk_env_dir}/Lib/SPIRV-Tools.lib"
 | 
				
			||||||
							
								
								
									
										1
									
								
								Dependencies/glslang
									
										
									
									
										vendored
									
									
										Submodule
									
								
							
							
						
						
									
										1
									
								
								Dependencies/glslang
									
										
									
									
										vendored
									
									
										Submodule
									
								
							| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					Subproject commit 36b8d3a8aa988f6b80185c3368514c1048544152
 | 
				
			||||||
							
								
								
									
										1
									
								
								Dependencies/shaderc
									
										
									
									
										vendored
									
									
										Submodule
									
								
							
							
						
						
									
										1
									
								
								Dependencies/shaderc
									
										
									
									
										vendored
									
									
										Submodule
									
								
							| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					Subproject commit 80f6716cf5f3708066fd43134e892bfdeaeb5ff1
 | 
				
			||||||
							
								
								
									
										1
									
								
								Dependencies/spirv-headers
									
										
									
									
										vendored
									
									
										Submodule
									
								
							
							
						
						
									
										1
									
								
								Dependencies/spirv-headers
									
										
									
									
										vendored
									
									
										Submodule
									
								
							| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					Subproject commit 449bc986ba6f4c5e10e32828783f9daef2a77644
 | 
				
			||||||
| 
						 | 
					@ -46,6 +46,15 @@ project "Engine"
 | 
				
			||||||
		"%{include_dirs.spdlog}",
 | 
							"%{include_dirs.spdlog}",
 | 
				
			||||||
		"%{include_dirs.stb_image}",
 | 
							"%{include_dirs.stb_image}",
 | 
				
			||||||
		"%{include_dirs.volk}",
 | 
							"%{include_dirs.volk}",
 | 
				
			||||||
 | 
							"%{include_dirs.shaderc}",
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							"%{include_dirs.vulkan_sdk}",
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						-- Libraries --
 | 
				
			||||||
 | 
						libdirs
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							"%{lib_dirs.vulkan_sdk}",
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	-- Links --
 | 
						-- Links --
 | 
				
			||||||
| 
						 | 
					@ -56,6 +65,9 @@ project "Engine"
 | 
				
			||||||
		"ImGui",
 | 
							"ImGui",
 | 
				
			||||||
		"stb_image",
 | 
							"stb_image",
 | 
				
			||||||
		"entt",
 | 
							"entt",
 | 
				
			||||||
 | 
							"shaderc",
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							"%{libs.spirv_cross}",
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	--- Filters ---
 | 
						--- Filters ---
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue