s3-waf: use new variable expansion feature
authorAndrew Tridgell <tridge@samba.org>
Wed, 24 Mar 2010 22:25:29 +0000 (16:25 -0600)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:06 +0000 (20:27 +1000)
source3/wscript_build

index a851c78eaf0cad31c4e9ee7bdb0674b85f6eaf7c..8145f77df40b241a2a06f77c4ba081cb408754d6 100644 (file)
@@ -575,15 +575,6 @@ PRINTBACKEND_SRC = 'printing/printing.c printing/nt_printing.c ${PRINTBASE_SRC}'
 SMBD_SRC = '''${SMBD_SRC_BASE} ${SMBD_SRC_MAIN}'''
 
 
-def EXPAND_VARIABLES(varstr, envlist):
-    import Environment
-    env = Environment.Environment()
-    for v in envlist:
-        env[v] = eval(v)
-    return SUBST_VARS_RECURSIVE(varstr, env)
-
-src =EXPAND_VARIABLES(SMBD_SRC, dir())
-
 bld.env.AWK = 'gawk'
 
 bld.SAMBA_GENERATOR('build_options',
@@ -598,8 +589,9 @@ print "SBINDIR=%s" % bld.env.SBINDIR
 bld.BUILD_SUBDIR('build')
 
 bld.SAMBA_BINARY('smbd/smbd',
-                 source=src,
-                 deps='tdb DYNCONFIG')
+                 source=SMBD_SRC,
+                 deps='tdb DYNCONFIG',
+                 vars=locals())
 
 bld.BUILD_SUBDIR('../lib/socket_wrapper')
 bld.BUILD_SUBDIR('../lib/talloc')