|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
project('Pong', ['cpp', 'c'])
|
|
|
|
|
project('Pong', ['cpp', 'c'], version: '0.1')
|
|
|
|
|
add_global_arguments('-g', '-Wall', '-pedantic', '-Wno-unused-function', language : ['cpp', 'c'])
|
|
|
|
|
compiler = meson.get_compiler('cpp')
|
|
|
|
|
cmake = import('cmake')
|
|
|
|
@ -24,6 +24,10 @@ endif
|
|
|
|
|
#For Windows only
|
|
|
|
|
ws2_dep = compiler.find_library('ws2_32', required: false)
|
|
|
|
|
winmm = compiler.find_library('winmm', required: false)
|
|
|
|
|
if build_machine.system() == 'windows'
|
|
|
|
|
add_global_arguments('-Wl,--subsystem,windows', '-mwindows', language: ['cpp', 'c']) # Prevent opening console when game is run
|
|
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
executable('pong',
|
|
|
|
|
'main.cpp', 'easysock.cpp', 'sock.cpp','paddle.cpp', 'ball.cpp', 'numeric_base.cpp', 'connect_code.cpp', 'server.cpp', 'client.cpp',
|
|
|
|
|