waf: added pyext option to SAMBA_LIBRARY()
authorAndrew Tridgell <tridge@samba.org>
Thu, 21 Oct 2010 04:25:44 +0000 (15:25 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 21 Oct 2010 08:03:26 +0000 (19:03 +1100)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

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):