Introduce system MIT krb5 build with --with-system-mitkrb5 option.
[kai/samba-autobuild/.git] / source4 / smbd / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_LIBRARY('service',
4         source='service.c service_stream.c service_named_pipe.c service_task.c',
5         autoproto='service_proto.h',
6         deps='tevent MESSAGING samba_socket RPC_NDR_IRPC NDR_NAMED_PIPE_AUTH npa_tstream gssapi samba-credentials LIBTSOCKET LIBSAMBA_TSOCKET process_model',
7         private_library=True,
8         enabled=bld.AD_DC_BUILD_IS_ENABLED()
9         )
10
11
12 bld.SAMBA_SUBSYSTEM('PIDFILE',
13         source='pidfile.c',
14         deps='talloc',
15         autoproto='pidfile.h'
16         )
17
18 bld.SAMBA_LIBRARY('process_model',
19                   source='process_model.c',
20                   autoproto='process_model_proto.h',
21                   deps='samba-util samba-hostconfig samba-modules',
22                   private_library=True,
23                   enabled=bld.AD_DC_BUILD_IS_ENABLED()
24                   )
25
26 bld.SAMBA_BINARY('samba',
27         source='server.c',
28         manpages='samba.8',
29         subsystem_name='service',
30         deps='''events process_model service samba-hostconfig samba-util POPT_SAMBA PIDFILE
31                 popt gensec registry ntptr ntvfs share cluster COMMON_SCHANNEL SECRETS''',
32         pyembed=True,
33         install_path='${SBINDIR}',
34         enabled=bld.AD_DC_BUILD_IS_ENABLED()
35         )
36
37 bld.SAMBA_MODULE('process_model_single',
38                  source='process_single.c',
39                  subsystem='process_model',
40                  init_function='process_model_single_init',
41                  deps='cluster process_model samba-sockets',
42                  internal_module=True
43                  )
44
45
46 bld.SAMBA_MODULE('process_model_standard',
47                  source='process_standard.c',
48                  subsystem='process_model',
49                  init_function='process_model_standard_init',
50                  deps='events ldbsamba process_model samba-sockets cluster',
51                  internal_module=False
52                  )
53
54
55 bld.SAMBA_MODULE('process_model_thread',
56                  source='process_thread.c',
57                  subsystem='process_model',
58                  init_function='process_model_thread_init',
59                  enabled=False,
60                  deps='pthread samba-sockets cluster process_model',
61                  internal_module=False
62                  )
63
64
65 bld.SAMBA_MODULE('process_model_prefork',
66                  source='process_prefork.c',
67                  subsystem='process_model',
68                  init_function='process_model_prefork_init',
69                  deps='events ldbsamba cluster samba-sockets process_model',
70                  internal_module=False
71                  )
72
73 bld.SAMBA_MODULE('process_model_onefork',
74                  source='process_onefork.c',
75                  subsystem='process_model',
76                  init_function='process_model_onefork_init',
77                  deps='events ldbsamba process_model cluster samba-sockets',
78                  internal_module=False
79                  )
80
81