-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
87 lines (76 loc) · 1.8 KB
/
premake5.lua
File metadata and controls
87 lines (76 loc) · 1.8 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
workspace "ScorchEngine"
architecture "x86_64"
preferredtoolarchitecture "x86_64"
configurations { "Debug", "Release" }
local outputSubfolder = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
local VULKAN_SDK = os.getenv("VULKAN_SDK")
project "ScorchEngineDev"
location "./"
debugdir "./"
local bin = "./bin/"..outputSubfolder
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
targetdir (bin)
flags { "MultiProcessorCompile" }
disablewarnings { "26812;4244;4996;4005" }
files {
"src/scorch/**.cpp",
"src/scorch/**.h",
"src/scorch/vkapi/**.*",
"src/scorch/rendering/**.*",
"src/scorch/systems/**.*",
"src/scorch/graphics/**.*",
"src/scorch/ecs/**.*",
"src/scorch/utils/**.*",
"src/scorch/apps/**.*"
}
includedirs {
"./src",
VULKAN_SDK.."/Include",
"vendor/glfw-3.3.7/include",
"vendor/imgui/include",
"vendor/stbimage/include",
"vendor/simpleini/include",
"vendor/simdjson/include",
"vendor/assimp/include",
"vendor/entt/include",
"vendor/SpearHUD/SHUDCore/include",
"vendor/SpearHUD/SHUDVulkan/include",
}
libdirs {
VULKAN_SDK.."/Lib",
"vendor/glfw-3.3.7/lib-vc2019",
"vendor/imgui/lib",
"vendor/assimp/lib",
"vendor/simdjson/lib",
"vendor/SpearHUD/SHUDCore/lib"
}
links {
"vulkan-1",
"glfw3",
}
filter { "system:windows" }
links {
"shlwapi"
}
filter "configurations:Debug"
defines { "_DEBUG" }
runtime "Debug"
symbols "On"
links {
"ImGui_d",
"SHUDCore_d",
"assimp-vc143-mtd",
"simdjson_d",
}
filter "configurations:Release"
defines { "NDEBUG" }
runtime "Release"
optimize "Speed"
links {
"ImGui",
"SHUDCore",
"assimp-vc143-mt",
"simdjson",
}