summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-09-23 07:40:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:46 -0500
commitdc56baecfb6ae3d3aa74085b12571356c7e1d2bf (patch)
tree65d1ace27f8d92791917283edc0c617dd5a1b0d2 /source4/build
parent7906d768cc05638515ff8b5e34827552425bd442 (diff)
downloadsamba-dc56baecfb6ae3d3aa74085b12571356c7e1d2bf.tar.gz
samba-dc56baecfb6ae3d3aa74085b12571356c7e1d2bf.tar.bz2
samba-dc56baecfb6ae3d3aa74085b12571356c7e1d2bf.zip
r10445: Add --header to pidl flags.
(This used to be commit 435c5bce00c069751aa59a09d7cae9c1cfbd724b)
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/scons/pidl.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/build/scons/pidl.py b/source4/build/scons/pidl.py
index eb9921b930..2f09c9861a 100644
--- a/source4/build/scons/pidl.py
+++ b/source4/build/scons/pidl.py
@@ -12,7 +12,8 @@ idl_scanner = SCons.Scanner.ClassicCPP("PIDLScan", '.idl', 'CPPPATH', r'depends\
def idl_emitter(target, source, env):
base, ext = SCons.Util.splitext(str(source[0]).split('/')[-1])
- result = ['gen_ndr/ndr_%s.c' % base, 'gen_ndr/ndr_%s.h' % base]
+ result = ['gen_ndr/ndr_%s.c' % base, 'gen_ndr/ndr_%s.h' % base,
+ 'gen_ndr/%s.h' % base]
return result, source
pidl_builder = SCons.Builder.Builder(action='$PIDLCOM',
@@ -23,7 +24,7 @@ pidl_builder = SCons.Builder.Builder(action='$PIDLCOM',
def generate(env):
env['PIDL'] = env.Detect('pidl') or './pidl/pidl'
- env['PIDLFLAGS'] = ['--outputdir', 'librpc/gen_ndr', '--ndr-header', '--ndr-parser']
+ env['PIDLFLAGS'] = ['--outputdir', 'librpc/gen_ndr', '--ndr-header', '--ndr-parser', '--header']
env['PIDLCOM'] = '$PIDL $PIDLFLAGS -- $SOURCE'
env['BUILDERS']['NdrMarshaller'] = pidl_builder