WHATSNEW: Add release notes for Samba 4.5.4.
[Samba.git] / source3 / wscript_build
blobd19b583a4d90e62b73fcf6d6f051559461012d22
1 #!/usr/bin/env python
3 from samba_utils import *
4 import samba_version, samba3
6 LIBS='ICONV'
8 config_h = "../include/config.h"
10 bld.SAMBA_BLDOPTIONS('smbd/build_options.c')
12 t = bld.SAMBA_GENERATOR('build_env.h',
13 source='script/build_env.sh',
14 target='include/build_env.h',
15 rule='${SRC} ${SRCDIR} ${BUILDDIR} ${CC} > ${TGT}')
16 # todo: work out what is really wanted here
17 t.env.SRCDIR = bld.path.abspath()
18 t.env.BUILDDIR = bld.path.abspath()
20 bld.SETUP_BUILD_GROUPS()
22 ######################## SUBSYSTEMS #################################
24 bld.SAMBA3_LIBRARY('netapi',
25 source='''lib/netapi/netapi.c
26 lib/netapi/cm.c
27 lib/netapi/libnetapi.c
28 lib/netapi/joindomain.c
29 lib/netapi/serverinfo.c
30 lib/netapi/wkstainfo.c
31 lib/netapi/getdc.c
32 lib/netapi/user.c
33 lib/netapi/group.c
34 lib/netapi/localgroup.c
35 lib/netapi/samr.c
36 lib/netapi/sid.c
37 lib/netapi/share.c
38 lib/netapi/file.c
39 lib/netapi/shutdown.c
40 lib/netapi/netlogon.c''',
41 public_deps='''
42 talloc
43 util_cmdline
44 msrpc3
45 ads
46 NDR_LIBNETAPI
47 LIBNET
48 RPC_CLIENT_SCHANNEL
49 libcli_netlogon3
50 LIBCLI_SAMR
51 INIT_SAMR
52 auth
53 ''',
54 public_headers='../source3/lib/netapi/netapi.h',
55 pc_files='libnet/netapi.pc',
56 vnum='0')
58 bld.SAMBA3_LIBRARY('gse',
59 source='librpc/crypto/gse_krb5.c librpc/crypto/gse.c',
60 deps='krb5samba gensec param KRBCLIENT secrets3',
61 private_library=True)
63 bld.SAMBA3_LIBRARY('msrpc3',
64 source='''rpc_client/cli_pipe.c
65 rpc_client/rpc_transport_np.c
66 rpc_client/rpc_transport_sock.c
67 rpc_client/rpc_transport_tstream.c
68 librpc/rpc/dcerpc_helpers.c''',
69 deps='''ndr ndr-standard
70 RPC_NDR_EPMAPPER NTLMSSP_COMMON COMMON_SCHANNEL LIBCLI_AUTH
71 LIBTSOCKET gse dcerpc-binding
72 libsmb ndr-table NETLOGON_CREDS_CLI
73 ''',
74 private_library=True)
76 bld.SAMBA3_LIBRARY('gpo',
77 source='''../libgpo/gpo_ldap.c
78 ../libgpo/gpo_ini.c
79 ../libgpo/gpo_util.c
80 ../libgpo/gpo_fetch.c
81 libgpo/gpo_filesync.c
82 ../libgpo/gpo_sec.c
83 libgpo/gpo_reg.c''',
84 deps='talloc ads TOKEN_UTIL gpext auth',
85 private_library=True)
87 bld.SAMBA3_SUBSYSTEM('AVAHI',
88 source='lib/avahi.c smbd/avahi_register.c',
89 deps='avahi-common avahi-client',
90 enabled=bld.env.with_avahi)
92 bld.SAMBA3_SUBSYSTEM('GROUPDB',
93 source='groupdb/mapping.c groupdb/mapping_tdb.c',
94 deps='tdb')
96 bld.SAMBA3_SUBSYSTEM('TLDAP',
97 source='''lib/tldap.c
98 lib/tldap_util.c
99 lib/tldap_gensec_bind.c
100 ''',
101 deps='asn1util LIBTSOCKET samba3util')
103 # libpdb.so should not expose internal symbols that are only usable
104 # to the statically linked modules that are merged into libpdb.
105 # Note that we always filter these symbols out in libpdb, even
106 # when modules are not linked statically. In the latter case
107 # symbols will not be present in the libpdb anyway so no hurt is
108 # done to the version script.
109 private_pdb_match = []
110 private_pdb_match.append('!idmap_init')
111 private_pdb_match.append('!idmap_sids_to_xids')
112 private_pdb_match.append('!idmap_xids_to_sids')
114 ldapsam_pdb_match = ['!priv2ld', '!smbldap_search_domain_info',
115 '!ldapsam_*', '!groupmap_attr_list*', '!get_userattr_list',
116 '!dominfo_attr_list', '!get_attr_key2string',
117 '!sidmap_attr_list', '!attrib_map_*', '!idpool_attr_list',
118 '!get_attr_list']
119 private_pdb_match.append('!pdb_nds_*')
120 private_pdb_match.append('!pdb_ldapsam_init*')
121 private_pdb_match.append('!pdb_*_init')
122 private_pdb_match = private_pdb_match + ldapsam_pdb_match
124 bld.SAMBA3_LIBRARY('samba-passdb',
125 source='',
126 deps='pdb',
127 private_library=False,
128 grouping_library=True,
129 pc_files=[],
130 public_headers_install=True,
131 public_headers='''
132 include/passdb.h
133 passdb/machine_sid.h
134 passdb/lookup_sid.h''',
135 abi_match=private_pdb_match,
136 abi_directory='passdb/ABI',
137 vnum='0.25.0')
139 bld.SAMBA3_SUBSYSTEM('pdb',
140 source='''passdb/pdb_get_set.c
141 passdb/passdb.c
142 lib/util_wellknown.c
143 lib/util_builtin.c
144 passdb/pdb_compat.c
145 lib/util_sid_passdb.c
146 lib/util_unixsids.c
147 passdb/lookup_sid.c
148 passdb/login_cache.c
149 passdb/account_pol.c
150 lib/privileges.c
151 lib/util_nscd.c
152 lib/winbind_util.c
153 passdb/pdb_util.c
154 passdb/pdb_interface.c
155 passdb/pdb_secrets.c
156 passdb/pdb_unixid.c''',
157 deps='secrets3 GROUPDB SERVER_MUTEX wbclient LIBCLI_AUTH flag_mapping samba-credentials')
159 bld.SAMBA3_LIBRARY('smbldaphelper',
160 source='passdb/pdb_ldap_schema.c passdb/pdb_ldap_util.c',
161 deps='smbldap secrets3',
162 allow_undefined_symbols=True,
163 enabled=bld.CONFIG_SET('HAVE_LDAP'),
164 private_library=True)
166 bld.SAMBA3_SUBSYSTEM('SERVER_MUTEX',
167 source='lib/server_mutex.c',
168 deps='talloc')
170 bld.SAMBA3_SUBSYSTEM('param',
171 source='''param/loadparm.c
172 lib/sharesec.c
173 lib/ldap_debug_handler.c
174 lib/util_names.c''',
175 deps='''samba-util
176 PARAM_UTIL
177 ldap
178 lber
179 LOADPARM_CTX
180 samba3core
181 smbconf
182 param_local.h
183 param_global.h
184 cups''')
186 # this includes only the low level parse code, not stuff
187 # that requires knowledge of security contexts
188 bld.SAMBA3_SUBSYSTEM('REG_PARSE_PRS',
189 source='registry/reg_parse_prs.c')
191 bld.SAMBA3_SUBSYSTEM('REGFIO',
192 source='registry/regfio.c',
193 deps='samba-util REG_PARSE_PRS')
195 bld.SAMBA3_SUBSYSTEM('REG_API_REGF',
196 source='registry/reg_api_regf.c',
197 deps='samba-util')
199 bld.SAMBA3_LIBRARY('smbregistry',
200 source='''registry/reg_api.c
201 registry/reg_dispatcher.c
202 registry/reg_cachehook.c
203 registry/reg_objects.c
204 registry/reg_util_internal.c
205 lib/util_nttoken.c
206 registry/reg_backend_db.c
207 registry/reg_parse_internal.c
208 lib/cbuf.c
209 lib/srprs.c
210 registry/reg_init_basic.c''',
211 deps='''smbd_shim tdb-wrap3 NDR_SECURITY util_tdb talloc
212 replace util_reg samba-util samba-security
213 errors3 dbwrap samba3-util''',
214 allow_undefined_symbols=True,
215 private_library=True)
217 bld.SAMBA3_SUBSYSTEM('REG_SMBCONF',
218 source='''registry/reg_backend_smbconf.c
219 registry/reg_init_smbconf.c
220 registry/reg_util_token.c
221 registry/reg_api_util.c''',
222 deps='smbregistry')
224 bld.SAMBA3_SUBSYSTEM('REG_FULL',
225 source='''registry/reg_backend_printing.c
226 registry/reg_backend_shares.c
227 registry/reg_backend_netlogon_params.c
228 registry/reg_backend_prod_options.c
229 registry/reg_backend_tcpip_params.c
230 registry/reg_backend_hkpt_params.c
231 registry/reg_backend_current_version.c
232 registry/reg_backend_perflib.c
233 registry/reg_init_full.c
234 registry/reg_perfcount.c''',
235 deps='REG_SMBCONF tdb-wrap3')
237 bld.SAMBA3_LIBRARY('popt_samba3',
238 source='lib/popt_common.c',
239 deps='popt samba-util util_cmdline',
240 private_library=True)
242 bld.SAMBA3_LIBRARY('util_cmdline',
243 source='lib/util_cmdline.c',
244 deps='secrets3',
245 private_library=True)
247 bld.SAMBA3_SUBSYSTEM('KRBCLIENT',
248 source='libads/kerberos.c libads/ads_status.c',
249 public_deps='krb5samba k5crypto gssapi LIBTSOCKET CLDAP LIBNMB')
251 bld.SAMBA3_SUBSYSTEM('samba3util',
252 source='''lib/system.c
253 lib/sendfile.c
254 lib/recvfile.c
255 lib/time.c
256 lib/util_sid.c
257 lib/util_specialsids.c
258 lib/util_file.c
259 lib/util.c
260 lib/util_path.c
261 lib/util_procid.c
262 lib/util_sock.c
263 lib/util_tsock.c
264 lib/util_transfer_file.c
265 lib/sys_popen.c
266 lib/sock_exec.c''',
267 deps='ndr LIBTSOCKET samba-security NDR_SECURITY samba-util util_tdb sys_rw iov_buf')
269 if bld.env.with_ctdb:
270 SAMBA_CLUSTER_SUPPORT_SOURCES='''
271 lib/cluster_support.c
272 lib/dbwrap/dbwrap_ctdb.c
273 lib/messages_ctdbd.c
274 lib/ctdbd_conn.c
276 SAMBA_CLUSTER_SUPPORT_DEPS='''
277 talloc
278 tevent
281 else:
282 SAMBA_CLUSTER_SUPPORT_SOURCES='''
283 lib/cluster_support.c
284 lib/ctdb_dummy.c
286 SAMBA_CLUSTER_SUPPORT_DEPS='''
287 talloc
288 tevent
291 bld.SAMBA3_LIBRARY('samba-cluster-support',
292 source=SAMBA_CLUSTER_SUPPORT_SOURCES,
293 deps=SAMBA_CLUSTER_SUPPORT_DEPS,
294 allow_undefined_symbols=True,
295 private_library=True)
297 bld.SAMBA3_SUBSYSTEM('TDB_LIB',
298 source='''lib/dbwrap/dbwrap_open.c
299 lib/dbwrap/dbwrap_watch.c
300 lib/g_lock.c''',
301 deps='dbwrap samba-cluster-support')
303 bld.SAMBA3_LIBRARY('messages_dgm',
304 source='''lib/messages_dgm.c lib/messages_dgm_ref.c''',
305 deps='''talloc UNIX_MSG POLL_FUNCS_TEVENT samba-debug
306 genrand''',
307 private_library=True)
309 bld.SAMBA3_LIBRARY('messages_util',
310 source='''lib/messages_util.c''',
311 deps='samba-util',
312 private_library=True)
314 bld.SAMBA3_SUBSYSTEM('samba3core',
315 source='''lib/messages.c
316 lib/util_cluster.c
317 lib/id_cache.c
318 lib/talloc_dict.c
319 lib/serverid.c
320 lib/server_id_watch.c
321 lib/server_id_db_util.c
322 lib/addrchange.c
323 ../lib/util/debug_s3.c
324 lib/dumpcore.c
325 lib/interface.c
326 lib/username.c
327 lib/access.c lib/smbrun.c
328 lib/wins_srv.c
329 lib/substitute.c
330 lib/substitute_generic.c
331 lib/ms_fnmatch.c
332 lib/tallocmsg.c
333 lib/dmallocmsg.c
334 intl/lang_tdb.c
335 lib/gencache.c
336 lib/util_event.c
337 lib/server_contexts.c
338 lib/server_prefork.c
339 lib/server_prefork_util.c
340 lib/ldap_escape.c
341 lib/fncall.c
342 libads/krb5_errs.c
343 lib/system_smbd.c
344 lib/audit.c
345 lib/tevent_wait.c
346 lib/idmap_cache.c
347 lib/util_ea.c
348 lib/background.c
349 lib/cleanupdb.c''',
350 deps='''
351 samba3util
352 LIBTSOCKET
353 NDR_MESSAGING
354 LIBASYNC_REQ
355 UTIL_PW
356 SAMBA_VERSION
357 PTHREADPOOL
358 UNIX_MSG
359 POLL_FUNCS_TEVENT
360 interfaces
361 param
362 dbwrap
363 samba3-util
364 errors3
365 server_id_db
366 messages_util
367 messages_dgm
368 talloc_report
369 TDB_LIB''')
371 bld.SAMBA3_LIBRARY('smbd_shim',
372 source='''lib/smbd_shim.c''',
373 deps='talloc',
374 private_library=True)
376 bld.SAMBA3_SUBSYSTEM('auth_generic',
377 source='libsmb/auth_generic.c',
378 deps='gse gensec')
380 bld.SAMBA3_LIBRARY('libsmb',
381 source='''libsmb/clientgen.c
382 libsmb/cliconnect.c
383 libsmb/clifile.c
384 libsmb/clispnego.c
385 libsmb/clirap.c
386 libsmb/clierror.c
387 libsmb/climessage.c
388 libsmb/clireadwrite.c
389 libsmb/clilist.c
390 libsmb/cliprint.c
391 libsmb/clitrans.c
392 libsmb/clisecdesc.c
393 libsmb/clidgram.c
394 libsmb/clistr.c
395 libsmb/cliquota.c
396 libsmb/clifsinfo.c
397 libsmb/clidfs.c
398 libsmb/clioplock.c
399 libsmb/clirap2.c
400 libsmb/async_smb.c
401 libsmb/reparse_symlink.c
402 libsmb/clisymlink.c
403 libsmb/smbsock_connect.c
404 libsmb/cli_smb2_fnum.c''',
405 deps='''
406 auth_generic
407 CLDAP
408 LIBNMB
409 SPNEGO_PARSE
410 LIBTSOCKET
411 KRBCLIENT
412 NDR_IOCTL
413 cli_smb_common
414 util_cmdline
415 tevent''',
416 private_library=True)
418 bld.SAMBA3_SUBSYSTEM('CLDAP',
419 source='libads/cldap.c',
420 deps='cli-ldap-common cli_cldap LIBTSOCKET')
422 # NOTE: The secrets3 library is a low level library used by several subsystems.
423 # PLEASE DO NOT make it depend on high level libraries like PDB, if you are
424 # doing that your design is wrong and needs changing. -SSS
425 bld.SAMBA3_LIBRARY('secrets3',
426 source='''passdb/secrets.c
427 passdb/machine_account_secrets.c
428 passdb/machine_sid.c
429 passdb/secrets_lsa.c''',
430 deps='NDR_SECRETS param samba3util dbwrap',
431 private_library=True)
433 bld.SAMBA3_LIBRARY('smbldap',
434 source='lib/smbldap.c',
435 deps='ldap lber samba-util param',
436 enabled=bld.CONFIG_SET("HAVE_LDAP"),
437 private_library=False,
438 abi_directory='lib/ABI',
439 abi_match='smbldap_*',
440 pc_files=[],
441 vnum='0',
442 public_headers='include/smbldap.h include/smb_ldap.h')
444 bld.SAMBA3_LIBRARY('ads',
445 source='''libads/ldap.c
446 libads/sasl.c
447 libads/sasl_wrapping.c
448 libads/krb5_setpw.c
449 libads/kerberos_util.c
450 libads/ldap_user.c
451 libads/ads_struct.c
452 libads/kerberos_keytab.c
453 libads/disp_sec.c
454 libads/ldap_utils.c
455 libads/ldap_schema.c
456 libads/util.c
457 libads/ndr.c''',
458 deps='cli-ldap-common krb5samba ldap lber KRBCLIENT param LIBNMB libsmb DCUTIL smbldap',
459 private_library=True)
461 bld.SAMBA3_SUBSYSTEM('LIBADS_SERVER',
462 source='libads/authdata.c',
463 deps='SERVER_MUTEX ndr-krb5pac krb5samba gssapi')
465 bld.SAMBA3_SUBSYSTEM('LIBADS_PRINTER',
466 source='libads/ldap_printer.c',
467 deps='samba-util krb5samba')
469 bld.SAMBA3_LIBRARY('smbconf',
470 source='''lib/smbconf/smbconf_init.c
471 lib/smbconf/smbconf_reg.c''',
472 deps='''
473 CHARSET3
474 LIBSMBCONF
475 REG_SMBCONF
476 SAMBA_VERSION
478 charset
479 cli_smb_common
480 errors3
481 param
482 samba-util
483 smbregistry
484 talloc
485 util_reg''',
486 public_headers='../lib/smbconf/smbconf.h',
487 pc_files=[],
488 vnum='0')
490 bld.SAMBA3_LIBRARY('smbd_conn',
491 source='smbd/conn.c',
492 deps='samba3-util samba-util',
493 private_library=True)
495 bld.SAMBA3_SUBSYSTEM('sysquotas',
496 source='''
497 lib/sysquotas.c
498 lib/sysquotas_linux.c
499 lib/sysquotas_xfs.c
500 lib/sysquotas_4A.c
501 lib/sysquotas_4B.c
502 lib/sysquotas_nfs.c
503 ''',
504 allow_warnings=True,
505 deps='samba3-util samba-util')
507 NOTIFY_SOURCES=''
508 NOTIFY_DEPS=''
510 if bld.CONFIG_SET("HAVE_INOTIFY"):
511 NOTIFY_SOURCES += ' smbd/notify_inotify.c'
513 if bld.CONFIG_SET('SAMBA_FAM_LIBS'):
514 NOTIFY_SOURCES += ' smbd/notify_fam.c'
515 NOTIFY_DEPS += ' ' + bld.CONFIG_GET('SAMBA_FAM_LIBS')
517 bld.SAMBA3_LIBRARY('smbd_base',
518 source='''
519 smbd/server_reload.c
520 smbd/files.c
521 smbd/connection.c
522 smbd/utmp.c
523 smbd/session.c
524 smbd/dfree.c
525 smbd/dir.c
526 smbd/password.c
527 smbd/conn_msg.c
528 smbd/conn_idle.c
529 smbd/share_access.c
530 smbd/fileio.c
531 smbd/ipc.c
532 smbd/lanman.c
533 smbd/negprot.c
534 smbd/message.c
535 smbd/nttrans.c
536 smbd/pipes.c
537 smbd/reply.c
538 smbd/sesssetup.c
539 smbd/trans2.c
540 smbd/uid.c
541 smbd/dosmode.c
542 smbd/filename.c
543 smbd/open.c
544 smbd/close.c
545 smbd/blocking.c
546 smbd/sec_ctx.c
547 smbd/srvstr.c
548 smbd/vfs.c
549 smbd/perfcount.c
550 smbd/statcache.c
551 smbd/seal.c
552 smbd/posix_acls.c
553 lib/sysacls.c
554 smbd/process.c
555 smbd/service.c
556 smbd/error.c
557 printing/printspoolss.c
558 printing/spoolssd.c
559 lib/sessionid_tdb.c
560 lib/conn_tdb.c
561 smbd/fake_file.c
562 smbd/quotas.c
563 smbd/ntquotas.c
564 smbd/msdfs.c
565 smbd/aio.c smbd/statvfs.c
566 smbd/dmapi.c
567 smbd/signing.c
568 smbd/file_access.c
569 smbd/dnsregister.c smbd/globals.c
570 smbd/smb2_server.c
571 smbd/smb2_glue.c
572 smbd/smb2_negprot.c
573 smbd/smb2_sesssetup.c
574 smbd/smb2_tcon.c
575 smbd/smb2_create.c
576 smbd/smb2_close.c
577 smbd/smb2_flush.c
578 smbd/smb2_read.c
579 smbd/smb2_write.c
580 smbd/smb2_lock.c
581 smbd/smb2_ioctl.c
582 smbd/smb2_ioctl_dfs.c
583 smbd/smb2_ioctl_filesys.c
584 smbd/smb2_ioctl_named_pipe.c
585 smbd/smb2_ioctl_network_fs.c
586 smbd/smb2_keepalive.c
587 smbd/smb2_query_directory.c
588 smbd/smb2_notify.c
589 smbd/smb2_getinfo.c
590 smbd/smb2_setinfo.c
591 smbd/smb2_break.c
592 smbd/smbXsrv_version.c
593 smbd/smbXsrv_client.c
594 smbd/smbXsrv_session.c
595 smbd/smbXsrv_tcon.c
596 smbd/smbXsrv_open.c
597 smbd/server_exit.c
598 smbd/durable.c
599 smbd/scavenger.c
600 smbd/mangle.c
601 smbd/mangle_hash.c
602 smbd/mangle_hash2.c
603 smbd/oplock.c
604 smbd/oplock_irix.c
605 smbd/oplock_linux.c
606 smbd/notify.c
607 smbd/notify_msg.c
608 smbd/build_options.c''' + NOTIFY_SOURCES,
609 deps='''
610 talloc
611 tevent
613 libsmb
614 msrpc3
616 vfs_default
617 vfs_posixacl
618 inotify
619 popt_samba3
620 samba3core
621 smbd_conn
622 param_service
623 AVAHI
624 PRINTBASE
625 PROFILE
626 LOCKING
627 LIBADS_SERVER
628 LIBAFS
629 RPC_SERVICE
630 NDR_SMBXSRV
631 LEASES_DB
632 LIBASYS
633 sysquotas
634 NDR_SMB_ACL
635 netapi
636 NDR_IOCTL
637 notifyd
638 ''' +
639 bld.env['dmapi_lib'] +
640 bld.env['legacy_quota_libs'] +
641 NOTIFY_DEPS,
642 private_library=True)
644 bld.SAMBA3_SUBSYSTEM('LOCKING',
645 source='''locking/locking.c
646 locking/brlock.c
647 locking/posix.c
648 locking/share_mode_lock.c''',
649 deps='''
651 talloc
652 LEASES_DB
653 NDR_OPEN_FILES
654 FNAME_UTIL''')
656 bld.SAMBA3_SUBSYSTEM('LEASES_DB',
657 source='locking/leases_db.c',
658 deps='NDR_LEASES_DB')
660 if bld.CONFIG_GET("WITH_PROFILE"):
661 bld.SAMBA3_SUBSYSTEM('PROFILE',
662 source='profile/profile.c',
663 deps='samba-util')
664 else:
665 bld.SAMBA3_SUBSYSTEM('PROFILE',
666 source='profile/profile_dummy.c',
667 deps='')
669 bld.SAMBA3_SUBSYSTEM('PRINTBASE',
670 source='''printing/notify.c printing/printing_db.c''',
671 deps='samba-util tdb')
673 bld.SAMBA3_SUBSYSTEM('PRINTBACKEND',
674 source='''printing/printing.c
675 printing/nt_printing.c
676 printing/nt_printing_tdb.c
677 printing/nt_printing_migrate_internal.c
678 printing/nt_printing_ads.c
679 printing/queue_process.c''',
680 deps='PRINTBASE LIBADS_PRINTER tdb printing_migrate')
682 bld.SAMBA3_LIBRARY('printing_migrate',
683 source='printing/nt_printing_migrate.c rpc_client/cli_winreg_spoolss.c printing/nt_printing_os2.c',
684 deps='NDR_NTPRINTING cli_spoolss RPC_NDR_WINREG LIBCLI_WINREG param',
685 private_library=True)
687 bld.SAMBA3_SUBSYSTEM('PRINTING',
688 source='''printing/pcap.c
689 printing/print_svid.c
690 printing/print_aix.c
691 printing/print_cups.c
692 printing/print_generic.c
693 printing/lpq_parse.c
694 printing/load.c
695 printing/print_standard.c
696 printing/print_iprint.c
697 printing/printer_list.c''',
698 deps='NDR_PRINTCAP tdb cups')
700 bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL',
701 source='utils/passwd_util.c',
702 deps='samba-util')
704 bld.SAMBA3_SUBSYSTEM('FNAME_UTIL',
705 source='lib/filename_util.c',
706 deps='samba-util')
708 bld.SAMBA3_SUBSYSTEM('LIBNET',
709 source='libnet/libnet_join.c',
710 deps='NDR_LIBNET_JOIN INIT_SAMR net_keytab pdb')
712 bld.SAMBA3_LIBRARY('net_keytab',
713 source='libnet/libnet_keytab.c',
714 deps='krb5samba ads',
715 private_library=True)
718 bld.SAMBA3_SUBSYSTEM('LIBNET_DSSYNC',
719 source='''libnet/libnet_dssync.c
720 libnet/libnet_dssync_passdb.c
721 libnet/libnet_dssync_keytab.c''',
722 deps='LIBNET RPC_NDR_DRSUAPI')
724 bld.SAMBA3_SUBSYSTEM('LIBNET_SAMSYNC',
725 source='''libnet/libnet_samsync.c
726 libnet/libnet_samsync_ldif.c
727 libnet/libnet_samsync_passdb.c
728 libnet/libnet_samsync_display.c
729 libnet/libnet_samsync_keytab.c''',
730 deps='LIBNET LIBCLI_SAMSYNC')
732 bld.SAMBA3_SUBSYSTEM('LIBEVENTLOG',
733 source='lib/eventlog/eventlog.c',
734 deps='NDR_EVENTLOG tdb')
736 bld.SAMBA3_SUBSYSTEM('LIBNMB',
737 source='''libsmb/unexpected.c
738 libsmb/namecache.c
739 libsmb/nmblib.c
740 libsmb/namequery.c
741 libsmb/conncache.c
742 libads/sitename_cache.c''',
743 deps='LIBTSOCKET samba3util addns lmhosts resolv')
745 bld.SAMBA3_SUBSYSTEM('SERVICES',
746 source='''services/svc_spoolss.c
747 services/svc_rcinit.c
748 services/svc_winreg_glue.c
749 services/svc_netlogon.c
750 services/svc_winreg.c
751 services/svc_wins.c''',
752 deps='samba-util')
754 bld.SAMBA3_SUBSYSTEM('PLAINTEXT_AUTH',
755 source='''auth/pampass.c auth/pass_check.c''',
756 deps='pam PAM_ERRORS')
758 bld.SAMBA3_SUBSYSTEM('PASSCHANGE',
759 source='libsmb/passchange.c',
760 deps='''LIBCLI_SAMR
761 INIT_LSA
762 msrpc3
763 krb5samba''')
765 bld.SAMBA3_SUBSYSTEM('SAMBA_VERSION',
766 source='lib/version.c',
767 deps='samba-util')
769 bld.SAMBA3_SUBSYSTEM('SLCACHE',
770 source='libsmb/samlogon_cache.c',
771 deps='samba-util tdb')
773 bld.SAMBA3_SUBSYSTEM('DCUTIL',
774 source='''libsmb/namequery_dc.c
775 libsmb/trustdom_cache.c
776 libsmb/dsgetdcname.c''',
777 deps='ads msrpc3 libcli_lsa3')
779 bld.SAMBA3_LIBRARY('trusts_util',
780 source='libsmb/trusts_util.c',
781 deps='libcli_netlogon3 msrpc3 samba-passdb',
782 private_library=True)
784 bld.SAMBA3_SUBSYSTEM('tdb-wrap3',
785 source='lib/util_tdb.c',
786 deps='talloc samba3-util')
788 bld.SAMBA3_LIBRARY('samba3-util',
789 source='''lib/util_sec.c lib/util_str.c lib/adt_tree.c lib/util_malloc.c lib/namearray.c lib/file_id.c''',
790 deps='samba-util charset',
791 private_library=True)
793 bld.SAMBA_LIBRARY('xattr_tdb',
794 source='lib/xattr_tdb.c',
795 deps='NDR_XATTR dbwrap samba3-util',
796 private_library=True)
798 bld.SAMBA3_LIBRARY('CHARSET3',
799 source='''lib/charcnv.c lib/fstring.c''',
800 public_deps='ICONV_WRAPPER charset',
801 deps='samba-util samba3-util',
802 private_library=True)
804 bld.SAMBA3_SUBSYSTEM('errors3',
805 source='libsmb/errormap.c libsmb/smberr.c lib/errmap_unix.c',
806 deps='samba-errors')
808 bld.SAMBA3_SUBSYSTEM('LIBCLI_SAMR',
809 source='rpc_client/cli_samr.c',
810 deps='RPC_NDR_SAMR')
812 bld.SAMBA3_LIBRARY('libcli_lsa3',
813 source='rpc_client/cli_lsarpc.c',
814 deps='RPC_NDR_LSA INIT_LSA',
815 private_library=True)
817 bld.SAMBA3_LIBRARY('libcli_netlogon3',
818 source='rpc_client/cli_netlogon.c rpc_client/util_netlogon.c',
819 deps='msrpc3 RPC_NDR_NETLOGON INIT_NETLOGON cliauth param NETLOGON_CREDS_CLI',
820 private_library=True)
822 bld.SAMBA3_LIBRARY('cli_spoolss',
823 source='''rpc_client/cli_spoolss.c
824 rpc_client/init_spoolss.c''',
825 deps='RPC_NDR_SPOOLSS param secrets3',
826 private_library=True)
828 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG',
829 source='rpc_client/cli_winreg.c',
830 deps='RPC_NDR_WINREG')
832 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG_INTERNAL',
833 source='rpc_client/cli_winreg_int.c',
834 deps='LIBCLI_WINREG RPC_SERVER')
836 bld.SAMBA3_SUBSYSTEM('RPC_CLIENT_SCHANNEL',
837 source='rpc_client/cli_pipe_schannel.c',
838 deps='samba-util krb5samba')
840 bld.SAMBA3_SUBSYSTEM('INIT_LSA',
841 source='rpc_client/init_lsa.c',
842 deps='samba-util')
844 bld.SAMBA3_SUBSYSTEM('INIT_NETLOGON',
845 source='rpc_client/init_netlogon.c',
846 deps='samba-util')
848 bld.SAMBA3_SUBSYSTEM('INIT_SAMR',
849 source='rpc_client/init_samr.c',
850 deps='samba-util')
852 bld.SAMBA3_SUBSYSTEM('LIBLSA',
853 source='lib/lsa.c')
855 ########################## BINARIES #################################
857 bld.SAMBA3_BINARY('smbd/smbd',
858 source='smbd/server.c smbd/smbd_cleanupd.c',
859 deps='smbd_base EPMD LSASD FSSD MDSSD',
860 install_path='${SBINDIR}')
862 bld.SAMBA3_BINARY('nmbd/nmbd',
863 source='''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
864 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
865 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
866 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
867 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
868 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
869 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
870 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
871 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
872 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
873 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
874 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c''',
875 deps='''
876 talloc
877 tevent
878 param
879 libsmb
880 popt_samba3
881 ''',
882 install_path='${SBINDIR}')
885 bld.SAMBA3_SUBSYSTEM('TDB_VALIDATE',
886 source='lib/tdb_validate.c',
887 deps='samba-util')
890 bld.SAMBA3_BINARY('winbindd/winbindd',
891 source='''winbindd/winbindd.c
892 winbindd/winbindd_group.c
893 winbindd/winbindd_util.c
894 winbindd/winbindd_cache.c
895 winbindd/winbindd_pam.c
896 winbindd/winbindd_misc.c
897 winbindd/winbindd_cm.c
898 winbindd/winbindd_wins_byip.c
899 winbindd/winbindd_wins_byname.c
900 winbindd/winbindd_msrpc.c
901 winbindd/winbindd_rpc.c
902 winbindd/winbindd_reconnect.c
903 winbindd/winbindd_reconnect_ads.c
904 winbindd/winbindd_ads.c
905 winbindd/winbindd_samr.c
906 winbindd/winbindd_dual.c
907 winbindd/winbindd_dual_ndr.c
908 winbindd/winbindd_dual_srv.c
909 winbindd/winbindd_async.c
910 winbindd/winbindd_creds.c
911 winbindd/winbindd_cred_cache.c
912 winbindd/winbindd_ccache_access.c
913 winbindd/winbindd_domain.c
914 winbindd/winbindd_idmap.c
915 winbindd/winbindd_locator.c
916 winbindd/winbindd_ndr.c
917 winbindd/wb_ping.c
918 winbindd/wb_lookupsid.c
919 winbindd/wb_lookupsids.c
920 winbindd/wb_lookupname.c
921 winbindd/wb_sids2xids.c
922 winbindd/wb_xids2sids.c
923 winbindd/wb_queryuser.c
924 winbindd/wb_lookupuseraliases.c
925 winbindd/wb_lookupusergroups.c
926 winbindd/wb_getpwsid.c
927 winbindd/wb_gettoken.c
928 winbindd/wb_seqnum.c
929 winbindd/wb_seqnums.c
930 winbindd/wb_group_members.c
931 winbindd/wb_getgrsid.c
932 winbindd/wb_query_user_list.c
933 winbindd/wb_query_group_list.c
934 winbindd/wb_fill_pwent.c
935 winbindd/wb_next_pwent.c
936 winbindd/wb_next_grent.c
937 winbindd/wb_dsgetdcname.c
938 winbindd/winbindd_lookupsid.c
939 winbindd/winbindd_lookupsids.c
940 winbindd/winbindd_lookupname.c
941 winbindd/winbindd_sids_to_xids.c
942 winbindd/winbindd_xids_to_sids.c
943 winbindd/winbindd_allocate_uid.c
944 winbindd/winbindd_allocate_gid.c
945 winbindd/winbindd_getpwsid.c
946 winbindd/winbindd_getpwnam.c
947 winbindd/winbindd_getpwuid.c
948 winbindd/winbindd_getsidaliases.c
949 winbindd/winbindd_getuserdomgroups.c
950 winbindd/winbindd_getgroups.c
951 winbindd/winbindd_show_sequence.c
952 winbindd/winbindd_getgrgid.c
953 winbindd/winbindd_getgrnam.c
954 winbindd/winbindd_getusersids.c
955 winbindd/winbindd_lookuprids.c
956 winbindd/winbindd_setpwent.c
957 winbindd/winbindd_getpwent.c
958 winbindd/winbindd_endpwent.c
959 winbindd/winbindd_setgrent.c
960 winbindd/winbindd_getgrent.c
961 winbindd/winbindd_endgrent.c
962 winbindd/winbindd_dsgetdcname.c
963 winbindd/winbindd_getdcname.c
964 winbindd/winbindd_list_users.c
965 winbindd/winbindd_list_groups.c
966 winbindd/winbindd_check_machine_acct.c
967 winbindd/winbindd_change_machine_acct.c
968 winbindd/winbindd_irpc.c
969 winbindd/winbindd_ping_dc.c
970 winbindd/winbindd_pam_auth.c
971 winbindd/winbindd_pam_logoff.c
972 winbindd/winbindd_pam_chauthtok.c
973 winbindd/winbindd_pam_auth_crap.c
974 winbindd/winbindd_pam_chng_pswd_auth_crap.c''',
975 deps='''
976 talloc
977 tevent
979 popt_samba3
980 idmap
982 msrpc3
983 nss_info
984 LIBAFS
985 LIBADS_SERVER
986 LIBCLI_SAMR
987 SLCACHE
988 RPC_NDR_DSSETUP
989 RPC_NDR_WINBIND
990 SRV_NDR_WINBIND
991 RPC_SAMR
992 RPC_LSARPC
993 RPC_SERVER
994 WB_REQTRANS
995 TDB_VALIDATE
996 MESSAGING
997 LIBLSA
998 ''',
999 enabled=bld.env.build_winbind,
1000 install_path='${SBINDIR}')
1002 bld.SAMBA3_BINARY('rpcclient/rpcclient',
1003 source='''rpcclient/rpcclient.c
1004 rpcclient/cmd_lsarpc.c
1005 rpcclient/cmd_samr.c
1006 rpcclient/cmd_spoolss.c
1007 rpcclient/cmd_netlogon.c
1008 rpcclient/cmd_srvsvc.c
1009 rpcclient/cmd_dfs.c
1010 rpcclient/cmd_epmapper.c
1011 rpcclient/cmd_dssetup.c
1012 rpcclient/cmd_echo.c
1013 rpcclient/cmd_shutdown.c
1014 rpcclient/cmd_test.c
1015 rpcclient/cmd_wkssvc.c
1016 rpcclient/cmd_ntsvcs.c
1017 rpcclient/cmd_drsuapi.c
1018 rpcclient/cmd_eventlog.c
1019 rpcclient/cmd_winreg.c
1020 rpcclient/cmd_fss.c
1021 rpcclient/cmd_witness.c
1022 rpcclient/cmd_clusapi.c''',
1023 deps='''
1024 talloc
1025 popt_samba3
1027 libsmb
1028 param
1029 ndr-standard
1030 msrpc3
1031 SMBREADLINE
1032 trusts_util
1033 RPC_NDR_WINREG
1034 RPC_NDR_ECHO
1035 RPC_CLIENT_SCHANNEL
1036 DCUTIL
1037 LIBCLI_SAMR
1038 libcli_lsa3
1039 libcli_netlogon3
1040 cli_spoolss
1041 RPC_NDR_SRVSVC
1042 RPC_NDR_WKSSVC
1043 RPC_NDR_DSSETUP
1044 RPC_NDR_DFS
1045 RPC_NDR_DRSUAPI
1046 RPC_NDR_NTSVCS
1047 RPC_NDR_EVENTLOG
1048 INIT_SAMR
1049 RPC_NDR_FSRVP
1050 RPC_NDR_WITNESS
1051 RPC_NDR_CLUSAPI
1052 ''')
1054 bld.SAMBA3_BINARY('client/smbclient',
1055 source='''client/client.c
1056 client/clitar.c
1057 client/dnsbrowse.c''',
1058 deps='''
1059 talloc
1060 popt_samba3
1061 param
1062 ndr-standard
1063 SMBREADLINE
1064 libsmb
1065 msrpc3
1066 RPC_NDR_SRVSVC
1067 cli_smb_common
1068 archive
1069 ''')
1071 bld.SAMBA3_BINARY('net',
1072 source='''utils/net.c
1073 utils/net_ads.c
1074 utils/net_help.c
1075 utils/net_rap.c
1076 utils/net_rpc.c
1077 utils/net_rpc_samsync.c
1078 utils/net_time.c
1079 utils/net_lookup.c
1080 utils/net_cache.c
1081 utils/net_groupmap.c
1082 utils/net_idmap.c
1083 utils/net_idmap_check.c
1084 utils/interact.c
1085 utils/net_status.c
1086 utils/net_rpc_printer.c
1087 utils/net_rpc_rights.c
1088 utils/net_rpc_service.c
1089 utils/net_rpc_registry.c
1090 utils/net_usershare.c
1091 utils/netlookup.c
1092 utils/net_sam.c
1093 utils/net_rpc_shell.c
1094 utils/net_util.c
1095 utils/net_rpc_sh_acct.c
1096 utils/net_rpc_audit.c
1097 utils/net_dns.c
1098 utils/net_ads_gpo.c
1099 utils/net_conf.c
1100 utils/net_conf_util.c
1101 utils/net_join.c
1102 utils/net_user.c
1103 utils/net_group.c
1104 utils/net_file.c
1105 utils/net_registry.c
1106 utils/net_registry_check.c
1107 utils/net_dom.c
1108 utils/net_share.c
1109 utils/net_g_lock.c
1110 utils/net_serverid.c
1111 utils/net_eventlog.c
1112 utils/net_printing.c
1113 utils/net_rpc_trust.c
1114 utils/net_rpc_conf.c
1115 utils/net_afs.c
1116 utils/net_notify.c
1117 registry/reg_parse.c
1118 registry/reg_format.c
1119 registry/reg_import.c
1120 utils/net_registry_util.c
1121 utils/net_help_common.c''',
1122 deps='''
1123 talloc
1124 netapi
1125 addns
1126 samba_intl
1127 popt_samba3
1129 libsmb
1130 param
1131 KRBCLIENT
1132 ndr-standard
1133 msrpc3
1136 smbd_base
1137 LIBADS_SERVER
1138 LIBADS_PRINTER
1139 SMBREADLINE
1140 PASSWD_UTIL
1141 LIBNET
1142 LIBNET_DSSYNC
1143 LIBNET_SAMSYNC
1144 LIBEVENTLOG
1145 REGFIO
1146 NDR_NTPRINTING
1147 RPC_NDR_WINREG
1148 RPC_CLIENT_SCHANNEL
1149 LIBCLI_SAMR
1150 libcli_lsa3
1151 libcli_netlogon3
1152 cli_spoolss
1153 RPC_NDR_SRVSVC
1154 RPC_NDR_SVCCTL
1155 RPC_NDR_DSSETUP
1156 RPC_NDR_INITSHUTDOWN
1157 printing_migrate
1158 trusts_util
1159 IDMAP_AUTORID_TDB''')
1161 bld.SAMBA3_BINARY('profiles',
1162 source='utils/profiles.c',
1163 deps='''
1164 talloc
1165 popt_samba3
1166 param
1167 REGFIO''')
1169 bld.SAMBA3_BINARY('smbspool',
1170 source='client/smbspool.c',
1171 deps='''
1172 talloc
1173 popt_samba3
1174 param
1175 libsmb
1176 samba3core''')
1178 bld.SAMBA3_BINARY('smbspool_krb5_wrapper',
1179 source='client/smbspool_krb5_wrapper.c',
1180 deps='''
1181 DYNCONFIG
1182 cups
1183 ''',
1184 install_path='${LIBEXECDIR}/samba',
1185 enabled=bld.CONFIG_SET('HAVE_CUPS'))
1187 bld.SAMBA3_BINARY('testparm',
1188 source='utils/testparm.c',
1189 deps='''
1190 talloc
1191 param
1192 popt_samba3''')
1194 smbstatus_source = 'utils/status.c smbd/notify_msg.c'
1196 if bld.CONFIG_GET("WITH_PROFILE"):
1197 smbstatus_source += ' utils/status_profile.c'
1198 else:
1199 smbstatus_source += ' utils/status_profile_dummy.c'
1201 bld.SAMBA3_BINARY('smbstatus',
1202 source=smbstatus_source,
1203 deps='''
1204 talloc
1205 param
1206 popt_samba3
1207 smbd_base
1208 LOCKING
1209 PROFILE''')
1211 bld.SAMBA3_BINARY('smbcontrol',
1212 source='utils/smbcontrol.c',
1213 deps='''
1214 talloc
1215 param
1216 popt_samba3
1217 PRINTBASE''')
1219 bld.SAMBA3_BINARY('smbtree',
1220 source='utils/smbtree.c',
1221 deps='''
1222 talloc
1223 param
1224 libsmb
1225 msrpc3
1226 popt_samba3
1227 RPC_NDR_SRVSVC''')
1229 bld.SAMBA3_BINARY('smbpasswd',
1230 source='utils/smbpasswd.c',
1231 deps='''
1232 talloc
1233 param
1235 PASSWD_UTIL
1236 PASSCHANGE''')
1238 bld.SAMBA3_BINARY('pdbedit',
1239 source='utils/pdbedit.c',
1240 deps='''
1241 talloc
1242 param
1243 popt_samba3
1245 PASSWD_UTIL''')
1247 bld.SAMBA3_BINARY('smbget',
1248 source='utils/smbget.c',
1249 deps='''
1250 talloc
1251 popt_samba3
1252 smbclient''')
1254 bld.SAMBA3_BINARY('nmblookup',
1255 source='utils/nmblookup.c',
1256 deps='''
1257 talloc
1258 param
1259 popt_samba3
1260 LIBNMB''')
1262 bld.SAMBA3_BINARY('smbtorture' + bld.env.suffix3,
1263 source='''torture/torture.c
1264 torture/nbio.c
1265 torture/scanner.c
1266 torture/utable.c
1267 torture/denytest.c
1268 torture/mangle_test.c
1269 torture/nbench.c
1270 torture/test_async_echo.c
1271 torture/test_addrchange.c
1272 torture/test_posix_append.c
1273 torture/test_nttrans_create.c
1274 torture/test_nttrans_fsctl.c
1275 torture/test_case_insensitive.c
1276 torture/test_notify_online.c
1277 torture/test_chain3.c
1278 torture/test_smb2.c
1279 torture/test_authinfo_structs.c
1280 torture/test_smbsock_any_connect.c
1281 torture/test_cleanup.c
1282 torture/test_notify.c
1283 lib/tevent_barrier.c
1284 torture/test_dbwrap_watch.c
1285 torture/test_idmap_tdb_common.c
1286 torture/test_dbwrap_ctdb.c
1287 torture/test_buffersize.c
1288 torture/test_messaging_read.c
1289 torture/test_messaging_fd_passing.c
1290 torture/test_oplock_cancel.c
1291 torture/bench_pthreadpool.c
1292 torture/wbc_async.c''',
1293 deps='''
1294 talloc
1295 param
1296 libsmb
1297 msrpc3
1298 TLDAP
1299 RPC_NDR_ECHO
1300 WB_REQTRANS
1301 LOCKING
1302 NDR_OPEN_FILES
1303 idmap
1304 IDMAP_TDB_COMMON
1305 samba-cluster-support
1306 ''',
1307 cflags='-DWINBINDD_SOCKET_DIR=\"%s\"' % bld.env.WINBINDD_SOCKET_DIR,
1308 install=False)
1310 bld.SAMBA3_BINARY('smbconftort',
1311 source='lib/smbconf/testsuite.c',
1312 deps='''
1313 talloc
1314 param
1315 popt_samba3''',
1316 install=False)
1318 bld.SAMBA3_BINARY('replacetort',
1319 source='../lib/replace/test/main.c',
1320 deps='replace replace-test',
1321 install=False)
1323 bld.SAMBA3_BINARY('msgtest',
1324 source='torture/msgtest.c',
1325 deps='''
1326 talloc
1327 param''',
1328 install=False)
1330 bld.SAMBA3_BINARY('msg_sink',
1331 source='torture/msg_sink.c',
1332 deps='''
1333 talloc
1334 param''',
1335 install=False)
1337 bld.SAMBA3_BINARY('msg_source',
1338 source='torture/msg_source.c',
1339 deps='''
1340 talloc
1341 param''',
1342 install=False)
1344 bld.SAMBA3_BINARY('smbcacls',
1345 source='utils/smbcacls.c lib/util_sd.c',
1346 deps='''
1347 talloc
1348 popt_samba3
1349 msrpc3
1350 libcli_lsa3
1351 krb5samba''')
1353 bld.SAMBA3_BINARY('smbcquotas',
1354 source='utils/smbcquotas.c',
1355 deps='''
1356 talloc
1357 popt_samba3
1358 libsmb
1359 msrpc3
1360 libcli_lsa3''')
1362 bld.SAMBA3_BINARY('eventlogadm',
1363 source='utils/eventlogadm.c',
1364 deps='''
1365 talloc
1366 param
1367 LIBEVENTLOG''')
1369 bld.SAMBA3_BINARY('sharesec',
1370 source='utils/sharesec.c lib/util_sd.c',
1371 deps='''
1372 talloc
1373 msrpc3
1374 libcli_lsa3
1375 popt_samba3''')
1377 bld.SAMBA3_BINARY('pdbtest',
1378 source='torture/pdbtest.c',
1379 deps='''
1380 talloc
1382 popt_samba3
1383 AUTH_COMMON
1384 auth''',
1385 install=False)
1387 bld.SAMBA3_BINARY('vfstest',
1388 source='''torture/cmd_vfs.c
1389 torture/vfstest.c
1390 torture/vfstest_chain.c''',
1391 deps='''
1393 popt_samba3
1394 SMBREADLINE''',
1395 install=False)
1397 bld.SAMBA3_BINARY('log2pcap',
1398 source='utils/log2pcaphex.c',
1399 deps='''talloc popt''',
1400 install=False)
1402 bld.SAMBA3_BINARY('locktest2',
1403 source='torture/locktest2.c',
1404 deps='''
1405 talloc
1406 param
1407 libsmb
1408 LOCKING''',
1409 install=False)
1411 bld.SAMBA3_BINARY('debug2html',
1412 source='''utils/debug2html.c utils/debugparse.c''',
1413 deps='''talloc popt''',
1414 install=False)
1416 bld.SAMBA3_BINARY('smbfilter',
1417 source='utils/smbfilter.c',
1418 deps='''
1419 talloc
1420 param
1421 LIBNMB''',
1422 install=False)
1424 bld.SAMBA3_BINARY('versiontest',
1425 source='lib/version_test.c',
1426 deps='''
1427 SAMBA_VERSION
1428 param''',
1429 install=False)
1431 bld.SAMBA3_BINARY('ntlm_auth',
1432 source='''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c''',
1433 deps='''
1434 talloc
1435 krb5samba
1436 tiniparser
1437 libsmb
1438 popt_samba3
1439 gse gensec''')
1441 bld.SAMBA3_BINARY('timelimit',
1442 source='script/tests/timelimit.c',
1443 install=False)
1445 bld.SAMBA3_BINARY('rpc_open_tcp',
1446 source='torture/rpc_open_tcp.c',
1447 deps='''
1448 talloc
1449 msrpc3''',
1450 install=False)
1452 bld.SAMBA3_BINARY('dbwrap_tool',
1453 source='utils/dbwrap_tool.c',
1454 deps='''
1455 talloc
1456 popt_samba3''')
1458 bld.SAMBA3_BINARY('dbwrap_torture',
1459 source='utils/dbwrap_torture.c',
1460 deps='''
1461 talloc
1462 popt_samba3''',
1463 install=False)
1465 bld.SAMBA3_BINARY('split_tokens',
1466 source='utils/split_tokens.c',
1467 deps='''
1468 talloc
1469 popt_samba3''',
1470 install=False)
1472 bld.SAMBA3_BINARY('vlp',
1473 source='printing/tests/vlp.c',
1474 deps='''
1475 talloc
1476 param''',
1477 install=False)
1479 bld.SAMBA3_PYTHON('pysmbd',
1480 source='smbd/pysmbd.c',
1481 deps='smbd_base pyrpc_util pytalloc-util',
1482 realname='samba/samba3/smbd.so'
1485 bld.SAMBA3_PYTHON('pylibsmb',
1486 source='libsmb/pylibsmb.c',
1487 deps='smbclient samba-credentials pycredentials',
1488 realname='samba/samba3/libsmb_samba_internal.so'
1491 bld.SAMBA3_BINARY('samba-regedit',
1492 source="""utils/regedit.c utils/regedit_samba3.c
1493 utils/regedit_wrap.c utils/regedit_treeview.c
1494 utils/regedit_valuelist.c utils/regedit_dialog.c
1495 utils/regedit_hexedit.c utils/regedit_list.c""",
1496 deps='ncurses menu panel form registry param popt_samba3 smbregistry',
1497 enabled=bld.env.build_regedit)
1499 bld.SAMBA3_BINARY('spotlight2sparql',
1500 source='''
1501 rpc_server/mdssvc/sparql_parser_test.c
1502 rpc_server/mdssvc/sparql_parser.c
1503 rpc_server/mdssvc/sparql_lexer.c
1504 rpc_server/mdssvc/sparql_mapping.c''',
1505 deps='samba3-util talloc ' + bld.env['libtracker'],
1506 enabled=bld.env.with_spotlight,
1507 install=False)
1509 ########################## INCLUDES #################################
1511 bld.RECURSE('auth')
1512 bld.RECURSE('libgpo/gpext')
1513 bld.RECURSE('lib/pthreadpool')
1514 bld.RECURSE('lib/asys')
1515 bld.RECURSE('lib/unix_msg')
1516 bld.RECURSE('librpc')
1517 bld.RECURSE('librpc/idl')
1518 bld.RECURSE('libsmb')
1519 bld.RECURSE('modules')
1520 bld.RECURSE('param')
1521 bld.RECURSE('passdb')
1522 bld.RECURSE('rpc_server')
1523 bld.RECURSE('script')
1524 bld.RECURSE('winbindd')
1525 bld.RECURSE('../examples/auth')
1526 bld.RECURSE('../examples/libsmbclient')
1527 bld.RECURSE('../examples/pdb')
1528 bld.RECURSE('../examples/VFS')
1529 bld.RECURSE('lib/netapi/tests')
1530 bld.RECURSE('lib/netapi/examples')
1531 bld.RECURSE('smbd/notifyd')
1533 bld.ENFORCE_GROUP_ORDERING()
1534 bld.CHECK_PROJECT_RULES()