6c4122759580b2010b4ce28097c810d6acc9e25e
[samba.git] / libgpo / wscript_build
1 #!/usr/bin/env python
2
3 LIBGPO_SRC = '''gpo_ldap.c gpo_ini.c gpo_util.c gpo_fetch.c gpo_filesync.c
4                 gpo_sec.c gpo_reg.c gpext/gpext.c'''
5
6 bld.SAMBA3_LIBRARY('gpo',
7                    source='${LIBGPO_SRC}',
8                    deps='talloc ads TOKEN_UTIL auth',
9                    vars=locals(),
10                    private_library=True)
11
12 bld.SAMBA3_LIBRARY('gpext',
13                    source='''gpext/gpext.c''',
14                    deps='talloc ads TOKEN_UTIL auth gpo',
15                    private_library=True)
16
17 for env in bld.gen_python_environments():
18     pyparam_util = bld.pyembed_libname('pyparam_util')
19     pyrpc_util = bld.pyembed_libname('pyrpc_util')
20     bld.SAMBA3_PYTHON('python_samba_libgpo', 'pygpo.c',
21                      deps='%s gpext talloc ads TOKEN_UTIL auth %s' % (pyparam_util, pyrpc_util),
22                      realname='samba/gpo.so')