-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathproject.lua
More file actions
133 lines (110 loc) · 3.58 KB
/
project.lua
File metadata and controls
133 lines (110 loc) · 3.58 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
121
122
123
124
125
126
127
128
129
130
131
132
133
vk_path = os.getenv("VULKAN_SDK")
workspace "vlither"
location "build/makefiles"
configurations { "debug", "release" }
platforms { "linux", "windows" }
project "glfw"
kind "staticlib"
architecture "x86_64"
language "c"
objdir "build/bin-int/%{cfg.platform}_%{cfg.architecture}_%{cfg.buildcfg}/%{prj.name}"
targetdir "build/bin/%{cfg.platform}_%{cfg.architecture}_%{cfg.buildcfg}"
files {
"glfw/src/context.c",
"glfw/src/init.c",
"glfw/src/input.c",
"glfw/src/monitor.c",
"glfw/src/platform.c",
"glfw/src/vulkan.c",
"glfw/src/window.c",
"glfw/src/egl_context.c",
"glfw/src/osmesa_context.c",
"glfw/src/null_init.c",
"glfw/src/null_monitor.c",
"glfw/src/null_window.c",
"glfw/src/null_joystick.c",
}
filter { "platforms:linux" }
files {
-- linux:
"glfw/src/posix_module.c",
"glfw/src/posix_time.c",
"glfw/src/posix_thread.c",
"glfw/src/x11_init.c",
"glfw/src/linux_joystick.c",
"glfw/src/x11_monitor.c",
"glfw/src/x11_window.c",
"glfw/src/xkb_unicode.c",
"glfw/src/glx_context.c",
"glfw/src/posix_poll.c"
}
defines {
"_GLFW_X11"
}
filter { "platforms:windows"}
files {
-- windows:
"glfw/src/wgl_context.c",
"glfw/src/win32_init.c",
"glfw/src/win32_joystick.c",
"glfw/src/win32_module.c",
"glfw/src/win32_thread.c",
"glfw/src/win32_time.c",
"glfw/src/win32_window.c",
"glfw/src/win32_monitor.c",
}
defines {
"_GLFW_WIN32"
}
filter { "configurations:release" }
linkoptions "-static"
optimize "speed"
symbols "off"
filter { "configurations:debug" }
symbols "on"
optimize "off"
project "thermite"
kind "staticlib"
architecture "x86_64"
language "c"
location "build/makefiles"
objdir "build/bin-int/%{cfg.platform}_%{cfg.architecture}_%{cfg.buildcfg}/%{prj.name}"
targetdir "build/bin/%{cfg.platform}_%{cfg.architecture}_%{cfg.buildcfg}"
files { "thermite/src/**.c", "thermite/src/**.cpp" }
includedirs { "glfw/include", "thermite/include", vk_path .. "/include" }
defines { "GLFW_INCLUDE_NONE", "GLFW_INCLUDE_VULKAN", "CGLM_FORCE_DEPTH_ZERO_TO_ONE" }
filter { "configurations:release" }
linkoptions "-static"
optimize "speed"
symbols "off"
filter { "configurations:debug" }
defines { "TDEBUG" }
symbols "on"
optimize "off"
project "app"
kind "consoleapp"
architecture "x86_64"
language "c"
location "build/makefiles"
objdir "build/bin-int/%{cfg.platform}_%{cfg.architecture}_%{cfg.buildcfg}/%{prj.name}"
targetdir "build/bin/%{cfg.platform}_%{cfg.architecture}_%{cfg.buildcfg}"
includedirs { "glfw/include", "thermite/include", "thermite/src", vk_path .. "/include" }
defines { "GLFW_INCLUDE_NONE", "GLFW_INCLUDE_VULKAN", "CGLM_FORCE_DEPTH_ZERO_TO_ONE", "CIMGUI_NO_EXPORT" }
libdirs { vk_path .. "/lib" }
files { "app/src/**.c", "app/src/**.cpp" }
defines {
"APP_VERSION=\"2.5\"",
"SETTINGS_VERSION=\"1.2\""
}
filter { "platforms:linux" }
links { "thermite", "glfw", "vulkan", "stdc++", "m" }
filter { "platforms:windows" }
links { "thermite", "glfw", "vulkan-1", "stdc++", "m", "gdi32", "ws2_32" }
filter { "configurations:release" }
optimize "speed"
symbols "off"
filter { "platforms:windows" }
linkoptions "-static"
filter { "configurations:debug" }
symbols "on"
optimize "off"