summaryrefslogtreecommitdiff
path: root/src/wscript
blob: 7822407046e781f64407517f312fe24de4215bf9 (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 = '. ..',  # '..' for config.h
    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 ?