build: added BUILD_SUBDIR() wrapper
[ira/wip.git] / lib / tevent / wscript
1 VERSION = '0.9.8'
2
3 srcdir = '../..'
4 blddir = 'bin'
5
6 LIBREPLACE_DIR= srcdir + '/lib/replace'
7 LIBTALLOC_DIR=  srcdir + '/lib/talloc'
8
9 def set_options(opt):
10     opt.recurse(LIBREPLACE_DIR)
11     opt.recurse(LIBTALLOC_DIR)
12
13 def configure(conf):
14     conf.sub_config(LIBREPLACE_DIR)
15     conf.sub_config(LIBTALLOC_DIR)
16
17     conf.CHECK_HEADERS('sys/epoll.h')
18     conf.CHECK_FUNCS('epoll_create')
19
20     conf.SAMBA_CONFIG_H()
21
22 def build(bld):
23     bld.BUILD_SUBDIR(LIBREPLACE_DIR)
24     bld.BUILD_SUBDIR(LIBTALLOC_DIR)
25
26     SRC = '''tevent.c tevent_debug.c tevent_epoll.c tevent_fd.c tevent_immediate.c
27              tevent_queue.c tevent_req.c tevent_select.c
28              tevent_signal.c tevent_standard.c tevent_timed.c tevent_util.c tevent_wakeup.c'''
29
30
31     bld.SAMBA_LIBRARY('tevent',
32                       SRC,
33                       deps='replace talloc',
34                       vnum=VERSION)