summaryrefslogtreecommitdiff
path: root/source3/lib/pthreadpool/wscript_build
blob: bdd5f53dcf741737ae410f563a198b5a784addac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python

if bld.env.WITH_PTHREADPOOL:
    bld.SAMBA3_SUBSYSTEM('PTHREADPOOL',
                         source='pthreadpool.c',
                         deps='pthread rt replace')
else:
    bld.SAMBA3_SUBSYSTEM('PTHREADPOOL',
                         source='pthreadpool_sync.c',
                         deps='replace')


bld.SAMBA3_BINARY('pthreadpooltest',
                  source='tests.c',
                  deps='PTHREADPOOL',
                  enabled=bld.env.WITH_PTHREADPOOL,
                  install=False)