summaryrefslogtreecommitdiff
path: root/lib/ccan/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ccan/wscript')
-rw-r--r--lib/ccan/wscript10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/ccan/wscript b/lib/ccan/wscript
index c9bb49b25f4..be5eab23dc8 100644
--- a/lib/ccan/wscript
+++ b/lib/ccan/wscript
@@ -125,8 +125,11 @@ def ccan_module(bld, name, deps=''):
bld.SAMBA_SUBSYSTEM('ccan-%s' % name,
source=bld.path.ant_glob('%s/*.c' % name),
deps=deps)
+ bld.env.CCAN_MODS += 'ccan-%s ' % name
def build(bld):
+ bld.env.CCAN_MODS = ""
+
# These have actual C files.
ccan_module(bld, 'hash', 'ccan-build_assert')
ccan_module(bld, 'ilog', 'ccan-compiler');
@@ -159,3 +162,10 @@ def build(bld):
ccan-err ccan-hash ccan-htable ccan-list
ccan-read_write_all ccan-str ccan-time execinfo
''')
+
+ # This is the complete CCAN collection as one group.
+ bld.SAMBA_LIBRARY('ccan',
+ source='',
+ deps=bld.env.CCAN_MODS,
+ private_library=True,
+ grouping_library=True)