2010-03-28 01:48:49 +03:00
#!/usr/bin/env python
2010-04-04 07:08:05 +04:00
bld.RECURSE('../../librpc/idl')
bld.RECURSE('idl')
2010-03-17 13:46:38 +03:00
2010-02-26 14:49:26 +03:00
bld.SAMBA_LIBRARY('LIBNDR',
2010-05-20 15:57:22 +04:00
source='../../librpc/ndr/ndr_string.c ../../librpc/ndr/ndr_basic.c ../../librpc/ndr/uuid.c ../../librpc/ndr/ndr.c ../../librpc/ndr/ndr_misc.c ../../librpc/gen_ndr/ndr_misc.c',
2010-03-27 10:14:33 +03:00
pc_files='../../librpc/ndr.pc',
2010-10-24 03:05:50 +04:00
public_deps='libsamba-errors talloc libsamba-util CHARSET',
2010-03-27 05:56:05 +03:00
public_headers='../../librpc/gen_ndr/misc.h ../../librpc/gen_ndr/ndr_misc.h ../../librpc/ndr/libndr.h:ndr.h',
2010-10-11 01:00:32 +04:00
header_path= [ ( '*gen_ndr*', 'gen_ndr' ) ],
depends_on='PIDL_MISC',
2010-02-26 14:49:26 +03:00
vnum='0.0.1'
)
bld.SAMBA_BINARY('ndrdump',
2010-03-17 13:46:38 +03:00
source='../../librpc/tools/ndrdump.c',
2010-02-26 14:49:26 +03:00
manpages='../../librpc/tools/ndrdump.1',
2010-10-24 03:05:50 +04:00
deps='libsamba-hostconfig libsamba-util popt POPT_SAMBA ndr_table libsamba-errors'
2010-02-26 14:49:26 +03:00
)
bld.SAMBA_SUBSYSTEM('NDR_SECURITY',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/ndr_security.c ../../librpc/ndr/ndr_sec_helper.c gen_ndr/ndr_server_id.c',
2010-10-21 10:36:15 +04:00
public_deps='LIBNDR',
2010-06-13 21:55:53 +04:00
public_headers='../../librpc/gen_ndr/security.h gen_ndr/server_id.h',
2010-10-11 01:00:32 +04:00
header_path='gen_ndr'
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-02-26 14:49:26 +03:00
public_deps='LIBNDR'
)
bld.SAMBA_SUBSYSTEM('NDR_IRPC',
2010-03-17 13:46:38 +03:00
source='gen_ndr/ndr_irpc.c',
2010-02-26 14:49:26 +03:00
public_deps='LIBNDR NDR_SECURITY NDR_NBT'
)
bld.SAMBA_SUBSYSTEM('NDR_SASL_HELPERS',
2010-03-17 13:46:38 +03:00
source='gen_ndr/ndr_sasl_helpers.c',
2010-02-26 14:49:26 +03:00
public_deps='LIBNDR'
)
bld.SAMBA_SUBSYSTEM('NDR_NFS4ACL',
2010-03-17 13:46:38 +03:00
source='gen_ndr/ndr_nfs4acl.c',
2010-02-26 14:49:26 +03:00
public_deps='LIBNDR NDR_SECURITY'
)
bld.SAMBA_SUBSYSTEM('NDR_WINSIF',
2010-03-17 13:46:38 +03:00
source='gen_ndr/ndr_winsif.c',
2010-02-26 14:49:26 +03:00
public_deps='LIBNDR'
)
bld.SAMBA_SUBSYSTEM('NDR_OPENDB',
2010-03-17 13:46:38 +03:00
source='gen_ndr/ndr_opendb.c',
2010-02-26 14:49:26 +03:00
public_deps='LIBNDR'
)
bld.SAMBA_SUBSYSTEM('NDR_NOTIFY',
2010-05-18 14:34:20 +04:00
source='gen_ndr/ndr_s4_notify.c',
2010-02-26 14:49:26 +03:00
public_deps='LIBNDR'
)
bld.SAMBA_SUBSYSTEM('NDR_NTP_SIGND',
2010-03-17 13:46:38 +03:00
source='gen_ndr/ndr_ntp_signd.c',
2010-02-26 14:49:26 +03:00
public_deps='LIBNDR'
)
bld.SAMBA_SUBSYSTEM('NDR_WINSREPL',
2010-03-17 13:46:38 +03:00
source='gen_ndr/ndr_winsrepl.c',
2010-02-26 14:49:26 +03:00
public_deps='LIBNDR NDR_NBT'
)
bld.SAMBA_SUBSYSTEM('NDR_WINBIND',
2010-03-17 13:46:38 +03:00
source='gen_ndr/ndr_winbind.c',
2010-05-24 04:15:04 +04:00
public_deps='NDR_IDMAP LIBNDR NDR_STANDARD'
2010-02-26 14:49:26 +03:00
)
bld.SAMBA_LIBRARY('NDR_STANDARD',
2010-09-27 05:55:40 +04:00
source='../../librpc/gen_ndr/ndr_atsvc.c ../../librpc/gen_ndr/ndr_eventlog6.c',
2010-02-26 14:49:26 +03:00
vnum='0.0.1',
2010-03-27 10:14:33 +03:00
pc_files='../../librpc/ndr_standard.pc',
2010-10-24 01:41:19 +04:00
deps='''NDR_SECURITY NDR_LSA NDR_SAMR NDR_NETLOGON NDR_EVENTLOG NDR_DFS
NDR_NTSVCS NDR_SVCCTL NDR_INITSHUTDOWN NDR_WKSSVC NDR_SRVSVC NDR_WINREG
2010-10-24 02:53:52 +04:00
NDR_ECHO libsecurity NDR_DNS''',
2010-02-26 14:49:26 +03:00
public_deps='LIBNDR',
2010-06-13 21:55:53 +04:00
public_headers='../../librpc/gen_ndr/samr.h ../../librpc/gen_ndr/ndr_samr.h ../../librpc/gen_ndr/lsa.h ../../librpc/gen_ndr/netlogon.h ../../librpc/gen_ndr/atsvc.h ../../librpc/gen_ndr/ndr_atsvc.h ../../librpc/gen_ndr/ndr_svcctl.h ../../librpc/gen_ndr/svcctl.h',
2010-10-24 01:41:19 +04:00
header_path='gen_ndr'
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 03:12:14 +04:00
bld.SAMBA_LIBRARY('ndr_samba4',
source=[],
deps='NDR_WINBIND NDR_IRPC NDR_NFS4ACL NDR_OPENDB NDR_NOTIFY',
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 03:12:14 +04:00
bld.SAMBA_LIBRARY('rpc_ndr_samba4',
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-24 01:41:19 +04:00
bld.SAMBA_LIBRARY('ndr_table',
2010-03-17 13:46:38 +03:00
source='../../librpc/ndr/ndr_table.c gen_ndr/tables.c',
2010-10-22 11:08:20 +04:00
public_deps='''NDR_STANDARD NDR_AUDIOSRV NDR_DSBACKUP NDR_EFS
NDR_DRSUAPI NDR_POLICYAGENT NDR_UNIXINFO NDR_SPOOLSS NDR_EPMAPPER
NDR_DBGIDL NDR_DSSETUP NDR_MSGSVC NDR_WINSIF NDR_MGMT
NDR_PROTECTED_STORAGE NDR_OXIDRESOLVER NDR_REMACT NDR_WZCSVC
NDR_BROWSER NDR_W32TIME NDR_SCERPC NDR_TRKWKS NDR_KEYSVC NDR_KRB5PAC
NDR_XATTR NDR_SCHANNEL NDR_ROT NDR_DRSBLOBS NDR_NBT NDR_WINSREPL
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
NDR_NTPRINTING NDR_DNS''',
2010-10-21 01:29:24 +04:00
private_library=True,
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-09-03 14:33:17 +04:00
bld.SAMBA_SUBSYSTEM('RPC_NDR_WINBIND',
source='gen_ndr/ndr_winbind_c.c',
public_deps='dcerpc NDR_WINBIND'
)
2010-02-26 14:49:26 +03:00
bld.SAMBA_LIBRARY('dcerpc_samr',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/ndr_samr_c.c',
2010-03-27 10:14:33 +03:00
pc_files='dcerpc_samr.pc',
2010-02-26 14:49:26 +03:00
vnum='0.0.1',
public_deps='dcerpc NDR_STANDARD',
2010-03-27 05:56:05 +03:00
public_headers='../../librpc/gen_ndr/ndr_samr_c.h',
header_path='gen_ndr'
2010-02-26 14:49:26 +03:00
)
bld.SAMBA_LIBRARY('dcerpc_atsvc',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/ndr_atsvc_c.c',
2010-03-27 10:25:40 +03:00
pc_files='dcerpc_atsvc.pc',
2010-02-26 14:49:26 +03:00
vnum='0.0.1',
public_deps='dcerpc NDR_STANDARD',
2010-03-27 05:56:05 +03:00
public_headers='../../librpc/gen_ndr/ndr_atsvc_c.h',
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_SUBSYSTEM('NDR_DCERPC',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/ndr_dcerpc.c',
2010-02-26 14:49:26 +03:00
public_deps='LIBNDR',
2010-03-27 05:56:05 +03:00
public_headers='rpc/dcerpc.h ../../librpc/gen_ndr/ndr_dcerpc.h ../../librpc/gen_ndr/dcerpc.h',
header_path= [ ('*gen_ndr*', 'gen_ndr') ],
2010-02-26 14:49:26 +03:00
)
bld.SAMBA_LIBRARY('dcerpc',
2010-08-05 20:14:04 +04:00
source='''rpc/dcerpc.c rpc/dcerpc_auth.c rpc/dcerpc_schannel.c
rpc/dcerpc_util.c rpc/dcerpc_smb.c rpc/dcerpc_smb2.c rpc/dcerpc_sock.c
rpc/dcerpc_connect.c rpc/dcerpc_secondary.c ../../librpc/rpc/binding.c
../../librpc/rpc/dcerpc_error.c ../../librpc/rpc/dcerpc_util.c
../../librpc/rpc/binding_handle.c''',
2010-03-27 10:14:33 +03:00
pc_files='dcerpc.pc',
2010-03-16 07:28:56 +03:00
deps='samba_socket LIBCLI_RESOLVE LIBCLI_SMB LIBCLI_SMB2 LIBNDR NDR_DCERPC RPC_NDR_EPMAPPER NDR_SCHANNEL RPC_NDR_NETLOGON RPC_NDR_MGMT gensec LIBCLI_AUTH LIBCLI_RAW LP_RESOLVE UTIL_TEVENT',
2010-02-26 14:49:26 +03:00
autoproto='rpc/dcerpc_proto.h',
2010-03-16 07:28:56 +03:00
public_deps='CREDENTIALS tevent talloc',
2010-02-26 14:49:26 +03:00
public_headers='../../librpc/gen_ndr/mgmt.h ../../librpc/gen_ndr/ndr_mgmt.h ../../librpc/gen_ndr/ndr_mgmt_c.h ../../librpc/gen_ndr/epmapper.h ../../librpc/gen_ndr/ndr_epmapper.h ../../librpc/gen_ndr/ndr_epmapper_c.h',
2010-03-27 05:56:05 +03:00
header_path='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-21 07:54:11 +04:00
source='rpc/pyrpc_util.c',
public_deps='PYTALLOC pyparam_util dcerpc',
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',
2010-10-24 03:05:50 +04:00
public_deps='LIBCLI_SMB libsamba-util libsamba-hostconfig dcerpc_samr RPC_NDR_LSA DYNCONFIG pyrpc_util',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/base.so'
)
bld.SAMBA_PYTHON('python_echo',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/py_echo.c',
2010-09-03 04:39:38 +04:00
deps='RPC_NDR_ECHO PYTALLOC pyrpc_util',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/echo.so'
)
bld.SAMBA_PYTHON('python_winreg',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/py_winreg.c',
2010-09-03 04:39:38 +04:00
deps='RPC_NDR_WINREG PYTALLOC 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',
2010-10-21 04:25:59 +04:00
deps='PYTALLOC 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-09-03 04:39:38 +04:00
deps='RPC_NDR_INITSHUTDOWN PYTALLOC 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-09-03 04:39:38 +04:00
deps='dcerpc PYTALLOC 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-09-03 04:39:38 +04:00
deps='PYTALLOC 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',
2010-09-03 04:39:38 +04:00
deps='dcerpc_atsvc PYTALLOC 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',
2010-09-09 01:23:09 +04:00
deps='NDR_NBT RPC_NDR_NBT PYTALLOC 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-09-03 04:39:38 +04:00
deps='dcerpc_samr PYTALLOC 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-09-03 04:39:38 +04:00
deps='RPC_NDR_SVCCTL PYTALLOC 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-09-03 04:39:38 +04:00
deps='RPC_NDR_LSA PYTALLOC 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-09-03 04:39:38 +04:00
deps='RPC_NDR_WKSSVC PYTALLOC 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-09-03 04:39:38 +04:00
deps='RPC_NDR_DFS PYTALLOC pyrpc_util',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/dfs.so'
)
bld.SAMBA_PYTHON('python_unixinfo',
2010-03-17 13:46:38 +03:00
source='../../librpc/gen_ndr/py_unixinfo.c',
2010-09-03 04:39:38 +04:00
deps='RPC_NDR_UNIXINFO PYTALLOC 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-09-03 04:39:38 +04:00
deps='RPC_NDR_IRPC PYTALLOC pyrpc_util',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/irpc.so'
)
2010-09-17 11:03:54 +04:00
bld.SAMBA_PYTHON('python_winbind',
source='gen_ndr/py_winbind.c',
2010-10-21 10:36:15 +04:00
deps='RPC_NDR_WINBIND PYTALLOC 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',
deps='NDR_IDMAP PYTALLOC pyrpc_util',
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-09-03 04:39:38 +04:00
deps='RPC_NDR_DRSUAPI PYTALLOC 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-09-03 04:39:38 +04:00
deps='PYTALLOC 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',
deps='PYTALLOC pyrpc_util NDR_SECURITY RPC_NDR_DRSBLOBS',
2010-04-13 01:00:08 +04:00
realname='samba/dcerpc/drsblobs.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-09-03 04:39:38 +04:00
deps='PYTALLOC pyrpc_util RPC_NDR_XATTR',
2010-02-26 14:49:26 +03:00
realname='samba/dcerpc/xattr.so'
)
2010-08-22 08:50:46 +04:00
bld.SAMBA_PYTHON('python_netlogon',
source='../../librpc/gen_ndr/py_netlogon.c',
2010-09-03 04:39:38 +04:00
deps='RPC_NDR_NETLOGON PYTALLOC pyrpc_util',
2010-08-22 08:50:46 +04:00
realname='samba/dcerpc/netlogon.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
bld.INSTALL_FILES('${PYTHONDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname='__init__.py')