mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
r10442: Build librpc/libndr_misc.a from librpc/idl/misc.idl. Doesn't quite work
yet as scons somehow thinks it needs to put a directory called ndr_idl
in the command line.
(This used to be commit e4a54a4c49
)
This commit is contained in:
parent
7cf1f5768c
commit
c715f7256a
@ -12,8 +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]))
|
||||
result = ['gen_ndr/%s.c' % base, 'gen_ndr/%s.h' % base]
|
||||
return result
|
||||
result = ['gen_ndr/ndr_%s.c' % base, 'gen_ndr/ndr_%s.h' % base]
|
||||
return result, source
|
||||
|
||||
pidl_builder = SCons.Builder.Builder(action='$PIDLCOM',
|
||||
emitter = idl_emitter,
|
||||
@ -23,7 +23,7 @@ pidl_builder = SCons.Builder.Builder(action='$PIDLCOM',
|
||||
|
||||
def generate(env):
|
||||
env['PIDL'] = env.Detect('pidl') or './pidl/pidl'
|
||||
env['PIDLFLAGS'] = []
|
||||
env['PIDLFLAGS'] = ['--outputdir', 'librpc/gen_ndr', '--ndr-header', '--ndr-parser']
|
||||
env['PIDLCOM'] = '$PIDL $PIDLFLAGS -- $SOURCE'
|
||||
env['BUILDERS']['NdrMarshaller'] = pidl_builder
|
||||
|
||||
|
@ -11,6 +11,8 @@ hostenv.StaticLibrary('rpc_base',
|
||||
'rpc/dcerpc_util.c','rpc/dcerpc_error.c','rpc/dcerpc_smb.c',
|
||||
'rpc/dcerpc_sock.c'])
|
||||
|
||||
ndr_misc = hostenv.NdrMarshaller('idl/misc.idl')
|
||||
hostenv.StaticLibrary('ndr_misc', ndr_misc)
|
||||
|
||||
'''
|
||||
[SUBSYSTEM::NDR_AUDIOSRV]
|
||||
|
Loading…
Reference in New Issue
Block a user