s4-idl: make the source4 idl build independent of build directory
[samba.git] / source4 / librpc / idl / wscript_build
index 4ad30385f5543db792c5d42fe1a652a2b3b353f9..aae98a26331178406df41f0545af114ece0518c1 100644 (file)
@@ -1,8 +1,12 @@
 #!/usr/bin/env python
 
+import os
+
+topinclude=os.path.join(bld.srcnode.abspath(), 'librpc/idl')
+
 bld.SAMBA_PIDL_LIST('PIDL',
                     source='''irpc.idl nfs4acl.idl s4_notify.idl ntp_signd.idl
                               opendb.idl sasl_helpers.idl server_id.idl winbind.idl
                               winsif.idl winsrepl.idl winstation.idl''',
-                    options="--includedir=../librpc/idl --header --ndr-parser --client --python --server",
+                    options="--includedir=%s --header --ndr-parser --client --python --server" % topinclude,
                     output_dir='../gen_ndr')