-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
38 lines (29 loc) · 884 Bytes
/
premake5.lua
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
require "scripts/clear"
require "scripts/platform"
require "vendor/dependencies"
workspace "turnip-engine"
architecture "x64"
configurations {
"Debug",
"Release"
}
startproject "turnip-editor"
flags {
"MultiProcessorCompile"
}
output_path = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
binaries_path = "%{wks.location}/build/bin/" .. "%{output_path}"
intermediate_path = "%{wks.location}/build/intermediate/" .. "%{output_path}"
vendor_path = "%{wks.location}/vendor/"
group "dependencies"
include "vendor/glfw.lua"
include "vendor/glad.lua"
include "vendor/imgui.lua"
include "vendor/vma.lua"
if os.host("windows") then
include "vendor/imgui-glfw.lua"
end
include "vendor/imgui-opengl.lua"
group ""
include "turnip-engine/engine.lua"
include "turnip-editor/editor.lua"