blob: 0680c1ce8d03666993cb2cfe3b6d48b86fbcb22b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# -*- python -*-
import os
d = 'src'
def build(bld):
print(' %s/build' %d)
# .py files
bld.new_task_gen(
features = 'py',
source = '__init__.py',
install_path = '${PYTHONDIR}/cairo',
)
# C extension module
bld.new_task_gen(
features = 'cc cshlib pyext',
source = 'cairomodule.c context.c font.c path.c pattern.c matrix.c surface.c',
target = '_cairo',
includes = '.',
uselib = 'CAIRO',
install_path = '${PYTHONDIR}/cairo',
)
# C API
bld.install_files(os.path.join(bld.env['PREFIX'], 'include', 'pycairo'),
'pycairo.h')
# how to strip binaries ?
|