forked from mooltipass/moolticute
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gui.pro
243 lines (218 loc) · 6.82 KB
/
gui.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
QT += core network websockets gui widgets
TEMPLATE = app
TARGET = moolticute
CONFIG += c++11
INCLUDEPATH += $$PWD/src $$PWD/src/Settings
mac {
LIBS += -framework ApplicationServices -framework IOKit -framework CoreFoundation -framework Cocoa -framework Foundation
}
win32 {
LIBS += -luser32
}
linux {
QT += dbus
}
include(src/QtAwesome/QtAwesome/QtAwesome.pri)
include (src/QSimpleUpdater/QSimpleUpdater.pri)
include (src/qtcsv/qtcsv.pri)
SOURCES += src/main_gui.cpp \
src/ClickableLabel.cpp \
src/MainWindow.cpp \
src/NotesManagement.cpp \
src/ParseDomain.cpp \
src/Common.cpp \
src/TOTPCredential.cpp \
src/WSClient.cpp \
src/RotateSpinner.cpp \
src/AppGui.cpp \
src/DaemonMenuAction.cpp \
src/AutoStartup.cpp \
src/WindowLog.cpp \
src/OutputLog.cpp \
src/AnsiEscapeCodeHandler.cpp \
src/PasswordLineEdit.cpp \
src/CredentialsManagement.cpp \
src/utils/GridLayoutUtil.cpp \
src/zxcvbn-c/zxcvbn.c \
src/FilesManagement.cpp \
src/SSHManagement.cpp \
src/CredentialView.cpp \
src/CredentialModel.cpp \
src/CredentialModelFilter.cpp \
src/ItemDelegate.cpp \
src/LoginItem.cpp \
src/TreeItem.cpp \
src/ServiceItem.cpp \
src/RootItem.cpp \
src/AnimatedColorButton.cpp \
src/PasswordProfilesModel.cpp \
src/PassGenerationProfilesDialog.cpp \
src/DbBackupsTracker.cpp \
src/DbBackupsTrackerController.cpp \
src/PromptWidget.cpp \
src/DbExportsRegistry.cpp \
src/DbExportsRegistryController.cpp \
src/DbBackupChangeNumbersComparator.cpp \
src/DbMasterController.cpp \
src/SystemEventHandler.cpp \
src/SystemNotifications/SystemNotification.cpp \
src/RequestLoginNameDialog.cpp \
src/RequestDomainSelectionDialog.cpp \
src/BleDev.cpp \
src/Settings/DeviceSettings.cpp \
src/Settings/DeviceSettingsBLE.cpp \
src/Settings/DeviceSettingsMini.cpp \
src/Settings/SettingsGuiHelper.cpp \
src/Settings/SettingsGuiMini.cpp \
src/Settings/SettingsGuiBLE.cpp \
src/DeviceDetector.cpp \
src/FidoManagement.cpp \
HEADERS += src/MainWindow.h \
src/ClickableLabel.h \
src/NotesManagement.h \
src/ParseDomain.h \
src/Common.h \
src/QtHelper.h \
src/TOTPCredential.h \
src/WSClient.h \
src/RotateSpinner.h \
src/utils/GridLayoutUtil.h \
src/version.h \
src/AppGui.h \
src/DaemonMenuAction.h \
src/AutoStartup.h \
src/WindowLog.h \
src/OutputLog.h \
src/AnsiEscapeCodeHandler.h \
src/PasswordLineEdit.h \
src/CredentialsManagement.h \
src/zxcvbn-c/dict-src.h \
src/zxcvbn-c/zxcvbn.h \
src/FilesManagement.h \
src/SSHManagement.h \
src/CredentialView.h \
src/ServiceItem.h \
src/TreeItem.h \
src/RootItem.h \
src/LoginItem.h \
src/ItemDelegate.h \
src/CredentialModel.h \
src/CredentialModelFilter.h \
src/AnimatedColorButton.h \
src/PasswordProfilesModel.h \
src/PassGenerationProfilesDialog.h \
src/DbBackupsTracker.h \
src/DbBackupsTrackerController.h \
src/PromptWidget.h \
src/DbExportsRegistry.h \
src/DbExportsRegistryController.h \
src/DbBackupChangeNumbersComparator.h \
src/DbMasterController.h \
src/SystemEventHandler.h \
src/SystemEvent.h \
src/RequestLoginNameDialog.h \
src/RequestDomainSelectionDialog.h \
src/SystemNotifications/ISystemNotification.h \
src/SystemNotifications/SystemNotification.h \
src/BleDev.h \
src/Settings/DeviceSettings.h \
src/Settings/DeviceSettingsBLE.h \
src/Settings/DeviceSettingsMini.h \
src/Settings/SettingsGuiHelper.h \
src/Settings/SettingsGuiMini.h \
src/Settings/SettingsGuiBLE.h \
src/Settings/ISettingsGui.h \
src/DeviceDetector.h \
src/FidoManagement.h
mac {
HEADERS += src/MacUtils.h \
src/MacSystemEvents.h \
src/SystemNotifications/SystemNotificationMac.h \
src/SystemNotifications/MacNotify.h
SOURCES += src/SystemNotifications/SystemNotificationMac.cpp
OBJECTIVE_SOURCES += src/MacUtils.mm \
src/MacSystemEvents.mm \
src/SystemNotifications/MacNotify.mm
}
INCLUDEPATH += src\
src/zxcvbn-c
FORMS += src/MainWindow.ui \
src/NotesManagement.ui \
src/TOTPCredential.ui \
src/WindowLog.ui \
src/CredentialsManagement.ui \
src/FilesManagement.ui \
src/SSHManagement.ui \
src/PassGenerationProfilesDialog.ui \
src/RequestDomainSelectionDialog.ui \
src/RequestLoginNameDialog.ui \
src/BleDev.ui \
src/FidoManagement.ui
RESOURCES += \
img/images.qrc \
lang.qrc
win32 {
RC_FILE = win/windows_res.rc
HEADERS += src/SystemNotifications/SystemNotificationWindows.h
SOURCES += src/SystemNotifications/SystemNotificationWindows.cpp
copydata.commands = $(COPY_FILE) $$shell_path($$PWD\\win\\snoretoast\\*) \"$$shell_path($$OUT_PWD)\"
first.depends = $(first) copydata
export(first.depends)
export(copydata.commands)
QMAKE_EXTRA_TARGETS += first copydata
}
mac {
ICON = img/AppIcon.icns
} else {
ICON = img/AppIcon.svg
}
linux {
HEADERS += src/SystemNotifications/SystemNotificationUnix.h \
src/SystemNotifications/SystemNotificationImageUnix.h
SOURCES += src/SystemNotifications/SystemNotificationUnix.cpp \
src/SystemNotifications/SystemNotificationImageUnix.cpp
}
unix {
# INSTALL RULES
#
isEmpty(PREFIX) {
PREFIX = /usr/local
}
DEFINES += MC_INSTALL_PREFIX=\\\"$$PREFIX\\\"
# install the binary
target.path = $$PREFIX/bin
INSTALLS += target
# install the desktop files
xdgdesktop.path = $$PREFIX/share/applications
xdgdesktop.files += $$PWD/data/moolticute.desktop
INSTALLS += xdgdesktop
# install icons
iconScalable.path = $$PREFIX/share/icons/hicolor/scalable/apps
iconScalable.extra = cp -f $$PWD/img/AppIcon.svg $(INSTALL_ROOT)$$iconScalable.path/moolticute.svg
icon32.path = $$PREFIX/share/icons/hicolor/32x32/apps
icon32.extra = cp $$PWD/img/AppIcon_32.png $(INSTALL_ROOT)$$icon32.path/moolticute.png
icon128.path = $$PREFIX/share/icons/hicolor/128x128/apps
icon128.extra = cp $$PWD/img/AppIcon_128.png $(INSTALL_ROOT)$$icon128.path/moolticute.png
INSTALLS += iconScalable icon32 icon128
}
TRANSLATIONS = \
lang/mc_fr.ts \
lang/mc_de.ts \
lang/mc_ru.ts \
lang/mc_nl.ts \
lang/mc_ja.ts \
lang/mc_pt.ts \
lang/mc_br.ts \
lang/mc_tr.ts \
lang/mc_sv.ts \
lang/mc_hu.ts
#Build *.qm translation files automatically
isEmpty(QMAKE_LRELEASE) {
QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
}
updateqm.input = TRANSLATIONS
updateqm.output = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
updateqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
updateqm.CONFIG += no_link
QMAKE_EXTRA_COMPILERS += updateqm
PRE_TARGETDEPS += compiler_updateqm_make_all