python/tests: we now pass test_no_auth_request_bind_pfc_CONC_MPX()
[Samba.git] / source3 / wscript_build
blob1e160629e3bc381b01d7d1fd639faeef2e478381
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='''
212 smbd_shim
213 tdb-wrap3
214 NDR_SECURITY
215 util_tdb
216 talloc
217 replace
218 util_reg
219 samba-util
220 samba-security
221 errors3
222 dbwrap
223 samba3-util
224 ''',
225 allow_undefined_symbols=True,
226 private_library=True)
228 bld.SAMBA3_SUBSYSTEM('REG_SMBCONF',
229 source='''registry/reg_backend_smbconf.c
230 registry/reg_init_smbconf.c
231 registry/reg_util_token.c
232 registry/reg_api_util.c''',
233 deps='smbregistry')
235 bld.SAMBA3_SUBSYSTEM('REG_FULL',
236 source='''registry/reg_backend_printing.c
237 registry/reg_backend_shares.c
238 registry/reg_backend_netlogon_params.c
239 registry/reg_backend_prod_options.c
240 registry/reg_backend_tcpip_params.c
241 registry/reg_backend_hkpt_params.c
242 registry/reg_backend_current_version.c
243 registry/reg_backend_perflib.c
244 registry/reg_init_full.c
245 registry/reg_perfcount.c''',
246 deps='REG_SMBCONF tdb-wrap3')
248 bld.SAMBA3_LIBRARY('popt_samba3',
249 source='lib/popt_common.c',
250 deps='popt samba-util util_cmdline',
251 private_library=True)
253 bld.SAMBA3_LIBRARY('util_cmdline',
254 source='lib/util_cmdline.c',
255 deps='secrets3',
256 private_library=True)
258 bld.SAMBA3_SUBSYSTEM('KRBCLIENT',
259 source='libads/kerberos.c libads/ads_status.c',
260 public_deps='krb5samba asn1util k5crypto gssapi LIBTSOCKET CLDAP LIBNMB')
262 bld.SAMBA3_SUBSYSTEM('samba3util',
263 source='''lib/system.c
264 lib/sendfile.c
265 lib/recvfile.c
266 lib/time.c
267 lib/util_sid.c
268 lib/util_specialsids.c
269 lib/util_file.c
270 lib/util.c
271 lib/util_path.c
272 lib/util_procid.c
273 lib/util_sock.c
274 lib/util_tsock.c
275 lib/util_transfer_file.c
276 lib/sys_popen.c
277 lib/sock_exec.c''',
278 deps='ndr LIBTSOCKET samba-security NDR_SECURITY samba-util util_tdb sys_rw iov_buf')
280 if bld.env.with_ctdb:
281 SAMBA_CLUSTER_SUPPORT_SOURCES='''
282 lib/cluster_support.c
283 lib/dbwrap/dbwrap_ctdb.c
284 lib/messages_ctdbd.c
285 lib/ctdbd_conn.c
287 SAMBA_CLUSTER_SUPPORT_DEPS='''
288 talloc
289 tevent
292 else:
293 SAMBA_CLUSTER_SUPPORT_SOURCES='''
294 lib/cluster_support.c
295 lib/ctdb_dummy.c
297 SAMBA_CLUSTER_SUPPORT_DEPS='''
298 talloc
299 tevent
302 bld.SAMBA3_LIBRARY('samba-cluster-support',
303 source=SAMBA_CLUSTER_SUPPORT_SOURCES,
304 deps=SAMBA_CLUSTER_SUPPORT_DEPS,
305 allow_undefined_symbols=True,
306 private_library=True)
308 bld.SAMBA3_SUBSYSTEM('TDB_LIB',
309 source='''lib/dbwrap/dbwrap_open.c
310 lib/dbwrap/dbwrap_watch.c
311 lib/g_lock.c''',
312 deps='dbwrap samba-cluster-support')
314 bld.SAMBA3_LIBRARY('messages_dgm',
315 source='''lib/messages_dgm.c lib/messages_dgm_ref.c''',
316 deps='''talloc samba-debug PTHREADPOOL msghdr genrand''',
317 private_library=True)
319 bld.SAMBA3_LIBRARY('messages_util',
320 source='''lib/messages_util.c''',
321 deps='samba-util',
322 private_library=True)
324 bld.SAMBA3_SUBSYSTEM('samba3core',
325 source='''lib/messages.c
326 lib/util_cluster.c
327 lib/id_cache.c
328 lib/talloc_dict.c
329 lib/serverid.c
330 lib/server_id_watch.c
331 lib/server_id_db_util.c
332 lib/addrchange.c
333 ../lib/util/debug_s3.c
334 lib/dumpcore.c
335 lib/interface.c
336 lib/username.c
337 lib/access.c lib/smbrun.c
338 lib/wins_srv.c
339 lib/substitute.c
340 lib/substitute_generic.c
341 lib/ms_fnmatch.c
342 lib/tallocmsg.c
343 lib/dmallocmsg.c
344 intl/lang_tdb.c
345 lib/gencache.c
346 lib/util_event.c
347 lib/server_contexts.c
348 lib/server_prefork.c
349 lib/server_prefork_util.c
350 lib/ldap_escape.c
351 lib/fncall.c
352 libads/krb5_errs.c
353 lib/system_smbd.c
354 lib/audit.c
355 lib/tevent_wait.c
356 lib/idmap_cache.c
357 lib/util_ea.c
358 lib/background.c
359 lib/cleanupdb.c''',
360 deps='''
361 samba3util
362 LIBTSOCKET
363 NDR_MESSAGING
364 LIBASYNC_REQ
365 UTIL_PW
366 SAMBA_VERSION
367 PTHREADPOOL
368 interfaces
369 param
370 dbwrap
371 samba3-util
372 errors3
373 server_id_db
374 messages_util
375 messages_dgm
376 talloc_report
377 TDB_LIB''')
379 bld.SAMBA3_LIBRARY('smbd_shim',
380 source='''lib/smbd_shim.c''',
381 deps='talloc',
382 private_library=True)
384 bld.SAMBA3_SUBSYSTEM('auth_generic',
385 source='libsmb/auth_generic.c',
386 deps='gse gensec')
388 bld.SAMBA3_LIBRARY('libsmb',
389 source='''libsmb/clientgen.c
390 libsmb/cliconnect.c
391 libsmb/clifile.c
392 libsmb/clispnego.c
393 libsmb/clirap.c
394 libsmb/clierror.c
395 libsmb/climessage.c
396 libsmb/clireadwrite.c
397 libsmb/clilist.c
398 libsmb/cliprint.c
399 libsmb/clitrans.c
400 libsmb/clisecdesc.c
401 libsmb/clidgram.c
402 libsmb/clistr.c
403 libsmb/cliquota.c
404 libsmb/clifsinfo.c
405 libsmb/clidfs.c
406 libsmb/clioplock.c
407 libsmb/clirap2.c
408 libsmb/async_smb.c
409 libsmb/reparse_symlink.c
410 libsmb/clisymlink.c
411 libsmb/smbsock_connect.c
412 libsmb/cli_smb2_fnum.c''',
413 deps='''
414 auth_generic
415 CLDAP
416 LIBNMB
417 SPNEGO_PARSE
418 LIBTSOCKET
419 KRBCLIENT
420 NDR_IOCTL
421 cli_smb_common
422 util_cmdline
423 tevent''',
424 private_library=True)
426 bld.SAMBA3_SUBSYSTEM('CLDAP',
427 source='libads/cldap.c',
428 deps='cli-ldap-common cli_cldap LIBTSOCKET')
430 # NOTE: The secrets3 library is a low level library used by several subsystems.
431 # PLEASE DO NOT make it depend on high level libraries like PDB, if you are
432 # doing that your design is wrong and needs changing. -SSS
433 bld.SAMBA3_LIBRARY('secrets3',
434 source='''passdb/secrets.c
435 passdb/machine_account_secrets.c
436 passdb/machine_sid.c
437 passdb/secrets_lsa.c''',
438 deps='NDR_SECRETS param samba3util dbwrap',
439 private_library=True)
441 bld.SAMBA3_LIBRARY('smbldap',
442 source='lib/smbldap.c',
443 deps='ldap lber samba-util param',
444 enabled=bld.CONFIG_SET("HAVE_LDAP"),
445 private_library=False,
446 abi_directory='lib/ABI',
447 abi_match='smbldap_*',
448 pc_files=[],
449 vnum='0',
450 public_headers='include/smbldap.h include/smb_ldap.h')
452 bld.SAMBA3_LIBRARY('ads',
453 source='''libads/ldap.c
454 libads/sasl.c
455 libads/sasl_wrapping.c
456 libads/krb5_setpw.c
457 libads/kerberos_util.c
458 libads/ldap_user.c
459 libads/ads_struct.c
460 libads/kerberos_keytab.c
461 libads/disp_sec.c
462 libads/ldap_utils.c
463 libads/ldap_schema.c
464 libads/util.c
465 libads/ndr.c''',
466 deps='cli-ldap-common krb5samba ldap lber KRBCLIENT param LIBNMB libsmb DCUTIL smbldap',
467 private_library=True)
469 bld.SAMBA3_SUBSYSTEM('LIBADS_SERVER',
470 source='libads/authdata.c',
471 deps='SERVER_MUTEX ndr-krb5pac krb5samba gssapi')
473 bld.SAMBA3_SUBSYSTEM('LIBADS_PRINTER',
474 source='libads/ldap_printer.c',
475 deps='samba-util krb5samba')
477 bld.SAMBA3_LIBRARY('smbconf',
478 source='''lib/smbconf/smbconf_init.c
479 lib/smbconf/smbconf_reg.c''',
480 deps='''
481 CHARSET3
482 LIBSMBCONF
483 REG_SMBCONF
484 SAMBA_VERSION
486 charset
487 cli_smb_common
488 errors3
489 param
490 samba-util
491 smbregistry
492 talloc
493 util_reg''',
494 public_headers='../lib/smbconf/smbconf.h',
495 pc_files=[],
496 vnum='0')
498 bld.SAMBA3_LIBRARY('smbd_conn',
499 source='smbd/conn.c',
500 deps='samba3-util samba-util',
501 private_library=True)
503 bld.SAMBA3_SUBSYSTEM('sysquotas',
504 source='''
505 lib/sysquotas.c
506 lib/sysquotas_linux.c
507 lib/sysquotas_xfs.c
508 lib/sysquotas_4A.c
509 lib/sysquotas_4B.c
510 lib/sysquotas_nfs.c
511 ''',
512 allow_warnings=True,
513 deps='samba3-util samba-util')
515 NOTIFY_SOURCES=''
516 NOTIFY_DEPS=''
518 if bld.CONFIG_SET("HAVE_INOTIFY"):
519 NOTIFY_SOURCES += ' smbd/notify_inotify.c'
521 if bld.CONFIG_SET('SAMBA_FAM_LIBS'):
522 NOTIFY_SOURCES += ' smbd/notify_fam.c'
523 NOTIFY_DEPS += ' ' + bld.CONFIG_GET('SAMBA_FAM_LIBS')
525 bld.SAMBA3_LIBRARY('smbd_base',
526 source='''
527 smbd/server_reload.c
528 smbd/files.c
529 smbd/connection.c
530 smbd/utmp.c
531 smbd/session.c
532 smbd/dfree.c
533 smbd/dir.c
534 smbd/password.c
535 smbd/conn_msg.c
536 smbd/conn_idle.c
537 smbd/share_access.c
538 smbd/fileio.c
539 smbd/ipc.c
540 smbd/lanman.c
541 smbd/negprot.c
542 smbd/message.c
543 smbd/nttrans.c
544 smbd/pipes.c
545 smbd/reply.c
546 smbd/sesssetup.c
547 smbd/trans2.c
548 smbd/uid.c
549 smbd/dosmode.c
550 smbd/filename.c
551 smbd/open.c
552 smbd/close.c
553 smbd/blocking.c
554 smbd/sec_ctx.c
555 smbd/srvstr.c
556 smbd/vfs.c
557 smbd/perfcount.c
558 smbd/statcache.c
559 smbd/seal.c
560 smbd/posix_acls.c
561 lib/sysacls.c
562 smbd/process.c
563 smbd/service.c
564 smbd/error.c
565 printing/printspoolss.c
566 printing/spoolssd.c
567 lib/sessionid_tdb.c
568 lib/conn_tdb.c
569 smbd/fake_file.c
570 smbd/quotas.c
571 smbd/ntquotas.c
572 smbd/msdfs.c
573 smbd/aio.c smbd/statvfs.c
574 smbd/dmapi.c
575 smbd/signing.c
576 smbd/file_access.c
577 smbd/dnsregister.c smbd/globals.c
578 smbd/smb2_server.c
579 smbd/smb2_glue.c
580 smbd/smb2_negprot.c
581 smbd/smb2_sesssetup.c
582 smbd/smb2_tcon.c
583 smbd/smb2_create.c
584 smbd/smb2_close.c
585 smbd/smb2_flush.c
586 smbd/smb2_read.c
587 smbd/smb2_write.c
588 smbd/smb2_lock.c
589 smbd/smb2_ioctl.c
590 smbd/smb2_ioctl_dfs.c
591 smbd/smb2_ioctl_filesys.c
592 smbd/smb2_ioctl_named_pipe.c
593 smbd/smb2_ioctl_network_fs.c
594 smbd/smb2_keepalive.c
595 smbd/smb2_query_directory.c
596 smbd/smb2_notify.c
597 smbd/smb2_getinfo.c
598 smbd/smb2_setinfo.c
599 smbd/smb2_break.c
600 smbd/smbXsrv_version.c
601 smbd/smbXsrv_client.c
602 smbd/smbXsrv_session.c
603 smbd/smbXsrv_tcon.c
604 smbd/smbXsrv_open.c
605 smbd/server_exit.c
606 smbd/durable.c
607 smbd/scavenger.c
608 smbd/mangle.c
609 smbd/mangle_hash.c
610 smbd/mangle_hash2.c
611 smbd/oplock.c
612 smbd/oplock_irix.c
613 smbd/oplock_linux.c
614 smbd/notify.c
615 smbd/notify_msg.c
616 smbd/build_options.c''' + NOTIFY_SOURCES,
617 deps='''
618 talloc
619 tevent
621 libsmb
622 msrpc3
624 vfs_default
625 vfs_posixacl
626 inotify
627 popt_samba3
628 samba3core
629 smbd_conn
630 param_service
631 AVAHI
632 PRINTBASE
633 PROFILE
634 LOCKING
635 LIBADS_SERVER
636 LIBAFS
637 RPC_SERVICE
638 NDR_SMBXSRV
639 LEASES_DB
640 sysquotas
641 NDR_SMB_ACL
642 netapi
643 NDR_IOCTL
644 notifyd
645 ''' +
646 bld.env['dmapi_lib'] +
647 bld.env['legacy_quota_libs'] +
648 NOTIFY_DEPS,
649 private_library=True)
651 bld.SAMBA3_SUBSYSTEM('LOCKING',
652 source='''locking/locking.c
653 locking/brlock.c
654 locking/posix.c
655 locking/share_mode_lock.c''',
656 deps='''
658 talloc
659 LEASES_DB
660 NDR_OPEN_FILES
661 FNAME_UTIL''')
663 bld.SAMBA3_SUBSYSTEM('LEASES_DB',
664 source='locking/leases_db.c',
665 deps='NDR_LEASES_DB')
667 if bld.CONFIG_GET("WITH_PROFILE"):
668 bld.SAMBA3_SUBSYSTEM('PROFILE',
669 source='profile/profile.c',
670 deps='samba-util')
671 else:
672 bld.SAMBA3_SUBSYSTEM('PROFILE',
673 source='profile/profile_dummy.c',
674 deps='')
676 bld.SAMBA3_SUBSYSTEM('PRINTBASE',
677 source='''printing/notify.c printing/printing_db.c''',
678 deps='samba-util tdb')
680 bld.SAMBA3_SUBSYSTEM('PRINTBACKEND',
681 source='''printing/printing.c
682 printing/nt_printing.c
683 printing/nt_printing_tdb.c
684 printing/nt_printing_migrate_internal.c
685 printing/nt_printing_ads.c
686 printing/queue_process.c''',
687 deps='PRINTBASE LIBADS_PRINTER tdb printing_migrate')
689 bld.SAMBA3_LIBRARY('printing_migrate',
690 source='printing/nt_printing_migrate.c rpc_client/cli_winreg_spoolss.c printing/nt_printing_os2.c',
691 deps='NDR_NTPRINTING cli_spoolss RPC_NDR_WINREG LIBCLI_WINREG param',
692 private_library=True)
694 bld.SAMBA3_SUBSYSTEM('PRINTING',
695 source='''printing/pcap.c
696 printing/print_svid.c
697 printing/print_aix.c
698 printing/print_cups.c
699 printing/print_generic.c
700 printing/lpq_parse.c
701 printing/load.c
702 printing/print_standard.c
703 printing/print_iprint.c
704 printing/printer_list.c''',
705 deps='NDR_PRINTCAP tdb cups')
707 bld.SAMBA3_SUBSYSTEM('PASSWD_UTIL',
708 source='utils/passwd_util.c',
709 deps='samba-util')
711 bld.SAMBA3_SUBSYSTEM('FNAME_UTIL',
712 source='lib/filename_util.c',
713 deps='samba-util')
715 bld.SAMBA3_SUBSYSTEM('LIBNET',
716 source='libnet/libnet_join.c',
717 deps='NDR_LIBNET_JOIN INIT_SAMR net_keytab pdb')
719 bld.SAMBA3_LIBRARY('net_keytab',
720 source='libnet/libnet_keytab.c',
721 deps='krb5samba ads',
722 private_library=True)
725 bld.SAMBA3_SUBSYSTEM('LIBNET_DSSYNC',
726 source='''libnet/libnet_dssync.c
727 libnet/libnet_dssync_passdb.c
728 libnet/libnet_dssync_keytab.c''',
729 deps='LIBNET RPC_NDR_DRSUAPI')
731 bld.SAMBA3_SUBSYSTEM('LIBNET_SAMSYNC',
732 source='''libnet/libnet_samsync.c
733 libnet/libnet_samsync_ldif.c
734 libnet/libnet_samsync_passdb.c
735 libnet/libnet_samsync_display.c
736 libnet/libnet_samsync_keytab.c''',
737 deps='LIBNET LIBCLI_SAMSYNC')
739 bld.SAMBA3_SUBSYSTEM('LIBEVENTLOG',
740 source='lib/eventlog/eventlog.c',
741 deps='NDR_EVENTLOG tdb')
743 bld.SAMBA3_SUBSYSTEM('LIBNMB',
744 source='''libsmb/unexpected.c
745 libsmb/namecache.c
746 libsmb/nmblib.c
747 libsmb/namequery.c
748 libsmb/conncache.c
749 libads/sitename_cache.c''',
750 deps='LIBTSOCKET samba3util addns lmhosts resolv')
752 bld.SAMBA3_SUBSYSTEM('SERVICES',
753 source='''services/svc_spoolss.c
754 services/svc_rcinit.c
755 services/svc_winreg_glue.c
756 services/svc_netlogon.c
757 services/svc_winreg.c
758 services/svc_wins.c''',
759 deps='samba-util')
761 bld.SAMBA3_SUBSYSTEM('PLAINTEXT_AUTH',
762 source='''auth/pampass.c auth/pass_check.c''',
763 deps='pam PAM_ERRORS')
765 bld.SAMBA3_SUBSYSTEM('PASSCHANGE',
766 source='libsmb/passchange.c',
767 deps='''LIBCLI_SAMR
768 INIT_LSA
769 msrpc3
770 krb5samba''')
772 bld.SAMBA3_SUBSYSTEM('SAMBA_VERSION',
773 source='lib/version.c',
774 deps='samba-util')
776 bld.SAMBA3_SUBSYSTEM('SLCACHE',
777 source='libsmb/samlogon_cache.c',
778 deps='samba-util tdb')
780 bld.SAMBA3_SUBSYSTEM('DCUTIL',
781 source='''libsmb/namequery_dc.c
782 libsmb/trustdom_cache.c
783 libsmb/dsgetdcname.c''',
784 deps='ads msrpc3 libcli_lsa3')
786 bld.SAMBA3_LIBRARY('trusts_util',
787 source='libsmb/trusts_util.c',
788 deps='libcli_netlogon3 msrpc3 samba-passdb',
789 private_library=True)
791 bld.SAMBA3_SUBSYSTEM('tdb-wrap3',
792 source='lib/util_tdb.c',
793 deps='talloc samba3-util')
795 bld.SAMBA3_LIBRARY('samba3-util',
796 source='''lib/util_sec.c lib/util_str.c lib/adt_tree.c lib/util_malloc.c lib/namearray.c lib/file_id.c''',
797 deps='samba-util charset',
798 private_library=True)
800 bld.SAMBA_LIBRARY('xattr_tdb',
801 source='lib/xattr_tdb.c',
802 deps='NDR_XATTR dbwrap samba3-util',
803 private_library=True)
805 bld.SAMBA3_LIBRARY('CHARSET3',
806 source='''lib/charcnv.c lib/fstring.c''',
807 public_deps='ICONV_WRAPPER charset',
808 deps='samba-util samba3-util',
809 private_library=True)
811 bld.SAMBA3_SUBSYSTEM('errors3',
812 source='libsmb/errormap.c libsmb/smberr.c lib/errmap_unix.c',
813 deps='samba-errors')
815 bld.SAMBA3_SUBSYSTEM('LIBCLI_SAMR',
816 source='rpc_client/cli_samr.c',
817 deps='RPC_NDR_SAMR')
819 bld.SAMBA3_LIBRARY('libcli_lsa3',
820 source='rpc_client/cli_lsarpc.c',
821 deps='RPC_NDR_LSA INIT_LSA',
822 private_library=True)
824 bld.SAMBA3_LIBRARY('libcli_netlogon3',
825 source='rpc_client/cli_netlogon.c rpc_client/util_netlogon.c',
826 deps='msrpc3 RPC_NDR_NETLOGON INIT_NETLOGON cliauth param NETLOGON_CREDS_CLI',
827 private_library=True)
829 bld.SAMBA3_LIBRARY('cli_spoolss',
830 source='''rpc_client/cli_spoolss.c
831 rpc_client/init_spoolss.c''',
832 deps='RPC_NDR_SPOOLSS param secrets3',
833 private_library=True)
835 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG',
836 source='rpc_client/cli_winreg.c',
837 deps='RPC_NDR_WINREG')
839 bld.SAMBA3_SUBSYSTEM('LIBCLI_WINREG_INTERNAL',
840 source='rpc_client/cli_winreg_int.c',
841 deps='LIBCLI_WINREG RPC_SERVER')
843 bld.SAMBA3_SUBSYSTEM('RPC_CLIENT_SCHANNEL',
844 source='rpc_client/cli_pipe_schannel.c',
845 deps='samba-util krb5samba')
847 bld.SAMBA3_SUBSYSTEM('INIT_LSA',
848 source='rpc_client/init_lsa.c',
849 deps='samba-util')
851 bld.SAMBA3_SUBSYSTEM('INIT_NETLOGON',
852 source='rpc_client/init_netlogon.c',
853 deps='samba-util')
855 bld.SAMBA3_SUBSYSTEM('INIT_SAMR',
856 source='rpc_client/init_samr.c',
857 deps='samba-util')
859 bld.SAMBA3_SUBSYSTEM('LIBLSA',
860 source='lib/lsa.c')
862 ########################## BINARIES #################################
864 bld.SAMBA3_BINARY('smbd/smbd',
865 source='smbd/server.c smbd/smbd_cleanupd.c',
866 deps='''
867 smbd_base
868 EPMD
869 LSASD
870 FSSD
871 MDSSD
872 ''',
873 install_path='${SBINDIR}')
875 bld.SAMBA3_BINARY('nmbd/nmbd',
876 source='''nmbd/asyncdns.c nmbd/nmbd.c nmbd/nmbd_become_dmb.c
877 nmbd/nmbd_become_lmb.c nmbd/nmbd_browserdb.c
878 nmbd/nmbd_browsesync.c nmbd/nmbd_elections.c
879 nmbd/nmbd_incomingdgrams.c nmbd/nmbd_incomingrequests.c
880 nmbd/nmbd_lmhosts.c nmbd/nmbd_logonnames.c nmbd/nmbd_mynames.c
881 nmbd/nmbd_namelistdb.c nmbd/nmbd_namequery.c
882 nmbd/nmbd_nameregister.c nmbd/nmbd_namerelease.c
883 nmbd/nmbd_nodestatus.c nmbd/nmbd_packets.c
884 nmbd/nmbd_processlogon.c nmbd/nmbd_responserecordsdb.c
885 nmbd/nmbd_sendannounce.c nmbd/nmbd_serverlistdb.c
886 nmbd/nmbd_subnetdb.c nmbd/nmbd_winsproxy.c nmbd/nmbd_winsserver.c
887 nmbd/nmbd_workgroupdb.c nmbd/nmbd_synclists.c''',
888 deps='''
889 talloc
890 tevent
891 param
892 libsmb
893 popt_samba3
894 ''',
895 install_path='${SBINDIR}')
898 bld.SAMBA3_SUBSYSTEM('TDB_VALIDATE',
899 source='lib/tdb_validate.c',
900 deps='samba-util')
903 bld.SAMBA3_BINARY('winbindd/winbindd',
904 source='''winbindd/winbindd.c
905 winbindd/winbindd_group.c
906 winbindd/winbindd_util.c
907 winbindd/winbindd_cache.c
908 winbindd/winbindd_pam.c
909 winbindd/winbindd_misc.c
910 winbindd/winbindd_cm.c
911 winbindd/winbindd_wins_byip.c
912 winbindd/winbindd_wins_byname.c
913 winbindd/winbindd_msrpc.c
914 winbindd/winbindd_rpc.c
915 winbindd/winbindd_reconnect.c
916 winbindd/winbindd_reconnect_ads.c
917 winbindd/winbindd_ads.c
918 winbindd/winbindd_samr.c
919 winbindd/winbindd_dual.c
920 winbindd/winbindd_dual_ndr.c
921 winbindd/winbindd_dual_srv.c
922 winbindd/winbindd_async.c
923 winbindd/winbindd_creds.c
924 winbindd/winbindd_cred_cache.c
925 winbindd/winbindd_ccache_access.c
926 winbindd/winbindd_domain.c
927 winbindd/winbindd_idmap.c
928 winbindd/winbindd_locator.c
929 winbindd/winbindd_ndr.c
930 winbindd/wb_ping.c
931 winbindd/wb_lookupsid.c
932 winbindd/wb_lookupsids.c
933 winbindd/wb_lookupname.c
934 winbindd/wb_sids2xids.c
935 winbindd/wb_xids2sids.c
936 winbindd/wb_queryuser.c
937 winbindd/wb_lookupuseraliases.c
938 winbindd/wb_lookupusergroups.c
939 winbindd/wb_getpwsid.c
940 winbindd/wb_gettoken.c
941 winbindd/wb_seqnum.c
942 winbindd/wb_seqnums.c
943 winbindd/wb_group_members.c
944 winbindd/wb_getgrsid.c
945 winbindd/wb_query_user_list.c
946 winbindd/wb_query_group_list.c
947 winbindd/wb_fill_pwent.c
948 winbindd/wb_next_pwent.c
949 winbindd/wb_next_grent.c
950 winbindd/wb_dsgetdcname.c
951 winbindd/winbindd_lookupsid.c
952 winbindd/winbindd_lookupsids.c
953 winbindd/winbindd_lookupname.c
954 winbindd/winbindd_sids_to_xids.c
955 winbindd/winbindd_xids_to_sids.c
956 winbindd/winbindd_allocate_uid.c
957 winbindd/winbindd_allocate_gid.c
958 winbindd/winbindd_getpwsid.c
959 winbindd/winbindd_getpwnam.c
960 winbindd/winbindd_getpwuid.c
961 winbindd/winbindd_getsidaliases.c
962 winbindd/winbindd_getuserdomgroups.c
963 winbindd/winbindd_getgroups.c
964 winbindd/winbindd_show_sequence.c
965 winbindd/winbindd_getgrgid.c
966 winbindd/winbindd_getgrnam.c
967 winbindd/winbindd_getusersids.c
968 winbindd/winbindd_lookuprids.c
969 winbindd/winbindd_setpwent.c
970 winbindd/winbindd_getpwent.c
971 winbindd/winbindd_endpwent.c
972 winbindd/winbindd_setgrent.c
973 winbindd/winbindd_getgrent.c
974 winbindd/winbindd_endgrent.c
975 winbindd/winbindd_dsgetdcname.c
976 winbindd/winbindd_getdcname.c
977 winbindd/winbindd_list_users.c
978 winbindd/winbindd_list_groups.c
979 winbindd/winbindd_check_machine_acct.c
980 winbindd/winbindd_change_machine_acct.c
981 winbindd/winbindd_irpc.c
982 winbindd/winbindd_ping_dc.c
983 winbindd/winbindd_pam_auth.c
984 winbindd/winbindd_pam_logoff.c
985 winbindd/winbindd_pam_chauthtok.c
986 winbindd/winbindd_pam_auth_crap.c
987 winbindd/winbindd_pam_chng_pswd_auth_crap.c''',
988 deps='''
989 talloc
990 tevent
992 popt_samba3
993 idmap
995 msrpc3
996 nss_info
997 LIBAFS
998 LIBADS_SERVER
999 LIBCLI_SAMR
1000 SLCACHE
1001 RPC_NDR_DSSETUP
1002 RPC_NDR_WINBIND
1003 SRV_NDR_WINBIND
1004 RPC_SAMR
1005 RPC_LSARPC
1006 RPC_SERVER
1007 WB_REQTRANS
1008 TDB_VALIDATE
1009 MESSAGING
1010 LIBLSA
1011 ''',
1012 enabled=bld.env.build_winbind,
1013 install_path='${SBINDIR}')
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
1029 archive
1030 ''')
1032 bld.SAMBA3_BINARY('net',
1033 source='''utils/net.c
1034 utils/net_ads.c
1035 utils/net_help.c
1036 utils/net_rap.c
1037 utils/net_rpc.c
1038 utils/net_rpc_samsync.c
1039 utils/net_time.c
1040 utils/net_lookup.c
1041 utils/net_cache.c
1042 utils/net_groupmap.c
1043 utils/net_idmap.c
1044 utils/net_idmap_check.c
1045 utils/interact.c
1046 utils/net_status.c
1047 utils/net_rpc_printer.c
1048 utils/net_rpc_rights.c
1049 utils/net_rpc_service.c
1050 utils/net_rpc_registry.c
1051 utils/net_usershare.c
1052 utils/netlookup.c
1053 utils/net_sam.c
1054 utils/net_rpc_shell.c
1055 utils/net_util.c
1056 utils/net_rpc_sh_acct.c
1057 utils/net_rpc_audit.c
1058 utils/net_dns.c
1059 utils/net_ads_gpo.c
1060 utils/net_conf.c
1061 utils/net_conf_util.c
1062 utils/net_join.c
1063 utils/net_user.c
1064 utils/net_group.c
1065 utils/net_file.c
1066 utils/net_registry.c
1067 utils/net_registry_check.c
1068 utils/net_dom.c
1069 utils/net_share.c
1070 utils/net_g_lock.c
1071 utils/net_serverid.c
1072 utils/net_eventlog.c
1073 utils/net_printing.c
1074 utils/net_rpc_trust.c
1075 utils/net_rpc_conf.c
1076 utils/net_afs.c
1077 utils/net_notify.c
1078 registry/reg_parse.c
1079 registry/reg_format.c
1080 registry/reg_import.c
1081 utils/net_registry_util.c
1082 utils/net_help_common.c''',
1083 deps='''
1084 talloc
1085 netapi
1086 addns
1087 samba_intl
1088 popt_samba3
1090 libsmb
1091 param
1092 KRBCLIENT
1093 ndr-standard
1094 msrpc3
1097 smbd_base
1098 LIBADS_SERVER
1099 LIBADS_PRINTER
1100 SMBREADLINE
1101 PASSWD_UTIL
1102 LIBNET
1103 LIBNET_DSSYNC
1104 LIBNET_SAMSYNC
1105 LIBEVENTLOG
1106 REGFIO
1107 NDR_NTPRINTING
1108 RPC_NDR_WINREG
1109 RPC_CLIENT_SCHANNEL
1110 LIBCLI_SAMR
1111 libcli_lsa3
1112 libcli_netlogon3
1113 cli_spoolss
1114 RPC_NDR_SRVSVC
1115 RPC_NDR_SVCCTL
1116 RPC_NDR_DSSETUP
1117 RPC_NDR_INITSHUTDOWN
1118 printing_migrate
1119 trusts_util
1120 IDMAP_AUTORID_TDB''')
1122 bld.SAMBA3_BINARY('profiles',
1123 source='utils/profiles.c',
1124 deps='''
1125 talloc
1126 popt_samba3
1127 param
1128 REGFIO''')
1130 bld.SAMBA3_BINARY('smbspool',
1131 source='client/smbspool.c',
1132 deps='''
1133 talloc
1134 popt_samba3
1135 param
1136 libsmb
1137 samba3core''')
1139 bld.SAMBA3_BINARY('smbspool_krb5_wrapper',
1140 source='client/smbspool_krb5_wrapper.c',
1141 deps='''
1142 DYNCONFIG
1143 cups
1144 ''',
1145 install_path='${LIBEXECDIR}/samba',
1146 enabled=bld.CONFIG_SET('HAVE_CUPS'))
1148 bld.SAMBA3_BINARY('testparm',
1149 source='utils/testparm.c',
1150 deps='''
1151 talloc
1152 param
1153 popt_samba3''')
1155 smbstatus_source = 'utils/status.c smbd/notify_msg.c'
1157 if bld.CONFIG_GET("WITH_PROFILE"):
1158 smbstatus_source += ' utils/status_profile.c'
1159 else:
1160 smbstatus_source += ' utils/status_profile_dummy.c'
1162 bld.SAMBA3_BINARY('smbstatus',
1163 source=smbstatus_source,
1164 deps='''
1165 talloc
1166 param
1167 popt_samba3
1168 smbd_base
1169 LOCKING
1170 PROFILE''')
1172 bld.SAMBA3_BINARY('smbcontrol',
1173 source='utils/smbcontrol.c',
1174 deps='''
1175 talloc
1176 param
1177 popt_samba3
1178 PRINTBASE''')
1180 bld.SAMBA3_BINARY('smbtree',
1181 source='utils/smbtree.c',
1182 deps='''
1183 talloc
1184 param
1185 libsmb
1186 msrpc3
1187 popt_samba3
1188 RPC_NDR_SRVSVC''')
1190 bld.SAMBA3_BINARY('smbpasswd',
1191 source='utils/smbpasswd.c',
1192 deps='''
1193 talloc
1194 param
1196 PASSWD_UTIL
1197 PASSCHANGE''')
1199 bld.SAMBA3_BINARY('pdbedit',
1200 source='utils/pdbedit.c',
1201 deps='''
1202 talloc
1203 param
1204 popt_samba3
1206 PASSWD_UTIL''')
1208 bld.SAMBA3_BINARY('smbget',
1209 source='utils/smbget.c',
1210 deps='''
1211 talloc
1212 popt_samba3
1213 smbclient''')
1215 bld.SAMBA3_BINARY('nmblookup',
1216 source='utils/nmblookup.c',
1217 deps='''
1218 talloc
1219 param
1220 popt_samba3
1221 LIBNMB''')
1223 bld.SAMBA3_BINARY('smbtorture' + bld.env.suffix3,
1224 source='''torture/torture.c
1225 torture/nbio.c
1226 torture/scanner.c
1227 torture/utable.c
1228 torture/denytest.c
1229 torture/mangle_test.c
1230 torture/nbench.c
1231 torture/test_async_echo.c
1232 torture/test_addrchange.c
1233 torture/test_posix_append.c
1234 torture/test_nttrans_create.c
1235 torture/test_nttrans_fsctl.c
1236 torture/test_case_insensitive.c
1237 torture/test_notify_online.c
1238 torture/test_chain3.c
1239 torture/test_smb2.c
1240 torture/test_authinfo_structs.c
1241 torture/test_smbsock_any_connect.c
1242 torture/test_cleanup.c
1243 torture/test_notify.c
1244 lib/tevent_barrier.c
1245 torture/test_dbwrap_watch.c
1246 torture/test_idmap_tdb_common.c
1247 torture/test_dbwrap_ctdb.c
1248 torture/test_buffersize.c
1249 torture/test_messaging_read.c
1250 torture/test_messaging_fd_passing.c
1251 torture/test_oplock_cancel.c
1252 torture/test_pthreadpool_tevent.c
1253 torture/bench_pthreadpool.c
1254 torture/wbc_async.c''',
1255 deps='''
1256 talloc
1257 param
1258 libsmb
1259 msrpc3
1260 TLDAP
1261 RPC_NDR_ECHO
1262 WB_REQTRANS
1263 LOCKING
1264 NDR_OPEN_FILES
1265 idmap
1266 IDMAP_TDB_COMMON
1267 samba-cluster-support
1268 ''',
1269 cflags='-DWINBINDD_SOCKET_DIR=\"%s\"' % bld.env.WINBINDD_SOCKET_DIR,
1270 install=False)
1272 bld.SAMBA3_BINARY('smbconftort',
1273 source='lib/smbconf/testsuite.c',
1274 deps='''
1275 talloc
1276 param
1277 popt_samba3''',
1278 install=False)
1280 bld.SAMBA3_BINARY('replacetort',
1281 source='../lib/replace/test/main.c',
1282 deps='replace replace-test',
1283 install=False)
1285 bld.SAMBA3_BINARY('msgtest',
1286 source='torture/msgtest.c',
1287 deps='''
1288 talloc
1289 param''',
1290 install=False)
1292 bld.SAMBA3_BINARY('msg_sink',
1293 source='torture/msg_sink.c',
1294 deps='''
1295 talloc
1296 param''',
1297 install=False)
1299 bld.SAMBA3_BINARY('msg_source',
1300 source='torture/msg_source.c',
1301 deps='''
1302 talloc
1303 param''',
1304 install=False)
1306 bld.SAMBA3_BINARY('smbcacls',
1307 source='utils/smbcacls.c lib/util_sd.c',
1308 deps='''
1309 talloc
1310 popt_samba3
1311 msrpc3
1312 libcli_lsa3
1313 krb5samba''')
1315 bld.SAMBA3_BINARY('smbcquotas',
1316 source='utils/smbcquotas.c',
1317 deps='''
1318 talloc
1319 popt_samba3
1320 libsmb
1321 msrpc3
1322 libcli_lsa3''')
1324 bld.SAMBA3_BINARY('eventlogadm',
1325 source='utils/eventlogadm.c',
1326 deps='''
1327 talloc
1328 param
1329 LIBEVENTLOG''')
1331 bld.SAMBA3_BINARY('sharesec',
1332 source='utils/sharesec.c lib/util_sd.c',
1333 deps='''
1334 talloc
1335 msrpc3
1336 libcli_lsa3
1337 popt_samba3''')
1339 bld.SAMBA3_BINARY('pdbtest',
1340 source='torture/pdbtest.c',
1341 deps='''
1342 talloc
1344 popt_samba3
1345 AUTH_COMMON
1346 auth''',
1347 install=False)
1349 bld.SAMBA3_BINARY('vfstest',
1350 source='''torture/cmd_vfs.c
1351 torture/vfstest.c
1352 torture/vfstest_chain.c''',
1353 deps='''
1355 popt_samba3
1356 SMBREADLINE''',
1357 install=False)
1359 bld.SAMBA3_BINARY('log2pcap',
1360 source='utils/log2pcaphex.c',
1361 deps='''talloc popt''',
1362 install=False)
1364 bld.SAMBA3_BINARY('locktest2',
1365 source='torture/locktest2.c',
1366 deps='''
1367 talloc
1368 param
1369 libsmb
1370 LOCKING''',
1371 install=False)
1373 bld.SAMBA3_BINARY('debug2html',
1374 source='''utils/debug2html.c utils/debugparse.c''',
1375 deps='''talloc popt''',
1376 install=False)
1378 bld.SAMBA3_BINARY('smbfilter',
1379 source='utils/smbfilter.c',
1380 deps='''
1381 talloc
1382 param
1383 LIBNMB''',
1384 install=False)
1386 bld.SAMBA3_BINARY('versiontest',
1387 source='lib/version_test.c',
1388 deps='''
1389 SAMBA_VERSION
1390 param''',
1391 install=False)
1393 bld.SAMBA3_BINARY('ntlm_auth',
1394 source='''utils/ntlm_auth.c utils/ntlm_auth_diagnostics.c''',
1395 deps='''
1396 talloc
1397 krb5samba
1398 tiniparser
1399 libsmb
1400 popt_samba3
1401 gse gensec''')
1403 bld.SAMBA3_BINARY('timelimit',
1404 source='script/tests/timelimit.c',
1405 install=False)
1407 bld.SAMBA3_BINARY('rpc_open_tcp',
1408 source='torture/rpc_open_tcp.c',
1409 deps='''
1410 talloc
1411 msrpc3''',
1412 install=False)
1414 bld.SAMBA3_BINARY('dbwrap_tool',
1415 source='utils/dbwrap_tool.c',
1416 deps='''
1417 talloc
1418 popt_samba3''')
1420 bld.SAMBA3_BINARY('dbwrap_torture',
1421 source='utils/dbwrap_torture.c',
1422 deps='''
1423 talloc
1424 popt_samba3''',
1425 install=False)
1427 bld.SAMBA3_BINARY('split_tokens',
1428 source='utils/split_tokens.c',
1429 deps='''
1430 talloc
1431 popt_samba3''',
1432 install=False)
1434 bld.SAMBA3_BINARY('vlp',
1435 source='printing/tests/vlp.c',
1436 deps='''
1437 talloc
1438 param''',
1439 install=False)
1441 bld.SAMBA3_PYTHON('pysmbd',
1442 source='smbd/pysmbd.c',
1443 deps='smbd_base pyrpc_util pytalloc-util',
1444 realname='samba/samba3/smbd.so'
1447 bld.SAMBA3_PYTHON('pylibsmb',
1448 source='libsmb/pylibsmb.c',
1449 deps='smbclient samba-credentials pycredentials',
1450 realname='samba/samba3/libsmb_samba_internal.so'
1453 bld.SAMBA3_BINARY('samba-regedit',
1454 source="""utils/regedit.c utils/regedit_samba3.c
1455 utils/regedit_wrap.c utils/regedit_treeview.c
1456 utils/regedit_valuelist.c utils/regedit_dialog.c
1457 utils/regedit_hexedit.c utils/regedit_list.c""",
1458 deps='ncurses menu panel form registry param popt_samba3 smbregistry',
1459 enabled=bld.env.build_regedit)
1461 bld.SAMBA3_BINARY('spotlight2sparql',
1462 source='''
1463 rpc_server/mdssvc/sparql_parser_test.c
1464 rpc_server/mdssvc/sparql_parser.c
1465 rpc_server/mdssvc/sparql_lexer.c
1466 rpc_server/mdssvc/sparql_mapping.c''',
1467 deps='samba3-util talloc ' + bld.env['libtracker'],
1468 enabled=bld.env.with_spotlight,
1469 install=False)
1471 ########################## INCLUDES #################################
1473 bld.RECURSE('auth')
1474 bld.RECURSE('libgpo/gpext')
1475 bld.RECURSE('lib/pthreadpool')
1476 bld.RECURSE('librpc')
1477 bld.RECURSE('librpc/idl')
1478 bld.RECURSE('libsmb')
1479 bld.RECURSE('modules')
1480 bld.RECURSE('param')
1481 bld.RECURSE('passdb')
1482 bld.RECURSE('rpc_server')
1483 bld.RECURSE('script')
1484 bld.RECURSE('winbindd')
1485 bld.RECURSE('../examples/auth')
1486 bld.RECURSE('../examples/libsmbclient')
1487 bld.RECURSE('../examples/pdb')
1488 bld.RECURSE('../examples/VFS')
1489 bld.RECURSE('../examples/fuse')
1490 bld.RECURSE('lib/netapi/tests')
1491 bld.RECURSE('lib/netapi/examples')
1492 bld.RECURSE('smbd/notifyd')
1493 bld.RECURSE('rpcclient')
1495 bld.ENFORCE_GROUP_ORDERING()
1496 bld.CHECK_PROJECT_RULES()