-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
41 lines (36 loc) · 826 Bytes
/
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
project "GLFW"
kind "StaticLib"
language "C"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. 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/vulkan.c",
"src/window.c"
}
filter "system:windows"
buildoptions { "-std=c11", "-lgdi32" }
systemversion "latest"
staticruntime "On"
files {
"src/win32_init.c",
"src/win32_joystic.c",
"src/win32_monitor.c",
"src/win32_time.c",
"src/win32_thread.c",
"src/wgl_context.c",
"src/egl_context.c",
"src/osmesa_contexts.c"
}
defines {
"_GLFW_WINDOWS",
"_CRT_SECURE_NO_WARNINGS"
}
filter { "system:windows", "configuration:Release" }
buildoptions "/MT"