Win32: Make timer functions backend independent

This is work towards allowing the Null backend to build for Windows
using the Win32 timer API, without the Win32 backend being enabled.
This commit is contained in:
Camilla Löwy
2021-07-18 20:38:53 +02:00
parent b6834bf2a1
commit bdfe6b09af
3 changed files with 44 additions and 12 deletions
+5 -4
View File
@@ -22,10 +22,11 @@ if (_GLFW_COCOA)
nsgl_context.m egl_context.c osmesa_context.c)
elseif (_GLFW_WIN32)
target_compile_definitions(glfw PRIVATE _GLFW_WIN32)
target_sources(glfw PRIVATE win32_platform.h win32_joystick.h win32_thread.h
win32_init.c win32_joystick.c win32_monitor.c
win32_time.c win32_thread.c win32_window.c
wgl_context.c egl_context.c osmesa_context.c)
target_sources(glfw PRIVATE win32_platform.h win32_joystick.h win32_time.h
win32_thread.h win32_init.c win32_joystick.c
win32_monitor.c win32_time.c win32_thread.c
win32_window.c wgl_context.c egl_context.c
osmesa_context.c)
elseif (_GLFW_X11)
target_compile_definitions(glfw PRIVATE _GLFW_X11)
target_sources(glfw PRIVATE x11_platform.h xkb_unicode.h posix_time.h