s3-waf: fix pam dependencies of the RPC_SAMR server.
[samba.git] / source3 / rpc_server / wscript_build
1 #!/usr/bin/env python
2
3 RPC_LSARPC_SRC = '''srv_lsa_nt.c'''
4 RPC_NETLOGON_SRC = '''srv_netlog_nt.c ../../librpc/gen_ndr/srv_netlogon.c'''
5 RPC_SAMR_SRC = '''srv_samr_nt.c
6                srv_samr_util.c
7                srv_samr_chgpasswd.c'''
8 RPC_INITSHUTDOWN_SRC = '''srv_initshutdown_nt.c ../../librpc/gen_ndr/srv_initshutdown.c'''
9 RPC_WINREG_SRC = '''srv_winreg_nt.c ../../librpc/gen_ndr/srv_winreg.c'''
10 RPC_DSSETUP_SRC = '''srv_dssetup_nt.c ../../librpc/gen_ndr/srv_dssetup.c'''
11 RPC_SRVSVC_SRC = '''srv_srvsvc_nt.c ../../librpc/gen_ndr/srv_srvsvc.c'''
12 RPC_WKSSVC_SRC = '''srv_wkssvc_nt.c ../../librpc/gen_ndr/srv_wkssvc.c'''
13 RPC_SVCCTL_SRC = '''srv_svcctl_nt.c ../../librpc/gen_ndr/srv_svcctl.c'''
14 RPC_NTSVCS_SRC = '''srv_ntsvcs_nt.c ../../librpc/gen_ndr/srv_ntsvcs.c'''
15 RPC_NETDFS_SRC = '''srv_dfs_nt.c ../../librpc/gen_ndr/srv_dfs.c'''
16 RPC_SPOOLSS_SRC = '''srv_spoolss_nt.c ../../librpc/gen_ndr/srv_spoolss.c
17                      srv_spoolss_util.c'''
18 RPC_EVENTLOG_SRC = '''srv_eventlog_nt.c ../../librpc/gen_ndr/srv_eventlog.c'''
19 RPC_RPCECHO_SRC = '''srv_echo_nt.c ../../librpc/gen_ndr/srv_echo.c'''
20
21 bld.SAMBA_SUBSYSTEM('rpc',
22                     source='srv_pipe_register.c',
23                     vars=locals())
24
25 bld.SAMBA_SUBSYSTEM('RPC_SAMR',
26                     source=RPC_SAMR_SRC,
27                     deps='PLAINTEXT_AUTH',
28                     vars=locals())
29
30 bld.SAMBA_SUBSYSTEM('RPC_LSARPC',
31                     source=RPC_LSARPC_SRC,
32                     vars=locals())
33
34 bld.SAMBA_MODULE('rpc_lsarpc',
35                  subsystem='rpc',
36                  source='../../librpc/gen_ndr/srv_lsa.c',
37                  deps='RPC_LSARPC',
38                  init_function='',
39                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('rpc_lsarpc'),
40                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('rpc_lsarpc'))
41
42 bld.SAMBA_MODULE('rpc_samr',
43                  subsystem='rpc',
44                  source='../../librpc/gen_ndr/srv_samr.c',
45                  deps='RPC_SAMR',
46                  init_function='',
47                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('rpc_samr'),
48                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('rpc_samr'))
49
50 bld.SAMBA_MODULE('rpc_winreg',
51                  subsystem='rpc',
52                  source=RPC_WINREG_SRC,
53                  deps='REGFIO REG_API_REGF NDR_PERFCOUNT',
54                  init_function='',
55                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('rpc_winreg'),
56                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('rpc_winreg'))
57
58 bld.SAMBA_MODULE('rpc_initshutdown',
59                  subsystem='rpc',
60                  source=RPC_INITSHUTDOWN_SRC,
61                  init_function='',
62                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('rpc_initshutdown'),
63                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('rpc_initshutdown'))
64
65 bld.SAMBA_MODULE('rpc_dssetup',
66                  subsystem='rpc',
67                  source=RPC_DSSETUP_SRC,
68                  init_function='',
69                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('rpc_dssetup'),
70                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('rpc_dssetup'))
71
72 bld.SAMBA_MODULE('rpc_wkssvc',
73                  subsystem='rpc',
74                  source=RPC_WKSSVC_SRC,
75                  deps='LIBNET',
76                  init_function='',
77                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('rpc_wkssvc'),
78                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('rpc_wkssvc'))
79
80 bld.SAMBA_MODULE('rpc_svcctl',
81                  subsystem='rpc',
82                  source=RPC_SVCCTL_SRC,
83                  deps='SERVICES',
84                  init_function='',
85                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('rpc_svcctl'),
86                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('rpc_svcctl'))
87
88 bld.SAMBA_MODULE('rpc_ntsvcs',
89                  subsystem='rpc',
90                  source=RPC_NTSVCS_SRC,
91                  init_function='',
92                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('rpc_ntsvcs'),
93                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('rpc_ntsvcs'))
94
95 bld.SAMBA_MODULE('rpc_netlogon',
96                  subsystem='rpc',
97                  source=RPC_NETLOGON_SRC,
98                  init_function='',
99                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('rpc_netlogon'),
100                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('rpc_netlogon'))
101
102 bld.SAMBA_MODULE('rpc_netdfs',
103                  subsystem='rpc',
104                  source=RPC_NETDFS_SRC,
105                  init_function='',
106                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('rpc_netdfs'),
107                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('rpc_netdfs'))
108
109 bld.SAMBA_MODULE('rpc_srvsvc',
110                  subsystem='rpc',
111                  source=RPC_SRVSVC_SRC,
112                  init_function='',
113                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('rpc_srvsvc'),
114                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('rpc_srvsvc'))
115
116 bld.SAMBA_MODULE('rpc_spoolss',
117                  subsystem='rpc',
118                  source=RPC_SPOOLSS_SRC,
119                  deps='cups PRINTING PRINTBACKEND RPCCLI_WINREG',
120                  init_function='',
121                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('rpc_spoolss'),
122                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('rpc_spoolss'))
123
124 bld.SAMBA_MODULE('rpc_eventlog',
125                  subsystem='rpc',
126                  source=RPC_EVENTLOG_SRC,
127                  deps='LIBEVENTLOG',
128                  init_function='',
129                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('rpc_eventlog'),
130                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('rpc_eventlog'))
131
132 bld.SAMBA_MODULE('rpc_rpcecho',
133                  subsystem='rpc',
134                  source=RPC_RPCECHO_SRC,
135                  init_function='',
136                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('rpc_rpcecho'),
137                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('rpc_rpcecho'))