-
Notifications
You must be signed in to change notification settings - Fork 83
/
octopi.pro
220 lines (195 loc) · 6.29 KB
/
octopi.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
#-------------------------------------------------
#
# Project created by QtCreator 2013-02-21T18:57:08
#
#-------------------------------------------------
QT += core gui network xml widgets multimedia
DEFINES += OCTOPI_EXTENSIONS ALPM_BACKEND
# Disable automatic string conversions
DEFINES += QT_USE_QSTRINGBUILDER \
QT_NO_CAST_FROM_ASCII \
QT_NO_CAST_TO_ASCII \
QT_NO_URL_CAST_FROM_STRING \
QT_NO_CAST_FROM_BYTEARRAY
CONFIG += qt warn_on debug link_pkgconfig ALPM_BACKEND USE_QTERMWIDGET6
ALPM_BACKEND {
QMAKE_CXXFLAGS += -std=c++17
PKGCONFIG += glib-2.0 libalpm
LIBS += -lalpm_octopi_utils
} else {
QMAKE_CXXFLAGS += -std=c++17
}
USE_QTERMWIDGET6 {
LIBS += -lqtermwidget6
QT += core5compat
} else {
LIBS += -lqtermwidget5
}
TEMPLATE = app
DESTDIR += bin
OBJECTS_DIR += build
MOC_DIR += build
UI_DIR += build
HEADERS += src/QtSolutions/qtsingleapplication.h \
src/QtSolutions/qtlocalpeer.h \
repoeditor/repoentry.h \
src/aurvote.h \
src/propertiestabwidget.h \
src/qaesencryption.h \
src/repoconf.h \
src/mainwindow.h \
src/strconstants.h \
src/searchlineedit.h \
src/argumentlist.h \
src/settingsmanager.h \
src/uihelper.h \
src/package.h \
src/unixcommand.h \
src/wmhelper.h \
src/treeviewpackagesitemdelegate.h \
src/searchbar.h \
src/transactiondialog.h \
src/globals.h \
src/multiselectiondialog.h \
src/packagerepository.h \
src/model/packagemodel.h \
src/ui/octopitabinfo.h \
src/utils.h \
src/terminal.h \
src/pacmanexec.h \
src/constants.h \
src/optionsdialog.h \
src/packagetreeview.h \
src/termwidget.h
ALPM_BACKEND{
HEADERS += src/alpmbackend.h
}
SOURCES += src/QtSolutions/qtsingleapplication.cpp \
src/QtSolutions/qtlocalpeer.cpp \
repoeditor/repoentry.cpp \
src/aurvote.cpp \
src/propertiestabwidget.cpp \
src/qaesencryption.cpp \
src/repoconf.cpp \
src/main.cpp\
src/mainwindow.cpp \
src/strconstants.cpp \
src/searchlineedit.cpp \
src/argumentlist.cpp \
src/settingsmanager.cpp \
src/package.cpp \
src/unixcommand.cpp \
src/wmhelper.cpp \
src/treeviewpackagesitemdelegate.cpp \
src/mainwindow_init.cpp \
src/mainwindow_transaction.cpp \
src/mainwindow_events.cpp \
src/mainwindow_help.cpp \
src/searchbar.cpp \
src/mainwindow_searchbar.cpp \
src/transactiondialog.cpp \
src/mainwindow_news.cpp \
src/mainwindow_refresh.cpp \
src/globals.cpp \
src/multiselectiondialog.cpp \
src/packagerepository.cpp \
src/model/packagemodel.cpp \
src/ui/octopitabinfo.cpp \
src/utils.cpp \
src/terminal.cpp \
src/pacmanexec.cpp \
src/optionsdialog.cpp \
src/packagetreeview.cpp \
src/termwidget.cpp
ALPM_BACKEND{
SOURCES += src/alpmbackend.cpp
}
FORMS += ui/mainwindow.ui \
ui/transactiondialog.ui \
ui/multiselectiondialog.ui \
ui/optionsdialog.ui
RESOURCES += resources.qrc
TRANSLATIONS += resources/translations/octopi_pt_BR.ts \
resources/translations/octopi_fr \
resources/translations/octopi_fr_FR.ts \
resources/translations/octopi_es_ES.ts \
resources/translations/octopi_es_419.ts \
resources/translations/octopi_es_AR.ts \
resources/translations/octopi_el.ts \
resources/translations/octopi_de.ts \
resources/translations/octopi_it.ts \
resources/translations/octopi_ro.ts \
resources/translations/octopi_tr_TR.ts \
resources/translations/octopi_ar.ts \
resources/translations/octopi_ca.ts \
resources/translations/octopi_bg.ts \
resources/translations/octopi_pl.ts \
resources/translations/octopi_id.ts \
resources/translations/octopi_da.ts \
resources/translations/octopi_cs.ts \
resources/translations/octopi_he.ts \
resources/translations/octopi_hi.ts \
resources/translations/octopi_hi_IN.ts \
resources/translations/octopi_lt.ts \
resources/translations/octopi_nb.ts \
resources/translations/[email protected] \
resources/translations/octopi_sr_RS.ts \
resources/translations/octopi_nl.ts \
resources/translations/octopi_ru.ts \
resources/translations/octopi_uz.ts \
resources/translations/octopi_fi.ts \
resources/translations/octopi_fi_FI.ts \
resources/translations/octopi_vi.ts \
resources/translations/octopi_en.ts \
resources/translations/octopi_en_GB.ts \
resources/translations/octopi_pt_PT.ts \
resources/translations/octopi_sv.ts \
resources/translations/octopi_sl.ts \
resources/translations/octopi_hu.ts \
resources/translations/octopi_zh_TW.ts \
resources/translations/octopi_ms_MY.ts \
resources/translations/octopi_uk.ts \
resources/translations/octopi_sk.ts \
resources/translations/octopi_ja.ts \
resources/translations/octopi_eu.ts \
resources/translations/octopi_gl_ES.ts \
resources/translations/octopi_ast.ts \
resources/translations/octopi_hr.ts \
resources/translations/octopi_zh-Hans.ts \
resources/translations/octopi_zh_CN.ts \
resources/translations/octopi_ko.ts \
resources/translations/octopi_ko_KR.ts
# install
isEmpty(PREFIX) {
PREFIX = /usr
}
isEmpty(BINDIR) {
BINDIR = $$PREFIX/bin
}
isEmpty(DATADIR) {
DATADIR = $$PREFIX/share
}
isEmpty(ETCDIR) {
ETCDIR = /etc
}
isEmpty(LIBDIR) {
LIBDIR = $$PREFIX/lib
}
target.path = $$BINDIR
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
sources.path = .
bin.path = $$BINDIR
desktop.path = $$DATADIR/applications
desktop.files += octopi.desktop
desktop.files += cachecleaner/octopi-cachecleaner.desktop
gnome.path = $$DATADIR/icons/gnome/32x32/apps
gnome.files += resources/images/octopi_green.png
gnome.files += resources/images/octopi.png
icon.path = $$DATADIR/icons
icon.files += resources/images/octopi.png
icon.files += resources/images/octopi_green.png
icon.files += resources/images/octopi_red.png
icon.files += resources/images/octopi_yellow.png
license.path = $$DATADIR/licenses/octopi
license.files += LICENSE
INSTALLS += target bin desktop gnome icon license