ctdb-scripts: Do not de-duplicate the interfaces list
[samba.git] / libcli / dns / wscript_build
old mode 100755 (executable)
new mode 100644 (file)
index 421dd6d..2d90aa7
@@ -1,9 +1,21 @@
 #!/usr/bin/env python
 
-bld.SAMBA_SUBSYSTEM('clidns',
-        source='dns.c',
-        public_deps='LIBTSOCKET tevent-util')
+bld.SAMBA_LIBRARY('clidns',
+        source='dns.c resolvconf.c',
+        public_deps='LIBTSOCKET tevent-util ndr-standard',
+        private_library=True)
 
-bld.SAMBA_SUBSYSTEM('dnshostsfile',
-        source='dns_hosts_file.c',
-        public_deps='samba-util errors')
+bld.SAMBA_BINARY('resolvconftest',
+                  source='resolvconftest.c',
+                  deps='clidns',
+                  enabled=bld.CONFIG_SET('HAVE_FMEMOPEN'),
+                  for_selftest=True)
+
+bld.SAMBA_SUBSYSTEM('dns_lookup',
+                    source='dns_lookup.c',
+                    public_deps='clidns')
+
+bld.SAMBA_BINARY('dns_lookuptest',
+                  source='dns_lookuptest.c',
+                  deps='dns_lookup',
+                  for_selftest=True)