ab92e3c9209e53a357641f506762dd934f0c6ffe
[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         )
9
10
11 bld.SAMBA_SUBSYSTEM('PIDFILE',
12         source='pidfile.c',
13         deps='talloc',
14         autoproto='pidfile.h'
15         )
16
17
18 bld.SAMBA_BINARY('samba',
19         source='server.c',
20         manpages='samba.8',
21         subsystem_name='service',
22         deps='''events process_model service samba-hostconfig samba-util POPT_SAMBA PIDFILE
23                 popt gensec registry ntptr ntvfs share cluster COMMON_SCHANNEL SECRETS''',
24         pyembed=True,
25         install_path='${SBINDIR}'
26         )
27
28
29
30
31 bld.SAMBA_MODULE('process_model_single',
32                  source='process_single.c',
33                  subsystem='process_model',
34                  init_function='process_model_single_init',
35                  deps='cluster process_model samba-sockets',
36                  internal_module=True
37                  )
38
39
40 bld.SAMBA_MODULE('process_model_standard',
41                  source='process_standard.c',
42                  subsystem='process_model',
43                  init_function='process_model_standard_init',
44                  deps='events ldbsamba process_model samba-sockets cluster',
45                  internal_module=False
46                  )
47
48
49 bld.SAMBA_MODULE('process_model_thread',
50                  source='process_thread.c',
51                  subsystem='process_model',
52                  init_function='process_model_thread_init',
53                  enabled=False,
54                  deps='pthread samba-sockets cluster process_model',
55                  internal_module=False
56                  )
57
58
59 bld.SAMBA_MODULE('process_model_prefork',
60                  source='process_prefork.c',
61                  subsystem='process_model',
62                  init_function='process_model_prefork_init',
63                  deps='events ldbsamba cluster samba-sockets process_model',
64                  internal_module=False
65                  )
66
67 bld.SAMBA_MODULE('process_model_onefork',
68                  source='process_onefork.c',
69                  subsystem='process_model',
70                  init_function='process_model_onefork_init',
71                  deps='events ldbsamba process_model cluster samba-sockets',
72                  internal_module=False
73                  )
74
75
76 bld.SAMBA_LIBRARY('process_model',
77                   source='process_model.c',
78                   autoproto='process_model_proto.h',
79                   deps='samba-util samba-hostconfig samba-modules',
80                   private_library=True
81                   )
82