Fix this compile error:
[753/756] Processing source3/librpc/idl/libnet_join.idl
source3/librpc/idl/ads.idl:2:10: fatal error: config.h: No such file or directory
#include "config.h"
^~~~~~~~~~
compilation terminated.
source3/librpc/idl/libnet_join.idl:3: error: Failed to parse source3/librpc/idl/ads.idl
source3/librpc/idl/libnet_join.idl:50: warning: [out] argument `account_name' not a pointer
libnet_join.idl imports ads.idl which includes config.h. The build rule
for ads.idl provides the include directory for config.h, so add a new
rule to also specify that include directory for libnet_join.idl.
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
bld.SAMBA_PIDL_LIST('PIDL',
'''
libnetapi.idl
- libnet_join.idl
rpc_host.idl
''',
options='--includedir=%s --header --ndr-parser' % topinclude,
absinclude=os.path.join(bld.srcnode.abspath(), 'bin/default/include')
+bld.SAMBA_PIDL_LIST('PIDL',
+ '''
+ libnet_join.idl
+ ''',
+ options='--includedir=%s --includedir=%s --header --ndr-parser' % (topinclude, absinclude),
+ output_dir='../gen_ndr',
+ generate_tables=False)
+
bld.SAMBA_PIDL_LIST('PIDL',
'''
ads.idl