-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
rdm.pro
126 lines (98 loc) · 3.04 KB
/
rdm.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
#-------------------------------------------------
#
# Redis Desktop Manager
#
#-------------------------------------------------
QT += core gui network concurrent widgets quick quickwidgets webengine
TARGET = rdm
TEMPLATE = app
# Skip version file
!exists( $$PWD/version.h ) {
DEFINES += RDM_VERSION=\\\"0.8.3-dev\\\"
message("Version: 0.8.3-dev")
}
DEFINES += CORE_LIBRARY ELPP_QT_LOGGING ELPP_STL_LOGGING ELPP_DISABLE_DEFAULT_CRASH_HANDLING
SOURCES += \
$$PWD/main.cpp \
$$PWD/app/dialogs/*.cpp \
$$PWD/app/models/*.cpp \
$$PWD/app/models/key-models/*.cpp \
$$PWD/app/widgets/*.cpp \
$$PWD/modules/connections-tree/*.cpp \
$$PWD/modules/connections-tree/items/*.cpp \
$$PWD/modules/console/*.cpp \
$$PWD/modules/value-editor/*.cpp \
$$PWD/modules/crashhandler/*.cpp \
$$PWD/modules/updater/*.cpp \
HEADERS += \
$$PWD/app/dialogs/*.h \
$$PWD/app/models/*.h \
$$PWD/app/models/key-models/*.h \
$$PWD/app/widgets/*.h \
$$PWD/modules/connections-tree/*.h \
$$PWD/modules/connections-tree/items/*.h \
$$PWD/modules/console/*.h \
$$PWD/modules/value-editor/*.h \
$$PWD/modules/crashhandler/*.h \
$$PWD/modules/updater/*.h \
$$PWD/modules/*.h \
exists( $$PWD/version.h ) {
HEADERS += $$PWD/version.h
}
FORMS += \
$$PWD/app/forms/*.ui \
LIBS += -lz
THIRDPARTYDIR = $$PWD/../3rdparty/
include($$THIRDPARTYDIR/3rdparty.pri)
win32 {
CONFIG += c++11
LIBS += -lws2_32 -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32
RC_FILE += $$PWD/resources/rdm.rc
release: DESTDIR = ./../bin/windows/release
debug: DESTDIR = ./../bin/windows/debug
}
unix:macx { # OSX
CONFIG += c++11
debug: CONFIG-=app_bundle
release: DESTDIR = ./../bin/osx/release
debug: DESTDIR = ./../bin/osx/debug
#deployment
QMAKE_INFO_PLIST = $$PWD/resources/Info.plist
ICON = $$PWD/resources/rdm.icns
release {
CRASHREPORTER_APP.files = $$DESTDIR/crashreporter
CRASHREPORTER_APP.path = Contents/MacOS
QMAKE_BUNDLE_DATA += CRASHREPORTER_APP
}
}
unix:!macx { # ubuntu & debian
CONFIG += static release
CONFIG -= debug
QMAKE_LFLAGS += -static-libgcc -static-libstdc++
release: DESTDIR = ./../bin/linux/release
debug: DESTDIR = ./../bin/linux/debug
#deployment
target.path = /usr/share/redis-desktop-manager/bin
target.files = $$DESTDIR/rdm $$DESTDIR/crashreporter $$PWD/resources/qt.conf $$PWD/resources/rdm.png $$PWD/resources/rdm.sh
INSTALLS += target
data.path = /usr/share/redis-desktop-manager/lib
data.files = $$PWD/lib/*
INSTALLS += data
deskicon.path = /usr/share/applications
deskicon.files = $$PWD/resources/rdm.desktop
INSTALLS += deskicon
}
UI_DIR = $$DESTDIR/ui
OBJECTS_DIR = $$DESTDIR/obj
MOC_DIR = $$DESTDIR/obj
RCC_DIR = $$DESTDIR/obj
INCLUDEPATH += $$PWD/ \
$$PWD/modules/ \
$$UI_DIR/ \
RESOURCES += \
$$PWD/resources/rdm.qrc \
$$PWD/resources/fonts.qrc \
OTHER_FILES += \
qt.conf \
Info.plist \
qml\*.qml \