summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_pidl.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-20 16:27:48 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:47 +1000
commit8f1b809d2ccb083cb84532e98b04a12fb1039e22 (patch)
treee2e453049331e712e3312bc1c30e33c6ae683c54 /buildtools/wafsamba/samba_pidl.py
parent9cb39847c068305d544bcacd6887c57412e16586 (diff)
downloadsamba-8f1b809d2ccb083cb84532e98b04a12fb1039e22.tar.gz
samba-8f1b809d2ccb083cb84532e98b04a12fb1039e22.tar.bz2
samba-8f1b809d2ccb083cb84532e98b04a12fb1039e22.zip
build: nearly there on samba4 build
Diffstat (limited to 'buildtools/wafsamba/samba_pidl.py')
-rw-r--r--buildtools/wafsamba/samba_pidl.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/buildtools/wafsamba/samba_pidl.py b/buildtools/wafsamba/samba_pidl.py
index 938a0dc839..d37e7f1d23 100644
--- a/buildtools/wafsamba/samba_pidl.py
+++ b/buildtools/wafsamba/samba_pidl.py
@@ -30,11 +30,11 @@ def SAMBA_PIDL(bld, pname, source, options='', output_dir='.'):
table_header_idx = None
out_files = []
- options_list = to_list(options)
+ options_list = TO_LIST(options)
for o in options_list:
if o in options_map:
- ofiles = to_list(options_map[o])
+ ofiles = TO_LIST(options_map[o])
for f in ofiles:
out_files.append(os.path.join(output_dir, f % bname))
if f == 'ndr_%s.h':
@@ -53,7 +53,7 @@ def SAMBA_PIDL(bld, pname, source, options='', output_dir='.'):
name = name)
t.env.PIDL = "../pidl/pidl"
- t.env.OPTIONS = to_list(options)
+ t.env.OPTIONS = TO_LIST(options)
t.env.OUTPUTDIR = 'bin/' + bld.BUILD_PATH(output_dir)
@@ -67,7 +67,7 @@ Build.BuildContext.SAMBA_PIDL = SAMBA_PIDL
def SAMBA_PIDL_LIST(bld, name, source, options='', output_dir='.'):
'''A wrapper for building a set of IDL files'''
- for p in to_list(source):
+ for p in TO_LIST(source):
bld.SAMBA_PIDL(name, p, options=options, output_dir=output_dir)
Build.BuildContext.SAMBA_PIDL_LIST = SAMBA_PIDL_LIST
@@ -91,13 +91,12 @@ def SAMBA_PIDL_TABLES(bld, name, target):
headers = bld.env.PIDL_HEADERS
t = bld(
features = 'collect',
- rule = '${SRC} --output ${TGT} > ${TGT}',
+ rule = '${SRC} --output ${TGT} | sed "s|default/||" > ${TGT}',
ext_out = '.c',
before = 'cc',
shell = True,
source = '../../librpc/tables.pl',
target = target,
name = name)
- print name
Build.BuildContext.SAMBA_PIDL_TABLES = SAMBA_PIDL_TABLES