mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 12:32:38 +00:00
15 lines
383 B
Python
15 lines
383 B
Python
# vi: syntax=python:et:ts=4
|
|
|
|
def CheckPKG(context, name):
|
|
env = context.env
|
|
context.Message( 'Checking for %s... ' % name )
|
|
try:
|
|
env.ParseConfig("pkg-config --libs --cflags $PKGCONFIG_FLAGS " + name)
|
|
context.Result("yes")
|
|
return True
|
|
except OSError:
|
|
context.Result("no")
|
|
return False
|
|
|
|
config_checks = { "CheckPKG" : CheckPKG }
|