waf: added pyext option to SAMBA_LIBRARY()
[abartlet/samba.git/.git] / buildtools / wafsamba / wafsamba.py
index 4cb0402718e9bb4f21215188864af85117ab1a48..9927aef649f089fe567b0058d8884195c280a802 100644 (file)
@@ -108,6 +108,7 @@ def SAMBA_LIBRARY(bld, libname, source,
                   install_path=None,
                   install=True,
                   pyembed=False,
+                  pyext=False,
                   target_type='LIBRARY',
                   bundled_extension=True,
                   link_name=None,
@@ -151,7 +152,7 @@ def SAMBA_LIBRARY(bld, libname, source,
                         autoproto      = autoproto,
                         depends_on     = depends_on,
                         hide_symbols   = hide_symbols,
-                        pyext          = (target_type == "PYTHON"),
+                        pyext          = pyext or (target_type == "PYTHON"),
                         local_include  = local_include)
 
     if BUILTIN_LIBRARY(bld, libname):