mirror of
https://github.com/glfw/glfw.git
synced 2025-06-15 20:22:15 +00:00
add premake5.lua for building with premake5, only for Windows with Win32 API though
This commit is contained in:
parent
0e9ec7788b
commit
0c3fd029e2
32
premake5.lua
Normal file
32
premake5.lua
Normal file
@ -0,0 +1,32 @@
|
||||
workspace "glfw"
|
||||
configurations { "Release", "Debug"}
|
||||
architecture "x86_64"
|
||||
|
||||
project "glfw"
|
||||
kind "StaticLib"
|
||||
language "C"
|
||||
|
||||
targetdir("build/%{cfg.system}/%{cfg.architecture}/%{cfg.shortname}/bin")
|
||||
objdir("build/%{cfg.system}/%{cfg.architecture}/%{cfg.shortname}/bin-int")
|
||||
|
||||
includedirs {
|
||||
"include/"
|
||||
}
|
||||
|
||||
files {
|
||||
"src/window.**",
|
||||
"src/context.**",
|
||||
"src/input.**",
|
||||
"src/internal.**",
|
||||
"src/glfw_config.h.in",
|
||||
"src/init.**",
|
||||
"src/monitor.**"
|
||||
}
|
||||
|
||||
filter "system:Windows"
|
||||
files {
|
||||
"src/win32_**.c",
|
||||
"src/win32_**.h",
|
||||
"src/wgl_context.**"
|
||||
}
|
||||
defines {"_GLFW_WIN32"}
|
Loading…
Reference in New Issue
Block a user