updated build system (was an outdated version)
This commit is contained in:
8
src/languages.qrc
Normal file
8
src/languages.qrc
Normal file
@@ -0,0 +1,8 @@
|
||||
<RCC>
|
||||
<qresource prefix="/language">
|
||||
<file>tokentool_de.qm</file>
|
||||
<file>tokentool_fr.qm</file>
|
||||
<file>tokentool_it.qm</file>
|
||||
<file>tokentool_en.qm</file>
|
||||
</qresource>
|
||||
</RCC>
|
@@ -1,8 +0,0 @@
|
||||
<RCC>
|
||||
<qresource prefix="/language">
|
||||
<file>@PACKAGENAME@_de.qm</file>
|
||||
<file>@PACKAGENAME@_fr.qm</file>
|
||||
<file>@PACKAGENAME@_it.qm</file>
|
||||
<file>@PACKAGENAME@_en.qm</file>
|
||||
</qresource>
|
||||
</RCC>
|
@@ -55,14 +55,17 @@ tokentool_TR_FILES = main.cxx version.cxx
|
||||
tokentool_SOURCES = ${tokentool_TR_FILES} ${BUILT_SOURCES}
|
||||
|
||||
## automatic assembly, no need to change
|
||||
BUILT_SOURCES = ${tokentool_MOCFILES} ${tokentool_UIFILES} ${tokentool_TRANSLATIONS} ${tokentool_RESOURCES}
|
||||
BUILT_SOURCES = ${tokentool_MOCFILES} ${tokentool_UIFILES} \
|
||||
${tokentool_TRANSLATIONS} ${tokentool_RESOURCES}
|
||||
|
||||
## automatic assembly, no need to change
|
||||
EXTRA_DIST_TR = ${tokentool_MOCFILES:moc_%.cxx=%.hxx} ${tokentool_UIFILES:ui_%.hxx=%.ui}
|
||||
EXTRA_DIST_TR = ${tokentool_MOCFILES:moc_%.cxx=%.hxx} \
|
||||
${tokentool_UIFILES:ui_%.hxx=%.ui}
|
||||
|
||||
## automatic assembly, no need to change
|
||||
## except: adapt the pre-delivered qt_%.qm list (language files you copy from qt
|
||||
EXTRA_DIST = ${EXTRA_DIST_TR} ${tokentool_RESOURCES:qrc_%.cxx:%.qrc} ${tokentool_TRANSLATIONS:%.qm=%.ts} qt_de.qm qt_fr.qm
|
||||
EXTRA_DIST = ${EXTRA_DIST_TR} ${tokentool_RESOURCES:qrc_%.cxx:%.qrc} \
|
||||
${tokentool_TRANSLATIONS:%.qm=%.ts} qt_de.qm qt_fr.qm
|
||||
|
||||
## automatic assembly, no need to change
|
||||
LANGUAGE_FILES = ${EXTRA_DIST_TR} ${tokentool_TR_FILES}
|
||||
|
@@ -13,7 +13,7 @@
|
||||
#include <QProgressBar>
|
||||
#include <QDateTime>
|
||||
#include <QSslCertificate>
|
||||
#include <ui_tokentool.h>
|
||||
#include <ui_tokentool.hxx>
|
||||
#include <memory>
|
||||
|
||||
#include <QDebug>
|
||||
|
40
src/version.cxx
Normal file
40
src/version.cxx
Normal file
@@ -0,0 +1,40 @@
|
||||
/*! @file
|
||||
|
||||
@id $
|
||||
*/
|
||||
// 1 2 3 4 5 6 7 8
|
||||
// 45678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace NAMESPACE {
|
||||
std::string package_string() {
|
||||
return PACKAGE_STRING;
|
||||
}
|
||||
std::string package_name() {
|
||||
return PACKAGE_NAME;
|
||||
}
|
||||
std::string version() {
|
||||
return PACKAGE_VERSION;
|
||||
}
|
||||
std::string build_date() {
|
||||
return BUILD_DATE;
|
||||
}
|
||||
std::string author() {
|
||||
return AUTHOR;
|
||||
}
|
||||
std::string description() {
|
||||
return DESCRIPTION;
|
||||
}
|
||||
std::string readme() {
|
||||
return README;
|
||||
}
|
||||
std::string logo() {
|
||||
return PROJECT_LOGO;
|
||||
}
|
||||
std::string icon() {
|
||||
return PROJECT_ICON;
|
||||
}
|
||||
const std::string WHAT("#(@) " PACKAGE_STRING);
|
||||
const std::string IDENT("$Id: " PACKAGE_STRING);
|
||||
}
|
Reference in New Issue
Block a user