build: a library is only empty if it has no deps
authorAndrew Tridgell <tridge@samba.org>
Sun, 25 Apr 2010 11:00:44 +0000 (21:00 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 26 Apr 2010 04:36:54 +0000 (14:36 +1000)
buildtools/wafsamba/wafsamba.py

index 56ecfb1df3e3ca6f01be1c75225729246d1e22b6..36f8777226d362c36752938bca6d8663cd9d9045 100644 (file)
@@ -123,7 +123,7 @@ def SAMBA_LIBRARY(bld, libname, source,
     source = bld.EXPAND_VARIABLES(source, vars=vars)
 
     # remember empty libraries, so we can strip the dependencies
-    if (source == '') or (source == []):
+    if ((source == '') or (source == [])) and deps == '' and public_deps == '':
         SET_TARGET_TYPE(bld, libname, 'EMPTY')
         return
 
@@ -329,7 +329,7 @@ def SAMBA_MODULE(bld, modname, source,
     source = unique_list(TO_LIST(source))
 
     # remember empty modules, so we can strip the dependencies
-    if (source == '') or (source == []):
+    if ((source == '') or (source == [])) and deps == '' and public_deps == '':
         SET_TARGET_TYPE(bld, modname, 'EMPTY')
         return
 
@@ -389,7 +389,7 @@ def SAMBA_SUBSYSTEM(bld, modname, source,
         return
 
     # remember empty subsystems, so we can strip the dependencies
-    if (source == '') or (source == []):
+    if ((source == '') or (source == [])) and deps == '' and public_deps == '':
         SET_TARGET_TYPE(bld, modname, 'EMPTY')
         return