diff options
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -9,6 +9,7 @@ d = top APPNAME='pycairo' VERSION='1.10.1' cairo_version_required = '1.10.2' +xpyb_version_required = '1.3' # optional def options(ctx): @@ -27,9 +28,16 @@ def configure(ctx): ctx.check_tool('python') ctx.check_python_version((3,1,0)) ctx.check_python_headers() - ctx.check_cfg(package='cairo', atleast_version=cairo_version_required, + + ctx.check_cfg(package='cairo', + atleast_version=cairo_version_required, args='--cflags --libs') + ctx.check_cfg(package='xpyb', + atleast_version=xpyb_version_required, + args='--cflags --libs', + mandatory=False) + # add gcc options if env['CC_NAME'] == 'gcc': env.append_unique('CCFLAGS', ['-std=c99', '-Wall']) |