summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-09-04 03:42:37 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-09-04 15:00:32 +0200
commit84c1874677b27e76f2acb3640b867aaebbb9b343 (patch)
tree37761797600eb255254680a7109447ca5bcf7e41 /buildtools
parent1ba533f4cb7a7274a3c49dd69a30e20f579738a2 (diff)
downloadsamba-84c1874677b27e76f2acb3640b867aaebbb9b343.tar.gz
samba-84c1874677b27e76f2acb3640b867aaebbb9b343.tar.bz2
samba-84c1874677b27e76f2acb3640b867aaebbb9b343.zip
waf: Support aliases in SAMBA_MODULE.
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/wafsamba.py56
1 files changed, 29 insertions, 27 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index 43c5628139..80a6f71417 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -349,33 +349,35 @@ def SAMBA_MODULE(bld, modname, source,
SET_TARGET_TYPE(bld, modname, 'DISABLED')
return
- obj_target = modname + '.objlist'
-
- realname = modname
- if subsystem is not None:
- deps += ' ' + subsystem
- while realname.startswith("lib"+subsystem+"_"):
- realname = realname[len("lib"+subsystem+"_"):]
- while realname.startswith(subsystem+"_"):
- realname = realname[len(subsystem+"_"):]
-
- realname = bld.env.shlib_PATTERN % realname
- while realname.startswith("lib"):
- realname = realname[len("lib"):]
-
- build_link_name = "modules/%s/%s" % (subsystem, realname)
-
- bld.SAMBA_LIBRARY(modname,
- source,
- deps=deps,
- cflags=cflags,
- realname = realname,
- autoproto = autoproto,
- local_include=local_include,
- vars=vars,
- link_name=build_link_name,
- install_path="${MODULESDIR}/%s" % subsystem
- )
+ modnames = [modname] + TO_LIST(aliases)
+ for modname in modnames:
+ obj_target = modname + '.objlist'
+
+ realname = modname
+ if subsystem is not None:
+ deps += ' ' + subsystem
+ while realname.startswith("lib"+subsystem+"_"):
+ realname = realname[len("lib"+subsystem+"_"):]
+ while realname.startswith(subsystem+"_"):
+ realname = realname[len(subsystem+"_"):]
+
+ realname = bld.env.shlib_PATTERN % realname
+ while realname.startswith("lib"):
+ realname = realname[len("lib"):]
+
+ build_link_name = "modules/%s/%s" % (subsystem, realname)
+
+ bld.SAMBA_LIBRARY(modname,
+ source,
+ deps=deps,
+ cflags=cflags,
+ realname = realname,
+ autoproto = autoproto,
+ local_include=local_include,
+ vars=vars,
+ link_name=build_link_name,
+ install_path="${MODULESDIR}/%s" % subsystem
+ )
Build.BuildContext.SAMBA_MODULE = SAMBA_MODULE