-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpremake5.lua
72 lines (62 loc) · 1.98 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
63
64
65
66
67
68
69
70
71
72
require "premake_modules/cmake"
workspace "Akkad"
if _OPTIONS['target-emscripten'] then
architecture "x86"
else
architecture "x86_64"
end
startproject "Editor"
newoption {
trigger = "target-emscripten",
description = "Target emscripten platform"
}
newoption {
trigger = "em-debug",
description = "set emscripten build options to debug"
}
configurations
{
"Debug",
"Release",
}
flags
{
"MultiProcessorCompile"
}
outputdir = ""
if _OPTIONS['target-emscripten'] then
outputdir = "%{cfg.buildcfg}-Web-%{cfg.architecture}"
else
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
end
IncludeDir = {}
IncludeDir["Glad"] = "%{wks.location}/3rdparty/glad/include"
IncludeDir["imgui"] = "%{wks.location}/3rdparty/imgui"
IncludeDir["glm"] = "%{wks.location}/3rdparty/glm/include"
IncludeDir["stb"] = "%{wks.location}/3rdparty/stb/include"
IncludeDir["spdlog"] = "%{wks.location}/3rdparty/spdlog/include"
IncludeDir["entt"] = "%{wks.location}/3rdparty/entt/single_include"
IncludeDir["json"] = "%{wks.location}/3rdparty/json/include"
IncludeDir["iconfontcpp"] = "%{wks.location}/3rdparty/iconfontcpp/include"
IncludeDir["box2d"] = "%{wks.location}/3rdparty/box2d/include"
IncludeDir["concurrentqueue"] = "%{wks.location}/3rdparty/concurrentqueue"
IncludeDir["curl"] = "%{wks.location}/3rdparty/curl/include"
group "Dependencies"
if not _OPTIONS['target-emscripten'] then
include "3rdparty/glad"
include "3rdparty/glslang"
include "3rdparty/ImGuizmo"
include "3rdparty/curl"
end
include "3rdparty/imgui"
include "3rdparty/spdlog"
include "3rdparty/SPIRV-Cross"
include "3rdparty/box2d"
group ""
include "Akkad"
--include "sandbox"
include "Runtime"
if not _OPTIONS['target-emscripten'] then
include "Editor"
include "GameAssembly"
end