s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them
[ira/wip.git] / source4 / wscript_build
1 #!/usr/bin/env python
2
3 # top level waf build script for samba4
4
5 import os
6 srcdir = ".."
7
8 # create separate build groups for building the asn1 and et compiler, then
9 # building the C from ASN1 and IDL, and finally the main build process
10 bld.SETUP_BUILD_GROUPS()
11
12 bld.SAMBA_MKVERSION('version.h')
13
14 # bld.ENABLE_MAGIC_ORDERING()
15
16 # we don't always use consistent names for our subsystems.
17 # this sets up some aliases
18 bld.TARGET_ALIAS('attr', 'XATTR')
19 bld.TARGET_ALIAS('tevent', 'LIBTEVENT_EXT')
20 bld.TARGET_ALIAS('sasl2', 'SASL')
21 bld.TARGET_ALIAS('RPC_NDR_SRVSVC', 'NDR_SRVSVC')
22 bld.TARGET_ALIAS('RPC_NDR_MGMT', 'dcerpc_mgmt')
23
24 # missing subsystems - need looking at
25 bld.SAMBA_SUBSYSTEM('INTL', '')         # external gettext library
26 bld.SAMBA_SUBSYSTEM('NETAPI', '')       # for external libnet
27 bld.SAMBA_SUBSYSTEM('OPENPTY', '')      # external openpty library
28 bld.SAMBA_SUBSYSTEM('SMBCLIENT', '')    # for external libsmbclient
29 bld.SAMBA_SUBSYSTEM('BLKID', '')        # blkid library from e2fsprogs
30 bld.SAMBA_SUBSYSTEM('SETPROCTITLE', '') # external setproctitle library
31
32 # subsystems that are confirmed to be missing. These should
33 # be removed from the build completely when we only have
34 # one build system
35 bld.SAMBA_SUBSYSTEM('DCOM_PROXY_DCOM', '')
36 bld.SAMBA_SUBSYSTEM('smbcalls', '')
37 bld.SAMBA_SUBSYSTEM('HDB_LDB', '')
38 bld.SAMBA_SUBSYSTEM('NDR_MISC', '')
39 bld.SAMBA_SUBSYSTEM('NDR_SAMR', '')
40 bld.SAMBA_SUBSYSTEM('SCHANNELDB', '')
41 bld.SAMBA_SUBSYSTEM('pyldb_util', '')
42 bld.SAMBA_SUBSYSTEM('TORTURE_LDB_MODULE', '')
43
44
45 bld.BUILD_SUBDIR('../lib/replace')
46 bld.BUILD_SUBDIR('../lib/talloc')
47 bld.BUILD_SUBDIR('../lib/tdb')
48 bld.BUILD_SUBDIR('../lib/tevent')
49 bld.BUILD_SUBDIR('lib/ldb')
50 bld.BUILD_SUBDIR('dynconfig')
51 bld.BUILD_SUBDIR('../lib/util/charset')
52 bld.BUILD_SUBDIR('scripting/python')
53 bld.BUILD_SUBDIR('../lib/subunit/python')
54 bld.BUILD_SUBDIR('param')
55 bld.BUILD_SUBDIR('librpc')
56 bld.BUILD_SUBDIR('dsdb')
57 bld.BUILD_SUBDIR('smbd')
58 bld.BUILD_SUBDIR('cluster')
59 bld.BUILD_SUBDIR('smbd')
60 bld.BUILD_SUBDIR('libnet')
61 bld.BUILD_SUBDIR('auth')
62 bld.BUILD_SUBDIR('../nsswitch')
63 bld.BUILD_SUBDIR('../nsswitch/libwbclient')
64 bld.BUILD_SUBDIR('lib/samba3')
65 bld.BUILD_SUBDIR('lib/socket')
66 bld.BUILD_SUBDIR('lib/ldb-samba')
67 bld.BUILD_SUBDIR('lib/tls')
68 bld.BUILD_SUBDIR('lib/registry')
69 bld.BUILD_SUBDIR('lib/messaging')
70 bld.BUILD_SUBDIR('lib/events')
71 bld.BUILD_SUBDIR('lib/cmdline')
72 bld.BUILD_SUBDIR('../lib/socket_wrapper')
73 bld.BUILD_SUBDIR('../lib/nss_wrapper')
74 bld.BUILD_SUBDIR('../lib/uid_wrapper')
75 bld.BUILD_SUBDIR('../lib/popt')
76 bld.BUILD_SUBDIR('lib/stream')
77 bld.BUILD_SUBDIR('../lib/util')
78 bld.BUILD_SUBDIR('../lib/tdr')
79 bld.BUILD_SUBDIR('../lib/tsocket')
80 bld.BUILD_SUBDIR('../lib/crypto')
81 bld.BUILD_SUBDIR('../lib/torture')
82 bld.BUILD_SUBDIR('../lib/zlib')
83 bld.BUILD_SUBDIR('lib')
84 bld.BUILD_SUBDIR('lib/com')
85 bld.BUILD_SUBDIR('smb_server')
86 bld.BUILD_SUBDIR('rpc_server')
87 bld.BUILD_SUBDIR('ldap_server')
88 bld.BUILD_SUBDIR('web_server')
89 bld.BUILD_SUBDIR('winbind')
90 bld.BUILD_SUBDIR('nbt_server')
91 bld.BUILD_SUBDIR('wrepl_server')
92 bld.BUILD_SUBDIR('cldap_server')
93 bld.BUILD_SUBDIR('ntp_signd')
94 bld.BUILD_SUBDIR('utils/net')
95 bld.BUILD_SUBDIR('utils')
96 bld.BUILD_SUBDIR('ntvfs')
97 bld.BUILD_SUBDIR('ntptr')
98 bld.BUILD_SUBDIR('torture')
99 bld.BUILD_SUBDIR('../librpc')
100 bld.BUILD_SUBDIR('client')
101 bld.BUILD_SUBDIR('libcli')
102 bld.BUILD_SUBDIR('../libcli/smb')
103 bld.BUILD_SUBDIR('../libcli/cldap')
104 bld.BUILD_SUBDIR('kdc')
105 bld.BUILD_SUBDIR('../lib/smbconf')
106 bld.BUILD_SUBDIR('../lib/async_req')
107 bld.BUILD_SUBDIR('../libcli/security')
108 bld.BUILD_SUBDIR('../libcli/ldap')
109 bld.BUILD_SUBDIR('../libcli/nbt')
110 bld.BUILD_SUBDIR('../libcli/auth')
111 bld.BUILD_SUBDIR('../libcli/drsuapi')
112 bld.BUILD_SUBDIR('../libcli/samsync')
113 bld.BUILD_SUBDIR('../libgpo')
114 bld.BUILD_SUBDIR('../libcli/named_pipe_auth')
115 bld.BUILD_SUBDIR('heimdal_build')
116 bld.BUILD_SUBDIR('lib/smbreadline')
117 bld.BUILD_SUBDIR('../codepages')
118 bld.BUILD_SUBDIR('setup')
119 bld.BUILD_SUBDIR('scripting')
120 bld.BUILD_SUBDIR('../pidl')