App: save version number of the most important libraries
This commit is contained in:
@@ -138,6 +138,7 @@
|
||||
#include <QFileInfo>
|
||||
#include <QProcessEnvironment>
|
||||
#include <QStandardPaths>
|
||||
#include <LibraryVersions.h>
|
||||
|
||||
using namespace App;
|
||||
using namespace std;
|
||||
@@ -2525,6 +2526,19 @@ void Application::initConfig(int argc, char ** argv)
|
||||
|
||||
// capture path
|
||||
SaveEnv("PATH");
|
||||
|
||||
// Save version numbers of the libraries
|
||||
#ifdef OCC_VERSION_STRING_EXT
|
||||
mConfig["OCC_VERSION"] = OCC_VERSION_STRING_EXT;
|
||||
#endif
|
||||
mConfig["BOOST_VERSION"] = BOOST_LIB_VERSION;
|
||||
mConfig["PYTHON_VERSION"] = PY_VERSION;
|
||||
mConfig["QT_VERSION"] = QT_VERSION_STR;
|
||||
mConfig["EIGEN_VERSION"] = FC_EIGEN3_VERSION;
|
||||
mConfig["PYSIDE_VERSION"] = FC_PYSIDE_VERSION;
|
||||
mConfig["XERCESC_VERSION"] = FC_XERCESC_VERSION;
|
||||
|
||||
|
||||
logStatus();
|
||||
}
|
||||
|
||||
|
||||
@@ -139,6 +139,7 @@
|
||||
#include <Gui/Quarter/Quarter.h>
|
||||
#include "View3DViewerPy.h"
|
||||
#include <Gui/GuiInitScript.h>
|
||||
#include <LibraryVersions.h>
|
||||
|
||||
|
||||
using namespace Gui;
|
||||
@@ -452,6 +453,8 @@ Application::Application(bool GUIenabled)
|
||||
Py_DECREF(descr);
|
||||
}
|
||||
|
||||
App::Application::Config()["COIN_VERSION"] = COIN_VERSION;
|
||||
|
||||
// Python console binding
|
||||
PythonDebugModule ::init_module();
|
||||
PythonStdout ::init_type();
|
||||
|
||||
Reference in New Issue
Block a user