s3-build: allow waf build of s3 IDL files from any top directory
authorAndrew Tridgell <tridge@samba.org>
Wed, 9 Feb 2011 06:06:40 +0000 (17:06 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 18 Feb 2011 04:09:46 +0000 (15:09 +1100)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source3/librpc/idl/wscript_build

index e24475b5431a4878333afa44ecaeab5f0150f7b0..5a8dc31980b679fa3a751280382cde65c6e47f3a 100644 (file)
@@ -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')
-