Skip to content

Commit

Permalink
meson: link ws2_32 for mingw builds
Browse files Browse the repository at this point in the history
  • Loading branch information
randy408 authored and SanderMertens committed May 15, 2023
1 parent e6ee624 commit a15fcac
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ endif

flecs_inc = include_directories('include')

flecs_deps = dependency('threads')
flecs_deps = [
dependency('threads')
]

cc = meson.get_compiler('c')

if host_machine.system() == 'windows'
flecs_deps += cc.find_library('ws2_32') # Required for http addon
endif

flecs_src = files(
'src/addons/coredoc.c',
Expand Down Expand Up @@ -46,7 +54,7 @@ flecs_src = files(
'src/addons/snapshot.c',
'src/addons/stats.c',
'src/addons/system/system.c',
'src/addons/timer.c',
'src/addons/timer.c',
'src/addons/units.c',
'src/datastructures/allocator.c',
'src/datastructures/bitset.c',
Expand Down

0 comments on commit a15fcac

Please sign in to comment.