lib/socket_wrapper only enable python_socket and socket.py with socket_wrapper
authorAndrew Bartlett <abartlet@samba.org>
Sun, 13 May 2012 06:02:22 +0000 (16:02 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 13 May 2012 08:41:27 +0000 (10:41 +0200)
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sun May 13 10:41:27 CEST 2012 on sn-devel-104

lib/socket_wrapper/wscript_build

index c4b94147d619b15be6f2c9a7fffcf833e1e8c68f..8e1c2962292a3916a45780e3ea5f23f2da45816a 100644 (file)
@@ -8,12 +8,14 @@ bld.SAMBA_LIBRARY('socket_wrapper',
                   deps='replace')
 
 bld.SAMBA_PYTHON('py_socket_wrapper',
-                source='py_socket_wrapper.c',
-                deps='socket_wrapper',
-                public_deps='talloc pytalloc-util',
-                realname='samba/socket_wrapper.so')
+                 source='py_socket_wrapper.c',
+                 deps='socket_wrapper',
+                 enabled=bld.CONFIG_SET('SOCKET_WRAPPER'),
+                 public_deps='talloc pytalloc-util',
+                 realname='samba/socket_wrapper.so')
 
-bld.SAMBA_SCRIPT('python_socket',
-                pattern='socket.py',
-                installdir='python',
-                installname='samba/socket.py')
+if bld.CONFIG_SET('SOCKET_WRAPPER'):
+    bld.SAMBA_SCRIPT('python_socket',
+                     pattern='socket.py',
+                     installdir='python',
+                     installname='samba/socket.py')