File: wscript

package info (click to toggle)
pybindgen 0.20.0%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,932 kB
  • sloc: python: 15,981; cpp: 1,889; ansic: 617; makefile: 86; sh: 4
file content (38 lines) | stat: -rw-r--r-- 882 bytes parent folder | download | duplicates (6)
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
33
34
35
36
37
38
## -*- python -*-

def build(bld):

	# ---- Module A ----

    gen = bld(
        features='command',
        source='amodulegen.py',
        target='amodule.cc',
        command='${PYTHON} ${SRC[0]} > ${TGT[0]}')

    if bld.env['CXX']:
        obj = bld(features=['cxx', 'cxxshlib', 'pyext'])
        obj.source = [
            'amodule.cc'
            ]
        obj.target = 'a'
        obj.install_path = None # do not install
        obj.includes = '.'

	# ---- Module B ----

    gen = bld(
        features='command',
        source='bmodulegen.py',
        target='bmodule.cc',
        command='${PYTHON} ${SRC[0]} > ${TGT[0]}')

    if bld.env['CXX']:
        obj = bld(features=['cxx', 'cxxshlib', 'pyext'])
        obj.source = [
            'bmodule.cc'
            ]
        obj.target = 'b'
        obj.install_path = None # do not install
        obj.includes = '.'