aboutsummaryrefslogtreecommitdiff
path: root/libbrep
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-08-24 13:29:52 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-08-24 14:12:42 +0300
commitdef0adc835b35f503eda48049e9e753786c21655 (patch)
treecc4dcf7c2e02132e2f0cee0523a74906cf70107a /libbrep
parente52bba0e65fb3c2eee9adb7672381964b35aad9c (diff)
Add support for build-time mark (*) in tests, examples, and benchmarks package manifest values
Diffstat (limited to 'libbrep')
-rw-r--r--libbrep/package.hxx11
-rw-r--r--libbrep/package.xml6
2 files changed, 15 insertions, 2 deletions
diff --git a/libbrep/package.hxx b/libbrep/package.hxx
index 1619185..85eaec0 100644
--- a/libbrep/package.hxx
+++ b/libbrep/package.hxx
@@ -20,7 +20,7 @@
//
#define LIBBREP_PACKAGE_SCHEMA_VERSION_BASE 19
-#pragma db model version(LIBBREP_PACKAGE_SCHEMA_VERSION_BASE, 20, closed)
+#pragma db model version(LIBBREP_PACKAGE_SCHEMA_VERSION_BASE, 21, closed)
namespace brep
{
@@ -194,15 +194,22 @@ namespace brep
struct test_dependency: dependency
{
test_dependency_type type;
+ bool buildtime;
test_dependency () = default;
test_dependency (package_name n,
test_dependency_type t,
+ bool b,
optional<version_constraint> c)
: dependency {std::move (n), std::move (c), nullptr /* package */},
- type (t)
+ type (t),
+ buildtime (b)
{
}
+
+ // Database mapping.
+ //
+ #pragma db member(buildtime) default(false) // @@ TMP
};
// certificate
diff --git a/libbrep/package.xml b/libbrep/package.xml
index 01597c2..093f54e 100644
--- a/libbrep/package.xml
+++ b/libbrep/package.xml
@@ -1,4 +1,10 @@
<changelog xmlns="http://www.codesynthesis.com/xmlns/odb/changelog" database="pgsql" schema-name="package" version="1">
+ <changeset version="21">
+ <alter-table name="package_tests">
+ <add-column name="test_buildtime" type="BOOLEAN" null="false" default="FALSE"/>
+ </alter-table>
+ </changeset>
+
<changeset version="20">
<alter-table name="tenant">
<add-column name="private" type="BOOLEAN" null="false" default="FALSE"/>