-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
120 lines (102 loc) · 1.93 KB
/
Copy pathpremake5.lua
File metadata and controls
120 lines (102 loc) · 1.93 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
workspace "sf"
architecture "x64"
startproject "sf"
multiprocessorcompile "On"
configurations
{
"Debug",
"Release"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
-- Projects
group "Dependencies"
include "vendor/glfw"
include "vendor/Glad"
include "vendor/imgui"
group ""
project "sf"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
staticruntime "on"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
files
{
-- one example project
"examples/spaceship/**.h",
"examples/spaceship/**.hpp",
"examples/spaceship/**.cpp",
"src/**.h",
"src/**.hpp",
"src/**.cpp",
"user/**.h",
"user/**.hpp",
"user/**.cpp",
"vendor/stb/**.h",
"vendor/glm/glm/**.hpp",
"vendor/glm/glm/**.inl",
"vendor/sfmg/*.cpp",
"vendor/nanosvg/*.cpp",
"vendor/sebtext/*.cpp",
"vendor/imnodes/imnodes.cpp",
"vendor/meshoptimizer/src/simplifier.cpp",
"vendor/vendor.cpp"
}
defines
{
"GLFW_INCLUDE_NONE",
"_CRT_SECURE_NO_WARNINGS",
"SF_USE_OPENGL"
}
includedirs
{
"src",
"vendor/glfw/include",
"vendor/Glad/include",
"vendor/glm",
"vendor/stb",
"vendor/sfmg",
"vendor/tinygltf",
"vendor/gli/gli",
"vendor/entt/src/entt",
"vendor/nanosvg",
"vendor/imgui",
"vendor/sebtext",
"vendor/orangeduck",
"vendor/imnodes",
"vendor/meshoptimizer/src"
}
links
{
"glfw",
"Glad",
"ImGui",
-- "opengl32"
}
filter "system:Windows"
systemversion "latest"
defines
{
"SF_PLATFORM_WINDOWS"
}
filter "system:Unix"
system "linux"
systemversion "latest"
defines
{
"SF_PLATFORM_LINUX"
}
filter "configurations:Debug"
defines "SF_DEBUG"
runtime "Debug"
symbols "on"
filter "configurations:Release"
defines "SF_RELEASE"
runtime "Release"
optimize "on"
filter { "action:gmake" }
buildoptions { "-fopenmp" }
linkoptions { "-fopenmp" }
filter { "action:vs2022" }
buildoptions { "/openmp" }