Find raylib even if pkg-config is not found

master
Aadhavan Srinivasan 8 months ago
parent f961db5e58
commit 2ea5bb4fe2

@ -1,9 +1,12 @@
project('Pong', ['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)
executable('pong',

Loading…
Cancel
Save