libcli/nbt: allow use of the waf build for nbt in source3
authorAndrew Tridgell <tridge@samba.org>
Sun, 20 Feb 2011 23:00:49 +0000 (10:00 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 22 Feb 2011 01:51:09 +0000 (02:51 +0100)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

libcli/nbt/wscript_build

index 7229d12e2ed7adf5d9cb9ce5f41c2eede01fa9b7..a3c22dca07e0e37426adb83d71e0be34f6d2a1a5 100644 (file)
@@ -14,16 +14,16 @@ bld.SAMBA_LIBRARY('cli-nbt',
        )
 
 
-bld.SAMBA_BINARY('nmblookup',
-       source='tools/nmblookup.c',
-       manpages='man/nmblookup.1',
-       deps='samba-hostconfig samba-util cli-nbt popt POPT_SAMBA netif LIBCLI_RESOLVE'
-       )
-
-
-bld.SAMBA_PYTHON('python_netbios',
-       source='pynbt.c',
-       public_deps='cli-nbt DYNCONFIG samba-hostconfig',
-       realname='samba/netbios.so'
-       )
+if bld.env._SAMBA_BUILD_ == 4:
+    bld.SAMBA_BINARY('nmblookup',
+                     source='tools/nmblookup.c',
+                     manpages='man/nmblookup.1',
+                     deps='samba-hostconfig samba-util cli-nbt popt POPT_SAMBA netif LIBCLI_RESOLVE'
+                     )
+
+    bld.SAMBA_PYTHON('python_netbios',
+                     source='pynbt.c',
+                     public_deps='cli-nbt DYNCONFIG samba-hostconfig',
+                     realname='samba/netbios.so'
+                     )