summaryrefslogtreecommitdiff
path: root/third_party/wscript
blob: eb26a129e31ca3bd3b27a44d1ba1930772945371 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env python

from waflib import Options

def configure(conf):
    conf.RECURSE('cmocka')
    conf.RECURSE('popt')
    conf.RECURSE('quic')
    conf.RECURSE('ngtcp2')
    if conf.CONFIG_GET('ENABLE_SELFTEST'):
        conf.RECURSE('socket_wrapper')
        conf.RECURSE('nss_wrapper')
        conf.RECURSE('resolv_wrapper')
        conf.RECURSE('uid_wrapper')
        if Options.options.with_pam:
            conf.RECURSE('pam_wrapper')
        conf.RECURSE('quic_ko_wrapper')


def build(bld):
    bld.RECURSE('cmocka')
    bld.RECURSE('popt')
    bld.RECURSE('quic')
    bld.RECURSE('ngtcp2')
    if bld.CONFIG_GET('SOCKET_WRAPPER'):
        bld.RECURSE('socket_wrapper')
    if bld.CONFIG_GET('NSS_WRAPPER'):
        bld.RECURSE('nss_wrapper')
    if bld.CONFIG_GET('RESOLV_WRAPPER'):
        bld.RECURSE('resolv_wrapper')
    if bld.CONFIG_GET('UID_WRAPPER'):
        bld.RECURSE('uid_wrapper')
    if bld.CONFIG_GET('PAM_WRAPPER'):
        bld.RECURSE('pam_wrapper')
    if bld.CONFIG_GET('QUIC_KO_WRAPPER'):
        bld.RECURSE('quic_ko_wrapper')