2010-03-28 01:48:49 +03:00
#!/usr/bin/env python
2010-03-25 15:58:35 +03:00
LIBS='ICONV'
2010-03-24 03:28:03 +03:00
2011-09-01 06:45:38 +04:00
config_h = "../include/config.h"
2011-02-21 03:09:56 +03:00
2011-09-07 11:22:22 +04:00
bld.SAMBA_BLDOPTIONS('smbd/build_options.c')
2010-03-24 03:28:03 +03:00
bld.SETUP_BUILD_GROUPS()
2010-04-18 11:30:59 +04:00
######################## SUBSYSTEMS #################################
2011-02-09 07:56:20 +03:00
bld.SAMBA3_LIBRARY('netapi',
2013-09-23 03:58:47 +04:00
source='''lib/netapi/netapi.c
lib/netapi/cm.c
lib/netapi/libnetapi.c
lib/netapi/joindomain.c
lib/netapi/serverinfo.c
2013-10-14 22:43:27 +04:00
lib/netapi/wkstainfo.c
2013-09-23 03:58:47 +04:00
lib/netapi/getdc.c
lib/netapi/user.c
lib/netapi/group.c
lib/netapi/localgroup.c
lib/netapi/samr.c
lib/netapi/sid.c
lib/netapi/share.c
lib/netapi/file.c
lib/netapi/shutdown.c
lib/netapi/netlogon.c''',
2021-03-18 15:49:27 +03:00
deps='CREDENTIALS_CMDLINE',
2012-01-24 20:44:32 +04:00
public_deps='''
talloc
msrpc3
ads
NDR_LIBNETAPI
LIBNET
RPC_CLIENT_SCHANNEL
libcli_netlogon3
LIBCLI_SAMR
INIT_SAMR
2012-09-07 17:18:39 +04:00
auth
2012-01-24 20:44:32 +04:00
''',
2011-02-09 07:56:20 +03:00
public_headers='../source3/lib/netapi/netapi.h',
2012-05-28 06:50:05 +04:00
pc_files='libnet/netapi.pc',
2021-03-18 12:06:53 +03:00
vnum='1.0.0')
2010-05-11 12:30:25 +04:00
2012-01-03 03:52:06 +04:00
bld.SAMBA3_LIBRARY('gse',
source='librpc/crypto/gse_krb5.c librpc/crypto/gse.c',
2016-11-22 15:47:32 +03:00
deps='krb5samba gensec smbconf KRBCLIENT secrets3',
2012-01-03 03:52:06 +04:00
private_library=True)
2011-05-14 23:54:57 +04:00
bld.SAMBA3_LIBRARY('msrpc3',
2016-11-22 12:24:14 +03:00
source='''
rpc_client/cli_pipe.c
rpc_client/rpc_transport_np.c
rpc_client/rpc_transport_sock.c
rpc_client/rpc_transport_tstream.c
2021-04-07 10:07:50 +03:00
rpc_client/local_np.c
2016-11-22 12:24:14 +03:00
librpc/rpc/dcerpc_helpers.c
''',
deps='''
ndr
ndr-standard
RPC_NDR_EPMAPPER
NTLMSSP_COMMON
COMMON_SCHANNEL
LIBCLI_AUTH
LIBTSOCKET
2021-04-07 10:07:50 +03:00
npa_tstream
2016-11-22 12:24:14 +03:00
gse
dcerpc-binding
libsmb
ndr-table
NETLOGON_CREDS_CLI
2013-07-27 13:30:13 +04:00
''',
2011-05-14 23:54:57 +04:00
private_library=True)
2010-09-26 22:25:15 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('AVAHI',
2016-11-22 12:26:08 +03:00
source='''
lib/avahi.c
smbd/avahi_register.c
''',
deps='''
avahi-common
avahi-client
''',
2010-05-28 17:56:32 +04:00
enabled=bld.env.with_avahi)
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('GROUPDB',
2016-11-22 12:26:39 +03:00
source='''
groupdb/mapping.c
groupdb/mapping_tdb.c
''',
2015-03-12 17:40:16 +03:00
deps='tdb')
2010-04-18 11:30:59 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('TLDAP',
2016-11-22 12:27:33 +03:00
source='''
lib/tldap.c
lib/tldap_util.c
lib/tldap_gensec_bind.c
''',
deps='''
asn1util
LIBTSOCKET
samba3util
''')
2010-04-18 11:30:59 +04:00
2018-02-19 14:08:26 +03:00
bld.SAMBA3_BINARY('test_tldap',
source='lib/test_tldap.c',
deps='''
asn1util
LIBTSOCKET
samba3util
smbconf
cmocka
2018-07-13 00:32:36 +03:00
''',
2019-11-22 00:06:57 +03:00
for_selftest=True)
2018-02-19 14:08:26 +03:00
2012-09-10 15:34:09 +04:00
# libpdb.so should not expose internal symbols that are only usable
# to the statically linked modules that are merged into libpdb.
# Note that we always filter these symbols out in libpdb, even
# when modules are not linked statically. In the latter case
# symbols will not be present in the libpdb anyway so no hurt is
# done to the version script.
2012-08-30 20:09:14 +04:00
private_pdb_match = []
2012-09-10 15:34:09 +04:00
private_pdb_match.append('!idmap_init')
private_pdb_match.append('!idmap_sids_to_xids')
private_pdb_match.append('!idmap_xids_to_sids')
2012-09-13 21:29:25 +04:00
ldapsam_pdb_match = ['!priv2ld', '!smbldap_search_domain_info',
'!ldapsam_*', '!groupmap_attr_list*', '!get_userattr_list',
'!dominfo_attr_list', '!get_attr_key2string',
'!sidmap_attr_list', '!attrib_map_*', '!idpool_attr_list',
'!get_attr_list']
2012-09-10 15:34:09 +04:00
private_pdb_match.append('!pdb_nds_*')
2013-04-03 17:01:34 +04:00
private_pdb_match.append('!pdb_ldapsam_init*')
2015-08-13 19:57:19 +03:00
private_pdb_match.append('!pdb_*_init')
2012-09-10 15:34:09 +04:00
private_pdb_match = private_pdb_match + ldapsam_pdb_match
2012-08-30 20:09:14 +04:00
2014-11-25 04:56:45 +03:00
bld.SAMBA3_LIBRARY('samba-passdb',
source='',
deps='pdb',
private_library=False,
2014-12-04 00:44:26 +03:00
grouping_library=True,
2014-11-25 04:56:45 +03:00
pc_files=[],
public_headers_install=True,
public_headers='''
2016-11-22 12:28:58 +03:00
include/passdb.h
passdb/machine_sid.h
passdb/lookup_sid.h
''',
2014-11-25 04:56:45 +03:00
abi_match=private_pdb_match,
abi_directory='passdb/ABI',
2019-03-07 03:18:51 +03:00
vnum='0.28.0')
2014-11-25 04:56:45 +03:00
bld.SAMBA3_SUBSYSTEM('pdb',
2016-11-22 12:30:21 +03:00
source='''
passdb/pdb_get_set.c
passdb/passdb.c
lib/util_wellknown.c
lib/util_builtin.c
passdb/pdb_compat.c
lib/util_sid_passdb.c
lib/util_unixsids.c
passdb/lookup_sid.c
passdb/login_cache.c
passdb/account_pol.c
lib/privileges.c
lib/util_nscd.c
lib/winbind_util.c
passdb/pdb_util.c
passdb/pdb_interface.c
2019-02-26 17:23:17 +03:00
passdb/pdb_secrets.c''',
2016-11-22 12:30:21 +03:00
deps='''
secrets3
GROUPDB
SERVER_MUTEX
wbclient
LIBCLI_AUTH
flag_mapping
samba-credentials
2019-12-06 15:20:36 +03:00
samba-modules
2019-02-12 22:28:32 +03:00
nscd
2016-11-22 12:30:21 +03:00
''')
2010-04-18 11:30:59 +04:00
2012-09-13 21:29:25 +04:00
bld.SAMBA3_LIBRARY('smbldaphelper',
2016-11-22 12:30:53 +03:00
source='''
passdb/pdb_ldap_schema.c
passdb/pdb_ldap_util.c
''',
2012-09-13 21:29:25 +04:00
deps='smbldap secrets3',
allow_undefined_symbols=True,
2012-09-22 09:27:24 +04:00
enabled=bld.CONFIG_SET('HAVE_LDAP'),
2012-09-13 21:29:25 +04:00
private_library=True)
2012-09-13 16:40:31 +04:00
2012-01-27 13:40:29 +04:00
bld.SAMBA3_SUBSYSTEM('SERVER_MUTEX',
2013-09-23 09:39:57 +04:00
source='lib/server_mutex.c',
deps='talloc')
2012-01-27 13:40:29 +04:00
2013-09-23 09:49:33 +04:00
# this includes only the low level parse code, not stuff
# that requires knowledge of security contexts
bld.SAMBA3_SUBSYSTEM('REG_PARSE_PRS',
source='registry/reg_parse_prs.c')
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('REGFIO',
2013-09-23 09:49:33 +04:00
source='registry/regfio.c',
deps='samba-util REG_PARSE_PRS')
2010-09-27 05:31:19 +04:00
2019-03-19 02:47:52 +03:00
bld.SAMBA_BINARY('test_registry_regfio',
source='registry/tests/test_regfio.c',
deps='cmocka samba3-util smbconf REGFIO',
local_include=False,
2019-11-22 00:06:57 +03:00
for_selftest=True)
2019-03-19 02:47:52 +03:00
2016-11-22 15:47:32 +03:00
# Do not link against this use 'smbconf'
bld.SAMBA3_SUBSYSTEM('SMBREGISTRY',
2016-11-22 12:33:30 +03:00
source='''
registry/reg_api.c
registry/reg_dispatcher.c
registry/reg_cachehook.c
registry/reg_objects.c
registry/reg_util_internal.c
lib/util_nttoken.c
registry/reg_backend_db.c
registry/reg_parse_internal.c
2019-09-24 00:47:51 +03:00
registry/reg_parse.c
2016-11-22 12:33:30 +03:00
lib/srprs.c
registry/reg_init_basic.c
''',
2016-10-18 17:05:07 +03:00
deps='''
smbd_shim
tdb-wrap3
NDR_SECURITY
util_tdb
talloc
replace
util_reg
samba-util
samba-security
errors3
dbwrap
samba3-util
2016-11-22 15:47:32 +03:00
''')
2010-10-20 04:17:41 +04:00
2016-11-22 15:47:32 +03:00
# Do not link against this use 'smbconf'
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('REG_SMBCONF',
2016-11-22 12:34:33 +03:00
source='''
registry/reg_backend_smbconf.c
registry/reg_init_smbconf.c
registry/reg_util_token.c
registry/reg_api_util.c
''',
2016-11-22 15:47:32 +03:00
deps='SMBREGISTRY')
2010-10-20 04:17:41 +04:00
2021-06-18 20:11:19 +03:00
bld.SAMBA3_LIBRARY('REG_FULL',private_library=True,
2016-11-22 12:35:12 +03:00
source='''
registry/reg_backend_printing.c
registry/reg_backend_shares.c
registry/reg_backend_netlogon_params.c
registry/reg_backend_prod_options.c
registry/reg_backend_tcpip_params.c
registry/reg_backend_hkpt_params.c
registry/reg_backend_current_version.c
registry/reg_backend_perflib.c
registry/reg_init_full.c
registry/reg_perfcount.c''',
deps='''
2016-11-22 15:47:32 +03:00
smbconf
2016-11-22 12:35:12 +03:00
tdb-wrap3
2021-06-18 20:11:19 +03:00
REG_PARSE_PRS
pdb
2016-11-22 12:35:12 +03:00
''')
2010-10-20 04:17:41 +04:00
2018-08-21 00:44:28 +03:00
bld.SAMBA3_LIBRARY('cmdline_contexts',
source='lib/cmdline_contexts.c',
deps='samba3core',
private_library=True)
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('KRBCLIENT',
2013-09-23 09:58:32 +04:00
source='libads/kerberos.c libads/ads_status.c',
2016-08-25 18:07:01 +03:00
public_deps='krb5samba asn1util k5crypto gssapi LIBTSOCKET CLDAP LIBNMB')
2010-04-30 16:43:57 +04:00
2012-01-12 16:39:17 +04:00
bld.SAMBA3_SUBSYSTEM('samba3util',
2016-11-22 12:36:25 +03:00
source='''
lib/system.c
lib/sendfile.c
lib/recvfile.c
lib/time.c
lib/util_sid.c
lib/util_specialsids.c
lib/util_file.c
lib/util.c
lib/util_path.c
2021-06-09 15:44:39 +03:00
lib/util_matching.c
2016-11-22 12:36:25 +03:00
lib/util_procid.c
lib/util_sock.c
lib/util_tsock.c
lib/util_transfer_file.c
2019-07-01 16:53:36 +03:00
lib/util_macstreams.c
2016-11-22 12:36:25 +03:00
''',
deps='''
2016-11-22 13:50:04 +03:00
CHARSET3
2016-11-22 12:36:25 +03:00
ndr
LIBTSOCKET
samba-security
NDR_SECURITY
samba-util
util_tdb
sys_rw
iov_buf
''')
2012-01-12 16:39:17 +04:00
2015-11-07 15:21:34 +03:00
if bld.env.with_ctdb:
2014-01-21 18:26:28 +04:00
SAMBA_CLUSTER_SUPPORT_SOURCES='''
2014-01-21 17:32:30 +04:00
lib/cluster_support.c
2013-10-08 13:52:23 +04:00
lib/dbwrap/dbwrap_ctdb.c
2017-06-11 11:45:25 +03:00
lib/messages_ctdb.c
2017-06-12 17:50:16 +03:00
lib/messages_ctdb_ref.c
2013-10-08 13:52:23 +04:00
lib/ctdbd_conn.c
2014-01-21 18:26:28 +04:00
'''
SAMBA_CLUSTER_SUPPORT_DEPS='''
2013-10-08 13:52:23 +04:00
talloc
tevent
tdb
2014-01-21 18:26:28 +04:00
'''
else:
SAMBA_CLUSTER_SUPPORT_SOURCES='''
lib/cluster_support.c
lib/ctdb_dummy.c
'''
SAMBA_CLUSTER_SUPPORT_DEPS='''
talloc
tevent
'''
bld.SAMBA3_LIBRARY('samba-cluster-support',
source=SAMBA_CLUSTER_SUPPORT_SOURCES,
deps=SAMBA_CLUSTER_SUPPORT_DEPS,
2013-10-08 13:52:23 +04:00
allow_undefined_symbols=True,
private_library=True)
2013-09-23 09:34:48 +04:00
bld.SAMBA3_SUBSYSTEM('TDB_LIB',
2016-11-22 12:37:11 +03:00
source='''
lib/dbwrap/dbwrap_open.c
lib/dbwrap/dbwrap_watch.c
lib/g_lock.c
''',
deps='''
dbwrap
samba-cluster-support
''')
2013-09-23 09:34:48 +04:00
2014-09-16 16:09:35 +04:00
bld.SAMBA3_LIBRARY('messages_util',
source='''lib/messages_util.c''',
deps='samba-util',
private_library=True)
2011-05-30 10:55:30 +04:00
bld.SAMBA3_SUBSYSTEM('samba3core',
2016-11-22 12:38:43 +03:00
source='''
lib/messages.c
lib/util_cluster.c
lib/id_cache.c
lib/serverid.c
lib/server_id_watch.c
lib/server_id_db_util.c
lib/addrchange.c
../lib/util/debug_s3.c
lib/dumpcore.c
lib/interface.c
lib/username.c
lib/smbrun.c
lib/wins_srv.c
lib/substitute.c
lib/substitute_generic.c
lib/ms_fnmatch.c
lib/tallocmsg.c
lib/dmallocmsg.c
lib/gencache.c
lib/util_event.c
2018-08-21 23:08:42 +03:00
lib/global_contexts.c
2016-11-22 12:38:43 +03:00
lib/ldap_escape.c
lib/system_smbd.c
lib/audit.c
lib/idmap_cache.c
2017-08-02 19:11:49 +03:00
lib/namemap_cache.c
2016-11-22 12:38:43 +03:00
lib/util_ea.c
lib/background.c
''',
2012-01-18 17:17:40 +04:00
deps='''
samba3util
LIBTSOCKET
NDR_MESSAGING
LIBASYNC_REQ
UTIL_PW
SAMBA_VERSION
PTHREADPOOL
interfaces
2016-11-22 15:47:32 +03:00
smbconf
2012-01-18 17:17:40 +04:00
dbwrap
2012-03-24 19:42:47 +04:00
samba3-util
2013-09-23 09:34:48 +04:00
errors3
2014-10-17 16:09:03 +04:00
server_id_db
2015-02-11 18:28:55 +03:00
messages_util
2014-10-04 13:11:46 +04:00
messages_dgm
2019-08-30 16:08:40 +03:00
talloc_report_printf
2016-11-22 12:38:43 +03:00
access
TDB_LIB
2019-12-06 15:18:07 +03:00
z
2016-11-22 12:38:43 +03:00
''')
2010-04-23 01:33:38 +04:00
2011-05-31 07:18:37 +04:00
bld.SAMBA3_LIBRARY('smbd_shim',
2012-02-07 22:46:43 +04:00
source='''lib/smbd_shim.c''',
deps='talloc',
2011-06-24 05:47:45 +04:00
private_library=True)
2010-04-23 01:33:38 +04:00
2012-01-05 20:15:14 +04:00
bld.SAMBA3_SUBSYSTEM('auth_generic',
source='libsmb/auth_generic.c',
2015-12-09 13:49:37 +03:00
deps='gse gensec')
2012-01-05 20:15:14 +04:00
2011-06-28 20:03:03 +04:00
bld.SAMBA3_LIBRARY('libsmb',
2016-11-22 12:39:40 +03:00
source='''
libsmb/clientgen.c
libsmb/cliconnect.c
libsmb/clifile.c
libsmb/clirap.c
libsmb/clierror.c
libsmb/climessage.c
libsmb/clireadwrite.c
libsmb/clilist.c
libsmb/cliprint.c
libsmb/clitrans.c
libsmb/clisecdesc.c
libsmb/cliquota.c
libsmb/clifsinfo.c
libsmb/clidfs.c
libsmb/clioplock.c
libsmb/async_smb.c
libsmb/clisymlink.c
libsmb/smbsock_connect.c
libsmb/cli_smb2_fnum.c
''',
2012-01-19 13:12:18 +04:00
deps='''
2016-11-22 12:39:40 +03:00
auth_generic
CLDAP
LIBNMB
SPNEGO_PARSE
LIBTSOCKET
KRBCLIENT
NDR_IOCTL
2017-05-26 17:01:17 +03:00
NDR_QUOTA
2016-11-22 12:39:40 +03:00
cli_smb_common
tevent
''',
2011-05-12 22:12:07 +04:00
private_library=True)
2010-11-30 20:07:21 +03:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('CLDAP',
2011-02-22 11:19:49 +03:00
source='libads/cldap.c',
2013-09-23 12:11:18 +04:00
deps='cli-ldap-common cli_cldap LIBTSOCKET')
2010-04-23 01:33:38 +04:00
2012-01-27 00:27:54 +04:00
# NOTE: The secrets3 library is a low level library used by several subsystems.
# PLEASE DO NOT make it depend on high level libraries like PDB, if you are
# doing that your design is wrong and needs changing. -SSS
bld.SAMBA3_LIBRARY('secrets3',
2016-11-22 12:43:28 +03:00
source='''
passdb/secrets.c
passdb/machine_account_secrets.c
passdb/machine_sid.c
passdb/secrets_lsa.c
''',
deps='''
2023-03-28 15:46:14 +03:00
ndr-samba4
2016-11-22 15:47:32 +03:00
smbconf
2016-11-22 12:43:28 +03:00
samba3util
dbwrap
2019-12-06 15:48:20 +03:00
krb5samba
LIBCLI_AUTH
2021-03-24 12:06:18 +03:00
samba-credentials
2016-11-22 12:43:28 +03:00
''',
2013-09-23 10:05:50 +04:00
private_library=True)
2010-05-11 19:11:41 +04:00
2011-10-17 19:19:27 +04:00
bld.SAMBA3_LIBRARY('smbldap',
2013-09-23 04:14:15 +04:00
source='lib/smbldap.c',
2016-11-22 15:47:32 +03:00
deps='ldap lber samba-util smbconf',
2012-09-22 09:27:24 +04:00
enabled=bld.CONFIG_SET("HAVE_LDAP"),
2012-09-06 18:43:42 +04:00
private_library=False,
abi_directory='lib/ABI',
abi_match='smbldap_*',
pc_files=[],
2020-06-24 15:28:45 +03:00
vnum='2.1.0',
2011-10-17 19:19:27 +04:00
public_headers='include/smbldap.h include/smb_ldap.h')
2010-05-13 00:43:18 +04:00
2011-02-21 06:45:37 +03:00
bld.SAMBA3_LIBRARY('ads',
2016-11-22 12:44:41 +03:00
source='''
libads/ldap.c
libads/sasl.c
libads/sasl_wrapping.c
libads/krb5_setpw.c
libads/kerberos_util.c
libads/ldap_user.c
libads/ads_struct.c
libads/kerberos_keytab.c
libads/disp_sec.c
libads/ldap_utils.c
libads/ldap_schema.c
libads/util.c
2018-01-24 17:26:03 +03:00
libads/net_ads_setspn.c
2016-11-22 12:44:41 +03:00
''',
deps='''
cli-ldap-common
krb5samba
2021-12-06 20:17:35 +03:00
krb5
2016-11-22 12:44:41 +03:00
ldap
lber
KRBCLIENT
2016-11-22 15:47:32 +03:00
smbconf
2016-11-22 12:44:41 +03:00
LIBNMB
libsmb
DCUTIL
smbldap
2016-08-23 11:38:58 +03:00
trusts_util
2016-08-17 12:58:02 +03:00
NDR_ADS
2016-11-22 12:44:41 +03:00
''',
2013-09-23 10:01:39 +04:00
private_library=True)
2010-09-23 17:56:36 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBADS_SERVER',
2013-09-23 10:02:52 +04:00
source='libads/authdata.c',
deps='SERVER_MUTEX ndr-krb5pac krb5samba gssapi')
2010-09-23 18:01:52 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBADS_PRINTER',
2013-09-23 10:03:56 +04:00
source='libads/ldap_printer.c',
deps='samba-util krb5samba')
2010-09-23 18:05:11 +04:00
2016-11-22 15:47:32 +03:00
# Only smbconf should link against this subsystem, else we will create
# a circular dependency.
bld.SAMBA3_SUBSYSTEM('SMBCONF_PARAM',
source='''
param/loadparm.c
lib/sharesec.c
lib/ldap_debug_handler.c
lib/util_names.c
''',
deps='''
samba-util
PARAM_UTIL
ldap
lber
LOADPARM_CTX
samba3core
param_local.h
param_global.h
cups
''')
2011-04-12 13:02:07 +04:00
bld.SAMBA3_LIBRARY('smbconf',
2016-11-22 12:45:36 +03:00
source='''
lib/smbconf/smbconf_init.c
lib/smbconf/smbconf_reg.c
''',
2012-01-18 17:24:31 +04:00
deps='''
2016-11-22 12:45:36 +03:00
LIBSMBCONF
REG_SMBCONF
SAMBA_VERSION
cap
charset
2019-12-06 15:30:05 +03:00
samba-hostconfig
2016-11-22 15:47:32 +03:00
SMBCONF_PARAM
2016-11-22 12:45:36 +03:00
samba-util
talloc
util_reg
''',
2011-04-12 13:02:07 +04:00
public_headers='../lib/smbconf/smbconf.h',
2011-08-21 04:09:14 +04:00
pc_files=[],
2022-06-24 10:36:27 +03:00
vnum='0.0.1')
2010-10-20 03:54:12 +04:00
2014-02-26 10:35:22 +04:00
bld.SAMBA3_SUBSYSTEM('sysquotas',
source='''
lib/sysquotas.c
lib/sysquotas_linux.c
lib/sysquotas_xfs.c
lib/sysquotas_4A.c
lib/sysquotas_4B.c
2019-02-06 01:52:33 +03:00
lib/sysquotas_jfs2.c
2014-02-26 10:35:22 +04:00
lib/sysquotas_nfs.c
''',
allow_warnings=True,
2018-01-19 16:30:20 +03:00
deps='samba3-util samba-util tirpc')
2014-02-26 10:35:22 +04:00
2014-11-18 14:28:20 +03:00
NOTIFY_SOURCES=''
2015-07-08 08:43:20 +03:00
NOTIFY_DEPS=''
2014-11-18 14:28:20 +03:00
if bld.CONFIG_SET("HAVE_INOTIFY"):
NOTIFY_SOURCES += ' smbd/notify_inotify.c'
2014-11-20 18:30:51 +03:00
if bld.CONFIG_SET('SAMBA_FAM_LIBS'):
NOTIFY_SOURCES += ' smbd/notify_fam.c'
2015-07-08 08:43:20 +03:00
NOTIFY_DEPS += ' ' + bld.CONFIG_GET('SAMBA_FAM_LIBS')
2014-11-20 18:30:51 +03:00
2022-03-03 23:02:04 +03:00
if bld.CONFIG_SET('WITH_SMB1SERVER'):
SMB1_SOURCES = '''
smbd/smb1_message.c
smbd/smb1_sesssetup.c
smbd/smb1_lanman.c
smbd/smb1_utils.c
2022-03-11 19:17:59 +03:00
smbd/smb1_aio.c
2022-03-11 19:57:57 +03:00
smbd/smb1_ipc.c
2022-03-11 20:20:48 +03:00
smbd/smb1_negprot.c
2022-03-11 22:20:52 +03:00
smbd/smb1_nttrans.c
2022-03-15 23:32:08 +03:00
smbd/smb1_oplock.c
2022-03-15 23:50:16 +03:00
smbd/smb1_pipes.c
2022-03-17 21:59:22 +03:00
smbd/smb1_reply.c
2022-03-17 22:32:30 +03:00
smbd/smb1_service.c
2022-03-17 23:54:01 +03:00
smbd/smb1_signing.c
2022-03-21 17:30:48 +03:00
smbd/smb1_process.c
2022-03-21 20:51:41 +03:00
smbd/smb1_trans2.c
2022-03-03 23:02:04 +03:00
'''
else:
SMB1_SOURCES = ''
2011-02-21 06:45:37 +03:00
bld.SAMBA3_LIBRARY('smbd_base',
2013-09-23 11:06:25 +04:00
source='''
2016-11-22 12:46:49 +03:00
smbd/server_reload.c
smbd/files.c
smbd/connection.c
smbd/utmp.c
smbd/session.c
smbd/dfree.c
smbd/dir.c
smbd/password.c
smbd/conn_msg.c
smbd/conn_idle.c
smbd/share_access.c
smbd/fileio.c
2022-03-11 19:53:04 +03:00
smbd/smb2_ipc.c
2022-03-11 21:16:18 +03:00
smbd/smb2_nttrans.c
2022-03-16 00:13:52 +03:00
smbd/smb2_pipes.c
2022-03-16 01:29:59 +03:00
smbd/smb2_reply.c
2022-03-21 22:26:09 +03:00
smbd/smb2_trans2.c
2016-11-22 12:46:49 +03:00
smbd/uid.c
smbd/dosmode.c
smbd/filename.c
smbd/open.c
smbd/close.c
smbd/blocking.c
smbd/sec_ctx.c
smbd/srvstr.c
smbd/vfs.c
smbd/seal.c
smbd/posix_acls.c
lib/sysacls.c
2022-03-18 17:22:31 +03:00
smbd/smb2_process.c
2022-03-17 22:35:44 +03:00
smbd/smb2_service.c
2016-11-22 12:46:49 +03:00
smbd/error.c
printing/printspoolss.c
2021-06-18 20:11:19 +03:00
printing/rap_jobid.c
printing/load.c
printing/printer_list.c
2016-11-22 12:46:49 +03:00
lib/sessionid_tdb.c
2017-10-18 18:02:56 +03:00
lib/cleanupdb.c
2016-11-22 12:46:49 +03:00
smbd/fake_file.c
smbd/quotas.c
smbd/ntquotas.c
smbd/msdfs.c
2022-03-11 19:47:04 +03:00
smbd/smb2_aio.c smbd/statvfs.c
2016-11-22 12:46:49 +03:00
smbd/dmapi.c
2022-03-17 22:55:25 +03:00
smbd/smb2_signing.c
2016-11-22 12:46:49 +03:00
smbd/file_access.c
smbd/dnsregister.c smbd/globals.c
smbd/smb2_server.c
smbd/smb2_glue.c
smbd/smb2_negprot.c
smbd/smb2_sesssetup.c
smbd/smb2_tcon.c
smbd/smb2_create.c
smbd/smb2_close.c
smbd/smb2_flush.c
smbd/smb2_read.c
smbd/smb2_write.c
smbd/smb2_lock.c
smbd/smb2_ioctl.c
smbd/smb2_ioctl_dfs.c
smbd/smb2_ioctl_filesys.c
smbd/smb2_ioctl_named_pipe.c
smbd/smb2_ioctl_network_fs.c
2021-08-05 23:14:16 +03:00
smbd/smb2_ioctl_smbtorture.c
2016-11-22 12:46:49 +03:00
smbd/smb2_keepalive.c
smbd/smb2_query_directory.c
smbd/smb2_notify.c
smbd/smb2_getinfo.c
smbd/smb2_setinfo.c
smbd/smb2_break.c
2022-01-28 01:17:36 +03:00
smbd/smb2_posix.c
2016-11-22 12:46:49 +03:00
smbd/smbXsrv_version.c
smbd/smbXsrv_client.c
smbd/smbXsrv_session.c
smbd/smbXsrv_tcon.c
smbd/smbXsrv_open.c
smbd/server_exit.c
smbd/durable.c
smbd/scavenger.c
smbd/mangle.c
smbd/mangle_hash.c
smbd/mangle_hash2.c
2022-03-15 23:53:18 +03:00
smbd/smb2_oplock.c
2016-11-22 12:46:49 +03:00
smbd/oplock_linux.c
smbd/notify.c
smbd/notify_msg.c
smbd/build_options.c
2020-09-27 09:52:58 +03:00
smbd/conn.c
2021-06-18 20:11:19 +03:00
rpc_server/srv_pipe_hnd.c
rpc_server/rpc_ncacn_np.c
2022-03-03 23:02:04 +03:00
''' + NOTIFY_SOURCES + SMB1_SOURCES,
2013-09-23 11:06:25 +04:00
deps='''
2016-11-22 12:46:49 +03:00
talloc
tevent
pdb
libsmb
msrpc3
vfs
vfs_default
vfs_posixacl
inotify
samba3core
param_service
AVAHI
PROFILE
LOCKING
LIBADS_SERVER
LIBAFS
NDR_SMBXSRV
LEASES_DB
2017-03-14 23:23:13 +03:00
LEASES_UTIL
2016-11-22 12:46:49 +03:00
sysquotas
NDR_SMB_ACL
netapi
NDR_IOCTL
notifyd
2017-08-18 15:41:57 +03:00
vfs_acl_common
2017-05-26 18:02:33 +03:00
NDR_QUOTA
2019-06-26 07:41:05 +03:00
GNUTLS_HELPERS
2020-09-26 22:46:51 +03:00
fd_handle
2021-06-18 20:11:19 +03:00
cli_spoolss
2015-07-08 08:43:20 +03:00
''' +
bld.env['dmapi_lib'] +
2016-02-03 07:41:42 +03:00
bld.env['legacy_quota_libs'] +
2015-07-08 08:43:20 +03:00
NOTIFY_DEPS,
2013-09-23 11:06:25 +04:00
private_library=True)
2010-09-23 17:45:56 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LOCKING',
2016-11-22 12:47:18 +03:00
source='''
locking/locking.c
locking/brlock.c
locking/posix.c
locking/share_mode_lock.c
''',
2012-01-23 21:41:35 +04:00
deps='''
2016-11-22 12:47:18 +03:00
tdb
talloc
2022-08-21 16:15:09 +03:00
vfs
2016-11-22 12:47:18 +03:00
LEASES_DB
2017-03-14 23:23:13 +03:00
LEASES_UTIL
2016-11-22 12:47:18 +03:00
NDR_OPEN_FILES
FNAME_UTIL
2020-09-26 22:52:52 +03:00
fd_handle
2016-11-22 12:47:18 +03:00
''')
2010-09-24 22:43:40 +04:00
2014-10-11 03:36:54 +04:00
bld.SAMBA3_SUBSYSTEM('LEASES_DB',
source='locking/leases_db.c',
deps='NDR_LEASES_DB')
2017-03-14 23:23:13 +03:00
bld.SAMBA3_SUBSYSTEM('LEASES_UTIL',
source='locking/leases_util.c',
deps='NDR_OPEN_FILES')
2014-09-30 19:08:20 +04:00
if bld.CONFIG_GET("WITH_PROFILE"):
2023-05-31 10:48:58 +03:00
bld.SAMBA_SUBSYSTEM('PROFILE_READ',
source='profile/profile_read.c',
deps='gnutls talloc tdb')
2014-09-30 19:08:20 +04:00
bld.SAMBA3_SUBSYSTEM('PROFILE',
source='profile/profile.c',
2019-11-15 15:21:48 +03:00
deps='''
samba-util
2023-05-31 10:48:58 +03:00
PROFILE_READ
2019-11-15 15:21:48 +03:00
''')
2014-09-30 19:08:20 +04:00
else:
bld.SAMBA3_SUBSYSTEM('PROFILE',
source='profile/profile_dummy.c',
deps='')
2010-09-24 23:27:57 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('PRINTBASE',
2016-11-22 12:47:54 +03:00
source='''
printing/notify.c
printing/printing_db.c
''',
deps='''
samba-util
tdb
''')
2010-09-27 05:39:41 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('PRINTBACKEND',
2016-11-22 12:48:35 +03:00
source='''
printing/printing.c
printing/nt_printing.c
printing/nt_printing_tdb.c
printing/nt_printing_migrate_internal.c
printing/nt_printing_ads.c
printing/queue_process.c
''',
deps='''
PRINTBASE
LIBADS_PRINTER
tdb
printing_migrate
''')
2010-09-27 05:39:41 +04:00
2011-07-01 16:57:32 +04:00
bld.SAMBA3_LIBRARY('printing_migrate',
2016-11-22 12:49:25 +03:00
source='''
printing/nt_printing_migrate.c
rpc_client/cli_winreg_spoolss.c
printing/nt_printing_os2.c
''',
deps='''
NDR_NTPRINTING
cli_spoolss
RPC_NDR_WINREG
LIBCLI_WINREG
2016-11-22 15:47:32 +03:00
smbconf
2016-11-22 12:49:25 +03:00
''',
2011-07-01 16:57:32 +04:00
private_library=True)
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('PRINTING',
2016-11-22 12:49:59 +03:00
source='''
printing/pcap.c
printing/print_svid.c
printing/print_aix.c
printing/print_cups.c
printing/print_generic.c
printing/lpq_parse.c
printing/print_standard.c
printing/print_iprint.c
''',
deps='''
NDR_PRINTCAP
2021-06-18 20:11:19 +03:00
dbwrap
tdb-wrap3
SMBCONF_PARAM
PRINTBASE
smbd_base
2016-11-22 12:49:59 +03:00
cups
''')
2010-09-27 05:39:41 +04:00
2021-04-22 14:39:31 +03:00
bld.SAMBA_BINARY('samba-bgqd',
source='printing/samba-bgqd.c',
deps='''
samba3core
2021-05-25 10:36:48 +03:00
CMDLINE_S3
2021-04-22 14:39:31 +03:00
AUTH_COMMON
2021-06-18 20:11:19 +03:00
RPC_SPOOLSS
2021-04-22 14:39:31 +03:00
''',
install_path='${LIBEXECDIR}/samba')
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('FNAME_UTIL',
2013-09-23 11:07:16 +04:00
source='lib/filename_util.c',
deps='samba-util')
2010-11-30 16:29:31 +03:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBNET',
2021-02-10 17:56:43 +03:00
source='libnet/libnet_join.c libnet/libnet_join_offline.c',
2013-09-23 11:42:22 +04:00
deps='NDR_LIBNET_JOIN INIT_SAMR net_keytab pdb')
2010-09-25 03:45:41 +04:00
2011-11-02 15:04:46 +04:00
bld.SAMBA3_LIBRARY('net_keytab',
source='libnet/libnet_keytab.c',
2012-04-22 01:26:18 +04:00
deps='krb5samba ads',
2011-11-02 15:04:46 +04:00
private_library=True)
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBNET_DSSYNC',
2016-11-22 12:50:39 +03:00
source='''
libnet/libnet_dssync.c
libnet/libnet_dssync_passdb.c
libnet/libnet_dssync_keytab.c
''',
deps='''
LIBNET
RPC_NDR_DRSUAPI
''')
2010-09-25 03:45:41 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBEVENTLOG',
2013-09-23 10:44:17 +04:00
source='lib/eventlog/eventlog.c',
2015-03-12 17:40:16 +03:00
deps='NDR_EVENTLOG tdb')
2010-09-25 04:06:16 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBNMB',
2016-11-22 12:51:49 +03:00
source='''
libsmb/unexpected.c
libsmb/namecache.c
libsmb/nmblib.c
2019-10-30 18:20:19 +03:00
libsmb/clidgram.c
2016-11-22 12:51:49 +03:00
libsmb/namequery.c
libsmb/conncache.c
libads/sitename_cache.c
''',
deps='''
LIBTSOCKET
2019-10-30 18:20:19 +03:00
LIBCLI_NETLOGON
2016-11-22 12:51:49 +03:00
samba3util
addns
lmhosts
resolv
''')
2010-11-30 16:56:26 +03:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('SERVICES',
2016-11-22 12:52:35 +03:00
source='''
services/svc_spoolss.c
services/svc_rcinit.c
services/svc_winreg_glue.c
services/svc_netlogon.c
services/svc_winreg.c
services/svc_wins.c
''',
2013-09-23 10:43:28 +04:00
deps='samba-util')
2010-09-27 05:47:15 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('PLAINTEXT_AUTH',
2016-11-22 12:53:15 +03:00
source='''
auth/pampass.c
auth/pass_check.c
''',
deps='''
2019-11-06 05:44:45 +03:00
crypt
2016-11-22 12:53:15 +03:00
pam
PAM_ERRORS
''')
2010-09-26 21:44:53 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('PASSCHANGE',
2013-09-23 09:40:42 +04:00
source='libsmb/passchange.c',
2016-11-22 12:53:39 +03:00
deps='''
LIBCLI_SAMR
INIT_LSA
msrpc3
krb5samba
''')
2011-01-04 15:05:51 +03:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('SAMBA_VERSION',
2013-09-23 04:15:16 +04:00
source='lib/version.c',
deps='samba-util')
2011-01-04 15:11:35 +03:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('SLCACHE',
2013-09-23 11:09:47 +04:00
source='libsmb/samlogon_cache.c',
2016-11-22 12:54:14 +03:00
deps='''
samba-util
tdb
''')
2010-09-26 21:44:53 +04:00
2019-10-30 17:55:32 +03:00
bld.SAMBA3_SUBSYSTEM('dsgetdcname',
source='''
libsmb/dsgetdcname.c
''',
deps='''
CLDAP
LIBNMB
''')
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('DCUTIL',
2016-11-22 12:54:41 +03:00
source='''
libsmb/namequery_dc.c
''',
deps='''
ads
2019-10-30 17:55:32 +03:00
dsgetdcname
2016-11-22 12:54:41 +03:00
msrpc3
libcli_lsa3
''')
2010-09-26 21:44:53 +04:00
2011-11-02 16:06:45 +04:00
bld.SAMBA3_LIBRARY('trusts_util',
source='libsmb/trusts_util.c',
2016-11-22 12:55:24 +03:00
deps='''
libcli_netlogon3
msrpc3
samba-passdb
''',
2011-11-02 16:06:45 +04:00
private_library=True)
2011-02-21 02:12:48 +03:00
bld.SAMBA3_SUBSYSTEM('tdb-wrap3',
2010-12-14 15:27:24 +03:00
source='lib/util_tdb.c',
2013-09-23 12:11:18 +04:00
deps='talloc samba3-util')
2010-12-14 15:50:30 +03:00
2012-03-24 19:42:47 +04:00
bld.SAMBA3_LIBRARY('samba3-util',
2016-11-22 12:56:00 +03:00
source='''
lib/util_sec.c
lib/util_str.c
lib/adt_tree.c
lib/util_malloc.c
lib/namearray.c
lib/file_id.c
2016-11-22 13:18:40 +03:00
lib/cbuf.c
2019-01-11 14:47:40 +03:00
lib/per_thread_cwd.c
2016-11-22 12:56:00 +03:00
''',
deps='''
samba-util
charset
''',
2011-06-24 05:47:45 +04:00
private_library=True)
2011-05-30 11:42:06 +04:00
2012-04-16 09:49:13 +04:00
bld.SAMBA_LIBRARY('xattr_tdb',
source='lib/xattr_tdb.c',
deps='NDR_XATTR dbwrap samba3-util',
private_library=True)
2011-05-30 10:55:30 +04:00
bld.SAMBA3_LIBRARY('CHARSET3',
2016-11-22 12:56:57 +03:00
source='''
lib/charcnv.c
lib/fstring.c
''',
public_deps='''
ICONV_WRAPPER
charset
''',
deps='''
samba-util
samba3-util
''',
2011-06-24 05:47:45 +04:00
private_library=True)
2010-12-14 18:47:35 +03:00
2011-02-21 02:14:13 +03:00
bld.SAMBA3_SUBSYSTEM('errors3',
2016-11-22 12:57:22 +03:00
source='''
libsmb/errormap.c
libsmb/smberr.c
lib/errmap_unix.c
''',
2016-01-04 04:01:53 +03:00
deps='samba-errors')
2010-09-21 12:24:13 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBCLI_SAMR',
2013-09-23 09:43:49 +04:00
source='rpc_client/cli_samr.c',
2019-01-16 14:41:32 +03:00
deps='RPC_NDR_SAMR INIT_SAMR')
2010-11-30 18:43:34 +03:00
2011-06-28 20:15:23 +04:00
bld.SAMBA3_LIBRARY('libcli_lsa3',
2013-09-23 09:43:06 +04:00
source='rpc_client/cli_lsarpc.c',
2012-01-23 17:46:31 +04:00
deps='RPC_NDR_LSA INIT_LSA',
2011-06-24 05:47:45 +04:00
private_library=True)
2010-11-30 19:09:34 +03:00
2011-11-02 19:58:53 +04:00
bld.SAMBA3_LIBRARY('libcli_netlogon3',
2016-11-22 12:58:28 +03:00
source='''
rpc_client/cli_netlogon.c
rpc_client/util_netlogon.c
''',
deps='''
msrpc3
RPC_NDR_NETLOGON
cliauth
2016-11-22 15:47:32 +03:00
smbconf
2016-11-22 12:58:28 +03:00
NETLOGON_CREDS_CLI''',
2011-11-02 19:58:53 +04:00
private_library=True)
2010-11-30 19:27:37 +03:00
2011-07-25 23:23:31 +04:00
bld.SAMBA3_LIBRARY('cli_spoolss',
2016-11-22 12:59:14 +03:00
source='''
rpc_client/cli_spoolss.c
rpc_client/init_spoolss.c
''',
deps='''
2021-04-02 14:41:21 +03:00
RPC_NDR_SPOOLSS
smbconf
secrets3
gensec
''',
2011-07-05 13:29:37 +04:00
private_library=True)
2010-11-30 19:50:32 +03:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG',
2011-07-08 19:17:17 +04:00
source='rpc_client/cli_winreg.c',
deps='RPC_NDR_WINREG')
bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG_INTERNAL',
source='rpc_client/cli_winreg_int.c',
2013-09-25 13:35:41 +04:00
deps='LIBCLI_WINREG RPC_SERVER')
2011-02-03 14:25:24 +03:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('RPC_CLIENT_SCHANNEL',
2013-09-23 10:45:21 +04:00
source='rpc_client/cli_pipe_schannel.c',
deps='samba-util krb5samba')
2010-10-08 15:17:21 +04:00
2019-05-02 08:45:39 +03:00
bld.SAMBA3_SUBSYSTEM('RPCCLI_MDSSVC',
source='''
rpc_client/cli_mdssvc.c
rpc_client/cli_mdssvc_util.c
''',
deps='mdssvc RPC_NDR_MDSSVC')
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('INIT_LSA',
2011-05-20 12:12:08 +04:00
source='rpc_client/init_lsa.c',
2011-06-20 14:36:46 +04:00
deps='samba-util')
2010-10-08 15:17:21 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('INIT_SAMR',
2011-05-20 12:12:08 +04:00
source='rpc_client/init_samr.c',
2019-01-21 15:16:56 +03:00
deps='samba-util GNUTLS_HELPERS')
2010-12-01 00:41:41 +03:00
2014-09-12 03:11:06 +04:00
bld.SAMBA3_SUBSYSTEM('LIBLSA',
source='lib/lsa.c')
2016-01-20 17:08:31 +03:00
bld.SAMBA3_SUBSYSTEM('tevent-glib-glue',
source='lib/tevent_glib_glue.c',
deps='glib-2.0',
enabled=bld.CONFIG_SET('WITH_TEVENT_GLIB_GLUE'),
)
2019-07-09 14:10:00 +03:00
bld.SAMBA3_SUBSYSTEM('ADOUBLE',
source='lib/adouble.c',
deps='STRING_REPLACE')
2021-11-25 17:04:03 +03:00
bld.SAMBA3_BINARY('test_adouble',
source='lib/test_adouble.c',
deps='smbd_base STRING_REPLACE cmocka',
for_selftest=True)
2019-07-09 20:10:14 +03:00
bld.SAMBA3_SUBSYSTEM('STRING_REPLACE',
source='lib/string_replace.c')
2020-09-27 14:14:30 +03:00
bld.SAMBA3_SUBSYSTEM('fd_handle',
source='smbd/fd_handle.c')
2010-04-18 11:30:59 +04:00
########################## BINARIES #################################
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('smbd/smbd',
2015-11-02 14:47:13 +03:00
source='smbd/server.c smbd/smbd_cleanupd.c',
2016-10-18 20:06:13 +03:00
deps='''
2021-01-05 16:35:39 +03:00
CMDLINE_S3
2016-10-18 20:06:13 +03:00
smbd_base
2021-06-18 20:11:19 +03:00
REG_FULL
2016-10-18 20:06:13 +03:00
''',
2013-09-23 11:12:21 +04:00
install_path='${SBINDIR}')
2010-03-24 03:28:03 +03:00
2013-09-23 04:50:19 +04:00
bld.SAMBA3_SUBSYSTEM('TDB_VALIDATE',
source='lib/tdb_validate.c',
deps='samba-util')
2023-01-12 14:11:49 +03:00
bld.SAMBA3_SUBSYSTEM('util_sd',
deps='smbclient',
source='lib/util_sd.c')
2013-09-23 04:50:19 +04:00
2012-05-30 15:10:57 +04:00
bld.SAMBA3_BINARY('client/smbclient',
2016-11-22 13:00:00 +03:00
source='''
client/client.c
client/clitar.c
client/dnsbrowse.c
''',
2012-01-24 14:28:28 +04:00
deps='''
2016-11-22 13:00:00 +03:00
talloc
2020-08-18 17:58:19 +03:00
CMDLINE_S3
2016-11-22 15:47:32 +03:00
smbconf
2016-11-22 13:00:00 +03:00
ndr-standard
SMBREADLINE
libsmb
msrpc3
RPC_NDR_SRVSVC
cli_smb_common
archive
''')
2010-05-26 16:09:39 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('smbspool',
2013-09-23 11:48:26 +04:00
source='client/smbspool.c',
2012-01-24 15:51:31 +04:00
deps='''
2016-11-22 13:00:20 +03:00
talloc
2016-11-22 15:47:32 +03:00
smbconf
2016-11-22 13:00:20 +03:00
libsmb
samba3core
''')
2010-04-12 01:01:29 +04:00
2016-01-12 17:17:22 +03:00
bld.SAMBA3_BINARY('smbspool_krb5_wrapper',
source='client/smbspool_krb5_wrapper.c',
deps='''
2016-11-22 13:00:37 +03:00
DYNCONFIG
cups
2019-06-18 15:43:50 +03:00
krb5samba
2016-11-22 13:00:37 +03:00
''',
2016-02-12 10:46:10 +03:00
install_path='${LIBEXECDIR}/samba',
2016-01-26 13:28:50 +03:00
enabled=bld.CONFIG_SET('HAVE_CUPS'))
2016-01-12 17:17:22 +03:00
2019-09-26 04:49:56 +03:00
bld.SAMBA3_BINARY('smbspool_argv_wrapper',
source='script/tests/smbspool_argv_wrapper.c',
2019-11-22 00:06:57 +03:00
for_selftest=True)
2019-09-26 04:49:56 +03:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('smbconftort',
2013-09-23 11:41:22 +04:00
source='lib/smbconf/testsuite.c',
2012-01-24 18:41:07 +04:00
deps='''
2016-11-22 13:02:27 +03:00
talloc
2016-11-22 15:47:32 +03:00
smbconf
2021-01-12 13:59:58 +03:00
CMDLINE_S3
2016-11-22 13:02:27 +03:00
''',
2019-11-22 00:06:57 +03:00
for_selftest=True)
2010-09-23 11:13:34 +04:00
2019-07-30 13:47:03 +03:00
bld.SAMBA3_BINARY('test_mdsparser_es',
source='''
rpc_server/mdssvc/test_mdsparser_es.c
rpc_server/mdssvc/es_parser.y
2020-05-27 12:50:41 +03:00
rpc_server/mdssvc/es_lexer.l
2019-07-30 13:47:03 +03:00
rpc_server/mdssvc/es_mapping.c
''',
deps='''
samba3-util
talloc
smbconf
jansson
cmocka
2021-01-13 15:53:55 +03:00
CMDLINE_S3
2019-07-30 13:47:03 +03:00
''',
enabled=bld.env.spotlight_backend_es,
2019-11-22 00:06:57 +03:00
for_selftest=True)
2019-07-30 13:47:03 +03:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('versiontest',
2011-01-04 15:11:35 +03:00
source='lib/version_test.c',
2012-01-24 19:30:51 +04:00
deps='''
2016-11-22 13:04:30 +03:00
SAMBA_VERSION
2016-11-22 15:47:32 +03:00
smbconf
2016-11-22 13:04:30 +03:00
''',
2013-09-23 12:11:18 +04:00
install=False)
2010-09-23 11:13:34 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('timelimit',
2010-09-23 11:13:34 +04:00
source='script/tests/timelimit.c',
2019-11-22 00:06:57 +03:00
for_selftest=True)
2010-09-23 11:13:34 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_BINARY('vlp',
2013-09-23 12:03:08 +04:00
source='printing/tests/vlp.c',
2012-01-24 20:01:08 +04:00
deps='''
2016-11-22 13:04:59 +03:00
talloc
2016-11-22 15:47:32 +03:00
smbconf
2016-11-22 13:04:59 +03:00
''',
2019-11-22 00:06:57 +03:00
for_selftest=True)
2010-09-29 10:48:49 +04:00
2018-02-05 14:10:46 +03:00
2019-02-15 06:37:48 +03:00
pyrpc_util = bld.pyembed_libname('pyrpc_util')
pytalloc_util = bld.pyembed_libname('pytalloc-util')
bld.SAMBA3_PYTHON('pysmbd',
2012-05-07 10:24:03 +04:00
source='smbd/pysmbd.c',
2018-03-28 05:53:50 +03:00
deps=' '.join(['smbd_base', pyrpc_util, pytalloc_util]),
2012-05-07 10:24:03 +04:00
realname='samba/samba3/smbd.so'
)
2019-02-15 06:37:48 +03:00
pycredentials = 'pycredentials'
bld.SAMBA3_PYTHON('pylibsmb',
2012-08-03 01:21:27 +04:00
source='libsmb/pylibsmb.c',
2018-04-04 11:53:14 +03:00
deps='smbclient samba-credentials %s' % pycredentials,
2020-11-11 13:20:29 +03:00
realname='samba/samba3/libsmb_samba_cwrapper.so'
2012-08-03 01:21:27 +04:00
)
2019-07-28 16:08:29 +03:00
bld.SAMBA3_PYTHON('pymdscli',
source='rpc_client/py_mdscli.c',
deps=' '.join(['RPCCLI_MDSSVC', pytalloc_util, pyrpc_util]),
realname='samba/samba3/mdscli.so')
2022-04-23 21:38:42 +03:00
bld.SAMBA3_PYTHON('pys3smbconf',
source='lib/smbconf/pys3smbconf.c',
deps='smbconf',
realname='samba/samba3/smbconf.so')
2014-07-31 20:01:34 +04:00
bld.SAMBA3_BINARY('spotlight2sparql',
source='''
rpc_server/mdssvc/sparql_parser_test.c
2017-01-17 19:02:27 +03:00
rpc_server/mdssvc/sparql_parser.y
2020-05-27 12:50:41 +03:00
rpc_server/mdssvc/sparql_lexer.l
2014-07-31 20:01:34 +04:00
rpc_server/mdssvc/sparql_mapping.c''',
deps='samba3-util talloc ' + bld.env['libtracker'],
2019-05-06 16:03:02 +03:00
enabled=bld.env.spotlight_backend_tracker,
2014-07-31 20:01:34 +04:00
install=False)
2019-08-05 17:25:01 +03:00
bld.SAMBA3_BINARY('spotlight2es',
source='''
rpc_server/mdssvc/es_parser_test.c
rpc_server/mdssvc/es_parser.y
2020-05-27 12:50:41 +03:00
rpc_server/mdssvc/es_lexer.l
2019-08-05 17:25:01 +03:00
rpc_server/mdssvc/es_mapping.c''',
deps='samba3-util talloc jansson smbconf',
enabled=bld.env.spotlight_backend_es,
install=False)
2016-01-28 10:29:28 +03:00
bld.SAMBA3_BINARY('tevent_glib_glue_test',
source='lib/tevent_glib_glue_tests.c',
deps='''
talloc
libsmb
tevent-glib-glue''',
enabled=bld.CONFIG_SET('WITH_TEVENT_GLIB_GLUE'),
2019-11-22 00:06:57 +03:00
for_selftest=True)
2016-01-28 10:29:28 +03:00
2016-01-22 17:38:39 +03:00
bld.SAMBA3_BINARY('tevent_glib_tracker',
source='utils/async-tracker.c',
deps='''
talloc
libsmb
2021-01-12 14:58:24 +03:00
CMDLINE_S3
2016-01-22 17:38:39 +03:00
tevent-glib-glue ''' + bld.env['libtracker'],
enabled=bld.CONFIG_SET('HAVE_TRACKER') and bld.CONFIG_SET('WITH_TEVENT_GLIB_GLUE'),
install=False)
2010-04-18 16:43:01 +04:00
########################## INCLUDES #################################
2010-04-18 11:30:59 +04:00
2010-09-26 21:43:43 +04:00
bld.RECURSE('auth')
2010-09-26 22:30:36 +04:00
bld.RECURSE('libgpo/gpext')
2011-01-07 14:08:54 +03:00
bld.RECURSE('librpc')
bld.RECURSE('librpc/idl')
2012-04-16 19:05:35 +04:00
bld.RECURSE('libsmb')
2011-01-07 14:08:54 +03:00
bld.RECURSE('modules')
2013-10-14 04:47:27 +04:00
bld.RECURSE('param')
2011-01-07 14:08:54 +03:00
bld.RECURSE('passdb')
2010-09-28 20:55:55 +04:00
bld.RECURSE('rpc_server')
2013-05-26 15:05:12 +04:00
bld.RECURSE('script')
2011-01-07 14:08:54 +03:00
bld.RECURSE('winbindd')
2011-10-19 15:56:42 +04:00
bld.RECURSE('../examples/libsmbclient')
2011-10-17 18:08:50 +04:00
bld.RECURSE('../examples/pdb')
2011-10-11 21:20:05 +04:00
bld.RECURSE('../examples/VFS')
2016-10-12 16:02:45 +03:00
bld.RECURSE('../examples/fuse')
2018-04-10 18:18:18 +03:00
bld.RECURSE('../examples/winexe')
2011-10-20 06:41:30 +04:00
bld.RECURSE('lib/netapi/tests')
2011-10-21 02:02:23 +04:00
bld.RECURSE('lib/netapi/examples')
2014-11-21 18:52:47 +03:00
bld.RECURSE('smbd/notifyd')
2013-01-10 16:53:56 +04:00
bld.RECURSE('rpcclient')
2016-09-27 01:25:07 +03:00
bld.RECURSE('utils')
2016-09-27 01:39:53 +03:00
bld.RECURSE('nmbd')
2019-01-28 14:54:07 +03:00
bld.RECURSE('lib/util')
2020-11-09 17:12:21 +03:00
bld.RECURSE('torture')
2011-02-24 03:23:53 +03:00
2010-03-24 03:28:03 +03:00
bld.ENFORCE_GROUP_ORDERING()
bld.CHECK_PROJECT_RULES()
2011-02-23 02:08:12 +03:00