#!/usr/bin/env python


def build(bld):
    bld.SAMBA_LIBRARY('smb_transport',
        source='''
            read_smb.c
        ''',
        deps='errors LIBASYNC_REQ',
        public_deps='talloc tevent samba-util',
        private_library=True,
        public_headers='''
            read_smb.h
        ''',
        )

    bld.SAMBA_LIBRARY('cli_smb_common',
	source='''
		smb_signing.c smb_seal.c
		smb2_create_blob.c smb2_signing.c
		util.c
		smbXcli_base.c
		smb1cli_trans.c
		smb1cli_echo.c
		smb2cli_session.c
                smb2cli_create.c
                smb2cli_close.c
		smb2cli_read.c
		smb2cli_write.c
		smb2cli_flush.c
		smb2cli_set_info.c
		smb2cli_query_info.c
		smb2cli_query_directory.c
		smb2cli_ioctl.c
		smb2cli_echo.c
	''',
	deps='LIBCRYPTO errors gensec krb5samba smb_transport',
	public_deps='talloc samba-util',
	private_library=True,
	public_headers='''
		smb_common.h smb2_constants.h smb_constants.h
		smb_signing.h smb_seal.h
		smb2_create_blob.h smb2_signing.h
		smb_util.h
		smb_unix_ext.h
	''',
	)