From 391c8a9224e5bf02690722c06973af8427bdaa6b Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Mon, 19 Nov 2018 10:21:23 +0000 Subject: [PATCH] Roll GLFW to pick up macOS Mojave fixes BUG=dawn:35 Change-Id: Id9f71ab3a6023b21883d1b3d2f8afcebcf5b2f71 Reviewed-on: https://dawn-review.googlesource.com/c/2480 Commit-Queue: Corentin Wallez Reviewed-by: Kai Ninomiya --- DEPS | 2 +- third_party/BUILD.gn | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/DEPS b/DEPS index 18e4813ced..c3ee4e1b60 100644 --- a/DEPS +++ b/DEPS @@ -74,7 +74,7 @@ deps = { # GLFW for tests and samples 'third_party/glfw': { - 'url': '{chromium_git}/external/github.com/glfw/glfw@096efdf798896cff80a0b2db08d7398b703406fe', + 'url': '{chromium_git}/external/github.com/glfw/glfw@2de2589f910b1a85905f425be4d32f33cec092df', 'condition': 'dawn_standalone', }, diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn index fbec83675f..62766a4556 100644 --- a/third_party/BUILD.gn +++ b/third_party/BUILD.gn @@ -218,10 +218,14 @@ static_library("glfw") { "${glfw_dir}/include/GLFW/glfw3.h", "${glfw_dir}/include/GLFW/glfw3native.h", "${glfw_dir}/src/context.c", + "${glfw_dir}/src/egl_context.c", + "${glfw_dir}/src/egl_context.h", "${glfw_dir}/src/init.c", "${glfw_dir}/src/input.c", "${glfw_dir}/src/internal.h", "${glfw_dir}/src/monitor.c", + "${glfw_dir}/src/osmesa_context.c", + "${glfw_dir}/src/osmesa_context.h", "${glfw_dir}/src/vulkan.c", "${glfw_dir}/src/window.c", ] @@ -229,8 +233,6 @@ static_library("glfw") { if (is_win) { sources += [ - "${glfw_dir}/src/egl_context.c", - "${glfw_dir}/src/egl_context.h", "${glfw_dir}/src/wgl_context.c", "${glfw_dir}/src/wgl_context.h", "${glfw_dir}/src/win32_init.c", @@ -239,22 +241,20 @@ static_library("glfw") { "${glfw_dir}/src/win32_monitor.c", "${glfw_dir}/src/win32_platform.h", "${glfw_dir}/src/win32_time.c", - "${glfw_dir}/src/win32_tls.c", + "${glfw_dir}/src/win32_thread.c", "${glfw_dir}/src/win32_window.c", ] } if (is_linux || is_mac) { sources += [ - "${glfw_dir}/src/posix_tls.c", - "${glfw_dir}/src/posix_tls.h", + "${glfw_dir}/src/posix_thread.c", + "${glfw_dir}/src/posix_thread.h", ] } if (is_linux) { sources += [ - "${glfw_dir}/src/egl_context.c", - "${glfw_dir}/src/egl_context.h", "${glfw_dir}/src/glx_context.c", "${glfw_dir}/src/glx_context.h", "${glfw_dir}/src/linux_joystick.c",