|
Lines 9-14
Link Here
|
| 9 |
APPNAME='py2cairo' |
9 |
APPNAME='py2cairo' |
| 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' |
| 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((2,6,0)) |
29 |
ctx.check_python_version((2,6,0)) |
| 29 |
ctx.check_python_headers() |
30 |
ctx.check_python_headers() |
|
|
31 |
|
| 30 |
ctx.check_cfg(package='cairo', atleast_version=cairo_version_required, |
32 |
ctx.check_cfg(package='cairo', atleast_version=cairo_version_required, |
| 31 |
args='--cflags --libs') |
33 |
args='--cflags --libs') |
| 32 |
|
34 |
|
|
|
35 |
ctx.check_cfg(package='xpyb', atleast_version=xpyb_version_required, |
| 36 |
args='--cflags --libs', mandatory=False) |
| 37 |
|
| 33 |
# add gcc options |
38 |
# add gcc options |
| 34 |
if env['CC_NAME'] == 'gcc': |
39 |
if env['CC_NAME'] == 'gcc': |
| 35 |
env.append_unique('CCFLAGS', ['-std=c99', '-Wall']) |
40 |
env.append_unique('CCFLAGS', ['-std=c99', '-Wall']) |