ref: refs/heads/master
commit b498d7a77d401ee03eabe4b76bd28576eb5a56ae
Author: Michael Schroeder
Date: Wed Jul 15 16:11:10 2009 +0200
- add runtime definitions so that apps can print the version of the shared lib
---
src/CMakeLists.txt | 2 +-
src/satversion.c | 13 +++++++++++++
2 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 791ae0f..2a5ff51 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -4,7 +4,7 @@ SET(libsatsolver_SRCS
solver.c solverdebug.c repo_solv.c evr.c pool.c
queue.c repo.c repodata.c repopage.c util.c policy.c solvable.c
transaction.c rules.c problems.c
- chksum.c md5.c sha1.c sha2.c)
+ chksum.c md5.c sha1.c sha2.c satversion.c)
ADD_LIBRARY(satsolver STATIC ${libsatsolver_SRCS})
diff --git a/src/satversion.c b/src/satversion.c
new file mode 100644
index 0000000..a70b14a
--- /dev/null
+++ b/src/satversion.c
@@ -0,0 +1,13 @@
+/*
+ * Copyright (c) 2009, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+#include "satversion.h"
+
+const char sat_version[] = SATSOLVER_VERSION_STRING;
+int sat_version_major = SATSOLVER_VERSION_MAJOR;
+int sat_version_minor = SATSOLVER_VERSION_MINOR;
+int sat_version_patch = SATSOLVER_VERSION_PATCH;
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org