-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
42 lines (34 loc) · 974 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
39
40
41
42
workspace "VersaMachina"
architecture "x64"
configurations
{
"Debug",
"Release",
"Dist"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
-- This function includes GLFW's header files
function includeGLFW()
includedirs "VersaLib/vendor/glfw/include"
end
-- This function links statically against GLFW
function linkGLFW()
libdirs "Libraries/GLFW/Lib"
-- Our static lib should not link against GLFW
filter "kind:not StaticLib"
links "glfw"
filter {}
end
group "Dependencies"
include "depends"
-- Leave commented to build with system GLFW
-- Uncomment to build with git submodule glfw (build errors, glfw.lua needs fixed)
-- include "VersaLib/vendor/glfw"
include "VersaLib/vendor/glad"
include "VersaLib/vendor/imgui"
include "VersaLib/vendor/yaml"
include "VersaLib/vendor/tinyfiledialogs"
include "VersaLib/vendor/ImGuizmo"
group ""
include "VersaLib"
include "VersaEditor"