Skip to content

Commit

Permalink
added support for pthread
Browse files Browse the repository at this point in the history
  • Loading branch information
ypujante committed Dec 21, 2024
1 parent dc2b1c2 commit 885cba3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/ports/contrib/glfw3.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import os
from typing import Union, Dict

TAG = '3.4.0.20241004'
HASH = 'd2745e9f621090b6f78e1c8122d1e6a2e7e774d27799f14945ddcfd543aedeac0e6acdecf42fe74f9ecdbc25aa3599372798ecfc55ddd941661e0628c494cda6'
TAG = '3.4.0.20241221'
HASH = 'e977fcab4747085fead33ab365ece02d6185564401f4904583095e45d3599d2be9315398f8b414b0da8ee954964a1649d2932d378fc8bf96caa986b43b3ae5e7'

# contrib port information (required)
URL = 'https://github.com/pongasoft/emscripten-glfw'
Expand Down Expand Up @@ -44,6 +44,7 @@ def get_lib_name(settings):
('-nw' if opts['disableWarning'] else '') +
('-nj' if opts['disableJoystick'] else '') +
('-sw' if opts['disableMultiWindow'] else '') +
('-mt' if settings.PTHREADS else '') +
'.a')


Expand Down Expand Up @@ -71,6 +72,9 @@ def create(final):
if opts['disableMultiWindow']:
flags += ['-DEMSCRIPTEN_GLFW3_DISABLE_MULTI_WINDOW_SUPPORT']

if settings.PTHREADS:
flags += ['-pthread']

ports.build_port(source_path, final, port_name, includes=source_include_paths, flags=flags)

return [shared.cache.get_lib(get_lib_name(settings), create, what='port')]
Expand Down

0 comments on commit 885cba3

Please sign in to comment.