From 77a4fe495ef8056d186d5b6d24f895ff64db77ee Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 30 Mar 2010 13:05:15 +1100 Subject: s4-waf: added a --enable-selftest option as a shortcut This is equiavalent to --enable-uid-wrapper --enable-nss-wrapper --enable-socket-wrapper but is easier to remember! --- lib/nss_wrapper/wscript | 4 +++- lib/socket_wrapper/wscript | 4 +++- lib/uid_wrapper/wscript | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/nss_wrapper/wscript b/lib/nss_wrapper/wscript index c6e8e0d306..44da63339f 100644 --- a/lib/nss_wrapper/wscript +++ b/lib/nss_wrapper/wscript @@ -8,6 +8,8 @@ def set_options(opt): action="store_true", dest='enable_nss_wrapper', default=False) def configure(conf): - if Options.options.enable_nss_wrapper or Options.options.developer: + if (Options.options.enable_nss_wrapper or + Options.options.developer or + Options.options.enable_selftest): conf.DEFINE('NSS_WRAPPER', 1) diff --git a/lib/socket_wrapper/wscript b/lib/socket_wrapper/wscript index f4fdff2ab9..6d9a95795d 100644 --- a/lib/socket_wrapper/wscript +++ b/lib/socket_wrapper/wscript @@ -8,7 +8,9 @@ def set_options(opt): action="store_true", dest='enable_socket_wrapper', default=False) def configure(conf): - if Options.options.enable_socket_wrapper or Options.options.developer: + if (Options.options.enable_socket_wrapper or + Options.options.developer or + Options.options.enable_selftest): conf.DEFINE('SOCKET_WRAPPER', 1) conf.ADD_GLOBAL_DEPENDENCY('SOCKET_WRAPPER') diff --git a/lib/uid_wrapper/wscript b/lib/uid_wrapper/wscript index 0937176c1f..9eb828866f 100644 --- a/lib/uid_wrapper/wscript +++ b/lib/uid_wrapper/wscript @@ -8,6 +8,8 @@ def set_options(opt): action="store_true", dest='enable_uid_wrapper', default=False) def configure(conf): - if Options.options.enable_uid_wrapper or Options.options.developer: + if (Options.options.enable_uid_wrapper or + Options.options.developer or + Options.options.enable_selftest): conf.DEFINE('UID_WRAPPER', 1) -- cgit