Removed unnecessary variable, and added a (optional) dependency for the ws2_32 library, which is required on Windows

master
Aadhavan Srinivasan 10 months ago
parent 8e3488b904
commit 24c1dd6391

@ -2,10 +2,12 @@ project('Pong', ['cpp', 'c'])
add_global_arguments('-g', '-Wall', '-pedantic', '-Wno-unused-function', '-Werror', language : ['cpp', 'c'])
raylib = dependency('raylib', native: true)
static_lib_path = ''
compiler = meson.get_compiler('cpp')
ws2_dep = compiler.find_library('ws2_32', required: false)
executable('pong',
'main.cpp', 'easysock.cpp', 'sock.cpp','paddle.cpp', 'ball.cpp', 'numeric_base.cpp', 'connect_code.cpp', 'server.cpp', 'client.cpp',
'serialization.c',
dependencies: raylib,
dependencies: [raylib, ws2_dep]
)

Loading…
Cancel
Save