diff --git a/build/secondary/third_party/glfw/BUILD.gn b/build/secondary/third_party/glfw/BUILD.gn index 463f562322..cad6cbc26c 100644 --- a/build/secondary/third_party/glfw/BUILD.gn +++ b/build/secondary/third_party/glfw/BUILD.gn @@ -19,11 +19,13 @@ source_set("glfw") { sources = [ "$_checkout_dir/src/context.c", + "$_checkout_dir/src/egl_context.c", "$_checkout_dir/src/init.c", "$_checkout_dir/src/input.c", "$_checkout_dir/src/monitor.c", "$_checkout_dir/src/vulkan.c", "$_checkout_dir/src/window.c", + "$_checkout_dir/src/osmesa_context.c", ] include_dirs = [ "$_checkout_dir/src" ] @@ -32,8 +34,6 @@ source_set("glfw") { if (is_win) { sources += [ - "$_checkout_dir/src/egl_context.c", - "$_checkout_dir/src/egl_context.h", "$_checkout_dir/src/wgl_context.c", "$_checkout_dir/src/wgl_context.h", "$_checkout_dir/src/win32_init.c", @@ -42,23 +42,21 @@ source_set("glfw") { "$_checkout_dir/src/win32_monitor.c", "$_checkout_dir/src/win32_platform.h", "$_checkout_dir/src/win32_time.c", - "$_checkout_dir/src/win32_tls.c", + "$_checkout_dir/src/win32_thread.c", "$_checkout_dir/src/win32_window.c", ] defines = [ "_GLFW_WIN32" ] } else if (is_linux) { sources += [ - "$_checkout_dir/src/egl_context.c", - "$_checkout_dir/src/egl_context.h", "$_checkout_dir/src/glx_context.c", "$_checkout_dir/src/glx_context.h", "$_checkout_dir/src/linux_joystick.c", "$_checkout_dir/src/linux_joystick.h", "$_checkout_dir/src/posix_time.c", "$_checkout_dir/src/posix_time.h", - "$_checkout_dir/src/posix_tls.c", - "$_checkout_dir/src/posix_tls.h", + "$_checkout_dir/src/posix_thread.c", + "$_checkout_dir/src/posix_thread.h", "$_checkout_dir/src/x11_init.c", "$_checkout_dir/src/x11_monitor.c", "$_checkout_dir/src/x11_platform.h", @@ -90,8 +88,8 @@ source_set("glfw") { "$_checkout_dir/src/cocoa_window.m", "$_checkout_dir/src/nsgl_context.h", "$_checkout_dir/src/nsgl_context.m", - "$_checkout_dir/src/posix_tls.c", - "$_checkout_dir/src/posix_tls.h", + "$_checkout_dir/src/posix_thread.c", + "$_checkout_dir/src/posix_thread.h", ] defines = [ "_GLFW_COCOA" ]