From 2f1f3788fa2d9b693c77645edc44f35e7073aadd Mon Sep 17 00:00:00 2001 From: Steve Chaplin <> Date: Tue, 22 May 2012 20:07:51 +0800 Subject: Update waf to check for xpyb. Bug #50134. --- src/surface.c | 1 + wscript | 14 +++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/surface.c b/src/surface.c index d46a77c..a75a737 100644 --- a/src/surface.c +++ b/src/surface.c @@ -43,6 +43,7 @@ * PycairoImageSurface, * PycairoPDFSurface, * PycairoPSSurface, + * PycairoRecordingSurface, * PycairoSVGSurface, * PycairoWin32Surface, * PycairoWin32PrintingSurface, diff --git a/wscript b/wscript index 824bb27..82119fa 100644 --- a/wscript +++ b/wscript @@ -8,7 +8,8 @@ d = top APPNAME='py2cairo' VERSION='1.10.1' -cairo_version_required = '1.10.0' +cairo_version_required = '1.10.2' +xpyb_version_required = '1.3' def options(ctx): @@ -27,8 +28,15 @@ def configure(ctx): ctx.check_tool('python') ctx.check_python_version((2,6,0)) ctx.check_python_headers() - ctx.check_cfg(package='cairo', atleast_version=cairo_version_required, - args='--cflags --libs') + + 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': -- cgit v1.2.3