wafsamba: add SAMBA_SUBSYSTEM(force_empty=False)
authorStefan Metzmacher <metze@samba.org>
Fri, 20 Aug 2021 12:27:17 +0000 (12:27 +0000)
committerStefan Metzmacher <metze@samba.org>
Tue, 30 Nov 2021 15:53:34 +0000 (15:53 +0000)
We will need to define empty subsystems without any dependency.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14780

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
buildtools/wafsamba/wafsamba.py

index a07b07890c04b9ae74ce9061728dd1e22b9df4f0..4d7b216d68325bc3186fcb40d11f5c135204ef72 100644 (file)
@@ -570,6 +570,7 @@ Build.BuildContext.SAMBA_MODULE = SAMBA_MODULE
 def SAMBA_SUBSYSTEM(bld, modname, source,
                     deps='',
                     public_deps='',
+                    __force_empty=False,
                     includes='',
                     public_headers=None,
                     public_headers_install=True,
@@ -603,7 +604,7 @@ def SAMBA_SUBSYSTEM(bld, modname, source,
 
     # remember empty subsystems, so we can strip the dependencies
     if ((source == '') or (source == [])):
-        if deps == '' and public_deps == '':
+        if not __force_empty and deps == '' and public_deps == '':
             SET_TARGET_TYPE(bld, modname, 'EMPTY')
             return
         empty_c = modname + '.empty.c'