shadow_copy2: add comments explaining decisions in shadow_copy2_strip_snapshot()
[Samba.git] / source3 / wscript_build
blob40d03b24293e92923bc99688d353c0f0c1d7ddc4
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/getdc.c
31 lib/netapi/user.c
32 lib/netapi/group.c
33 lib/netapi/localgroup.c
34 lib/netapi/samr.c
35 lib/netapi/sid.c
36 lib/netapi/share.c
37 lib/netapi/file.c
38 lib/netapi/shutdown.c
39 lib/netapi/netlogon.c''',
40 public_deps='''
41 talloc
42 util_cmdline
43 msrpc3
44 ads
45 NDR_LIBNETAPI
46 LIBNET
47 RPC_CLIENT_SCHANNEL
48 libcli_netlogon3
49 LIBCLI_SAMR
50 INIT_SAMR
51 auth
52 ''',
53 public_headers='../source3/lib/netapi/netapi.h',
54 pc_files='libnet/netapi.pc',
55 vnum='0')
57 bld.SAMBA3_LIBRARY('smbsharemodes',
58 source='libsmb/smb_share_modes.c',
59 public_deps='''talloc tdb_compat''',
60 deps='''ccan-hash''',
61 public_headers='include/smb_share_modes.h',
62 pc_files='libsmb/smbsharemodes.pc',
63 vnum='0')
65 bld.SAMBA3_LIBRARY('nss_wins',
66 source='../nsswitch/wins.c',
67 deps='''param libsmb LIBTSOCKET''',
68 realname='libnss_wins.so.2',
69 soname='libnss_wins.so',
70 vnum='2')
72 bld.SAMBA3_LIBRARY('gse',
73 source='librpc/crypto/gse_krb5.c librpc/crypto/gse.c',
74 deps='krb5samba gensec param KRBCLIENT secrets3',
75 private_library=True)
77 bld.SAMBA3_LIBRARY('msrpc3',
78 source='''rpc_client/cli_pipe.c
79 rpc_client/rpc_transport_np.c
80 rpc_client/rpc_transport_sock.c
81 rpc_client/rpc_transport_tstream.c
82 librpc/rpc/dcerpc_helpers.c''',
83 deps='''ndr ndr-standard
84 RPC_NDR_EPMAPPER NTLMSSP_COMMON COMMON_SCHANNEL LIBCLI_AUTH
85 LIBTSOCKET gse dcerpc-binding
86 libsmb
87 ndr-table''',
88 private_library=True)
90 bld.SAMBA3_LIBRARY('gpo',
91 source='''../libgpo/gpo_ldap.c
92 ../libgpo/gpo_ini.c
93 ../libgpo/gpo_util.c
94 ../libgpo/gpo_fetch.c
95 libgpo/gpo_filesync.c
96 ../libgpo/gpo_sec.c
97 libgpo/gpo_reg.c''',
98 deps='talloc ads TOKEN_UTIL gpext auth',
99 private_library=True)
101 bld.SAMBA3_SUBSYSTEM('AVAHI',
102 source='lib/avahi.c smbd/avahi_register.c',
103 deps='avahi-common avahi-client',
104 enabled=bld.env.with_avahi)
106 bld.SAMBA3_SUBSYSTEM('GROUPDB',
107 source='groupdb/mapping.c groupdb/mapping_tdb.c',
108 deps='tdb_compat')
110 bld.SAMBA3_SUBSYSTEM('TLDAP',
111 source='''lib/tldap.c
112 lib/tldap_util.c
113 lib/util_tsock.c''',
114 deps='asn1util LIBTSOCKET')
116 # libpdb.so should not expose internal symbols that are only usable
117 # to the statically linked modules that are merged into libpdb.
118 # Note that we always filter these symbols out in libpdb, even
119 # when modules are not linked statically. In the latter case
120 # symbols will not be present in the libpdb anyway so no hurt is
121 # done to the version script.
122 static_pdb_match = ['tdbsam', 'smbpasswd', 'wbc_sam']
123 private_pdb_match = []
125 # AD DC module when linked statically will pull in few source4/winbind
126 # dependencies which are not used outside AD DC module
127 static_pdb_match.append('samba_dsdb')
128 private_pdb_match.append('!idmap_init')
129 private_pdb_match.append('!idmap_sids_to_xids')
130 private_pdb_match.append('!idmap_xids_to_sids')
132 # ldap module is actually three modules merged together: ldapsam, ipa, and nds
133 static_pdb_match = static_pdb_match + ['ldap', 'ipa', 'nds']
134 ldapsam_pdb_match = ['!priv2ld', '!smbldap_search_domain_info',
135 '!ldapsam_*', '!groupmap_attr_list*', '!get_userattr_list',
136 '!dominfo_attr_list', '!get_attr_key2string',
137 '!sidmap_attr_list', '!attrib_map_*', '!idpool_attr_list',
138 '!get_attr_list']
139 private_pdb_match.append('!pdb_nds_*')
140 private_pdb_match.append('!pdb_init_ldapsam')
141 private_pdb_match.append('!pdb_ldapsam_init*')
142 private_pdb_match = private_pdb_match + ldapsam_pdb_match
144 private_pdb_match = private_pdb_match + map(lambda x: '!pdb_%s_init' % x, static_pdb_match)
146 bld.SAMBA3_LIBRARY('pdb',
147 source='''passdb/pdb_get_set.c
148 passdb/passdb.c
149 lib/util_wellknown.c
150 lib/util_builtin.c
151 passdb/pdb_compat.c
152 lib/util_sid_passdb.c
153 lib/util_unixsids.c
154 passdb/lookup_sid.c
155 passdb/login_cache.c
156 passdb/account_pol.c
157 lib/privileges.c
158 lib/util_nscd.c
159 lib/winbind_util.c
160 passdb/pdb_util.c
161 passdb/pdb_interface.c
162 passdb/pdb_secrets.c
163 passdb/pdb_unixid.c''',
164 deps='secrets3 GROUPDB SERVER_MUTEX wbclient LIBCLI_AUTH flag_mapping',
165 private_library=False,
166 pc_files=[],
167 public_headers_install=True,
168 public_headers='''
169 include/passdb.h
170 passdb/machine_sid.h
171 passdb/lookup_sid.h''',
172 abi_match=private_pdb_match,
173 abi_directory='passdb/ABI',
174 vnum='0')
176 bld.SAMBA3_LIBRARY('smbldaphelper',
177 source='passdb/pdb_ldap_schema.c passdb/pdb_ldap_util.c',
178 deps='smbldap secrets3',
179 allow_undefined_symbols=True,
180 enabled=bld.CONFIG_SET('HAVE_LDAP'),
181 private_library=True)
183 bld.SAMBA3_SUBSYSTEM('SERVER_MUTEX',
184 source='lib/server_mutex.c',
185 deps='talloc')
187 bld.SAMBA3_SUBSYSTEM('PARAM_UTIL',
188 source='param/util.c',
189 deps='talloc')
191 bld.SAMBA3_SUBSYSTEM('LOADPARM_CTX',
192 source='param/loadparm_ctx.c',
193 deps='''talloc s3_param_h param''')
195 bld.SAMBA_GENERATOR('param/param_global_h',
196 source= '../script/mkparamdefs.pl param/loadparm.c ../lib/param/param_functions.c',
197 target='param/param_global.h',
198 rule='${PERL} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${SRC[2].abspath(env)} --file ${TGT} --generate-scope=GLOBAL')
200 bld.SAMBA3_SUBSYSTEM('param',
201 source='''param/loadparm.c
202 lib/sharesec.c
203 lib/ldap_debug_handler.c
204 lib/util_names.c''',
205 deps='samba-util PARAM_UTIL ldap lber LOADPARM_CTX samba3core smbconf param_local_h param/param_global_h cups''')
207 bld.SAMBA3_PYTHON('pys3param',
208 source='param/pyparam.c',
209 deps='param',
210 public_deps='samba-hostconfig pytalloc-util talloc',
211 realname='samba/samba3/param.so')
213 bld.SAMBA3_SUBSYSTEM('param_service',
214 source='param/service.c',
215 deps = 'USER_UTIL param PRINTING')
217 # this includes only the low level parse code, not stuff
218 # that requires knowledge of security contexts
219 bld.SAMBA3_SUBSYSTEM('REG_PARSE_PRS',
220 source='registry/reg_parse_prs.c')
222 bld.SAMBA3_SUBSYSTEM('REGFIO',
223 source='registry/regfio.c',
224 deps='samba-util REG_PARSE_PRS')
226 bld.SAMBA3_SUBSYSTEM('REG_API_REGF',
227 source='registry/reg_api_regf.c',
228 deps='samba-util')
230 bld.SAMBA3_LIBRARY('smbregistry',
231 source='''registry/reg_api.c
232 registry/reg_dispatcher.c
233 registry/reg_cachehook.c
234 registry/reg_objects.c
235 registry/reg_util_internal.c
236 lib/util_nttoken.c
237 registry/reg_backend_db.c
238 registry/reg_parse_internal.c
239 lib/cbuf.c
240 lib/srprs.c
241 registry/reg_init_basic.c''',
242 deps='''smbd_shim tdb-wrap3 NDR_SECURITY util_tdb talloc
243 replace util_reg samba-util samba-security
244 errors3 dbwrap samba3-util''',
245 allow_undefined_symbols=True,
246 private_library=True)
248 bld.SAMBA3_SUBSYSTEM('REG_SMBCONF',
249 source='''registry/reg_backend_smbconf.c
250 registry/reg_init_smbconf.c
251 registry/reg_util_token.c
252 registry/reg_api_util.c''',
253 deps='smbregistry')
255 bld.SAMBA3_SUBSYSTEM('REG_FULL',
256 source='''registry/reg_backend_printing.c
257 registry/reg_backend_shares.c
258 registry/reg_backend_netlogon_params.c
259 registry/reg_backend_prod_options.c
260 registry/reg_backend_tcpip_params.c
261 registry/reg_backend_hkpt_params.c
262 registry/reg_backend_current_version.c
263 registry/reg_backend_perflib.c
264 registry/reg_init_full.c
265 registry/reg_perfcount.c''',
266 deps='REG_SMBCONF tdb-wrap3')
268 bld.SAMBA3_LIBRARY('popt_samba3',
269 source='lib/popt_common.c',
270 deps='popt samba-util util_cmdline',
271 private_library=True)
273 bld.SAMBA3_LIBRARY('util_cmdline',
274 source='lib/util_cmdline.c',
275 deps='secrets3',
276 private_library=True)
278 bld.SAMBA3_SUBSYSTEM('KRBCLIENT',
279 source='libads/kerberos.c libads/ads_status.c',
280 public_deps='krb5samba k5crypto gssapi LIBTSOCKET CLDAP LIBNMB')
282 bld.SAMBA3_SUBSYSTEM('samba3util',
283 source='''lib/system.c
284 lib/sendfile.c
285 lib/recvfile.c
286 lib/time.c
287 lib/util_sid.c
288 lib/util_file.c
289 lib/util.c
290 lib/util_sock.c
291 lib/util_transfer_file.c
292 lib/sock_exec.c''',
293 deps='ndr samba-security NDR_SECURITY samba-util util_tdb ccan-hash')
296 bld.SAMBA3_SUBSYSTEM('TDB_LIB',
297 source='''lib/dbwrap/dbwrap_open.c
298 lib/dbwrap/dbwrap_ctdb.c
299 lib/dbwrap/dbwrap_watch.c
300 lib/g_lock.c''',
301 deps='dbwrap')
303 bld.SAMBA3_SUBSYSTEM('samba3core',
304 source='''lib/messages.c
305 lib/messages_local.c
306 lib/messages_ctdbd.c
307 lib/ctdb_packet.c
308 lib/ctdbd_conn.c
309 lib/ctdb_conn.c
310 lib/msg_channel.c
311 lib/id_cache.c
312 lib/talloc_dict.c
313 lib/serverid.c
314 lib/addrchange.c
315 ../lib/util/debug_s3.c
316 lib/dumpcore.c
317 lib/interface.c
318 lib/username.c
319 lib/access.c lib/smbrun.c
320 lib/wins_srv.c
321 lib/substitute.c
322 lib/substitute_generic.c
323 lib/ms_fnmatch.c
324 lib/tallocmsg.c
325 lib/dmallocmsg.c
326 intl/lang_tdb.c
327 lib/gencache.c
328 lib/events.c
329 lib/server_contexts.c
330 lib/server_prefork.c
331 lib/server_prefork_util.c
332 lib/ldap_escape.c
333 lib/fncall.c
334 libads/krb5_errs.c
335 lib/system_smbd.c
336 lib/audit.c
337 lib/tevent_wait.c
338 lib/idmap_cache.c
339 lib/util_ea.c''',
340 deps='''
341 samba3util
342 LIBTSOCKET
343 NDR_MESSAGING
344 LIBASYNC_REQ
345 UTIL_PW
346 SAMBA_VERSION
347 PTHREADPOOL
348 interfaces
349 param
350 dbwrap
351 samba3-util
352 errors3
353 TDB_LIB''')
355 bld.SAMBA3_LIBRARY('smbd_shim',
356 source='''lib/smbd_shim.c''',
357 deps='talloc',
358 private_library=True)
360 bld.SAMBA3_SUBSYSTEM('LIBNTLMSSP',
361 source='''libsmb/ntlmssp.c
362 libsmb/ntlmssp_wrap.c''',
363 deps='NDR_NTLMSSP NTLMSSP_COMMON wbclient')
365 bld.SAMBA3_SUBSYSTEM('auth_generic',
366 source='libsmb/auth_generic.c',
367 deps='LIBNTLMSSP gse gensec')
369 bld.SAMBA3_LIBRARY('libsmb',
370 source='''libsmb/clientgen.c
371 libsmb/cliconnect.c
372 libsmb/clifile.c
373 libsmb/clispnego.c
374 libsmb/clirap.c
375 libsmb/clierror.c
376 libsmb/climessage.c
377 libsmb/clireadwrite.c
378 libsmb/clilist.c
379 libsmb/cliprint.c
380 libsmb/clitrans.c
381 libsmb/clisecdesc.c
382 libsmb/clidgram.c
383 libsmb/clistr.c
384 libsmb/cliquota.c
385 libsmb/clifsinfo.c
386 libsmb/clidfs.c
387 libsmb/clioplock.c
388 libsmb/clirap2.c
389 libsmb/async_smb.c
390 libsmb/smb2cli_tcon.c
391 libsmb/cli_np_tstream.c
392 libsmb/reparse_symlink.c
393 libsmb/clisymlink.c
394 libsmb/smbsock_connect.c
395 libsmb/cli_smb2_fnum.c''',
396 deps='''
397 LIBNTLMSSP
398 auth_generic
399 CLDAP
400 LIBNMB
401 SPNEGO_PARSE
402 LIBTSOCKET
403 KRBCLIENT
404 cli_smb_common
405 util_cmdline
406 tevent''',
407 private_library=True)
409 bld.SAMBA3_SUBSYSTEM('CLDAP',
410 source='libads/cldap.c',
411 deps='cli-ldap-common cli_cldap LIBTSOCKET')
413 # NOTE: The secrets3 library is a low level library used by several subsystems.
414 # PLEASE DO NOT make it depend on high level libraries like PDB, if you are
415 # doing that your design is wrong and needs changing. -SSS
416 bld.SAMBA3_LIBRARY('secrets3',
417 source='''passdb/secrets.c
418 passdb/machine_account_secrets.c
419 passdb/machine_sid.c
420 passdb/secrets_lsa.c''',
421 deps='NDR_SECRETS param samba3util dbwrap',
422 private_library=True)
424 bld.SAMBA3_LIBRARY('smbldap',
425 source='lib/smbldap.c',
426 deps='ldap lber samba-util param',
427 enabled=bld.CONFIG_SET("HAVE_LDAP"),
428 private_library=False,
429 abi_directory='lib/ABI',
430 abi_match='smbldap_*',
431 pc_files=[],
432 vnum='0',
433 public_headers='include/smbldap.h include/smb_ldap.h')
435 bld.SAMBA3_LIBRARY('ads',
436 source='''libads/ldap.c
437 libads/sasl.c
438 libads/sasl_wrapping.c
439 libads/krb5_setpw.c
440 libads/kerberos_util.c
441 libads/ldap_user.c
442 libads/ads_struct.c
443 libads/kerberos_keytab.c
444 libads/disp_sec.c
445 libads/ldap_utils.c
446 libads/ldap_schema.c
447 libads/util.c
448 libads/ndr.c''',
449 deps='cli-ldap-common krb5samba ldap lber KRBCLIENT param LIBNMB libsmb DCUTIL smbldap',
450 private_library=True)
452 bld.SAMBA3_SUBSYSTEM('LIBADS_SERVER',
453 source='libads/authdata.c',
454 deps='SERVER_MUTEX ndr-krb5pac krb5samba gssapi')
456 bld.SAMBA3_SUBSYSTEM('LIBADS_PRINTER',
457 source='libads/ldap_printer.c',
458 deps='samba-util krb5samba')
460 bld.SAMBA3_SUBSYSTEM('LIBAFS_SETTOKEN',
461 source='lib/afs_settoken.c',
462 deps='samba-util')
464 bld.SAMBA3_SUBSYSTEM('LIBAFS',
465 source='lib/afs.c',
466 deps='samba-util LIBAFS_SETTOKEN')
468 bld.SAMBA3_LIBRARY('smbconf',
469 source='''lib/smbconf/smbconf_init.c
470 lib/smbconf/smbconf_reg.c''',
471 deps='''
472 CHARSET3
473 LIBSMBCONF
474 REG_SMBCONF
475 SAMBA_VERSION
477 charset
478 cli_smb_common
479 errors3
480 param
481 samba-util
482 smbregistry
483 talloc
484 util_reg''',
485 public_headers='../lib/smbconf/smbconf.h',
486 pc_files=[],
487 vnum='0')
489 bld.SAMBA3_LIBRARY('smbd_conn',
490 source='smbd/conn.c',
491 deps='samba3-util samba-util',
492 private_library=True)
494 bld.SAMBA3_LIBRARY('smbd_base',
495 source='''
496 smbd/server_reload.c
497 smbd/files.c
498 smbd/connection.c
499 smbd/utmp.c
500 smbd/session.c
501 smbd/dfree.c
502 smbd/dir.c
503 smbd/password.c
504 smbd/conn_msg.c
505 smbd/conn_idle.c
506 smbd/share_access.c
507 smbd/fileio.c
508 smbd/ipc.c
509 smbd/lanman.c
510 smbd/negprot.c
511 smbd/message.c
512 smbd/nttrans.c
513 smbd/pipes.c
514 smbd/reply.c
515 smbd/sesssetup.c
516 smbd/trans2.c
517 smbd/uid.c
518 smbd/dosmode.c
519 smbd/filename.c
520 smbd/open.c
521 smbd/close.c
522 smbd/blocking.c
523 smbd/sec_ctx.c
524 smbd/srvstr.c
525 smbd/vfs.c
526 smbd/perfcount.c
527 smbd/statcache.c
528 smbd/seal.c
529 smbd/posix_acls.c
530 lib/sysacls.c
531 smbd/process.c
532 smbd/service.c
533 smbd/error.c
534 printing/printspoolss.c
535 printing/spoolssd.c
536 lib/sysquotas.c
537 lib/sysquotas_linux.c
538 lib/sysquotas_xfs.c
539 lib/sysquotas_4A.c
540 lib/sysquotas_4B.c
541 lib/sysquotas_nfs.c
542 lib/background.c
543 lib/sessionid_tdb.c
544 lib/conn_tdb.c
545 smbd/fake_file.c
546 smbd/quotas.c
547 smbd/ntquotas.c
548 smbd/msdfs.c
549 smbd/aio.c smbd/statvfs.c
550 smbd/dmapi.c
551 smbd/signing.c
552 smbd/file_access.c
553 smbd/dnsregister.c smbd/globals.c
554 smbd/smb2_server.c
555 smbd/smb2_glue.c
556 smbd/smb2_negprot.c
557 smbd/smb2_sesssetup.c
558 smbd/smb2_tcon.c
559 smbd/smb2_create.c
560 smbd/smb2_close.c
561 smbd/smb2_flush.c
562 smbd/smb2_read.c
563 smbd/smb2_write.c
564 smbd/smb2_lock.c
565 smbd/smb2_ioctl.c
566 smbd/smb2_ioctl_dfs.c
567 smbd/smb2_ioctl_filesys.c
568 smbd/smb2_ioctl_named_pipe.c
569 smbd/smb2_ioctl_network_fs.c
570 smbd/smb2_keepalive.c
571 smbd/smb2_find.c
572 smbd/smb2_notify.c
573 smbd/smb2_getinfo.c
574 smbd/smb2_setinfo.c
575 smbd/smb2_break.c
576 smbd/smbXsrv_version.c
577 smbd/smbXsrv_session.c
578 smbd/smbXsrv_tcon.c
579 smbd/smbXsrv_open.c
580 smbd/server_exit.c
581 smbd/durable.c
582 smbd/scavenger.c
583 smbd/mangle.c
584 smbd/mangle_hash.c
585 smbd/mangle_hash2.c
586 smbd/oplock.c
587 smbd/oplock_irix.c
588 smbd/oplock_linux.c
589 smbd/notify.c
590 smbd/notify_inotify.c
591 smbd/notify_internal.c
592 smbd/build_options.c''',
593 deps='''
594 talloc
595 tevent
597 libsmb
598 msrpc3
600 vfs_default
601 vfs_posixacl
602 popt_samba3
603 samba3core
604 smbd_conn
605 param_service
606 AVAHI
607 PRINTBASE
608 PROFILE
609 LOCKING
610 LIBADS_SERVER
611 LIBAFS
612 RPC_SERVER
613 NDR_SMBXSRV
614 LIBASYS
615 ccan-hash
616 NDR_SMB_ACL
617 netapi
618 NDR_IOCTL
619 ''' + bld.env['dmapi_lib'],
620 private_library=True)
622 bld.SAMBA3_SUBSYSTEM('LOCKING',
623 source='''locking/locking.c
624 locking/brlock.c
625 locking/posix.c
626 locking/share_mode_lock.c''',
627 deps='''
628 tdb_compat
629 talloc
630 NDR_OPEN_FILES
631 FNAME_UTIL''')
633 bld.SAMBA3_SUBSYSTEM('PROFILE',
634 source='profile/profile.c',
635 deps='samba-util')
637 bld.SAMBA3_SUBSYSTEM('PRINTBASE',
638 source='''printing/notify.c printing/printing_db.c''',
639 deps='samba-util tdb_compat')
641 bld.SAMBA3_SUBSYSTEM('PRINTBACKEND',
642 source='''printing/printing.c
643 printing/nt_printing.c
644 printing/nt_printing_tdb.c
645 printing/nt_printing_migrate_internal.c
646 printing/nt_printing_ads.c
647 printing/queue_process.c''',
648 deps='PRINTBASE LIBADS_PRINTER tdb_compat printing_migrate')
650 bld.SAMBA3_LIBRARY('printing_migrate',
651 source='printing/nt_printing_migrate.c rpc_client/cli_winreg_spoolss.c printing/nt_printing_os2.c',
652 deps='NDR_NTPRINTING cli_spoolss RPC_NDR_WINREG LIBCLI_WINREG param',
653 private_library=True)
655 bld.SAMBA3_SUBSYSTEM('PRINTING',
656 source='''printing/pcap.c
657 printing/print_svid.c
658 printing/print_aix.c
659 printing/print_cups.c
660 printing/print_generic.c
661 printing/lpq_parse.c
662 printing/load.c
663 printing/print_standard.c
664 printing/print_iprint.c
665 printing/printer_list.c''',
666 deps='NDR_PRINTCAP tdb_compat cups')
668 bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL',
669 source='utils/passwd_util.c',
670 deps='samba-util')
672 bld.SAMBA3_SUBSYSTEM('FNAME_UTIL',
673 source='lib/filename_util.c',
674 deps='samba-util')
676 bld.SAMBA3_SUBSYSTEM('LIBNET',
677 source='libnet/libnet_join.c',
678 deps='NDR_LIBNET_JOIN INIT_SAMR net_keytab pdb')
680 bld.SAMBA3_LIBRARY('net_keytab',
681 source='libnet/libnet_keytab.c',
682 deps='krb5samba ads',
683 private_library=True)
686 bld.SAMBA3_SUBSYSTEM('LIBNET_DSSYNC',
687 source='''libnet/libnet_dssync.c
688 libnet/libnet_dssync_passdb.c
689 libnet/libnet_dssync_keytab.c''',
690 deps='LIBNET RPC_NDR_DRSUAPI')
692 bld.SAMBA3_SUBSYSTEM('LIBNET_SAMSYNC',
693 source='''libnet/libnet_samsync.c
694 libnet/libnet_samsync_ldif.c
695 libnet/libnet_samsync_passdb.c
696 libnet/libnet_samsync_display.c
697 libnet/libnet_samsync_keytab.c''',
698 deps='LIBNET LIBCLI_SAMSYNC')
700 bld.SAMBA3_SUBSYSTEM('LIBEVENTLOG',
701 source='lib/eventlog/eventlog.c',
702 deps='NDR_EVENTLOG tdb_compat')
704 bld.SAMBA3_SUBSYSTEM('LIBNMB',
705 source='''libsmb/unexpected.c
706 libsmb/namecache.c
707 libsmb/nmblib.c
708 libsmb/namequery.c
709 libsmb/conncache.c
710 libads/sitename_cache.c''',
711 deps='addns lmhosts resolv')
713 bld.SAMBA3_SUBSYSTEM('SERVICES',
714 source='''services/svc_spoolss.c
715 services/svc_rcinit.c
716 services/svc_winreg_glue.c
717 services/svc_netlogon.c
718 services/svc_winreg.c
719 services/svc_wins.c''',
720 deps='samba-util')
722 bld.SAMBA3_SUBSYSTEM('PLAINTEXT_AUTH',
723 source='''auth/pampass.c auth/pass_check.c''',
724 deps='pam PAM_ERRORS')
726 bld.SAMBA3_SUBSYSTEM('PASSCHANGE',
727 source='libsmb/passchange.c',
728 deps='''LIBCLI_SAMR
729 INIT_LSA
730 msrpc3
731 krb5samba''')
733 bld.SAMBA3_SUBSYSTEM('SAMBA_VERSION',
734 source='lib/version.c',
735 deps='samba-util')
737 bld.SAMBA3_SUBSYSTEM('SLCACHE',
738 source='libsmb/samlogon_cache.c',
739 deps='samba-util tdb_compat')
741 bld.SAMBA3_SUBSYSTEM('DCUTIL',
742 source='''libsmb/namequery_dc.c
743 libsmb/trustdom_cache.c
744 libsmb/dsgetdcname.c''',
745 deps='ads msrpc3 libcli_lsa3')
747 bld.SAMBA3_LIBRARY('trusts_util',
748 source='libsmb/trusts_util.c',
749 deps='libcli_netlogon3 msrpc3 pdb',
750 private_library=True)
752 bld.SAMBA3_SUBSYSTEM('tdb-wrap3',
753 source='lib/util_tdb.c',
754 deps='talloc samba3-util')
756 bld.SAMBA3_LIBRARY('samba3-util',
757 source='''lib/util_sec.c lib/util_str.c lib/adt_tree.c lib/util_malloc.c lib/memcache.c lib/namearray.c lib/file_id.c''',
758 deps='samba-util charset',
759 private_library=True)
761 bld.SAMBA_LIBRARY('xattr_tdb',
762 source='lib/xattr_tdb.c',
763 deps='NDR_XATTR dbwrap samba3-util',
764 private_library=True)
766 bld.SAMBA3_LIBRARY('CHARSET3',
767 source='''lib/charcnv.c lib/fstring.c''',
768 public_deps='ICONV_WRAPPER charset',
769 deps='samba-util samba3-util',
770 private_library=True)
772 bld.SAMBA3_SUBSYSTEM('errors3',
773 source='libsmb/errormap.c libsmb/smberr.c lib/errmap_unix.c',
774 deps='errors')
776 bld.SAMBA3_SUBSYSTEM('LIBCLI_SAMR',
777 source='rpc_client/cli_samr.c',
778 deps='RPC_NDR_SAMR')
780 bld.SAMBA3_LIBRARY('libcli_lsa3',
781 source='rpc_client/cli_lsarpc.c',
782 deps='RPC_NDR_LSA INIT_LSA',
783 private_library=True)
785 bld.SAMBA3_LIBRARY('libcli_netlogon3',
786 source='rpc_client/cli_netlogon.c rpc_client/util_netlogon.c',
787 deps='RPC_NDR_NETLOGON INIT_NETLOGON cliauth param',
788 private_library=True)
790 bld.SAMBA3_LIBRARY('cli_spoolss',
791 source='''rpc_client/cli_spoolss.c
792 rpc_client/init_spoolss.c''',
793 deps='RPC_NDR_SPOOLSS param secrets3',
794 private_library=True)
796 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG',
797 source='rpc_client/cli_winreg.c',
798 deps='RPC_NDR_WINREG')
800 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG_INTERNAL',
801 source='rpc_client/cli_winreg_int.c',
802 deps='LIBCLI_WINREG RPC_NCACN_NP')
804 bld.SAMBA3_SUBSYSTEM('RPC_CLIENT_SCHANNEL',
805 source='rpc_client/cli_pipe_schannel.c',
806 deps='samba-util krb5samba')
808 bld.SAMBA3_SUBSYSTEM('INIT_LSA',
809 source='rpc_client/init_lsa.c',
810 deps='samba-util')
812 bld.SAMBA3_SUBSYSTEM('INIT_NETLOGON',
813 source='rpc_client/init_netlogon.c',
814 deps='samba-util')
816 bld.SAMBA3_SUBSYSTEM('INIT_SAMR',
817 source='rpc_client/init_samr.c',
818 deps='samba-util')
820 ########################## BINARIES #################################
822 bld.SAMBA3_BINARY('smbd/smbd',
823 source='smbd/server.c',
824 deps='smbd_base EPMD LSASD',
825 install_path='${SBINDIR}')
827 bld.SAMBA3_BINARY('nmbd/nmbd',
828 source='''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
829 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
830 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
831 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
832 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
833 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
834 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
835 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
836 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
837 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
838 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
839 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c''',
840 deps='''
841 talloc
842 tevent
843 param
844 libsmb
845 popt_samba3
846 PROFILE''',
847 install_path='${SBINDIR}')
850 bld.SAMBA3_SUBSYSTEM('TDB_VALIDATE',
851 source='lib/tdb_validate.c',
852 deps='samba-util')
855 bld.SAMBA3_BINARY('winbindd/winbindd',
856 source='''winbindd/winbindd.c
857 winbindd/winbindd_group.c
858 winbindd/winbindd_util.c
859 winbindd/winbindd_cache.c
860 winbindd/winbindd_pam.c
861 winbindd/winbindd_misc.c
862 winbindd/winbindd_cm.c
863 winbindd/winbindd_wins_byip.c
864 winbindd/winbindd_wins_byname.c
865 winbindd/winbindd_msrpc.c
866 winbindd/winbindd_rpc.c
867 winbindd/winbindd_reconnect.c
868 winbindd/winbindd_ads.c
869 winbindd/winbindd_samr.c
870 winbindd/winbindd_dual.c
871 winbindd/winbindd_dual_ndr.c
872 winbindd/winbindd_dual_srv.c
873 winbindd/winbindd_async.c
874 winbindd/winbindd_creds.c
875 winbindd/winbindd_cred_cache.c
876 winbindd/winbindd_ccache_access.c
877 winbindd/winbindd_domain.c
878 winbindd/winbindd_idmap.c
879 winbindd/winbindd_locator.c
880 winbindd/winbindd_ndr.c
881 winbindd/wb_ping.c
882 winbindd/wb_lookupsid.c
883 winbindd/wb_lookupsids.c
884 winbindd/wb_lookupname.c
885 winbindd/wb_uid2sid.c
886 winbindd/wb_gid2sid.c
887 winbindd/wb_sids2xids.c
888 winbindd/wb_queryuser.c
889 winbindd/wb_lookupuseraliases.c
890 winbindd/wb_lookupusergroups.c
891 winbindd/wb_getpwsid.c
892 winbindd/wb_gettoken.c
893 winbindd/wb_seqnum.c
894 winbindd/wb_seqnums.c
895 winbindd/wb_group_members.c
896 winbindd/wb_getgrsid.c
897 winbindd/wb_query_user_list.c
898 winbindd/wb_fill_pwent.c
899 winbindd/wb_next_pwent.c
900 winbindd/wb_next_grent.c
901 winbindd/wb_dsgetdcname.c
902 winbindd/winbindd_lookupsid.c
903 winbindd/winbindd_lookupsids.c
904 winbindd/winbindd_lookupname.c
905 winbindd/winbindd_sid_to_uid.c
906 winbindd/winbindd_sid_to_gid.c
907 winbindd/winbindd_uid_to_sid.c
908 winbindd/winbindd_gid_to_sid.c
909 winbindd/winbindd_sids_to_xids.c
910 winbindd/winbindd_allocate_uid.c
911 winbindd/winbindd_allocate_gid.c
912 winbindd/winbindd_getpwsid.c
913 winbindd/winbindd_getpwnam.c
914 winbindd/winbindd_getpwuid.c
915 winbindd/winbindd_getsidaliases.c
916 winbindd/winbindd_getuserdomgroups.c
917 winbindd/winbindd_getgroups.c
918 winbindd/winbindd_show_sequence.c
919 winbindd/winbindd_getgrgid.c
920 winbindd/winbindd_getgrnam.c
921 winbindd/winbindd_getusersids.c
922 winbindd/winbindd_lookuprids.c
923 winbindd/winbindd_setpwent.c
924 winbindd/winbindd_getpwent.c
925 winbindd/winbindd_endpwent.c
926 winbindd/winbindd_setgrent.c
927 winbindd/winbindd_getgrent.c
928 winbindd/winbindd_endgrent.c
929 winbindd/winbindd_dsgetdcname.c
930 winbindd/winbindd_getdcname.c
931 winbindd/winbindd_list_users.c
932 winbindd/winbindd_list_groups.c
933 winbindd/winbindd_check_machine_acct.c
934 winbindd/winbindd_change_machine_acct.c
935 winbindd/winbindd_ping_dc.c
936 winbindd/winbindd_pam_auth.c
937 winbindd/winbindd_pam_logoff.c
938 winbindd/winbindd_pam_chauthtok.c
939 winbindd/winbindd_pam_auth_crap.c
940 winbindd/winbindd_pam_chng_pswd_auth_crap.c''',
941 deps='''
942 talloc
943 tevent
945 popt_samba3
946 idmap
948 msrpc3
949 nss_info
950 LIBAFS
951 LIBADS_SERVER
952 LIBCLI_SAMR
953 SLCACHE
954 RPC_NDR_DSSETUP
955 RPC_NDR_WBINT
956 SRV_NDR_WBINT
957 RPC_SAMR
958 RPC_LSARPC
959 RPC_NCACN_NP
960 RPC_PIPE_REGISTER
961 WB_REQTRANS
962 TDB_VALIDATE
963 ''',
964 enabled=bld.env.build_winbind,
965 install_path='${SBINDIR}')
967 bld.SAMBA3_BINARY('rpcclient/rpcclient',
968 source='''rpcclient/rpcclient.c
969 rpcclient/cmd_lsarpc.c
970 rpcclient/cmd_samr.c
971 rpcclient/cmd_spoolss.c
972 rpcclient/cmd_netlogon.c
973 rpcclient/cmd_srvsvc.c
974 rpcclient/cmd_dfs.c
975 rpcclient/cmd_epmapper.c
976 rpcclient/cmd_dssetup.c
977 rpcclient/cmd_echo.c
978 rpcclient/cmd_shutdown.c
979 rpcclient/cmd_test.c
980 rpcclient/cmd_wkssvc.c
981 rpcclient/cmd_ntsvcs.c
982 rpcclient/cmd_drsuapi.c
983 rpcclient/cmd_eventlog.c
984 rpcclient/cmd_winreg.c
985 rpcclient/cmd_fss.c''',
986 deps='''
987 talloc
988 popt_samba3
990 libsmb
991 param
992 ndr-standard
993 msrpc3
994 SMBREADLINE
995 trusts_util
996 RPC_NDR_WINREG
997 RPC_NDR_ECHO
998 RPC_CLIENT_SCHANNEL
999 DCUTIL
1000 LIBCLI_SAMR
1001 libcli_lsa3
1002 libcli_netlogon3
1003 cli_spoolss
1004 RPC_NDR_SRVSVC
1005 RPC_NDR_WKSSVC
1006 RPC_NDR_DSSETUP
1007 RPC_NDR_DFS
1008 RPC_NDR_DRSUAPI
1009 RPC_NDR_NTSVCS
1010 RPC_NDR_EVENTLOG
1011 INIT_SAMR
1012 RPC_NDR_FSRVP
1013 ''')
1015 bld.SAMBA3_BINARY('client/smbclient',
1016 source='''client/client.c
1017 client/clitar.c
1018 client/dnsbrowse.c''',
1019 deps='''
1020 talloc
1021 popt_samba3
1022 param
1023 ndr-standard
1024 SMBREADLINE
1025 libsmb
1026 msrpc3
1027 RPC_NDR_SRVSVC
1028 cli_smb_common''')
1030 bld.SAMBA3_BINARY('net',
1031 source='''utils/net.c
1032 utils/net_ads.c
1033 utils/net_help.c
1034 utils/net_rap.c
1035 utils/net_rpc.c
1036 utils/net_rpc_samsync.c
1037 utils/net_time.c
1038 utils/net_lookup.c
1039 utils/net_cache.c
1040 utils/net_groupmap.c
1041 utils/net_idmap.c
1042 utils/net_idmap_check.c
1043 utils/interact.c
1044 utils/net_status.c
1045 utils/net_rpc_printer.c
1046 utils/net_rpc_rights.c
1047 utils/net_rpc_service.c
1048 utils/net_rpc_registry.c
1049 utils/net_usershare.c
1050 utils/netlookup.c
1051 utils/net_sam.c
1052 utils/net_rpc_shell.c
1053 utils/net_util.c
1054 utils/net_rpc_sh_acct.c
1055 utils/net_rpc_audit.c
1056 utils/net_dns.c
1057 utils/net_ads_gpo.c
1058 utils/net_conf.c
1059 utils/net_conf_util.c
1060 utils/net_join.c
1061 utils/net_user.c
1062 utils/net_group.c
1063 utils/net_file.c
1064 utils/net_registry.c
1065 utils/net_registry_check.c
1066 utils/net_dom.c
1067 utils/net_share.c
1068 utils/net_g_lock.c
1069 utils/net_serverid.c
1070 utils/net_eventlog.c
1071 utils/net_printing.c
1072 utils/net_rpc_trust.c
1073 utils/net_rpc_conf.c
1074 registry/reg_parse.c
1075 registry/reg_format.c
1076 registry/reg_import.c
1077 utils/net_registry_util.c
1078 utils/net_help_common.c''',
1079 deps='''
1080 talloc
1081 netapi
1082 addns
1083 samba_intl
1084 popt_samba3
1086 libsmb
1087 param
1088 KRBCLIENT
1089 ndr-standard
1090 msrpc3
1093 smbd_base
1094 LIBADS_SERVER
1095 LIBADS_PRINTER
1096 SMBREADLINE
1097 PASSWD_UTIL
1098 LIBNET
1099 LIBNET_DSSYNC
1100 LIBNET_SAMSYNC
1101 LIBEVENTLOG
1102 REGFIO
1103 NDR_NTPRINTING
1104 RPC_NDR_WINREG
1105 RPC_CLIENT_SCHANNEL
1106 LIBCLI_SAMR
1107 libcli_lsa3
1108 libcli_netlogon3
1109 cli_spoolss
1110 RPC_NDR_SRVSVC
1111 RPC_NDR_SVCCTL
1112 RPC_NDR_DSSETUP
1113 RPC_NDR_INITSHUTDOWN
1114 printing_migrate
1115 trusts_util
1116 IDMAP_AUTORID_TDB''')
1118 bld.SAMBA3_BINARY('profiles',
1119 source='utils/profiles.c',
1120 deps='''
1121 talloc
1122 popt_samba3
1123 param
1124 REGFIO''')
1126 bld.SAMBA3_BINARY('smbspool',
1127 source='client/smbspool.c',
1128 deps='''
1129 talloc
1130 popt_samba3
1131 param
1132 libsmb
1133 samba3core''')
1135 bld.SAMBA3_BINARY('testparm',
1136 source='utils/testparm.c',
1137 deps='''
1138 talloc
1139 param
1140 popt_samba3''')
1142 bld.SAMBA3_BINARY('smbta-util',
1143 source='utils/smbta-util.c',
1144 deps='''
1145 talloc
1146 secrets3
1147 param''')
1149 bld.SAMBA3_BINARY('smbstatus',
1150 source='''utils/status.c
1151 utils/status_profile.c
1152 smbd/notify_internal.c''',
1153 deps='''
1154 talloc
1155 param
1156 popt_samba3
1157 smbd_base
1158 LOCKING
1159 PROFILE''')
1161 bld.SAMBA3_BINARY('smbcontrol',
1162 source='utils/smbcontrol.c',
1163 deps='''
1164 talloc
1165 param
1166 popt_samba3
1167 PRINTBASE''')
1169 bld.SAMBA3_BINARY('smbtree',
1170 source='utils/smbtree.c',
1171 deps='''
1172 talloc
1173 param
1174 libsmb
1175 msrpc3
1176 popt_samba3
1177 PROFILE
1178 RPC_NDR_SRVSVC''')
1180 bld.SAMBA3_BINARY('smbpasswd',
1181 source='utils/smbpasswd.c',
1182 deps='''
1183 talloc
1184 param
1186 PASSWD_UTIL
1187 PASSCHANGE''')
1189 bld.SAMBA3_BINARY('pdbedit',
1190 source='utils/pdbedit.c',
1191 deps='''
1192 talloc
1193 param
1194 popt_samba3
1196 PASSWD_UTIL''')
1198 bld.SAMBA3_BINARY('smbget',
1199 source='utils/smbget.c',
1200 deps='''
1201 talloc
1202 popt_samba3
1203 smbclient''')
1205 bld.SAMBA3_BINARY('nmblookup',
1206 source='utils/nmblookup.c',
1207 deps='''
1208 talloc
1209 param
1210 popt_samba3
1211 LIBNMB''')
1213 bld.SAMBA3_BINARY('smbtorture' + bld.env.suffix3,
1214 source='''torture/torture.c
1215 torture/nbio.c
1216 torture/scanner.c
1217 torture/utable.c
1218 torture/denytest.c
1219 torture/mangle_test.c
1220 torture/nbench.c
1221 torture/test_async_echo.c
1222 torture/test_addrchange.c
1223 torture/test_posix_append.c
1224 torture/test_nttrans_create.c
1225 torture/test_nttrans_fsctl.c
1226 torture/test_case_insensitive.c
1227 torture/test_notify_online.c
1228 torture/test_chain3.c
1229 torture/test_smb2.c
1230 torture/test_authinfo_structs.c
1231 torture/test_smbsock_any_connect.c
1232 torture/test_cleanup.c
1233 torture/test_ctdbconn.c
1234 torture/test_msg.c
1235 torture/test_notify.c
1236 lib/tevent_barrier.c
1237 torture/test_dbwrap_watch.c
1238 torture/test_idmap_tdb_common.c
1239 torture/test_dbwrap_ctdb.c
1240 torture/test_buffersize.c
1241 torture/t_strappend.c
1242 torture/wbc_async.c''',
1243 deps='''
1244 talloc
1245 param
1246 libsmb
1247 msrpc3
1248 TLDAP
1249 RPC_NDR_ECHO
1250 WB_REQTRANS
1251 LOCKING
1252 NDR_OPEN_FILES
1253 idmap
1254 ''',
1255 install=False)
1257 bld.SAMBA3_BINARY('smbconftort',
1258 source='lib/smbconf/testsuite.c',
1259 deps='''
1260 talloc
1261 param
1262 popt_samba3''',
1263 install=False)
1265 bld.SAMBA3_BINARY('replacetort',
1266 source='../lib/replace/test/main.c',
1267 deps='replace replace-test',
1268 install=False)
1270 bld.SAMBA3_BINARY('msgtest',
1271 source='torture/msgtest.c',
1272 deps='''
1273 talloc
1274 param''',
1275 install=False)
1277 bld.SAMBA3_BINARY('smbcacls',
1278 source='utils/smbcacls.c',
1279 deps='''
1280 talloc
1281 popt_samba3
1282 msrpc3
1283 libcli_lsa3
1284 krb5samba''')
1286 bld.SAMBA3_BINARY('smbcquotas',
1287 source='utils/smbcquotas.c',
1288 deps='''
1289 talloc
1290 popt_samba3
1291 libsmb
1292 msrpc3
1293 libcli_lsa3''')
1295 bld.SAMBA3_BINARY('eventlogadm',
1296 source='utils/eventlogadm.c',
1297 deps='''
1298 talloc
1299 param
1300 LIBEVENTLOG''')
1302 bld.SAMBA3_BINARY('sharesec',
1303 source='utils/sharesec.c',
1304 deps='''
1305 talloc
1306 popt_samba3''')
1308 bld.SAMBA3_BINARY('pdbtest',
1309 source='torture/pdbtest.c',
1310 deps='''
1311 talloc
1313 popt_samba3
1314 AUTH_COMMON
1315 auth''',
1316 install=False)
1318 bld.SAMBA3_BINARY('vfstest',
1319 source='''torture/cmd_vfs.c
1320 torture/vfstest.c
1321 torture/vfstest_chain.c''',
1322 deps='''
1324 popt_samba3
1325 SMBREADLINE''',
1326 install=False)
1328 bld.SAMBA3_BINARY('log2pcap',
1329 source='utils/log2pcaphex.c',
1330 deps='''talloc popt''',
1331 install=False)
1333 bld.SAMBA3_BINARY('locktest2',
1334 source='torture/locktest2.c',
1335 deps='''
1336 talloc
1337 param
1338 libsmb
1339 LOCKING''',
1340 install=False)
1342 bld.SAMBA3_BINARY('debug2html',
1343 source='''utils/debug2html.c utils/debugparse.c''',
1344 deps='''talloc popt''',
1345 install=False)
1347 bld.SAMBA3_BINARY('smbfilter',
1348 source='utils/smbfilter.c',
1349 deps='''
1350 talloc
1351 param
1352 LIBNMB''',
1353 install=False)
1355 bld.SAMBA3_BINARY('versiontest',
1356 source='lib/version_test.c',
1357 deps='''
1358 SAMBA_VERSION
1359 param''',
1360 install=False)
1362 bld.SAMBA3_BINARY('ntlm_auth',
1363 source='''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c''',
1364 deps='''
1365 talloc
1366 krb5samba
1367 iniparser
1368 libsmb
1369 popt_samba3
1370 LIBNTLMSSP gse gensec''')
1372 bld.SAMBA3_BINARY('timelimit',
1373 source='script/tests/timelimit.c',
1374 install=False)
1376 bld.SAMBA3_BINARY('rpc_open_tcp',
1377 source='torture/rpc_open_tcp.c',
1378 deps='''
1379 talloc
1380 msrpc3''',
1381 install=False)
1383 bld.SAMBA3_BINARY('test_lp_load',
1384 source='param/test_lp_load.c',
1385 deps='''
1386 talloc
1387 param
1388 popt_samba3''',
1389 install=False)
1391 bld.SAMBA3_BINARY('dbwrap_tool',
1392 source='utils/dbwrap_tool.c',
1393 deps='''
1394 talloc
1395 popt_samba3''')
1397 bld.SAMBA3_BINARY('dbwrap_torture',
1398 source='utils/dbwrap_torture.c',
1399 deps='''
1400 talloc
1401 popt_samba3''',
1402 install=False)
1404 bld.SAMBA3_BINARY('split_tokens',
1405 source='utils/split_tokens.c',
1406 deps='''
1407 talloc
1408 popt_samba3''',
1409 install=False)
1411 bld.SAMBA3_BINARY('vlp',
1412 source='printing/tests/vlp.c',
1413 deps='''
1414 talloc
1415 param''',
1416 install=False)
1418 bld.SAMBA3_PYTHON('pysmbd',
1419 source='smbd/pysmbd.c',
1420 deps='smbd_base pyrpc_util',
1421 realname='samba/samba3/smbd.so'
1424 bld.SAMBA3_PYTHON('pylibsmb',
1425 source='libsmb/pylibsmb.c',
1426 deps='smbclient samba-credentials',
1427 realname='samba/samba3/libsmb_samba_internal.so'
1430 bld.SAMBA3_BINARY('samba-regedit',
1431 source="""utils/regedit.c utils/regedit_samba3.c
1432 utils/regedit_wrap.c utils/regedit_treeview.c
1433 utils/regedit_valuelist.c utils/regedit_dialog.c
1434 utils/regedit_hexedit.c""",
1435 deps='ncurses menu panel form registry param popt_samba3 smbregistry',
1436 enabled=bld.env.build_regedit)
1438 ########################## INCLUDES #################################
1440 bld.RECURSE('auth')
1441 bld.RECURSE('libgpo/gpext')
1442 bld.RECURSE('lib/pthreadpool')
1443 bld.RECURSE('lib/asys')
1444 bld.RECURSE('librpc')
1445 bld.RECURSE('librpc/idl')
1446 bld.RECURSE('libsmb')
1447 bld.RECURSE('modules')
1448 bld.RECURSE('pam_smbpass')
1449 bld.RECURSE('passdb')
1450 bld.RECURSE('rpc_server')
1451 bld.RECURSE('script')
1452 bld.RECURSE('winbindd')
1453 bld.RECURSE('../examples/auth')
1454 bld.RECURSE('../examples/libsmbclient')
1455 bld.RECURSE('../examples/pdb')
1456 bld.RECURSE('../examples/VFS')
1457 bld.RECURSE('lib/netapi/tests')
1458 bld.RECURSE('lib/netapi/examples')
1460 bld.ENFORCE_GROUP_ORDERING()
1461 bld.CHECK_PROJECT_RULES()