mirror of
https://github.com/glfw/glfw.git
synced 2025-06-15 04:02:31 +00:00
Update premake5.lua
This commit is contained in:
parent
a5ac828b88
commit
6aba9cf26f
21
premake5.lua
21
premake5.lua
@ -6,8 +6,7 @@ project "GLFW"
|
|||||||
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
|
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
|
||||||
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
|
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
|
||||||
|
|
||||||
files
|
files {
|
||||||
{
|
|
||||||
"include/GLFW/glfw3.h",
|
"include/GLFW/glfw3.h",
|
||||||
"include/GLFW/glfw3native.h",
|
"include/GLFW/glfw3native.h",
|
||||||
"src/glfw_config.h",
|
"src/glfw_config.h",
|
||||||
@ -18,13 +17,13 @@ project "GLFW"
|
|||||||
"src/vulkan.c",
|
"src/vulkan.c",
|
||||||
"src/window.c"
|
"src/window.c"
|
||||||
}
|
}
|
||||||
|
|
||||||
filter "system:linux"
|
filter "system:linux"
|
||||||
pic "On"
|
pic "On"
|
||||||
|
|
||||||
systemversion "latest"
|
systemversion "latest"
|
||||||
|
|
||||||
files
|
files {
|
||||||
{
|
|
||||||
"src/x11_init.c",
|
"src/x11_init.c",
|
||||||
"src/x11_monitor.c",
|
"src/x11_monitor.c",
|
||||||
"src/x11_window.c",
|
"src/x11_window.c",
|
||||||
@ -37,16 +36,14 @@ project "GLFW"
|
|||||||
"src/linux_joystick.c"
|
"src/linux_joystick.c"
|
||||||
}
|
}
|
||||||
|
|
||||||
defines
|
defines {
|
||||||
{
|
|
||||||
"_GLFW_X11"
|
"_GLFW_X11"
|
||||||
}
|
}
|
||||||
|
|
||||||
filter "system:windows"
|
filter "system:windows"
|
||||||
systemversion "latest"
|
systemversion "latest"
|
||||||
|
|
||||||
files
|
files {
|
||||||
{
|
|
||||||
"src/win32_init.c",
|
"src/win32_init.c",
|
||||||
"src/win32_joystick.c",
|
"src/win32_joystick.c",
|
||||||
"src/win32_monitor.c",
|
"src/win32_monitor.c",
|
||||||
@ -58,14 +55,12 @@ project "GLFW"
|
|||||||
"src/osmesa_context.c"
|
"src/osmesa_context.c"
|
||||||
}
|
}
|
||||||
|
|
||||||
defines
|
defines {
|
||||||
{
|
|
||||||
"_GLFW_WIN32",
|
"_GLFW_WIN32",
|
||||||
"_CRT_SECURE_NO_WARNINGS"
|
"_CRT_SECURE_NO_WARNINGS"
|
||||||
}
|
}
|
||||||
|
|
||||||
links
|
links {
|
||||||
{
|
|
||||||
"Dwmapi.lib"
|
"Dwmapi.lib"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,4 +70,4 @@ project "GLFW"
|
|||||||
|
|
||||||
filter "configurations:Release"
|
filter "configurations:Release"
|
||||||
runtime "Release"
|
runtime "Release"
|
||||||
optimize "on"
|
optimize "on"
|
||||||
|
Loading…
Reference in New Issue
Block a user