|
| 1 | +workspace "glkeeper" |
| 2 | + location '.build' |
| 3 | + configurations { "Debug", "Release" } |
| 4 | + cppdialect 'C++17' |
| 5 | + |
| 6 | +configuration { "linux", "gmake" } |
| 7 | +buildoptions { "-Wno-switch" } |
| 8 | + |
| 9 | +filter 'system:linux' |
| 10 | + platforms { 'x86_64' } |
| 11 | + |
| 12 | +project "GLFW" |
| 13 | + kind "StaticLib" |
| 14 | + language "C" |
| 15 | + files |
| 16 | + { |
| 17 | + "src/GLFW/internal.h", |
| 18 | + "src/GLFWglfw_config.h", |
| 19 | + "src/GLFW/glfw3.h", |
| 20 | + "src/GLFW/glfw3native.h", |
| 21 | + "src/GLFW/context.c", |
| 22 | + "src/GLFW/init.c", |
| 23 | + "src/GLFW/input.c", |
| 24 | + "src/GLFW/monitor.c", |
| 25 | + "src/GLFW/vulkan.c", |
| 26 | + "src/GLFW/window.c", |
| 27 | + "src/GLFW/x11_platform.h", |
| 28 | + "src/GLFW/xkb_unicode.h", |
| 29 | + "src/GLFW/linux_joystick.h", |
| 30 | + "src/GLFW/posix_time.h", |
| 31 | + "src/GLFW/glx_context.h", |
| 32 | + "src/GLFW/egl_context.h", |
| 33 | + "src/GLFW/x11_init.c", |
| 34 | + "src/GLFW/x11_monitor.c", |
| 35 | + "src/GLFW/x11_window.c", |
| 36 | + "src/GLFW/glx_context.h", |
| 37 | + "src/GLFW/glx_context.c", |
| 38 | + "src/GLFW/glext.h", |
| 39 | + "src/GLFW/xkb_unicode.c", |
| 40 | + "src/GLFW/linux_joystick.c", |
| 41 | + "src/GLFW/posix_time.c", |
| 42 | + "src/GLFW/glx_context.c", |
| 43 | + "src/GLFW/egl_context.c", |
| 44 | + "src/GLFW/posix_thread.h", |
| 45 | + "src/GLFW/posix_thread.c", |
| 46 | + "src/GLFW/osmesa_context.c", |
| 47 | + "src/GLFW/osmesa_context.h" |
| 48 | + } |
| 49 | + includedirs { "GLFW" } |
| 50 | + links { "GL", "GLEW", "stdc++fs", "X11", "Xrandr", "Xinerama", "Xcursor", "pthread", "dl" } |
| 51 | + |
| 52 | + filter { "configurations:Debug" } |
| 53 | + defines { "DEBUG", "_DEBUG" } |
| 54 | + symbols "On" |
| 55 | + |
| 56 | + filter { "configurations:Release" } |
| 57 | + defines { "NDEBUG" } |
| 58 | + optimize "On" |
| 59 | + |
| 60 | +project "glkeeper" |
| 61 | + kind "WindowedApp" |
| 62 | + language "C++" |
| 63 | + files |
| 64 | + { |
| 65 | + "src/*.h", |
| 66 | + "src/*.cpp", |
| 67 | + "src/3rd_party/*.h", |
| 68 | + "src/3rd_party/*.cpp" |
| 69 | + } |
| 70 | + includedirs { "src" } |
| 71 | + includedirs { "GLFW" } |
| 72 | + links { "GL", "GLEW", "stdc++fs", "X11", "Xrandr", "Xinerama", "Xcursor", "pthread", "dl", "GLFW" } |
| 73 | + |
| 74 | + filter { "configurations:Debug" } |
| 75 | + defines { "DEBUG", "_DEBUG" } |
| 76 | + symbols "On" |
| 77 | + |
| 78 | + filter { "configurations:Release" } |
| 79 | + defines { "NDEBUG" } |
| 80 | + optimize "On" |
0 commit comments