-
Notifications
You must be signed in to change notification settings - Fork 55
/
nitrokey-app-qt5.pro
148 lines (116 loc) · 4.25 KB
/
nitrokey-app-qt5.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# message("CONFIG: $${CONFIG}")
include(libnitrokey/libnitrokey.pro)
CONFIG += qt c++14
QT += core gui widgets svg concurrent
isEmpty(PREFIX) {
PREFIX = /usr/local
}
target.path = $$PREFIX/bin
desktop.path = $$PREFIX/share/applications
desktop.files = data/nitrokey-app.desktop
icons.files = data/icons/*
icons.path = $$PREFIX/share/icons/
INSTALLS = target desktop icons
sources.files = qss
TARGET = nitrokey-app
TEMPLATE = app
VERSION = 1.5.0
VERSION_STR = 1.5.0
QMAKE_TARGET_COMPANY = Nitrokey
QMAKE_TARGET_PRODUCT = Nitrokey App
QMAKE_TARGET_DESCRIPTION = Nitrokey Device Manager
QMAKE_TARGET_COPYRIGHT = Copyright (c) 2012-2021 Nitrokey GmbH
ROOTDIR=$$PWD
UIDIR=$${ROOTDIR}/src/ui
SRCDIR=$${ROOTDIR}/src
SRCUIDIR=$${SRCDIR}/ui
UTILSDIR=$${SRCDIR}/utils
COREDIR=$${SRCDIR}/core
GUIDIR=$${SRCDIR}/GUI
SOURCES += $${SRCDIR}/main.cpp\
$${SRCUIDIR}/mainwindow.cpp \
$${SRCDIR}/hotpslot.cpp \
$${SRCUIDIR}/stick20updatedialog.cpp \
$${SRCUIDIR}/stick20responsedialog.cpp \
$${SRCUIDIR}/stick20lockfirmwaredialog.cpp \
$${SRCUIDIR}/stick20hiddenvolumedialog.cpp \
$${SRCUIDIR}/stick20debugdialog.cpp \
$${SRCUIDIR}/stick20changepassworddialog.cpp \
$${SRCUIDIR}/pindialog.cpp \
$${SRCUIDIR}/aboutdialog.cpp \
$${SRCUIDIR}/securitydialog.cpp \
$${SRCUIDIR}/nitrokey-applet.cpp \
$${SRCDIR}/core/SecureString.cpp \
$${SRCDIR}/core/ThreadWorker.cpp \
$${SRCDIR}/GUI/Tray.cpp \
$${SRCDIR}/GUI/Clipboard.cpp \
$${SRCDIR}/GUI/Authentication.cpp \
$${SRCDIR}/GUI/StorageActions.cpp \
$${SRCDIR}/GUI/ManageWindow.cpp \
$${SRCDIR}/libada.cpp \
src/ui/licensedialog.cpp \
src/GUI/graphicstools.cpp
HEADERS += $${SRCUIDIR}/mainwindow.h \
$${SRCUIDIR}/stick20updatedialog.h \
$${SRCUIDIR}/stick20responsedialog.h \
$${SRCUIDIR}/stick20lockfirmwaredialog.h \
$${SRCUIDIR}/stick20hiddenvolumedialog.h \
$${SRCUIDIR}/stick20debugdialog.h \
$${SRCUIDIR}/stick20changepassworddialog.h \
$${UTILSDIR}/sleep.h \
$${SRCUIDIR}/pindialog.h \
$${SRCDIR}/hotpslot.h \
$${SRCDIR}/systemutils.h \
$${SRCUIDIR}/aboutdialog.h \
$${SRCUIDIR}/securitydialog.h \
$${SRCDIR}/mcvs-wrapper.h \
$${SRCUIDIR}/nitrokey-applet.h \
$${SRCDIR}/core/SecureString.h \
$${SRCDIR}/core/ThreadWorker.h \
$${SRCDIR}/GUI/Clipboard.h \
$${SRCDIR}/GUI/Authentication.h \
$${SRCDIR}/libada.h \
$${SRCDIR}/GUI/Tray.h \
$${SRCDIR}/GUI/StorageActions.h \
src/ui/licensedialog.h \
src/GUI/graphicstools.h
unix:!macx{
SOURCES += $${SRCDIR}/systemutils.cpp
HEADERS += $${SRCDIR}/systemutils.h
}
FORMS += $${UIDIR}/mainwindow.ui \
$${UIDIR}/stick20updatedialog.ui \
$${UIDIR}/stick20responsedialog.ui \
$${UIDIR}/stick20lockfirmwaredialog.ui \
$${UIDIR}/stick20hiddenvolumedialog.ui \
$${UIDIR}/stick20debugdialog.ui \
$${UIDIR}/stick20changepassworddialog.ui \
$${UIDIR}/pindialog.ui \
$${UIDIR}/aboutdialog.ui \
$${UIDIR}/securitydialog.ui \
src/ui/licensedialog.ui
INCLUDEPATH += $${SRCDIR} \
$${SRCUIDIR} \
$${UTILSDIR} \
$${COREDIR} \
$${ROOTDIR}/3rdparty/cppcodec \
$${GUIDIR}
win32:RC_ICONS = images/icon/nitrokey-app-icon-256-red.ico
macx{
ICON= images/CS_icon.icns
QMAKE_INFO_PLIST = Info.plist
# PLUGINS += iconengines/libqsvgicon.dylib
# QTPLUGIN += qsvgicon libqsvgicon
# CONFIG += import_plugins
}
OTHER_FILES +=
RESOURCES += \
$${ROOTDIR}/resources.qrc
TRANSLATIONS += i18n/nitrokey_de_DE.ts \
i18n/nitrokey_arabic.ts \
i18n/nitrokey_en.ts \
i18n/nitrokey_pl.ts \
i18n/nitrokey_fr.ts \
i18n/nitrokey_it.ts
DEFINES += GIT_VERSION=\"\\\"$$system(git describe --abbrev=4 --always)\\\"\" GUI_VERSION="\\\"$${VERSION_STR}\\\""
message($$DEFINES)