Find raylib even if pkg-config is not found

This commit is contained in:
2024-03-05 16:36:43 -05:00
parent f961db5e58
commit 2ea5bb4fe2

View File

@@ -1,9 +1,12 @@
project('Pong', ['cpp', 'c'])
add_global_arguments('-g', '-Wall', '-pedantic', '-Wno-unused-function', '-Werror', language : ['cpp', 'c'])
raylib = dependency('raylib', native: true)
compiler = meson.get_compiler('cpp')
raylib = dependency('raylib', required: false)
if not raylib.found()
raylib = meson.find_library('raylib', has_headers: ['raylib.h', 'raymath.h'], required: true)
endif
ws2_dep = compiler.find_library('ws2_32', required: false)
executable('pong',