-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
premake5.lua
92 lines (82 loc) · 2.18 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
newoption {
trigger = "sanitize",
description = "enable sanitizers"
}
workspace "carnage3d"
location '.build'
configurations { "Debug", "Release" }
cppdialect 'C++17'
configuration { "linux", "gmake" }
buildoptions { "-Wno-switch" }
if _OPTIONS["sanitize"] then
buildoptions { "-fsanitize=address", "-fsanitize=undefined" }
linkoptions { "-fsanitize=address", "-fsanitize=undefined" }
end
filter 'system:linux'
platforms { 'x86_64' }
project "GLFW"
kind "StaticLib"
language "C"
files
{
"src/GLFW/internal.h",
"src/GLFWglfw_config.h",
"src/GLFW/glfw3.h",
"src/GLFW/glfw3native.h",
"src/GLFW/context.c",
"src/GLFW/init.c",
"src/GLFW/input.c",
"src/GLFW/monitor.c",
"src/GLFW/vulkan.c",
"src/GLFW/window.c",
"src/GLFW/x11_platform.h",
"src/GLFW/xkb_unicode.h",
"src/GLFW/linux_joystick.h",
"src/GLFW/posix_time.h",
"src/GLFW/glx_context.h",
"src/GLFW/egl_context.h",
"src/GLFW/x11_init.c",
"src/GLFW/x11_monitor.c",
"src/GLFW/x11_window.c",
"src/GLFW/glx_context.h",
"src/GLFW/glx_context.c",
"src/GLFW/glext.h",
"src/GLFW/xkb_unicode.c",
"src/GLFW/linux_joystick.c",
"src/GLFW/posix_time.c",
"src/GLFW/glx_context.c",
"src/GLFW/egl_context.c",
"src/GLFW/posix_thread.h",
"src/GLFW/posix_thread.c",
"src/GLFW/osmesa_context.c",
"src/GLFW/osmesa_context.h"
}
includedirs { "GLFW" }
links { "GL", "GLEW", "stdc++fs", "X11", "Xrandr", "Xinerama", "Xcursor", "pthread", "dl" }
filter { "configurations:Debug" }
defines { "DEBUG", "_DEBUG" }
symbols "On"
filter { "configurations:Release" }
defines { "NDEBUG" }
optimize "On"
project "carnage3d"
kind "WindowedApp"
language "C++"
pchheader "src/stdafx.h"
pchsource "src/stdafx.cpp"
files
{
"src/*.h",
"src/*.cpp"
}
includedirs { "third_party/Box2D/include" }
includedirs { "GLFW" }
links { "GL", "GLEW", "stdc++fs", "openal", "box2d", "X11", "Xrandr", "Xinerama", "Xcursor", "pthread", "dl", "GLFW" }
filter { "configurations:Debug" }
defines { "DEBUG", "_DEBUG" }
symbols "On"
libdirs { "third_party/Box2D/build/bin" }
filter { "configurations:Release" }
defines { "NDEBUG" }
optimize "On"
libdirs { "third_party/Box2D/build/bin" }