2010-03-28 01:48:49 +03:00
#!/usr/bin/env python
2011-08-18 22:43:00 +04:00
bld.SAMBA_LIBRARY('samba-credentials',
2010-11-07 04:05:51 +03:00
source='credentials.c',
public_headers='credentials.h',
2011-08-20 04:32:58 +04:00
pc_files='samba-credentials.pc',
2016-01-04 04:01:53 +03:00
deps='LIBCRYPTO samba-errors events LIBCLI_AUTH samba-security CREDENTIALS_SECRETS CREDENTIALS_KRB5',
2020-08-20 10:40:41 +03:00
vnum='1.0.0'
2010-11-07 04:05:51 +03:00
)
2010-03-17 14:07:42 +03:00
2010-10-11 04:05:03 +04:00
bld.SAMBA_SUBSYSTEM('CREDENTIALS_KRB5',
source='credentials_krb5.c',
2012-03-31 03:33:53 +04:00
deps='KERBEROS_SRV_KEYTAB KERBEROS_UTIL gssapi samba-credentials',
2010-10-30 04:44:07 +04:00
public_deps='com_err authkrb5',
2010-10-11 04:05:03 +04:00
)
bld.SAMBA_SUBSYSTEM('CREDENTIALS_SECRETS',
source='credentials_secrets.c',
2012-07-14 16:23:41 +04:00
deps='CREDENTIALS_KRB5 CREDENTIALS_NTLM ldb SECRETS samdb-common dbwrap',
2010-10-11 04:05:03 +04:00
)
bld.SAMBA_SUBSYSTEM('CREDENTIALS_NTLM',
source='credentials_ntlm.c',
2019-06-26 07:41:05 +03:00
deps='samba-credentials GNUTLS_HELPERS')
2010-03-17 14:07:42 +03:00
2019-08-07 12:36:28 +03:00
bld.SAMBA_SUBSYSTEM('CREDENTIALS_CMDLINE',
source='credentials_cmdline.c',
deps='samba-credentials')
2019-02-15 06:37:48 +03:00
pytalloc_util = bld.pyembed_libname('pytalloc-util')
pyparam_util = bld.pyembed_libname('pyparam_util')
2018-04-04 11:53:14 +03:00
2019-02-15 06:37:48 +03:00
bld.SAMBA_PYTHON('pycredentials',
source='pycredentials.c',
2020-12-03 19:07:53 +03:00
public_deps='samba-credentials %s %s CREDENTIALS_CMDLINE CREDENTIALS_KRB5 CREDENTIALS_SECRETS' % (pytalloc_util, pyparam_util),
2019-02-15 06:37:48 +03:00
realname='samba/credentials.so'
)
2020-09-01 13:32:28 +03:00
bld.SAMBA_BINARY('test_creds',
source='tests/test_creds.c',
deps='cmocka samba-credentials',
local_include=False,
for_selftest=True)