s4-waf: install the rest of our python files
[nivanova/samba-autobuild/.git] / source4 / scripting / python / wscript_build
1 bld.SAMBA_PYTHON('LIBPYTHON',
2                  source='modules.c',
3                  public_deps='EXT_LIB_PYTHON',
4                  init_function_sentinal='{NULL,NULL}',
5                  deps='PYTALLOC',
6         )
7
8
9 bld.SAMBA_PYTHON('PYTALLOC',
10                  source='../../../lib/talloc/pytalloc.c',
11                  public_deps='EXT_LIB_PYTHON talloc'
12                  )
13
14
15 bld.SAMBA_PYTHON('python_uuid',
16                  source='uuidmodule.c',
17                  deps='LIBNDR',
18                  realname='uuid.so'
19                  )
20
21
22 bld.SAMBA_PYTHON('python_glue',
23                  source='pyglue.c',
24                  # _PY_FILES='$(shell find samba ../lib/subunit/python -type f -name "*.py")',
25                  deps='LIBNDR ldb SAMDB CREDENTIALS pyldb python_dcerpc_misc python_dcerpc_security pyauth pyldb_util pyparam_util',
26                  # EPYDOC_OPTIONS='--no-private --url http://www.samba.org/ --no-sourcecode',
27                  realname='samba/glue.so'
28         )
29
30
31 # create a dummy subsystem for EXT_LIB_PYTHON
32 bld.SAMBA_SUBSYSTEM('EXT_LIB_PYTHON', '')
33
34
35 # install out various python scripts for use by make test
36 bld.SAMBA_SCRIPT('samba_python',
37                  pattern='samba/**/*.py',
38                  installdir='python')
39
40 bld.BUILD_SUBDIR('samba_external')
41
42 bld.INSTALL_WILDCARD('${PYTHONDIR}', 'samba/**/*.py', flat=False)