2010-03-28 01:48:49 +03:00
#!/usr/bin/env python
2010-03-17 14:07:42 +03:00
2012-08-10 14:38:41 +04:00
def build(bld):
2012-08-10 14:34:59 +04:00
bld.SAMBA_LIBRARY('smb_transport',
source='''
read_smb.c
''',
2014-09-17 01:11:27 +04:00
deps='LIBASYNC_REQ',
public_deps='talloc tevent',
2012-08-10 14:34:59 +04:00
private_library=True,
2016-01-04 03:56:10 +03:00
private_headers='''
2012-08-10 14:34:59 +04:00
read_smb.h
''',
)
2012-08-10 14:38:41 +04:00
bld.SAMBA_LIBRARY('cli_smb_common',
2016-10-25 14:27:54 +03:00
source='''
smb_signing.c
smb_seal.c
smb2_negotiate_context.c
smb2_create_blob.c smb2_signing.c
smb2_lease.c
util.c
smbXcli_base.c
smb1cli_trans.c
smb1cli_echo.c
smb1cli_create.c
2016-11-03 18:28:12 +03:00
smb1cli_session.c
2016-10-25 14:27:54 +03:00
smb1cli_close.c
smb1cli_write.c
smb1cli_read.c
smb2cli_session.c
smb2cli_tcon.c
smb2cli_create.c
smb2cli_close.c
smb2cli_read.c
smb2cli_write.c
smb2cli_flush.c
smb2cli_set_info.c
smb2cli_query_info.c
2017-07-25 13:11:37 +03:00
smb2cli_notify.c
2016-10-25 14:27:54 +03:00
smb2cli_query_directory.c
smb2cli_ioctl.c
smb2cli_echo.c
2020-01-23 23:14:44 +03:00
smb2_posix.c
2016-10-25 14:27:54 +03:00
tstream_smbXcli_np.c
''',
deps='''
2018-10-10 16:47:37 +03:00
LIBCRYPTO gnutls NDR_SMB2_LEASE_STRUCT samba-errors gensec krb5samba
2019-06-26 07:41:05 +03:00
smb_transport GNUTLS_HELPERS
2016-10-25 14:27:54 +03:00
''',
public_deps='talloc samba-util iov_buf',
private_library=True,
private_headers='''
smb_common.h
smb2_constants.h
smb_constants.h
smb_signing.h
smb_seal.h
smb2_create_blob.h
smb2_signing.h
smb2_lease.h
smb_util.h
smb_unix_ext.h
2020-01-23 23:14:44 +03:00
smb_posix.h
2016-10-25 14:27:54 +03:00
tstream_smbXcli_np.h
''',
)
2017-06-08 17:08:15 +03:00
bld.SAMBA_BINARY('test_smb1cli_session',
source='test_smb1cli_session.c',
deps='cmocka cli_smb_common',
2019-11-22 00:06:57 +03:00
for_selftest=True)
2019-10-09 10:38:08 +03:00
bld.SAMBA_BINARY('test_util_translate',
source='test_util_translate.c',
deps='cmocka cli_smb_common',
for_selftest=True)