lib/param move source4 param code to the top level
[sfrench/samba-autobuild/.git] / source4 / libcli / wscript_build
1 #!/usr/bin/env python
2
3 bld.RECURSE('ldap')
4 bld.RECURSE('wbclient')
5
6 bld.SAMBA_SUBSYSTEM('LIBSAMBA_TSOCKET',
7         source='../../libcli/util/tstream.c',
8         public_deps='LIBTSOCKET tevent-util'
9         )
10
11
12 bld.SAMBA_SUBSYSTEM('LIBCLI_LSA',
13         source='util/clilsa.c',
14         autoproto='util/clilsa.h',
15         public_deps='RPC_NDR_LSA',
16         deps='security'
17         )
18
19
20 bld.SAMBA_SUBSYSTEM('cli_composite',
21         source='composite/composite.c',
22         autoproto='composite/proto.h',
23         public_deps='events'
24         )
25
26
27 bld.SAMBA_SUBSYSTEM('LIBCLI_SMB_COMPOSITE',
28         source='smb_composite/loadfile.c smb_composite/savefile.c smb_composite/connect.c smb_composite/sesssetup.c smb_composite/fetchfile.c smb_composite/appendacl.c smb_composite/fsinfo.c smb_composite/smb2.c',
29         deps='LIBCLI_SMB2 tevent-util',
30         public_deps='cli_composite samba-credentials gensec LIBCLI_RESOLVE tevent'
31         )
32
33 bld.SAMBA_PYTHON('pysmb',
34     source='pysmb.c',
35     deps='LIBCLI_SMB_COMPOSITE LIBCLI_SMB2 tevent-util pyparam_util',
36         public_deps='cli_composite samba-credentials gensec LIBCLI_RESOLVE tevent param_options',
37     realname='samba/smb.so'
38     )
39
40 bld.SAMBA_SUBSYSTEM('LIBCLI_DGRAM',
41         source='dgram/dgramsocket.c dgram/mailslot.c dgram/netlogon.c dgram/browse.c',
42         public_deps='cli-nbt ndr LIBCLI_RESOLVE LIBCLI_NETLOGON LIBCLI_RESOLVE'
43         )
44
45
46 bld.SAMBA_SUBSYSTEM('LIBCLI_WREPL',
47         source='wrepl/winsrepl.c',
48         autoproto='wrepl/winsrepl_proto.h',
49         public_deps='NDR_WINSREPL samba_socket events LIBPACKET LIBSAMBA_TSOCKET'
50         )
51
52
53 bld.SAMBA_SUBSYSTEM('LIBCLI_RESOLVE',
54         source='resolve/resolve.c',
55         autoproto='resolve/proto.h',
56         deps='roken',
57         public_deps='NDR_NBT LIBTSOCKET'
58         )
59
60
61 bld.SAMBA_SUBSYSTEM('LP_RESOLVE',
62         source='resolve/bcast.c resolve/nbtlist.c resolve/wins.c resolve/dns_ex.c resolve/file.c resolve/host.c resolve/resolve_lp.c',
63         autoproto='resolve/lp_proto.h',
64         deps='cli-nbt samba-hostconfig netif'
65         )
66
67
68 bld.SAMBA_SUBSYSTEM('LIBCLI_FINDDCS',
69         source='finddcs_nbt.c finddcs_cldap.c',
70         autoproto='finddcs_proto.h',
71         public_deps='cli-nbt MESSAGING RPC_NDR_IRPC cli_cldap'
72         )
73
74
75 bld.SAMBA_SUBSYSTEM('LIBCLI_SMB',
76         source='clireadwrite.c cliconnect.c clifile.c clilist.c clitrans2.c climessage.c clideltree.c',
77         public_headers='libcli.h:smb_cli.h',
78         public_deps='smbclient-raw errors LIBCLI_AUTH LIBCLI_SMB_COMPOSITE cli-nbt security LIBCLI_RESOLVE LIBCLI_DGRAM LIBCLI_SMB2 LIBCLI_FINDDCS samba_socket'
79         )
80
81
82 bld.SAMBA_LIBRARY('smbclient-raw',
83         source='raw/rawfile.c raw/smb_signing.c raw/clisocket.c raw/clitransport.c raw/clisession.c raw/clitree.c raw/clierror.c raw/rawrequest.c raw/rawreadwrite.c raw/rawsearch.c raw/rawsetfileinfo.c raw/raweas.c raw/rawtrans.c raw/clioplock.c raw/rawnegotiate.c raw/rawfsinfo.c raw/rawfileinfo.c raw/rawnotify.c raw/rawioctl.c raw/rawacl.c raw/rawdate.c raw/rawlpq.c raw/rawshadow.c',
84         autoproto='raw/raw_proto.h',
85         public_deps='samba_socket LIBPACKET LIBCRYPTO',
86         deps='cli_composite LIBCLI_RESOLVE security ndr samba-util errors charset talloc LIBCLI_SMB_COMPOSITE tevent NDR_NBT_BUF cli_smb_common',
87         public_headers='raw/request.h:smb_request.h raw/signing.h:smb_signing.h raw/libcliraw.h:smb_cliraw.h raw/interfaces.h:smb_raw_interfaces.h raw/smb.h:smb_raw.h raw/trans2.h:smb_raw_trans2.h',
88         private_library=False,
89         pc_files='raw/smbclient-raw.pc',
90         vnum='0.0.1'
91         )
92
93 bld.RECURSE('smb2')
94 bld.RECURSE('rap')