Skip to content

Commit 5583c90

Browse files
authored
[contrib.glfw3] New version 3.4.0.20240817 (#22395)
Release notes: - Major clipboard changes: the clipboard now uses the browser events to handle cut, copy and paste - Added a way to tweak the timeouts for the Super + Key workaround (Super is also known as Meta or Cmd) - Added a way to set which keys are allowed to be handled by the browser - Added a convenient API to open a URL (`emscripten::glfw3::OpenURL`) - Added a convenient API to detect if the runtime platform is Apple (`emscripten::glfw3::IsRuntimePlatformApple`), mostly used for keyboard shortcuts (Ctrl vs. Cmd). - Added `GLFW/emscripten_glfw3_version.h` with `EMSCRIPTEN_GLFW_VERSION` define for compilation time version detection - `EMSCRIPTEN_USE_PORT_CONTRIB_GLFW3` port define now also contains the version > [!WARNING] > Breaking changes! > The clipboard async API has been removed. > Check the [Clipboard support](https://github.com/pongasoft/emscripten-glfw/blob/master/docs/Usage.md#clipboard-support) section for details on how to deal with the clipboard in your application.
1 parent fd5d5d3 commit 5583c90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/ports/contrib/glfw3.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import os
77
from typing import Union, Dict
88

9-
TAG = '3.4.0.20240804'
10-
HASH = 'a34c392c1fe0365e7ad986b5867a4f171e708f4f5be05ea656ff2ea231c2fa2b7157072e269147c22c97c748e536f689e99799603fabaaaba411b8adf61205a7'
9+
TAG = '3.4.0.20240817'
10+
HASH = 'f75e711ec47c5eb04cff7fef5f2ef6788445bb86ed570a884ccb0e839744c3ed38b5f94808d1fac1417f356177e753e4ac8cafed9ad808d24d8fd08d23ca07f0'
1111

1212
# contrib port information (required)
1313
URL = 'https://github.com/pongasoft/emscripten-glfw'
@@ -90,7 +90,7 @@ def linker_setup(ports, settings):
9090
# so that we don't conflict with the builtin GLFW headers that emscripten
9191
# includes
9292
def process_args(ports):
93-
return ['-isystem', ports.get_include_dir(port_name), '-DEMSCRIPTEN_USE_PORT_CONTRIB_GLFW3']
93+
return ['-isystem', ports.get_include_dir(port_name), f'-DEMSCRIPTEN_USE_PORT_CONTRIB_GLFW3={TAG.replace(".", "")}']
9494

9595

9696
def check_option(option, value, error_handler):

0 commit comments

Comments
 (0)