summaryrefslogtreecommitdiff
path: root/src/util/configuration.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2011-05-28 05:51:01 +0000
committerMorgan Deters <mdeters@gmail.com>2011-05-28 05:51:01 +0000
commitcac515ace0282dc5f3ee4de854ca1a5223bdf29a (patch)
treea3f337ea871f380dcb835b1f4b26997fd634ba7f /src/util/configuration.h
parentbb22eb1a5f9c3bcd5a043eb8c48f28fada58f370 (diff)
include subversion information used for each build in the --show-config output and as a banner in --interactive mode; intended to resolve confusion in cases where you don't know where a CVC4 binary came from
Diffstat (limited to 'src/util/configuration.h')
-rw-r--r--src/util/configuration.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/util/configuration.h b/src/util/configuration.h
index 3aae370d9..258431114 100644
--- a/src/util/configuration.h
+++ b/src/util/configuration.h
@@ -35,6 +35,12 @@ class CVC4_PUBLIC Configuration {
/** Private default ctor: Disallow construction of this class */
Configuration();
+ // these constants are filled in by the build system
+ static const bool IS_SUBVERSION_BUILD;
+ static const char* const SUBVERSION_BRANCH_NAME;
+ static const unsigned SUBVERSION_REVISION;
+ static const bool SUBVERSION_HAS_MODIFICATIONS;
+
public:
static std::string getName();
@@ -76,7 +82,13 @@ public:
static bool isBuiltWithCudd();
static bool isBuiltWithTlsSupport();
-};
+
+ static bool isSubversionBuild();
+ static const char* getSubversionBranchName();
+ static unsigned getSubversionRevision();
+ static bool hasSubversionModifications();
+
+};/* class Configuration */
}/* CVC4 namespace */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback