-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbasketpwd-gui.pro
87 lines (80 loc) · 2.15 KB
/
basketpwd-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
TEMPLATE = app
TARGET = basketpwd
QT = gui \
core \
xml
# network # перенос в плагины
CONFIG += qt \
# warn_on \
# debug_and_release \
# windows \
ordered
!mac:DESTDIR = bin
OBJECTS_DIR = build
MOC_DIR = build
UI_DIR = build
FORMS = ui/mainwindow.ui \
ui/changepassword.ui \
aboutdialog.ui \
ui/settingsdialog.ui
HEADERS = src/mainwindow.h \
src/changepassword.h \
aboutdialog.h \
src/settingsdialog.h \
model/basketmodel.h \
src/pluginsloader.h
SOURCES = src/mainwindow.cpp \
src/main.cpp \
src/changepassword.cpp \
aboutdialog.cpp \
src/settingsdialog.cpp \
model/basketmodel.cpp \
src/pluginsloader.cpp
RESOURCES += icon-images.qrc
RC_FILE = basketpwd.rc
mac:RC_FILE = images/basketpwd.icns
INCLUDEPATH += libs
QMAKE_INFO_PLIST = tools/Info.plist
ICON_SIZES = 128 192 256 32 36 48 64 72 96
ICON_PATH =
ICON_EXTRA =
INSTALL_ROOT=/usr/local
defineTest(CopyIcons) {
extra =
path =
for(icon_size, ICON_SIZES) {
ICON_EXTRA += install -D -m 0644 -p $${_PRO_FILE_PWD_}/images/icons/basketpwd_$${icon_size}x$${icon_size}.png $(INSTALL_ROOT)/share/icons/hicolor/$${icon_size}x$${icon_size}/apps/basketpwd.png;
ICON_PATH += /share/icons/hicolor/$${icon_size}x$${icon_size}/apps
}
export ( ICON_EXTRA )
export ( ICON_PATH )
}
win32 {
CONFIG += static
INCLUDEPATH += d:/devel/utils/openssl/openssl-shared-64/include
LIBS += -ld:/devel/utils/openssl/openssl-shared-64/lib/libeay32
}
unix {
LIBS += -lcrypto -lssl -lbasketpwd -L./bin
target.path += /bin
basket_desktop.files += tools/basketpwd.desktop
basket_desktop.path += /share/applications
CopyIcons()
basket_icon.extra = $${ICON_EXTRA}
basket_icon.path = $${ICON_PATH}
basket_svg.files += images/icons/basketpwd.svg
basket_svg.path += /share/icons/hicolor/scalable/apps
INSTALLS += target \
basket_desktop \
basket_icon \
basket_svg
}
mac {
TARGET = "Basket of passwords"
}
VERSION = 0.4.7
VERSTR = '\\"$${VERSION}\\"'
DEFINES += VER=\"$${VERSTR}\"
DEFINES += QMAKE_SET=1
OTHER_FILES += ChangeLog.txt
TRANSLATIONS += basketpwd_en.ts