aa02850ea303d6bbdb5a2bf352c7a5ce74e440dd
[metze/samba/wip.git] / source3 / lib / pthreadpool / wscript_build
1 #!/usr/bin/env python
2
3 if bld.env.WITH_PTHREADPOOL:
4     bld.SAMBA3_SUBSYSTEM('PTHREADPOOL',
5                          source='pthreadpool.c pthreadpool_pipe.c',
6                          deps='pthread rt replace')
7 else:
8     bld.SAMBA3_SUBSYSTEM('PTHREADPOOL',
9                          source='pthreadpool_sync.c pthreadpool_pipe.c',
10                          deps='replace')
11
12
13 bld.SAMBA3_BINARY('pthreadpooltest',
14                   source='tests.c',
15                   deps='PTHREADPOOL',
16                   enabled=bld.env.WITH_PTHREADPOOL,
17                   install=False)