passwordmanager/passwordmanager.pro

125 lines
2.9 KiB
Prolog
Raw Normal View History

2015-04-22 19:30:09 +02:00
projectname = passwordmanager
2015-07-27 23:33:54 +02:00
appname = "Password Manager"
appauthor = Martchus
appurl = "https://github.com/$${appauthor}/$${projectname}"
2015-10-01 14:23:33 +02:00
QMAKE_TARGET_DESCRIPTION = "A simple password manager."
2015-11-08 20:27:10 +01:00
VERSION = 2.0.9
2015-04-22 19:30:09 +02:00
# include ../../common.pri when building as part of a subdirs project; otherwise include general.pri
!include(../../common.pri) {
!include(./general.pri) {
error("Couldn't find the common.pri or the general.pri file!")
}
}
TEMPLATE = app
no-gui {
CONFIG -= qt # Qt is only required for GUI
} else {
QT += core gui
android {
OTHER_FILES += android/AndroidManifest.xml
include(../../deployment.pri)
}
}
guiqtquick {
QML_IMPORT_PATH += ./quick ./qml ./qml/pages ./qml/touch
}
# files
SOURCES += main.cpp\
model/entrymodel.cpp \
model/fieldmodel.cpp \
model/entryfiltermodel.cpp \
util/testroutines.cpp \
cli/cli.cpp
guiqtwidgets {
SOURCES += gui/mainwindow.cpp \
gui/passwordgeneratordialog.cpp \
gui/undocommands.cpp \
gui/stacksupport.cpp \
gui/initiatequi.cpp \
gui/fielddelegate.cpp
2015-04-22 19:30:09 +02:00
FORMS += gui/mainwindow.ui \
gui/passwordgeneratordialog.ui
}
guiqtquick {
SOURCES += quickgui/applicationinfo.cpp \
quickgui/initiatequick.cpp
}
HEADERS += model/entrymodel.h \
model/fieldmodel.h \
model/entryfiltermodel.h \
util/testroutines.h \
cli/cli.h
2015-04-22 19:30:09 +02:00
guiqtwidgets {
HEADERS += gui/mainwindow.h \
gui/passwordgeneratordialog.h \
gui/undocommands.h \
gui/stacksupport.h \
gui/initiategui.h \
gui/fielddelegate.h
2015-04-22 19:30:09 +02:00
}
guiqtquick {
HEADERS += quickgui/applicationinfo.h \
2015-09-01 20:18:13 +02:00
quickgui/applicationpaths.h \
quickgui/initiatequick.h
2015-04-22 19:30:09 +02:00
}
# resources and translations
!no-gui {
RESOURCES += resources/icons.qrc
contains(DEFINES, GUI_QTQUICK) {
RESOURCES += resources/qml.qrc
}
TRANSLATIONS = translations/passwordmanager_en_US.ts \
2015-07-17 23:55:19 +02:00
translations/passwordmanager_de_DE.ts
2015-04-22 19:30:09 +02:00
}
2015-06-12 02:29:30 +02:00
include(translations.pri)
2015-07-17 23:55:19 +02:00
win32:include(windowsicon.pri)
2015-04-22 19:30:09 +02:00
OTHER_FILES += \
2015-06-08 22:11:07 +02:00
README.md \
2015-06-26 02:31:41 +02:00
LICENSE
2015-04-22 19:30:09 +02:00
# libs and includepath
CONFIG(debug, debug|release) {
2015-08-26 21:12:51 +02:00
LIBS += -lc++utilitiesd -lpasswordfiled
2015-04-22 19:30:09 +02:00
!no-gui {
LIBS += -lqtutilitiesd
}
} else {
2015-08-26 21:12:51 +02:00
LIBS += -lc++utilities -lpasswordfile
2015-04-22 19:30:09 +02:00
!no-gui {
LIBS += -lqtutilities
}
}
# installs
2015-07-17 23:55:19 +02:00
mingw-w64-install {
target.path = $$(INSTALL_ROOT)
target.extra = install -m755 -D $${OUT_PWD}/release/$(TARGET) $$(INSTALL_ROOT)/bin/$(TARGET)
INSTALLS += target
} else {
target.path = $$(INSTALL_ROOT)/bin
INSTALLS += target
}
!mingw-w64-install {
icon.path = $$(INSTALL_ROOT)/share/icons/hicolor/scalable/apps/
icon.files = $${PWD}/resources/icons/hicolor/scalable/apps/$${projectname}.svg
INSTALLS += icon
menu.path = $$(INSTALL_ROOT)/share/applications/
menu.files = $${PWD}/resources/desktop/applications/$${projectname}.desktop
INSTALLS += menu
}