Removed unnecessary variable, and added a (optional) dependency for the ws2_32 library, which is required on Windows
This commit is contained in:
		@@ -2,10 +2,12 @@ project('Pong', ['cpp', 'c'])
 | 
				
			|||||||
add_global_arguments('-g', '-Wall', '-pedantic', '-Wno-unused-function', '-Werror', language : ['cpp', 'c'])
 | 
					add_global_arguments('-g', '-Wall', '-pedantic', '-Wno-unused-function', '-Werror', language : ['cpp', 'c'])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
raylib = dependency('raylib', native: true)
 | 
					raylib = dependency('raylib', native: true)
 | 
				
			||||||
static_lib_path = ''
 | 
					
 | 
				
			||||||
 | 
					compiler = meson.get_compiler('cpp')
 | 
				
			||||||
 | 
					ws2_dep = compiler.find_library('ws2_32', required: false)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
executable('pong', 
 | 
					executable('pong', 
 | 
				
			||||||
	'main.cpp', 'easysock.cpp', 'sock.cpp','paddle.cpp', 'ball.cpp', 'numeric_base.cpp', 'connect_code.cpp', 'server.cpp', 'client.cpp',
 | 
						'main.cpp', 'easysock.cpp', 'sock.cpp','paddle.cpp', 'ball.cpp', 'numeric_base.cpp', 'connect_code.cpp', 'server.cpp', 'client.cpp',
 | 
				
			||||||
	'serialization.c',
 | 
						'serialization.c',
 | 
				
			||||||
	dependencies: raylib,
 | 
						dependencies: [raylib, ws2_dep]
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user