ui: different ui for trial and app
This commit is contained in:
+12
-12
@@ -14,22 +14,22 @@ function(ReadLicense licenseFile licenseVariable)
|
||||
set(LICENSES "${LICENSES}${var}${tempVariable}\"\;" PARENT_SCOPE)
|
||||
endfunction(ReadLicense)
|
||||
|
||||
function(AddLicense licenseName licenseURL licenseFile)
|
||||
ReadLicense(${licenseFile} ${licenseName}_license)
|
||||
set(LICENSES ${LICENSES} PARENT_SCOPE)
|
||||
set(LICENSE_ARRAY "${LICENSE_ARRAY}\n\tThirdPartyLicense(\"${licenseName}\", \"${licenseURL}\", ${licenseName}_license)," PARENT_SCOPE)
|
||||
function(AddLicense licenseName licenseURL licenseFile isNotInTrial)
|
||||
ReadLicense(${licenseFile} ${licenseName}_license)
|
||||
set(LICENSES ${LICENSES} PARENT_SCOPE)
|
||||
set(LICENSE_ARRAY "${LICENSE_ARRAY}\n\tThirdPartyLicense(\"${licenseName}\", \"${licenseURL}\", ${licenseName}_license, ${isNotInTrial})," PARENT_SCOPE)
|
||||
endfunction(AddLicense)
|
||||
|
||||
AddLicense("Qt" "http://qt.io" "${LICENSEFOLDER}/qt_LICENSE.TXT")
|
||||
AddLicense("Clang" "http://clang.llvm.org/" "${LICENSEFOLDER}/clang_LICENSE.TXT")
|
||||
AddLicense("Boost" "http://www.boost.org" "${LICENSEFOLDER}/boost_LICENSE.TXT")
|
||||
AddLicense("TinyXMl" "http://www.grinninglizard.com/tinyxml2/" "${LICENSEFOLDER}/tinyxml_LICENSE.TXT")
|
||||
AddLicense("CppSQLite" "http://www.codeproject.com/Articles/6343/CppSQLite-C-Wrapper-for-SQLite" "${LICENSEFOLDER}/CppSQLite_LICENSE.TXT")
|
||||
AddLicense("Eigen" "http://eigen.tuxfamily.org" "${LICENSEFOLDER}/eigen_LICENSE.TXT")
|
||||
AddLicense("Qt" "http://qt.io" "${LICENSEFOLDER}/qt_LICENSE.TXT" false)
|
||||
AddLicense("Clang" "http://clang.llvm.org/" "${LICENSEFOLDER}/clang_LICENSE.TXT" true)
|
||||
AddLicense("Boost" "http://www.boost.org" "${LICENSEFOLDER}/boost_LICENSE.TXT" false)
|
||||
AddLicense("TinyXMl" "http://www.grinninglizard.com/tinyxml2/" "${LICENSEFOLDER}/tinyxml_LICENSE.TXT" false)
|
||||
AddLicense("CppSQLite" "http://www.codeproject.com/Articles/6343/CppSQLite-C-Wrapper-for-SQLite" "${LICENSEFOLDER}/CppSQLite_LICENSE.TXT" false)
|
||||
AddLicense("Eigen" "http://eigen.tuxfamily.org" "${LICENSEFOLDER}/eigen_LICENSE.TXT" false)
|
||||
|
||||
set(LICENSE_ARRAY "${LICENSE_ARRAY}\n")
|
||||
|
||||
configure_file(
|
||||
${CMAKE_SOURCE_DIR}/src/lib_gui/licenses.h.in
|
||||
${CMAKE_SOURCE_DIR}/build/src/lib_gui/licenses.h
|
||||
${CMAKE_SOURCE_DIR}/cmake/licenses.h.in
|
||||
${CMAKE_SOURCE_DIR}/build/src/lib_gui/licenses.h
|
||||
)
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
#ifndef LICENSES_H
|
||||
#define LICENSES_H
|
||||
|
||||
// This File(licenses.h) is generated with CMake
|
||||
|
||||
struct ThirdPartyLicense {
|
||||
const char* name;
|
||||
const char* url;
|
||||
const char* license;
|
||||
const bool isNotInTrial;
|
||||
|
||||
ThirdPartyLicense() : name(0), url(0), license(0), isNotInTrial(false) {}
|
||||
ThirdPartyLicense(const char* name, const char* url, const char* license, const bool isNotInTrial)
|
||||
: name(name), url(url), license(license), isNotInTrial(isNotInTrial) {}
|
||||
bool isEmpty() const { return (name == 0 && url == 0 && license == 0); }
|
||||
};
|
||||
|
||||
// License Textfiles
|
||||
@LICENSES@
|
||||
|
||||
static const ThirdPartyLicense licenses3rdParties[] = {
|
||||
@LICENSE_ARRAY@
|
||||
};
|
||||
|
||||
#endif //LICENSES_H
|
||||
+1
-1
@@ -43,6 +43,6 @@ message(STATUS "Git commit time: ${GIT_COMMIT_TIME}")
|
||||
message(STATUS "Git version number:" ${GIT_VERSION_NUMBER} )
|
||||
|
||||
configure_file(
|
||||
${CMAKE_SOURCE_DIR}/src/lib_gui/version.h.in
|
||||
${CMAKE_SOURCE_DIR}/cmake/version.h.in
|
||||
${CMAKE_SOURCE_DIR}/build/src/lib_gui/version.h
|
||||
)
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
#ifndef COATI_VERSION_H
|
||||
#define COATI_VERSION_H
|
||||
|
||||
#define GIT_BRANCH "@GIT_BRANCH@"
|
||||
#define GIT_VERSION_NUMBER "@GIT_VERSION_NUMBER@"
|
||||
#define GIT_COMMIT_HASH "@GIT_COMMIT_HASH@"
|
||||
#define GIT_COMMIT_TIME "@GIT_COMMIT_TIME@"
|
||||
|
||||
#endif // COATI_VERSION_H
|
||||
Reference in New Issue
Block a user