From: Michael Schroeder Date: Wed, 15 Jul 2009 14:11:10 +0000 (+0200) Subject: - add runtime definitions so that apps can print the version of the shared lib X-Git-Tag: BASE-SuSE-Code-12_1-Branch~165^2~42^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=172d0124461ee8888da8b44ea729eb2f5a83fc60;p=thirdparty%2Flibsolv.git - add runtime definitions so that apps can print the version of the shared lib --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 791ae0f3..2a5ff516 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 00000000..a70b14aa --- /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;