-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
47 lines (32 loc) · 1.45 KB
/
premake5.lua
File metadata and controls
47 lines (32 loc) · 1.45 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
-- premake5.lua
workspace "simple-game-engine"
configurations { "Debug", "Release" }
platforms { "Win64" }
project "resources"
kind "Utility"
targetdir ".bin/%{cfg.buildcfg}"
objdir ".obj/%{cfg.buildcfg}"
files { "./data/**" }
configuration "windows"
prebuildcommands { 'pushd ".bin/%{cfg.buildcfg}" && IF NOT EXIST data mklink /j "data" "../../data" && popd' }
prebuildmessage "Create folder link..."
filter { 'files:**.frag or files:**.vert' }
buildmessage 'Compiling %{wks.location}%{file.relpath}'
buildcommands '"$(VULKAN_SDK)/Bin/glslangValidator.exe" -V "%{wks.location}%{file.relpath}" -o "%{file.directory}%{file.name}.spv"'
buildoutputs "%{file.directory}%{file.name}.spv"
filter {"system:windows", "action:vs*"}
systemversion("latest")
project "engine"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
targetdir ".bin/%{cfg.buildcfg}"
objdir ".obj/%{cfg.buildcfg}"
files { "./src/**.h", "./src/**.cpp", "./ext/meshoptimizer/src/**.cpp"}
links { "resources" }
includedirs { "$(VULKAN_SDK)/include", "./ext/glm/", "./ext/volk/", "./ext/meshoptimizer/src/", "./ext/meshoptimizer/extern/", "./ext/stb/", "./ext/SPIRV-Reflect/" }
filter "configurations:Debug"
symbols "On"
filter {"system:windows", "action:vs*"}
systemversion("latest")
buildoptions {"-bigobj"}