moved application info to project file
This commit is contained in:
parent
c394fbd51c
commit
2f510c76ed
|
@ -8,6 +8,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <c++utilities/application/failure.h>
|
#include <c++utilities/application/failure.h>
|
||||||
|
#include <qtutilities/resources/resources.h>
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
|
|
||||||
|
@ -41,10 +42,7 @@ int main(int argc, char *argv[])
|
||||||
cout << "Unable to parse arguments. " << ex.what() << "\nSee --help for available commands." << endl;
|
cout << "Unable to parse arguments. " << ex.what() << "\nSee --help for available commands." << endl;
|
||||||
}
|
}
|
||||||
// set meta info for application
|
// set meta info for application
|
||||||
QCoreApplication::setOrganizationName(QStringLiteral("Martchus"));
|
SET_APPLICATION_INFO;
|
||||||
QCoreApplication::setOrganizationDomain(QStringLiteral("http://martchus.netai.net/"));
|
|
||||||
QCoreApplication::setApplicationName(QStringLiteral("Video Downloader"));
|
|
||||||
QCoreApplication::setApplicationVersion(QStringLiteral("1.0.7"));
|
|
||||||
if(qtConfigArgs.areQtGuiArgsPresent()) {
|
if(qtConfigArgs.areQtGuiArgsPresent()) {
|
||||||
return QtGui::runWidgetsGui(argc, argv);
|
return QtGui::runWidgetsGui(argc, argv);
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,12 @@ CONFIG(debug, debug|release) {
|
||||||
} else {
|
} else {
|
||||||
TARGET = $${targetprefix}$${projectname}
|
TARGET = $${targetprefix}$${projectname}
|
||||||
}
|
}
|
||||||
|
# add defines
|
||||||
|
DEFINES += "'PROJECT_NAME=\"$${projectname}\"'"
|
||||||
|
DEFINES += "'APP_NAME=\"$${appname}\"'"
|
||||||
|
DEFINES += "'APP_AUTHOR=\"$${appauthor}\"'"
|
||||||
|
DEFINES += "'APP_URL=\"$${appurl}\"'"
|
||||||
|
DEFINES += "'APP_VERSION=\"$${VERSION}\"'"
|
||||||
# variables to check target architecture
|
# variables to check target architecture
|
||||||
win32-g++:QMAKE_TARGET.arch = $$QMAKE_HOST.arch
|
win32-g++:QMAKE_TARGET.arch = $$QMAKE_HOST.arch
|
||||||
win32-g++-32:QMAKE_TARGET.arch = x86
|
win32-g++-32:QMAKE_TARGET.arch = x86
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
projectname = videodownloader
|
projectname = videodownloader
|
||||||
|
appname = "Video Downloader"
|
||||||
|
appauthor = Martchus
|
||||||
|
appurl = "https://github.com/$${appauthor}/$${projectname}"
|
||||||
VERSION = 1.0.7
|
VERSION = 1.0.7
|
||||||
|
|
||||||
# include ../../common.pri when building as part of a subdirs project; otherwise include general.pri
|
# include ../../common.pri when building as part of a subdirs project; otherwise include general.pri
|
||||||
|
|
Loading…
Reference in New Issue