1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

s3-waf: use new variable expansion feature

This commit is contained in:
Andrew Tridgell 2010-03-24 16:25:29 -06:00
parent 239cdb53f4
commit 8f5551c4b3

View 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')