s4-waf: added a --enable-selftest option as a shortcut
[ira/wip.git] / lib / uid_wrapper / wscript
1 #!/usr/bin/env python
2
3 import Options
4
5 def set_options(opt):
6         opt.add_option('--enable-uid-wrapper',
7                    help=("Turn on uid wrapper library (default=no)"),
8                    action="store_true", dest='enable_uid_wrapper', default=False)
9
10 def configure(conf):
11     if (Options.options.enable_uid_wrapper or
12         Options.options.developer or
13         Options.options.enable_selftest):
14         conf.DEFINE('UID_WRAPPER', 1)
15