|
|
@ -1,9 +1,12 @@
|
|
|
|
project('Pong', ['cpp', 'c'])
|
|
|
|
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'])
|
|
|
|
|
|
|
|
compiler = meson.get_compiler('cpp')
|
|
|
|
|
|
|
|
|
|
|
|
raylib = dependency('raylib', native: true)
|
|
|
|
raylib = dependency('raylib', required: false)
|
|
|
|
|
|
|
|
if not raylib.found()
|
|
|
|
|
|
|
|
raylib = meson.find_library('raylib', has_headers: ['raylib.h', 'raymath.h'], required: true)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
compiler = meson.get_compiler('cpp')
|
|
|
|
|
|
|
|
ws2_dep = compiler.find_library('ws2_32', required: false)
|
|
|
|
ws2_dep = compiler.find_library('ws2_32', required: false)
|
|
|
|
|
|
|
|
|
|
|
|
executable('pong',
|
|
|
|
executable('pong',
|
|
|
|