Debian Codegraph @

examples/import_from_module/wscript

raw
1 ## -*- python -*-
2
3 def build(bld):
4
5 # ---- Module A ----
6
7 gen = bld(
8 features='command',
9 source='amodulegen.py',
10 target='amodule.cc',
11 command='${PYTHON} ${SRC[0]} > ${TGT[0]}')
12
13 if bld.env['CXX']:
14 obj = bld(features=['cxx', 'cxxshlib', 'pyext'])
15 obj.source = [
16 'amodule.cc'
17 ]
18 obj.target = 'a'
19 obj.install_path = None # do not install
20 obj.includes = '.'
21
22 # ---- Module B ----
23
24 gen = bld(
25 features='command',
26 source='bmodulegen.py',
27 target='bmodule.cc',
28 command='${PYTHON} ${SRC[0]} > ${TGT[0]}')
29
30 if bld.env['CXX']:
31 obj = bld(features=['cxx', 'cxxshlib', 'pyext'])
32 obj.source = [
33 'bmodule.cc'
34 ]
35 obj.target = 'b'
36 obj.install_path = None # do not install
37 obj.includes = '.'
38