1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 12:18:51 -05:00
glfw/src
Camilla Löwy d83849792b Add override variable for CMake library type
This adds the GLFW_LIBRARY_TYPE CMake cache variable, which allows users
and higher-level projects to set what type of library GLFW is built as.

When not empty, this value overrides the standard BUILD_SHARED_LIBS
option for GLFW while still allowing it to control the type of other
libraries in a larger project.

This also allows building GLFW as an object library without adding dummy
source files (as required by Xcode) or producing unused library
binaries.

Projects using CMake 3.12 or later can link the resulting GLFW object
library normally using target_link_libraries.

Fixes #279.
Related to #1307.
Closes #1497.
Closes #1574.
Closes #1928.
2021-08-15 22:44:43 +02:00
..
CMakeLists.txt Add override variable for CMake library type 2021-08-15 22:44:43 +02:00
cocoa_init.m Cocoa: Fix console apps getting a dock icon 2021-02-10 18:14:32 +01:00
cocoa_joystick.h Add gamepad mapping filtering by backend 2021-08-01 20:17:21 +02:00
cocoa_joystick.m Cleanup 2020-07-21 17:54:07 +02:00
cocoa_monitor.m Make monitor and joystick names static strings 2021-05-14 19:02:08 +02:00
cocoa_platform.h Cocoa: Fix macro redefinition warning 2021-07-29 21:21:45 +02:00
cocoa_time.c Add C dialect reminders to each source file 2019-05-24 14:43:49 +02:00
cocoa_window.m Improve error description for invalid scancodes 2021-07-29 21:50:24 +02:00
context.c Move single/double-buffer filtering to backends 2021-05-14 19:02:25 +02:00
egl_context.c EGL: Fix creation of single-buffered windows 2021-05-14 19:02:25 +02:00
egl_context.h EGL: Fix creation of single-buffered windows 2021-05-14 19:02:25 +02:00
glfw_config.h.in Cocoa: Select Vulkan surface extension at runtime 2020-01-16 21:53:18 +01:00
glfw.rc.in Win32: Add VERSIONINFO resource to GLFW DLL 2019-12-11 21:02:08 +01:00
glx_context.c Move single/double-buffer filtering to backends 2021-05-14 19:02:25 +02:00
glx_context.h Replace some tabs with spaces 2019-06-16 16:57:09 +02:00
init.c Simplify parsing of default gamepad mappings 2021-08-01 20:57:28 +02:00
input.c Simplify parsing of default gamepad mappings 2021-08-01 20:57:28 +02:00
internal.h Simplify parsing of default gamepad mappings 2021-08-01 20:57:28 +02:00
linux_joystick.c Cleanup 2020-07-21 17:54:07 +02:00
linux_joystick.h Add gamepad mapping filtering by backend 2021-08-01 20:17:21 +02:00
mappings.h Simplify parsing of default gamepad mappings 2021-08-01 20:57:28 +02:00
mappings.h.in Simplify parsing of default gamepad mappings 2021-08-01 20:57:28 +02:00
monitor.c Make monitor and joystick names static strings 2021-05-14 19:02:08 +02:00
nsgl_context.h NSGL: Remove problematic swap interval workaround 2019-12-20 09:46:48 +01:00
nsgl_context.m Cocoa: Fix call to NSWindow from non-main threads 2020-04-30 22:44:54 +02:00
null_init.c Null: Make platform more conformant 2020-06-02 22:40:09 +02:00
null_joystick.c Make _glfwPlatformInitJoysticks() return the correct type in null_joystick 2020-08-08 22:51:50 +02:00
null_joystick.h Fix -Wextra-semi warnings 2019-10-17 20:09:38 +02:00
null_monitor.c Null: Fix out parameters not being set 2020-08-19 19:31:55 +02:00
null_platform.h Remove EGL and OSMesa struct member macros 2020-06-24 00:50:49 +02:00
null_window.c Improve error description for invalid scancodes 2021-07-29 21:50:24 +02:00
osmesa_context.c Add C dialect reminders to each source file 2019-05-24 14:43:49 +02:00
osmesa_context.h Remove EGL and OSMesa struct member macros 2020-06-24 00:50:49 +02:00
posix_thread.c Add C dialect reminders to each source file 2019-05-24 14:43:49 +02:00
posix_thread.h Start 3.4 2019-04-16 23:08:39 +02:00
posix_time.c POSIX: Use frequency member for clarity 2021-08-13 17:27:38 +02:00
posix_time.h POSIX: Remove use of deprecated gettimeofday 2021-08-13 17:18:56 +02:00
vulkan.c Cocoa: Add fully dynamic loading of Vulkan loader 2020-01-16 22:15:30 +01:00
wgl_context.c Move single/double-buffer filtering to backends 2021-05-14 19:02:25 +02:00
wgl_context.h WGL: Remove unused constants 2020-02-10 17:44:57 +01:00
win32_init.c Win32: Remove changing the foreground lock timeout 2021-08-12 20:50:30 +02:00
win32_joystick.c Cleanup 2020-07-21 17:54:07 +02:00
win32_joystick.h Add gamepad mapping filtering by backend 2021-08-01 20:17:21 +02:00
win32_monitor.c Win32: Update all monitor handles on config change 2020-10-05 23:24:12 +02:00
win32_platform.h Win32: Remove changing the foreground lock timeout 2021-08-12 20:50:30 +02:00
win32_thread.c Add C dialect reminders to each source file 2019-05-24 14:43:49 +02:00
win32_time.c Add C dialect reminders to each source file 2019-05-24 14:43:49 +02:00
win32_window.c Improve error description for invalid scancodes 2021-07-29 21:50:24 +02:00
window.c Make GLFW_DOUBLEBUFFER a window attribute 2021-05-14 19:02:25 +02:00
wl_init.c Wayland: Make libwayland-client dynamically loaded 2021-08-15 21:58:19 +02:00
wl_monitor.c Wayland: Make libwayland-client dynamically loaded 2021-08-15 21:58:19 +02:00
wl_platform.h Wayland: Make libwayland-client dynamically loaded 2021-08-15 21:58:19 +02:00
wl_window.c Wayland: Make libwayland-client dynamically loaded 2021-08-15 21:58:19 +02:00
x11_init.c POSIX: Remove use of deprecated gettimeofday 2021-08-13 17:18:56 +02:00
x11_monitor.c Fix typos 2020-06-23 16:41:37 +02:00
x11_platform.h X11: Include X Shape extension headers 2020-07-15 18:00:00 +02:00
x11_window.c Improve error description for invalid scancodes 2021-07-29 21:50:24 +02:00
xkb_unicode.c Add C dialect reminders to each source file 2019-05-24 14:43:49 +02:00
xkb_unicode.h Start 3.4 2019-04-16 23:08:39 +02:00