mirror of
https://github.com/glfw/glfw.git
synced 2025-04-11 19:32:02 +00:00
Update premake5.lua
This commit is contained in:
parent
3fada28a8f
commit
34bcb55886
58
premake5.lua
58
premake5.lua
@ -1,7 +1,8 @@
|
|||||||
project "GLFW"
|
project "GLFW"
|
||||||
kind "StaticLib"
|
kind "StaticLib"
|
||||||
language "C"
|
language "C"
|
||||||
staticruntime "off"
|
staticruntime "on"
|
||||||
|
systemversion "latest"
|
||||||
|
|
||||||
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
|
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
|
||||||
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
|
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
|
||||||
@ -15,25 +16,40 @@ project "GLFW"
|
|||||||
"src/init.c",
|
"src/init.c",
|
||||||
"src/input.c",
|
"src/input.c",
|
||||||
"src/monitor.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/vulkan.c",
|
||||||
"src/window.c",
|
"src/window.c"
|
||||||
}
|
}
|
||||||
|
filter "system:linux"
|
||||||
|
pic "On"
|
||||||
|
|
||||||
|
systemversion "latest"
|
||||||
|
|
||||||
|
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 "system:windows"
|
filter "system:windows"
|
||||||
systemversion "latest"
|
|
||||||
|
|
||||||
files
|
files
|
||||||
{
|
{
|
||||||
"src/win32_init.c",
|
"src/win32_init.c",
|
||||||
"src/win32_joystick.c",
|
"src/win32_joystick.c",
|
||||||
"src/win32_module.c",
|
|
||||||
"src/win32_monitor.c",
|
"src/win32_monitor.c",
|
||||||
"src/win32_time.c",
|
"src/win32_time.c",
|
||||||
"src/win32_thread.c",
|
"src/win32_thread.c",
|
||||||
@ -49,17 +65,15 @@ project "GLFW"
|
|||||||
"_CRT_SECURE_NO_WARNINGS"
|
"_CRT_SECURE_NO_WARNINGS"
|
||||||
}
|
}
|
||||||
|
|
||||||
links
|
|
||||||
{
|
|
||||||
"Dwmapi.lib"
|
|
||||||
}
|
|
||||||
|
|
||||||
filter "configurations:Debug"
|
filter "configurations:Debug"
|
||||||
defines "SANDBOX_DEBUG"
|
runtime "Debug"
|
||||||
buildoptions "/MT" --it uses multithread, static version of the run-time library.[MDd]
|
symbols "On"
|
||||||
symbols "On" -- it allows us to debug code. line by line. which the exe contain suppoting elements to debug.
|
|
||||||
|
|
||||||
filter "configurations:Release"
|
filter "configurations:Development"
|
||||||
defines "SANDBOX_RELEASE"
|
runtime "Release"
|
||||||
buildoptions "/MT" --it uses multithread, static version of the run-time library.[MDd]
|
optimize "On"
|
||||||
optimize "On" -- remove all the debuging datas.
|
|
||||||
|
filter "configurations:Ship"
|
||||||
|
runtime "Release"
|
||||||
|
optimize "On"
|
||||||
|
Loading…
Reference in New Issue
Block a user