ui: Show Sourcetrail license on top in licenses window

* updated versions and license files of some 3rd party libraries
This commit is contained in:
Eberhard Graether
2019-11-18 10:41:08 +01:00
parent fdbb79b677
commit c808fa8732
9 changed files with 133 additions and 85 deletions
+7 -5
View File
@@ -17,18 +17,20 @@ endfunction(ReadLicense)
function(AddLicense softwareName softwareVersion softwareURL licenseFile)
ReadLicense(${licenseFile} ${softwareName}_license)
set(LICENSES ${LICENSES} PARENT_SCOPE)
set(LICENSE_ARRAY "${LICENSE_ARRAY}\n\tThirdPartyLicense(\"${softwareName}\", \"${softwareVersion}\", \"${softwareURL}\", ${softwareName}_license)," PARENT_SCOPE)
set(LICENSE_ARRAY "${LICENSE_ARRAY}\n\tLicenseInfo(\"${softwareName}\", \"${softwareVersion}\", \"${softwareURL}\", ${softwareName}_license)," PARENT_SCOPE)
endfunction(AddLicense)
ReadLicense(${CMAKE_SOURCE_DIR}/LICENSE.txt Sourcetrail_license)
set(LICENSE_APP "LicenseInfo(\"Sourcetrail\", \"${VERSION_STRING}\", \"https://www.sourcetrail.com\", Sourcetrail_license)")
AddLicense("Boost" "1.64" "http://www.boost.org" "${LICENSEFOLDER}/license_boost.txt")
AddLicense("Boost" "1.68" "http://www.boost.org" "${LICENSEFOLDER}/license_boost.txt")
AddLicense("catch" "2.5.0" "https://github.com/catchorg/Catch2" "${LICENSEFOLDER}/license_catch.txt")
AddLicense("Clang" "7.0.0" "http://clang.llvm.org/" "${LICENSEFOLDER}/license_clang.txt")
AddLicense("Clang" "8.0.1" "http://clang.llvm.org/" "${LICENSEFOLDER}/license_clang.txt")
AddLicense("CppSQLite" "3.2" "http://www.codeproject.com/Articles/6343/CppSQLite-C-Wrapper-for-SQLite" "${LICENSEFOLDER}/license_cpp_sqlite.txt")
AddLicense("Eclipse" "" "https://github.com/eclipse/eclipse.jdt.core" "${LICENSEFOLDER}/license_eclipse.txt")
AddLicense("EclipseJDT" "" "https://github.com/eclipse/eclipse.jdt.core" "${LICENSEFOLDER}/license_eclipse.txt")
AddLicense("Gradle" "4.2" "https://github.com/gradle/gradle" "${LICENSEFOLDER}/license_gradle.txt")
AddLicense("OpenSSL" "" "https://www.openssl.org/" "${LICENSEFOLDER}/license_openssl.txt")
AddLicense("Qt" "5.10.1" "http://qt.io" "${LICENSEFOLDER}/license_qt.txt")
AddLicense("Qt" "5.12.6" "http://qt.io" "${LICENSEFOLDER}/license_qt.txt")
AddLicense("TinyXML" "2.0" "https://sourceforge.net/projects/tinyxml/" "${LICENSEFOLDER}/license_tinyxml.txt")
set(LICENSE_ARRAY "${LICENSE_ARRAY}\n")
+6 -4
View File
@@ -3,20 +3,20 @@
// This File(licenses.h) is generated with CMake
struct ThirdPartyLicense {
struct LicenseInfo {
const char* name;
const char* version;
const char* url;
const char* license;
ThirdPartyLicense()
LicenseInfo()
: name(0)
, version(0)
, url(0)
, license(0)
{}
ThirdPartyLicense(const char* name, const char* version, const char* url, const char* license)
LicenseInfo(const char* name, const char* version, const char* url, const char* license)
: name(name)
, version(version)
, url(url)
@@ -32,7 +32,9 @@ struct ThirdPartyLicense {
// License Textfiles
@LICENSES@
static const ThirdPartyLicense licenses3rdParties[] = {
static const LicenseInfo licenseApp = @LICENSE_APP@;
static const LicenseInfo licenses3rdParties[] = {
@LICENSE_ARRAY@
};