From 8e54ae94ce44d57b49b35269f006fe2bf07ec13d Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 2 May 2020 19:28:02 +0300 Subject: For external test packages use the 'all' class as default underlying build class set --- mod/build-config.cxx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'mod/build-config.cxx') diff --git a/mod/build-config.cxx b/mod/build-config.cxx index 2d64aec..43a85e8 100644 --- a/mod/build-config.cxx +++ b/mod/build-config.cxx @@ -13,17 +13,21 @@ namespace brep using namespace bpkg; using namespace bbot; - // The default underlying class set expression (see below). + // The default underlying class set expressions (see below). // static const build_class_expr default_ucs_expr ( {"default"}, '+', "Default."); + static const build_class_expr all_ucs_expr ( + {"all"}, '+', "All."); + bool exclude (const small_vector& exprs, const vector& constrs, const build_config& cfg, const map& class_inheritance_map, - string* reason) + string* reason, + bool default_all_ucs) { // Save the first sentence of the reason, lower-case the first letter if // the beginning looks like a word (all subsequent characters until a @@ -132,9 +136,11 @@ namespace brep // cannot affect the result. // const build_class_expr& ucs_expr ( - ucs != nullptr - ? build_class_expr (ucs->underlying_classes, '+', ucs->comment) - : default_ucs_expr); + ucs != nullptr ? build_class_expr (ucs->underlying_classes, + '+', + ucs->comment) : + default_all_ucs ? all_ucs_expr : + default_ucs_expr); match (ucs_expr); -- cgit v1.1