07d8c51b1f46757a93650dd4f0a51bff7c95c059
[kai/samba-autobuild/.git] / libcli / nbt / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_SUBSYSTEM('NDR_NBT_BUF',
4         source='nbtname.c',
5         deps='talloc',
6         autoproto='nbtname.h'
7         )
8
9 bld.SAMBA_SUBSYSTEM('lmhosts',
10                     source='lmhosts.c ../dns/dns_hosts_file.c',
11                     deps='replace talloc'
12                     )
13
14 if bld.env._SAMBA_BUILD_ == 4:
15     bld.SAMBA_LIBRARY('cli-nbt',
16                       source='nbtsocket.c namequery.c nameregister.c namerefresh.c namerelease.c',
17                       public_deps='ndr NDR_NBT tevent UTIL_TEVENT NDR_SECURITY samba_socket samba-util lmhosts',
18                       private_library=True
19                       )
20
21     bld.SAMBA_BINARY('nmblookup',
22                      source='tools/nmblookup.c',
23                      manpages='man/nmblookup.1',
24                      deps='samba-hostconfig samba-util cli-nbt popt POPT_SAMBA netif LIBCLI_RESOLVE'
25                      )
26
27     bld.SAMBA_PYTHON('python_netbios',
28                      source='pynbt.c',
29                      public_deps='cli-nbt DYNCONFIG samba-hostconfig',
30                      realname='samba/netbios.so'
31                      )
32