build: Remove bld.gen_python_environments()
[samba.git] / source4 / libnet / wscript_build
1 #!/usr/bin/env python
2
3 pytalloc_util = bld.pyembed_libname('pytalloc-util')
4 pyrpc_util = bld.pyembed_libname('pyrpc_util')
5 provision = bld.pyembed_libname('PROVISION')
6 name = bld.pyembed_libname('samba-net')
7 auto_proto='libnet_proto.h'
8 bld.SAMBA_LIBRARY(name,
9         source='libnet.c libnet_passwd.c libnet_time.c libnet_rpc.c libnet_join.c libnet_site.c libnet_become_dc.c libnet_unbecome_dc.c libnet_vampire.c libnet_samdump.c libnet_samsync_ldb.c libnet_user.c libnet_group.c libnet_share.c libnet_lookup.c libnet_domain.c userinfo.c groupinfo.c userman.c groupman.c prereq_domain.c libnet_samsync.c',
10         autoproto=auto_proto,
11         public_deps='samba-credentials dcerpc dcerpc-samr RPC_NDR_LSA RPC_NDR_SRVSVC RPC_NDR_DRSUAPI cli_composite LIBCLI_RESOLVE LIBCLI_FINDDCS cli_cldap LIBCLI_FINDDCS gensec_schannel LIBCLI_AUTH ndr smbpasswdparser %s LIBCLI_SAMSYNC LIBTSOCKET' % (provision),
12         private_library=True,
13         pyembed=True,
14         enabled=bld.PYTHON_BUILD_IS_ENABLED()
15         )
16
17 bld.SAMBA_PYTHON('python_net',
18         source='py_net.c',
19         deps='%s %s %s' % (name, pyrpc_util, pytalloc_util),
20         realname='samba/net.so'
21         )
22
23 bld.SAMBA_PYTHON('python_dckeytab',
24         source='py_net_dckeytab.c libnet_export_keytab.c',
25         deps='%s db-glue krb5 com_err' % (pyrpc_util),
26         realname='samba/dckeytab.so',
27         enabled=bld.CONFIG_SET('AD_DC_BUILD_IS_ENABLED')
28         )