s3: Fix possible mem leak
[Samba.git] / libcli / smb / wscript
blob53a5c2139538e7fea8faef626ddd7a0492a8395d
1 #!/usr/bin/env python
4 def build(bld):
5 bld.SAMBA_LIBRARY('smb_transport',
6 source='''
7 read_smb.c
8 ''',
9 deps='LIBASYNC_REQ',
10 public_deps='talloc tevent',
11 private_library=True,
12 private_headers='''
13 read_smb.h
14 ''',
17 bld.SAMBA_LIBRARY('cli_smb_common',
18 source='''
19 smb_signing.c
20 smb_seal.c
21 smb2_negotiate_context.c
22 smb2_create_blob.c smb2_signing.c
23 smb2_lease.c
24 util.c
25 smbXcli_base.c
26 smb1cli_trans.c
27 smb1cli_echo.c
28 smb1cli_create.c
29 smb1cli_session.c
30 smb1cli_close.c
31 smb1cli_write.c
32 smb1cli_read.c
33 smb2cli_session.c
34 smb2cli_tcon.c
35 smb2cli_create.c
36 smb2cli_close.c
37 smb2cli_read.c
38 smb2cli_write.c
39 smb2cli_flush.c
40 smb2cli_set_info.c
41 smb2cli_query_info.c
42 smb2cli_notify.c
43 smb2cli_query_directory.c
44 smb2cli_ioctl.c
45 smb2cli_echo.c
46 tstream_smbXcli_np.c
47 ''',
48 deps='''
49 LIBCRYPTO NDR_SMB2_LEASE_STRUCT samba-errors gensec krb5samba
50 smb_transport
51 ''',
52 public_deps='talloc samba-util iov_buf',
53 private_library=True,
54 private_headers='''
55 smb_common.h
56 smb2_constants.h
57 smb_constants.h
58 smb_signing.h
59 smb_seal.h
60 smb2_create_blob.h
61 smb2_signing.h
62 smb2_lease.h
63 smb_util.h
64 smb_unix_ext.h
65 tstream_smbXcli_np.h
66 ''',
69 bld.SAMBA_BINARY('test_smb1cli_session',
70 source='test_smb1cli_session.c',
71 deps='cmocka cli_smb_common',
72 install=False)