summaryrefslogtreecommitdiff
path: root/src/wscript
blob: 7fdeffc4a8c0c3a9b07e7f693df5d5180c224241 (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(ctx):
  print('  %s/build()' %d)

  # .py files
  ctx.new_task_gen(
    features     = 'py',
    source       = '__init__.py',
    install_path = '${PYTHONDIR}/cairo',
    )

  # C extension module
  ctx.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
  ctx.install_files(os.path.join(ctx.env['PREFIX'], 'include', 'pycairo'),
                    'py3cairo.h')

  # how to strip binaries ?