Skip to content

Commit a8ba90b

Browse files
Update meson.build
1 parent 6c4a42a commit a8ba90b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

code/logic/meson.build

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
dir = include_directories('.')
22

3+
# Check if the host system is Windows
4+
if host_machine.system() == 'windows'
5+
winsock_dep = cc.find_library('ws2_32', required: true)
6+
else
7+
winsock_dep = []
8+
endif
9+
310
fossil_fish_lib = static_library('fossil-jellyfish',
411
files('jellyfish.c'),
512
install: true,
13+
dependencies: [cc.find_library('m', required: false), winsock_dep],
614
include_directories: dir)
715

816
fossil_fish_dep = declare_dependency(

0 commit comments

Comments
 (0)