-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
98 lines (84 loc) · 2.05 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
93
94
95
96
97
98
project "GLFW"
kind "StaticLib"
language "C"
staticruntime "off"
targetdir("out/"..outputDir .. "/%{prj.name}")
objdir("out/build/"..outputDir .. "/%{prj.name}")
files {
"include/GLFW/glfw3.h",
"include/GLFW/glfw3native.h",
"src/glfw_config.h",
"src/context.c",
"src/init.c",
"src/input.c",
"src/monitor.c",
"src/null_init.c",
"src/null_joystick.c",
"src/null_monitor.c",
"src/null_window.c",
"src/platform.c",
"src/vulkan.c",
"src/window.c",
}
filter "system:macosx"
files {
"src/cocoa_platform.h",
"src/cocoa_joystick.h",
"src/cocoa_init.m",
"src/cocoa_joystick.m",
"src/cocoa_monitor.m",
"src/cocoa_window.m",
"src/cocoa_time.c",
"src/nsgl_context.m",
"src/egl_context.c",
"src/posix_thread.c",
"src/osmesa_context.c"
}
defines {
"_GLFW_COCOA",
"_CRT_SECURE_NO_WARNINGS"
}
filter "system:windows"
systemversion "latest"
files {
"src/win32_init.c",
"src/win32_joystick.c",
"src/win32_module.c",
"src/win32_monitor.c",
"src/win32_time.c",
"src/win32_thread.c",
"src/win32_window.c",
"src/wgl_context.c",
"src/egl_context.c",
"src/osmesa_context.c"
}
defines {
"_GLFW_WIN32",
"_CRT_SECURE_NO_WARNINGS"
}
links {
"Dwmapi.lib"
}
filter "system:linux"
pic "on"
files {
"src/x11_init.c",
"src/x11_monitor.c",
"src/x11_window.c",
"src/xkb_unicode.c",
"src/posix_time.c",
"src/posix_thread.c",
"src/glx_context.c",
"src/egl_context.c",
"src/osmesa_context.c",
"src/linux_joystick.c"
}
defines {
"_GLFW_X11"
}
filter "configurations:Debug"
runtime "Debug"
symbols "on"
filter "configurations:Release"
runtime "Release"
optimize "on"