libcli/nbt: allow use of the waf build for nbt in source3
[amitay/samba.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
10 bld.SAMBA_LIBRARY('cli-nbt',
11         source='lmhosts.c nbtsocket.c namequery.c nameregister.c namerefresh.c namerelease.c dns_hosts_file.c',
12         public_deps='ndr NDR_NBT tevent UTIL_TEVENT NDR_SECURITY samba_socket samba-util',
13         private_library=True
14         )
15
16
17 if bld.env._SAMBA_BUILD_ == 4:
18     bld.SAMBA_BINARY('nmblookup',
19                      source='tools/nmblookup.c',
20                      manpages='man/nmblookup.1',
21                      deps='samba-hostconfig samba-util cli-nbt popt POPT_SAMBA netif LIBCLI_RESOLVE'
22                      )
23
24     bld.SAMBA_PYTHON('python_netbios',
25                      source='pynbt.c',
26                      public_deps='cli-nbt DYNCONFIG samba-hostconfig',
27                      realname='samba/netbios.so'
28                      )
29