mirror of
https://github.com/glfw/glfw.git
synced 2025-06-06 15:54:56 +00:00
add premake5.lua
This commit is contained in:
parent
b35641f4a3
commit
d15bbf71a7
45
premake5.lua
Normal file
45
premake5.lua
Normal file
@ -0,0 +1,45 @@
|
||||
project "glfw"
|
||||
kind "StaticLib"
|
||||
language "C"
|
||||
|
||||
targetdir "bin/%{cfg.buildcfg}"
|
||||
objdir "bin-int/%{cfg.buildcfg}"
|
||||
|
||||
files
|
||||
{
|
||||
"include/GLFW/glfw3.h",
|
||||
"include/GLFW/glfw3native.h",
|
||||
"src/**.h",
|
||||
"src/**.c"
|
||||
}
|
||||
|
||||
filter "system:windows"
|
||||
systemversion "latest"
|
||||
staticruntime "On"
|
||||
|
||||
files
|
||||
{
|
||||
"src/win32_init.c",
|
||||
"src/win32_joystick.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"
|
||||
}
|
||||
|
||||
filter "configurations:Debug"
|
||||
defines { "DEBUG" }
|
||||
symbols "On"
|
||||
|
||||
filter "configurations:Release"
|
||||
defines { "NDEBUG" }
|
||||
optimize "On"
|
Loading…
Reference in New Issue
Block a user