Find raylib even if pkg-config is not found
This commit is contained in:
@@ -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',
|
||||
|
Reference in New Issue
Block a user