Skip to content

Commit

Permalink
Add library versions to LibraryVersions.h
Browse files Browse the repository at this point in the history
  • Loading branch information
chennes committed Mar 1, 2021
1 parent c7c420c commit 6be9015
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 11 deletions.
37 changes: 37 additions & 0 deletions LibraryVersions.h.cmake
Expand Up @@ -9,5 +9,42 @@
# include <${OCC_INCLUDE_DIR}/Standard_Version.hxx>
#endif


/* No need for Boost (version info is always included in the source) */
/* No need for Coin (version info is always included in the source) */
/* No need for Python (version info is always included in the source) */
/* No need for Qt (version info is always included in the source) */
/* No need for zlib (version info is always included in the source) */

// No CMake version info for SMESH, libarea, Zipios, or KDL

// Eigen3
constexpr char * FC_EIGEN3_VERSION = "${EIGEN3_VERSION}";

// FreeType
constexpr char * FC_FREETYPE_VERSION = "${FREETYPE_VERSION_STRING}";

// pcl
constexpr char * FC_PCL_VERSION = "${PCL_VERSION}";

// PyCXX
constexpr char * FC_PYCXX_VERSION = "${PYCXX_VERSION}";

// PySide
constexpr char * FC_PYSIDE_VERSION = "${PySide2_VERSION}";

// PyBind
constexpr char * FC_PYBIND11_VERSION = "${pybind11_VERSION}";

// Shiboken
constexpr char * FC_SHIBOKEN_VERSION = "${Shiboken2_VERSION}";

// vtk
constexpr char * FC_VTK_VERSION = "${VTK_VERSION}";

// Xerces-C
constexpr char * FC_XERCESC_VERSION = "${XercesC_VERSION}";


#endif // LIBRARY_VERSIONS_H

19 changes: 8 additions & 11 deletions src/Gui/Splashscreen.cpp
Expand Up @@ -558,9 +558,6 @@ void AboutDialog::showLicenseInformation()
QString baseurl = QString::fromLatin1("file:///%1/ThirdPartyLibraries.html")
.arg(QString::fromUtf8(App::Application::getHelpDir().c_str()));

//FIXME: Put all needed information into LibraryVersions.h
//

// Boost
li.name = QLatin1String("Boost");
li.href = baseurl + QLatin1String("#_TocBoost");
Expand All @@ -579,14 +576,14 @@ void AboutDialog::showLicenseInformation()
li.name = QLatin1String("Eigen3");
li.href = baseurl + QLatin1String("#_TocEigen3");
li.url = QLatin1String("http://eigen.tuxfamily.org/");
li.version.clear();
li.version = QString::fromLatin1(FC_EIGEN3_VERSION);
libInfo << li;

// FreeType
li.name = QLatin1String("FreeType");
li.href = baseurl + QLatin1String("#_TocFreeType");
li.url = QLatin1String("http://freetype.org");
li.version.clear();
li.version = QString::fromLatin1(FC_FREETYPE_VERSION);
libInfo << li;

// KDL
Expand Down Expand Up @@ -616,14 +613,14 @@ void AboutDialog::showLicenseInformation()
li.name = QLatin1String("Point Cloud Library");
li.href = baseurl + QLatin1String("#_TocPcl");
li.url = QLatin1String("http://www.pointclouds.org");
li.version.clear();
li.version = QString::fromLatin1(FC_PCL_VERSION);
libInfo << li;

// PyCXX
li.name = QLatin1String("PyCXX");
li.href = baseurl + QLatin1String("#_TocPyCXX");
li.url = QLatin1String("http://cxx.sourceforge.net");
li.version.clear();
li.version = QString::fromLatin1(FC_PYCXX_VERSION);
libInfo << li;

// Python
Expand All @@ -637,7 +634,7 @@ void AboutDialog::showLicenseInformation()
li.name = QLatin1String("PySide");
li.href = baseurl + QLatin1String("#_TocPySide");
li.url = QLatin1String("http://www.pyside.org");
li.version.clear();
li.version = QString::fromLatin1(FC_PYSIDE_VERSION);
libInfo << li;

// Qt
Expand All @@ -658,21 +655,21 @@ void AboutDialog::showLicenseInformation()
li.name = QLatin1String("Shiboken");
li.href = baseurl + QLatin1String("#_TocPySide");
li.url = QLatin1String("http://www.pyside.org");
li.version.clear();
li.version = QString::fromLatin1(FC_SHIBOKEN_VERSION);
libInfo << li;

// vtk
li.name = QLatin1String("vtk");
li.href = baseurl + QLatin1String("#_TocVtk");
li.url = QLatin1String("https://www.vtk.org");
li.version.clear();
li.version = QString::fromLatin1(FC_VTK_VERSION);
libInfo << li;

// Xerces-C
li.name = QLatin1String("Xerces-C");
li.href = baseurl + QLatin1String("#_TocXercesC");
li.url = QLatin1String("https://xerces.apache.org/xerces-c");
li.version.clear();
li.version = QString::fromLatin1(FC_XERCESC_VERSION);
libInfo << li;

// Zipios++
Expand Down

0 comments on commit 6be9015

Please sign in to comment.