2010-03-28 01:48:49 +03:00
#!/usr/bin/env python
2010-04-04 07:08:05 +04:00
bld.RECURSE('../../librpc/idl')
2011-01-28 16:02:55 +03:00
bld.RECURSE('../../librpc/tools')
2010-04-04 07:08:05 +04:00
bld.RECURSE('idl')
2010-03-17 13:46:38 +03:00
2010-02-26 14:49:26 +03:00
bld.SAMBA_SUBSYSTEM('NDR_WINSTATION',
2010-03-17 13:46:38 +03:00
source='gen_ndr/ndr_winstation.c',
2010-10-24 21:42:58 +04:00
public_deps='ndr'
2010-02-26 14:49:26 +03:00
)
bld.SAMBA_SUBSYSTEM('NDR_IRPC',
2010-03-17 13:46:38 +03:00
source='gen_ndr/ndr_irpc.c',
2011-11-02 21:05:59 +04:00
public_deps='ndr NDR_SECURITY ndr_nbt'
2010-02-26 14:49:26 +03:00
)
bld.SAMBA_SUBSYSTEM('NDR_SASL_HELPERS',
2010-03-17 13:46:38 +03:00
source='gen_ndr/ndr_sasl_helpers.c',
2010-10-24 21:42:58 +04:00
public_deps='ndr'
2010-02-26 14:49:26 +03:00
)
bld.SAMBA_SUBSYSTEM('NDR_WINSIF',
2010-03-17 13:46:38 +03:00
source='gen_ndr/ndr_winsif.c',
2010-10-24 21:42:58 +04:00
public_deps='ndr'
2010-02-26 14:49:26 +03:00
)
bld.SAMBA_SUBSYSTEM('NDR_OPENDB',
2010-03-17 13:46:38 +03:00
source='gen_ndr/ndr_opendb.c',
2010-10-24 21:42:58 +04:00
public_deps='ndr'
2010-02-26 14:49:26 +03:00
)
bld.SAMBA_SUBSYSTEM('NDR_NTP_SIGND',
2010-03-17 13:46:38 +03:00
source='gen_ndr/ndr_ntp_signd.c',
2010-10-24 21:42:58 +04:00
public_deps='ndr'
2010-02-26 14:49:26 +03:00
)
bld.SAMBA_SUBSYSTEM('NDR_WINSREPL',
2010-03-17 13:46:38 +03:00
source='gen_ndr/ndr_winsrepl.c',
2011-11-02 21:05:59 +04:00
public_deps='ndr ndr_nbt'
2010-02-26 14:49:26 +03:00
)
2010-10-21 04:29:46 +04:00
# create a grouping library to consolidate our samba4 specific NDR code
2010-10-24 22:26:09 +04:00
bld.SAMBA_LIBRARY('ndr-samba4',
2010-10-24 03:12:14 +04:00
source=[],
2011-05-02 05:10:12 +04:00
deps='NDR_WINBIND NDR_IRPC NDR_NFS4ACL NDR_OPENDB ndr-table',
2010-10-24 03:12:14 +04:00
private_library=True,
grouping_library=True
)
2010-10-21 04:29:46 +04:00
2010-10-21 13:21:10 +04:00
# a grouping library for RPC_NDR subsystems that may be used by more than one target
2010-10-24 22:26:09 +04:00
bld.SAMBA_LIBRARY('dcerpc-samba4',
2010-10-24 03:12:14 +04:00
source=[],
deps='RPC_NDR_WINBIND',
private_library=True,
grouping_library=True
)
2010-10-21 13:21:10 +04:00
2010-02-26 14:49:26 +03:00
2010-03-17 13:46:38 +03:00
bld.SAMBA_PIDL_TABLES('GEN_NDR_TABLES', 'gen_ndr/tables.c')
2010-10-30 07:24:04 +04:00
bld.SAMBA_SUBSYSTEM('ndr-table',
2010-03-17 13:46:38 +03:00
source='../../librpc/ndr/ndr_table.c gen_ndr/tables.c',
2010-10-24 21:49:13 +04:00
public_deps='''ndr-standard NDR_AUDIOSRV NDR_DSBACKUP NDR_EFS
2010-10-22 11:08:20 +04:00
NDR_DRSUAPI NDR_POLICYAGENT NDR_UNIXINFO NDR_SPOOLSS NDR_EPMAPPER
NDR_DBGIDL NDR_DSSETUP NDR_MSGSVC NDR_WINSIF NDR_MGMT
2010-11-20 18:06:12 +03:00
NDR_OXIDRESOLVER NDR_REMACT NDR_WZCSVC
2011-02-14 13:21:21 +03:00
NDR_BROWSER NDR_W32TIME NDR_SCERPC NDR_TRKWKS NDR_KEYSVC ndr-krb5pac
2011-11-02 21:05:59 +04:00
NDR_XATTR NDR_SCHANNEL NDR_ROT NDR_DRSBLOBS ndr_nbt NDR_WINSREPL
2010-10-22 11:08:20 +04:00
NDR_SECURITY NDR_DNSSERVER NDR_WINSTATION NDR_IRPC NDR_OPENDB
NDR_SASL_HELPERS NDR_NOTIFY NDR_WINBIND NDR_FRSRPC NDR_FRSAPI
NDR_FRSTRANS NDR_NFS4ACL NDR_NTP_SIGND NDR_DCOM NDR_WMI
NDR_NAMED_PIPE_AUTH NDR_NTLMSSP NDR_DFSBLOBS NDR_DNSP
2012-07-18 20:02:06 +04:00
NDR_NTPRINTING NDR_DNS NDR_BACKUPKEY NDR_PREG NDR_BKUPBLOBS NDR_FSCC
2013-01-15 18:20:32 +04:00
NDR_FRSBLOBS NDR_CLUSAPI NDR_WINSPOOL''',
2010-03-17 13:46:38 +03:00
depends_on='GEN_NDR_TABLES'
2010-10-22 11:08:20 +04:00
)
2010-02-26 14:49:26 +03:00
bld.SAMBA_SUBSYSTEM('RPC_NDR_IRPC',
2010-03-17 13:46:38 +03:00
source='gen_ndr/ndr_irpc_c.c',
2010-02-26 14:49:26 +03:00
public_deps='dcerpc NDR_IRPC'
)
2010-10-24 22:26:09 +04:00
bld.SAMBA_LIBRARY('dcerpc-samr',
2011-02-22 11:37:28 +03:00
source='',
2010-10-24 06:27:03 +04:00
pc_files='dcerpc_samr.pc',
2010-02-26 14:49:26 +03:00
vnum='0.0.1',
2011-02-22 11:37:28 +03:00
public_deps='dcerpc ndr-standard RPC_NDR_SAMR',
2010-03-27 05:56:05 +03:00
public_headers='../../librpc/gen_ndr/ndr_samr_c.h',
2010-10-24 06:27:03 +04:00
header_path='gen_ndr'
)
2010-02-26 14:49:26 +03:00
bld.SAMBA_SUBSYSTEM('RPC_NDR_WINSIF',
2010-03-17 13:46:38 +03:00
source='gen_ndr/ndr_winsif_c.c',
2010-02-26 14:49:26 +03:00
public_deps='dcerpc NDR_WINSIF'
)
bld.SAMBA_LIBRARY('dcerpc',
2010-08-05 20:14:04 +04:00
source='''rpc/dcerpc.c rpc/dcerpc_auth.c rpc/dcerpc_schannel.c
2013-09-19 20:53:34 +04:00
rpc/dcerpc_util.c rpc/dcerpc_smb.c rpc/dcerpc_sock.c
2014-09-16 18:41:27 +04:00
rpc/dcerpc_roh_channel_in.c rpc/dcerpc_roh_channel_out.c rpc/dcerpc_roh.c
2011-02-24 03:55:45 +03:00
rpc/dcerpc_connect.c rpc/dcerpc_secondary.c''',
2010-03-27 10:14:33 +03:00
pc_files='dcerpc.pc',
2014-09-16 18:41:27 +04:00
deps='samba_socket LIBCLI_RESOLVE LIBCLI_SMB LIBCLI_SMB2 ndr NDR_DCERPC RPC_NDR_EPMAPPER NDR_SCHANNEL RPC_NDR_NETLOGON RPC_NDR_MGMT gensec LIBCLI_AUTH smbclient-raw LP_RESOLVE tevent-util dcerpc-binding param_options http',
2010-02-26 14:49:26 +03:00
autoproto='rpc/dcerpc_proto.h',
2011-08-18 22:43:00 +04:00
public_deps='samba-credentials tevent talloc',
2016-01-28 18:21:21 +03:00
public_headers='''rpc/dcerpc.h''',
2011-02-20 13:23:48 +03:00
# It's very important to keep this form of construction
# it force the sambawaf extension to put everything that match the first element
# (*gen_ndr*) into the dir named by the second element (gen_ndr).
# If we just put header_path = 'gen_ndr' then all the public_headers will go
# in 'gen_ndr' and for dcerpc.h (at least) it will cause a problem as
# we have already a dcerpc.h installed by librpc/wscript_build
# and one will overright the other which is not what we expect.
header_path=[ ('*gen_ndr*', 'gen_ndr') ],
2010-02-26 14:49:26 +03:00
vnum='0.0.1'
)
2010-08-27 04:17:26 +04:00
bld.SAMBA_SUBSYSTEM('pyrpc_util',
2010-10-24 21:42:58 +04:00
source='rpc/pyrpc_util.c',
2012-06-07 08:19:43 +04:00
public_deps='pytalloc-util pyparam_util dcerpc MESSAGING',
2010-10-24 21:42:58 +04:00
pyext=True,
)
2010-08-27 04:17:26 +04:00
2010-02-26 14:49:26 +03:00
bld.SAMBA_PYTHON('python_dcerpc',
2010-03-17 13:46:38 +03:00
source='rpc/pyrpc.c',
2011-12-16 13:55:46 +04:00
public_deps='LIBCLI_SMB samba-util samba-hostconfig dcerpc-samr RPC_NDR_LSA DYNCONFIG pyrpc_util gensec',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/base.so'
)
2010-11-20 18:18:10 +03:00
bld.SAMBA_PYTHON('python_srvsvc',
source='../../librpc/gen_ndr/py_srvsvc.c',
deps='RPC_NDR_SRVSVC pytalloc-util pyrpc_util',
realname='samba/dcerpc/srvsvc.so'
)
2010-02-26 14:49:26 +03:00
bld.SAMBA_PYTHON('python_echo',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/py_echo.c',
2010-10-24 23:53:59 +04:00
deps='RPC_NDR_ECHO pytalloc-util pyrpc_util',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/echo.so'
)
2011-09-27 09:25:51 +04:00
bld.SAMBA_PYTHON('python_dns',
source='../../librpc/gen_ndr/py_dns.c',
2015-08-07 12:36:47 +03:00
deps='NDR_DNS pytalloc-util pyrpc_util',
2011-09-27 09:25:51 +04:00
realname='samba/dcerpc/dns.so'
)
2011-04-05 10:15:27 +04:00
bld.SAMBA_PYTHON('python_auth',
source='../../librpc/gen_ndr/py_auth.c',
deps='NDR_AUTH pytalloc-util pyrpc_util',
realname='samba/dcerpc/auth.so'
)
bld.SAMBA_PYTHON('python_krb5pac',
source='../../librpc/gen_ndr/py_krb5pac.c',
deps='ndr-krb5pac pytalloc-util pyrpc_util',
realname='samba/dcerpc/krb5pac.so'
)
2010-02-26 14:49:26 +03:00
bld.SAMBA_PYTHON('python_winreg',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/py_winreg.c',
2010-10-24 23:53:59 +04:00
deps='RPC_NDR_WINREG pytalloc-util pyrpc_util',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/winreg.so'
)
bld.SAMBA_PYTHON('python_dcerpc_misc',
2010-03-17 12:12:16 +03:00
source='../../librpc/gen_ndr/py_misc.c',
2011-02-14 13:21:21 +03:00
deps='pytalloc-util pyrpc_util ndr-krb5pac',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/misc.so'
)
bld.SAMBA_PYTHON('python_initshutdown',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/py_initshutdown.c',
2010-10-24 23:53:59 +04:00
deps='RPC_NDR_INITSHUTDOWN pytalloc-util pyrpc_util',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/initshutdown.so'
)
bld.SAMBA_PYTHON('python_epmapper',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/py_epmapper.c',
2010-10-24 23:53:59 +04:00
deps='dcerpc pytalloc-util pyrpc_util',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/epmapper.so'
)
bld.SAMBA_PYTHON('python_mgmt',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/py_mgmt.c',
2010-10-24 23:53:59 +04:00
deps='pytalloc-util dcerpc pyrpc_util',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/mgmt.so'
)
bld.SAMBA_PYTHON('python_atsvc',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/py_atsvc.c',
2016-01-28 18:21:21 +03:00
deps='RPC_NDR_ATSVC pytalloc-util pyrpc_util',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/atsvc.so'
)
bld.SAMBA_PYTHON('python_dcerpc_nbt',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/py_nbt.c',
2011-11-02 21:05:59 +04:00
deps='ndr_nbt RPC_NDR_NBT pytalloc-util pyrpc_util',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/nbt.so'
)
bld.SAMBA_PYTHON('python_samr',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/py_samr.c',
2010-10-24 23:53:59 +04:00
deps='dcerpc-samr pytalloc-util pyrpc_util',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/samr.so'
)
bld.SAMBA_PYTHON('python_svcctl',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/py_svcctl.c',
2010-10-24 23:53:59 +04:00
deps='RPC_NDR_SVCCTL pytalloc-util pyrpc_util',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/svcctl.so'
)
bld.SAMBA_PYTHON('python_lsa',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/py_lsa.c',
2010-10-24 23:53:59 +04:00
deps='RPC_NDR_LSA pytalloc-util pyrpc_util',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/lsa.so'
)
bld.SAMBA_PYTHON('python_wkssvc',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/py_wkssvc.c',
2010-10-24 23:53:59 +04:00
deps='RPC_NDR_WKSSVC pytalloc-util pyrpc_util',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/wkssvc.so'
)
bld.SAMBA_PYTHON('python_dfs',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/py_dfs.c',
2010-10-24 23:53:59 +04:00
deps='RPC_NDR_DFS pytalloc-util pyrpc_util',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/dfs.so'
)
2014-03-27 16:08:22 +04:00
bld.SAMBA_PYTHON('python_dcerpc_dcerpc',
source='../../librpc/gen_ndr/py_dcerpc.c',
deps='NDR_DCERPC pytalloc-util pyrpc_util',
realname='samba/dcerpc/dcerpc.so'
)
2010-02-26 14:49:26 +03:00
bld.SAMBA_PYTHON('python_unixinfo',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/py_unixinfo.c',
2010-10-24 23:53:59 +04:00
deps='RPC_NDR_UNIXINFO pytalloc-util pyrpc_util',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/unixinfo.so'
)
bld.SAMBA_PYTHON('python_irpc',
2010-03-17 13:46:38 +03:00
source='gen_ndr/py_irpc.c',
2010-10-24 23:53:59 +04:00
deps='RPC_NDR_IRPC pytalloc-util pyrpc_util',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/irpc.so'
)
2012-10-29 08:33:59 +04:00
bld.SAMBA_PYTHON('python_server_id',
source='../../librpc/gen_ndr/py_server_id.c',
deps='RPC_NDR_SERVER_ID pytalloc-util pyrpc_util',
realname='samba/dcerpc/server_id.so'
)
2010-09-17 11:03:54 +04:00
bld.SAMBA_PYTHON('python_winbind',
2014-05-08 04:17:32 +04:00
source='../../librpc/gen_ndr/py_winbind.c',
2010-10-24 23:53:59 +04:00
deps='RPC_NDR_WINBIND pytalloc-util pyrpc_util python_netlogon',
2010-09-17 11:03:54 +04:00
realname='samba/dcerpc/winbind.so'
)
bld.SAMBA_PYTHON('python_idmap',
source='../../librpc/gen_ndr/py_idmap.c',
2010-10-24 23:53:59 +04:00
deps='NDR_IDMAP pytalloc-util pyrpc_util',
2010-09-17 11:03:54 +04:00
realname='samba/dcerpc/idmap.so'
)
2010-02-26 14:49:26 +03:00
bld.SAMBA_PYTHON('python_drsuapi',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/py_drsuapi.c',
2010-10-24 23:53:59 +04:00
deps='RPC_NDR_DRSUAPI pytalloc-util pyrpc_util',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/drsuapi.so'
)
bld.SAMBA_PYTHON('python_dcerpc_security',
2010-03-17 12:12:16 +03:00
source='../../librpc/gen_ndr/py_security.c',
2010-10-24 23:53:59 +04:00
deps='pytalloc-util pyrpc_util NDR_SECURITY',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/security.so'
)
2010-04-13 01:00:08 +04:00
bld.SAMBA_PYTHON('python_dcerpc_drsblobs',
2010-09-03 04:39:38 +04:00
source='../../librpc/gen_ndr/py_drsblobs.c',
2010-10-24 23:53:59 +04:00
deps='pytalloc-util pyrpc_util NDR_SECURITY RPC_NDR_DRSBLOBS',
2010-04-13 01:00:08 +04:00
realname='samba/dcerpc/drsblobs.so'
)
2011-02-12 23:18:29 +03:00
bld.SAMBA_PYTHON('python_dcerpc_dnsp',
source='../../librpc/gen_ndr/py_dnsp.c',
2015-08-07 12:36:47 +03:00
deps='pytalloc-util pyrpc_util NDR_SECURITY NDR_DNSP',
2011-02-12 23:18:29 +03:00
realname='samba/dcerpc/dnsp.so'
)
2010-02-26 14:49:26 +03:00
bld.SAMBA_PYTHON('python_dcerpc_xattr',
2010-03-17 12:12:16 +03:00
source='../../librpc/gen_ndr/py_xattr.c',
2010-10-24 23:53:59 +04:00
deps='pytalloc-util pyrpc_util RPC_NDR_XATTR',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/xattr.so'
)
2012-08-21 17:21:41 +04:00
bld.SAMBA_PYTHON('python_dcerpc_idmap',
source='../../librpc/gen_ndr/py_idmap.c',
deps='pytalloc-util pyrpc_util RPC_NDR_XATTR',
realname='samba/dcerpc/idmap.so'
)
2010-08-22 08:50:46 +04:00
bld.SAMBA_PYTHON('python_netlogon',
source='../../librpc/gen_ndr/py_netlogon.c',
2010-10-24 23:53:59 +04:00
deps='RPC_NDR_NETLOGON pytalloc-util pyrpc_util',
2010-08-22 08:50:46 +04:00
realname='samba/dcerpc/netlogon.so'
)
2011-09-26 03:50:11 +04:00
bld.SAMBA_PYTHON('python_dnsserver',
source='../../librpc/gen_ndr/py_dnsserver.c',
deps='RPC_NDR_DNSSERVER pytalloc-util pyrpc_util',
realname='samba/dcerpc/dnsserver.so'
)
2012-08-21 16:40:12 +04:00
bld.SAMBA_PYTHON('python_dcerpc_smb_acl',
source='../../librpc/gen_ndr/py_smb_acl.c',
deps='pytalloc-util pyrpc_util',
realname='samba/dcerpc/smb_acl.so'
)
2010-03-17 12:12:16 +03:00
bld.SAMBA_SCRIPT('python_dcerpc_init',
pattern='rpc/dcerpc.py',
installdir='python/samba/dcerpc',
installname='__init__.py')
2010-03-27 07:12:56 +03:00
2011-02-01 08:36:10 +03:00
bld.INSTALL_FILES('${PYTHONARCHDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname='__init__.py')