aboutsummaryrefslogtreecommitdiff
path: root/libbrep/package.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-02-11 20:10:53 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-02-11 20:14:11 +0300
commit818cde70e20ff897932c4abaca63c446a9ec5561 (patch)
treee991199a0fc1261851429fc35b70bd18906819ff /libbrep/package.hxx
parent4cb81fd80a63004c08ba49ce9265318d5ba39082 (diff)
Add support for reflect clause in tests package manifest value
Diffstat (limited to 'libbrep/package.hxx')
-rw-r--r--libbrep/package.hxx27
1 files changed, 15 insertions, 12 deletions
diff --git a/libbrep/package.hxx b/libbrep/package.hxx
index d0ac23f..8b0613e 100644
--- a/libbrep/package.hxx
+++ b/libbrep/package.hxx
@@ -20,7 +20,7 @@
//
#define LIBBREP_PACKAGE_SCHEMA_VERSION_BASE 21
-#pragma db model version(LIBBREP_PACKAGE_SCHEMA_VERSION_BASE, 24, closed)
+#pragma db model version(LIBBREP_PACKAGE_SCHEMA_VERSION_BASE, 25, closed)
namespace brep
{
@@ -170,15 +170,15 @@ namespace brep
dependency_alternative () = default;
dependency_alternative (optional<string> e,
- butl::optional<std::string> r,
- butl::optional<std::string> p,
- butl::optional<std::string> a,
- butl::optional<std::string> q)
- : enable (std::move (e)),
- reflect (std::move (r)),
- prefer (std::move (p)),
- accept (std::move (a)),
- require (std::move (q)) {}
+ optional<string> r,
+ optional<string> p,
+ optional<string> a,
+ optional<string> q)
+ : enable (move (e)),
+ reflect (move (r)),
+ prefer (move (p)),
+ accept (move (a)),
+ require (move (q)) {}
};
#pragma db value
@@ -202,15 +202,18 @@ namespace brep
{
test_dependency_type type;
bool buildtime;
+ optional<string> reflect;
test_dependency () = default;
test_dependency (package_name n,
test_dependency_type t,
bool b,
- optional<version_constraint> c)
+ optional<version_constraint> c,
+ optional<string> r)
: dependency {move (n), move (c), nullptr /* package */},
type (t),
- buildtime (b)
+ buildtime (b),
+ reflect (move (r))
{
}