generated from TheCherno/ProjectTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build.lua
63 lines (52 loc) · 1.18 KB
/
Build.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
include "SolutionItems.lua"
include "Dependencies.lua"
workspace "Sophon Engine"
startproject "Editor"
solutionitems {
"README.md",
".editorconfig",
".gitignore",
".clang-format",
["Premake"] = {
"./Build.lua",
"./Dependencies.lua",
"./Core/Build-Core.lua",
"./Editor/Build-Editor.lua",
"./App/Build-App.lua",
"./SolutionItems.lua",
}
}
configurations {
"Debug",
"DebugProfile",
"Release",
"Dist"
}
flags {
"MultiProcessorCompile"
}
-- Workspace-wide build options for MSVC
filter "system:windows"
architecture "x64"
buildoptions { "/EHsc", "/Zc:preprocessor", "/Zc:__cplusplus" }
-- Workspace-wide build options for MacOS Xcode
filter "system:macosx"
architecture "universal"
links {
"Foundation.framework",
"Metal.framework",
"QuartzCore.framework",
"Cocoa.framework",
"IOKit.framework"
}
OutputDir = "%{cfg.system}-%{cfg.architecture}/%{cfg.buildcfg}"
group "Dependencies"
include "Core/Vendor/GLFW"
include "Core/Vendor/Glad"
include "Core/Vendor/imgui"
group ""
group "Engine"
include "Core/Build-Core.lua"
include "Editor/Build-Editor.lua"
group ""
include "App/Build-App.lua"