ref: refs/heads/master
commit 5e2b2cf21f9df34896f31bb276f8cb76da01fd25
Author: Michael Schroeder
Date: Wed Jul 15 11:08:49 2009 +0200
- add satversion.h containing the current satsolver version
---
CMakeLists.txt | 1 +
src/CMakeLists.txt | 2 +-
src/satversion.h.in | 22 ++++++++++++++++++++++
tests/solver/deptestomatic.c | 1 +
4 files changed, 25 insertions(+), 1 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 81f915e..d2392c8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -48,6 +48,7 @@ SET( VERSION "${LIBSATSOLVER_MAJOR}.${LIBSATSOLVER_MINOR}.${LIBSATSOLVER_PATCH}"
ADD_DEFINITIONS( -D_FILE_OFFSET_BITS=64 )
ADD_DEFINITIONS( -DVERSION=\\\"${VERSION}\\\" )
+CONFIGURE_FILE( src/satversion.h.in src/satversion.h )
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "SAT Solver library")
SET(CPACK_PACKAGE_VENDOR "Novell Inc.")
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 70e18c5..791ae0f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -13,7 +13,7 @@ SET(libsatsolver_HEADERS
poolid.h pooltypes.h queue.h solvable.h solver.h solverdebug.h
repo.h repodata.h repopage.h repo_solv.h util.h
strpool.h dirpool.h knownid.h transaction.h rules.h problems.h
- chksum.h md5.h sha1.h sha2.h)
+ chksum.h md5.h sha1.h sha2.h satversion.h)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
diff --git a/src/satversion.h.in b/src/satversion.h.in
new file mode 100644
index 0000000..593fcf0
--- /dev/null
+++ b/src/satversion.h.in
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
+ * satversion.h
+ *
+ */
+
+#ifndef SATSOLVER_SATVERSION_H
+#define SATSOLVER_SATVERSION_H
+
+#define SATSOLVER_VERSION_STRING "@VERSION@"
+#define SATSOLVER_VERSION_MAJOR @LIBSATSOLVER_MAJOR@
+#define SATSOLVER_VERSION_MINOR @LIBSATSOLVER_MINOR@
+#define SATSOLVER_VERSION_PATCH @LIBSATSOLVER_PATCH@
+#define SATSOLVER_VERSION (SATSOLVER_VERSION_MAJOR * 10000 + SATSOLVER_VERSION_MINOR * 100 + SATSOLVER_VERSION_PATCH)
+
+#endif
diff --git a/tests/solver/deptestomatic.c b/tests/solver/deptestomatic.c
index 5ba093c..dc1f184 100644
--- a/tests/solver/deptestomatic.c
+++ b/tests/solver/deptestomatic.c
@@ -1756,6 +1756,7 @@ main( int argc, char **argv )
/* setting loglevel */
pool_setdebuglevel(pd.pool, verbose);
+ /* pd.pool->debugmask |= SAT_DEBUG_STATS; */
if (argp >= argc || !strcmp( argv[argp], "-h" ))
{
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org