-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuild.lua
More file actions
27 lines (21 loc) · 965 Bytes
/
Copy pathBuild.lua
File metadata and controls
27 lines (21 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
workspace "SpriteSparkProject"
architecture "x64"
configurations { "Debug", "Release", "Dist" }
startproject "SpriteSparkGame"
-- Workspace-wide build options for MSVC
filter "system:windows"
buildoptions { "/EHsc", "/Zc:preprocessor", "/Zc:__cplusplus" }
-- Custom build step to compile GLSL shaders with glslc
local glslc_path = "C:/VulkanSDK/Bin/glslc.exe"
filter { "files:**.vert", "files:**.frag" }
buildmessage "Compiling GLSL shaders with glslc..."
buildcommands {
glslc_path .. " %{file.basename}.vert -o %{file.basename}.vert.spv",
glslc_path .. " %{file.basename}.frag -o %{file.basename}.frag.spv"
}
--buildoutputs { "%{file.directory}/Shaders/%{file.basename}.spv" }
OutputDir = "%{cfg.system}-%{cfg.architecture}/%{cfg.buildcfg}"
group "SpriteSparkEngine"
include "SpriteSparkEngine/Build-SpriteSparkEngine.lua"
group ""
include "SpriteSparkGame/Build-SpriteSparkGame.lua"