Lines 9-14
Link Here
|
9 |
APPNAME='pycairo' |
9 |
APPNAME='pycairo' |
10 |
VERSION='1.10.0' |
10 |
VERSION='1.10.0' |
11 |
cairo_version_required = '1.10.0' |
11 |
cairo_version_required = '1.10.0' |
|
|
12 |
xpyb_version_required = '1.3' # optional |
12 |
|
13 |
|
13 |
|
14 |
|
14 |
def options(ctx): |
15 |
def options(ctx): |
Lines 27-35
Link Here
|
27 |
ctx.check_tool('python') |
28 |
ctx.check_tool('python') |
28 |
ctx.check_python_version((3,1,0)) |
29 |
ctx.check_python_version((3,1,0)) |
29 |
ctx.check_python_headers() |
30 |
ctx.check_python_headers() |
30 |
ctx.check_cfg(package='cairo', atleast_version=cairo_version_required, |
31 |
|
|
|
32 |
ctx.check_cfg(package='cairo', |
33 |
atleast_version=cairo_version_required, |
31 |
args='--cflags --libs') |
34 |
args='--cflags --libs') |
32 |
|
35 |
|
|
|
36 |
# xpyb for Python 3 is not available yet. |
37 |
# the Python 3 version should probably have a different name than 'xpyb' |
38 |
# ctx.check_cfg(package='xpyb', |
39 |
# atleast_version=xpyb_version_required, |
40 |
# args='--cflags --libs', |
41 |
# mandatory=False) |
42 |
|
33 |
# add gcc options |
43 |
# add gcc options |
34 |
if env['CC_NAME'] == 'gcc': |
44 |
if env['CC_NAME'] == 'gcc': |
35 |
env.append_unique('CCFLAGS', ['-std=c99', '-Wall']) |
45 |
env.append_unique('CCFLAGS', ['-std=c99', '-Wall']) |