-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
64 lines (51 loc) · 1.63 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
staticRuntime = "on" -- VS only. on -> MultiThreaded, off -> MultiThreadedDLL.
workspace "Firefly"
architecture "x86_64"
startproject "Sandbox"
configurations
{
"Debug",
"Release",
"Dist"
}
flags
{
"MultiProcessorCompile"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
includeDir = {}
includeDir["spdlog"] = "%{wks.location}/Firefly/vendor/spdlog/include"
includeDir["GLFW"] = "%{wks.location}/Firefly/vendor/GLFW/include"
includeDir["glad"] = "%{wks.location}/Firefly/vendor/glad/include"
includeDir["imgui"] = "%{wks.location}/Firefly/vendor/imgui"
includeDir["glm"] = "%{wks.location}/Firefly/vendor/glm"
includeDir["stb"] = "%{wks.location}/Firefly/vendor/stb"
includeDir["entt"] = "%{wks.location}/Firefly/vendor/entt/include"
--includeDir["box2d"] = "%{wks.location}/Firefly/vendor/box2d/include"
--includeDir["json"] = "%{wks.location}/Firefly/vendor/json/include"
--includeDir["fmt"] = "%{wks.location}/Firefly/vendor/fmt/include"
--includeDir["yaml_cpp"] = "%{wks.location}/Firefly/vendor/yaml-cpp/include"
clientIncludes = {
"%{wks.location}/Firefly/src",
"%{includeDir.spdlog}",
"%{includeDir.imgui}",
"%{includeDir.glm}",
"%{includeDir.entt}",
}
linkLibs = {
"GLFW",
"glad",
"imgui",
--"box2d",
--"yaml-cpp",
}
group "Dependencies"
include "Firefly/vendor/GLFW"
include "Firefly/vendor/glad"
include "Firefly/vendor/imgui"
--include "Firefly/vendor/box2d"
--include "Firefly/vendor/yaml-cpp"
group ""
include "Firefly"
include "Sandbox"
include "FireflyEditor"