From bea07b5f72cd99013c0741df98e80af5bcf3b9e8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 11 Sep 2007 10:10:43 +0000 Subject: [PATCH] From Mike Wittman and Robert Osfield, added support for SO_VERSION number in runtime version info. Added checks for OpenThreads version. --- applications/osgversion/osgversion.cpp | 22 ++++++++++++++++++++++ include/osg/Version | 21 ++++++++++++++++----- src/osg/Version.cpp | 12 ++++++++++++ 3 files changed, 50 insertions(+), 5 deletions(-) diff --git a/applications/osgversion/osgversion.cpp b/applications/osgversion/osgversion.cpp index 4e725a3ff..aa1e9e19c 100644 --- a/applications/osgversion/osgversion.cpp +++ b/applications/osgversion/osgversion.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include #include @@ -649,6 +650,9 @@ int main( int argc, char **argv) arguments.getApplicationUsage()->addCommandLineOption("-h or --help","Display this information"); arguments.getApplicationUsage()->addCommandLineOption("--entries","Print out number of entries into the ChangeLog file for each contributor."); arguments.getApplicationUsage()->addCommandLineOption("--version-number","Print out version number only"); + arguments.getApplicationUsage()->addCommandLineOption("--soversion-number","Print out shared object version number only"); + arguments.getApplicationUsage()->addCommandLineOption("--openthreads-version-number","Print out version number for OpenThreads only"); + arguments.getApplicationUsage()->addCommandLineOption("--openthreads-soversion-number","Print out shared object version number for OpenThreads only"); arguments.getApplicationUsage()->addCommandLineOption("-r or --read ","Read the ChangeLog to generate an estimated contributors list."); if (arguments.read("--version-number")) @@ -657,6 +661,24 @@ int main( int argc, char **argv) return 0; } + if (arguments.read("--soversion-number")) + { + std::cout<