From 41b1f9794335ed2308d366a323bc44d1d7b23329 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 9 Feb 2011 17:06:40 +1100 Subject: s3-build: allow waf build of s3 IDL files from any top directory Pair-Programmed-With: Andrew Bartlett --- source3/librpc/idl/wscript_build | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source3/librpc/idl/wscript_build') diff --git a/source3/librpc/idl/wscript_build b/source3/librpc/idl/wscript_build index e24475b543..5a8dc31980 100644 --- a/source3/librpc/idl/wscript_build +++ b/source3/librpc/idl/wscript_build @@ -1,13 +1,16 @@ #!/usr/bin/env python +import os + +topinclude=os.path.join(bld.srcnode.abspath(), 'librpc/idl') + bld.SAMBA_PIDL_LIST('PIDL', '''messaging.idl libnetapi.idl notify.idl perfcount.idl secrets.idl libnet_join.idl server_id.idl''', - options='--includedir=../librpc/idl --header --ndr-parser', + options='--includedir=%s --header --ndr-parser' % topinclude, output_dir='../gen_ndr') bld.SAMBA_PIDL_LIST('PIDL', 'wbint.idl', - options='--includedir=../librpc/idl --header --ndr-parser --samba3-ndr-server --client', + options='--includedir=%s --header --ndr-parser --samba3-ndr-server --client' % topinclude, output_dir='../gen_ndr') - -- cgit