-
Notifications
You must be signed in to change notification settings - Fork 13
/
QAppImageUpdate.pri
82 lines (70 loc) · 2.51 KB
/
QAppImageUpdate.pri
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
INCLUDEPATH += $$PWD $$PWD/include
QT += core network widgets
CONFIG += staticlib
HEADERS += \
$$PWD/include/appimageupdateinformation_p.hpp \
$$PWD/include/zsyncremotecontrolfileparser_p.hpp \
$$PWD/include/zsyncinternalstructures_p.hpp \
$$PWD/include/zsyncwriter_p.hpp \
$$PWD/include/rangereply_p.hpp \
$$PWD/include/rangereply.hpp \
$$PWD/include/rangedownloader_p.hpp \
$$PWD/include/rangedownloader.hpp \
$$PWD/include/qappimageupdateenums.hpp \
$$PWD/include/qappimageupdatecodes.hpp \
$$PWD/include/qappimageupdate_p.hpp \
$$PWD/include/qappimageupdate.hpp \
$$PWD/include/helpers_p.hpp \
$$PWD/include/softwareupdatedialog_p.hpp
SOURCES += \
$$PWD/src/appimageupdateinformation_p.cc \
$$PWD/src/zsyncremotecontrolfileparser_p.cc \
$$PWD/src/zsyncwriter_p.cc \
$$PWD/src/rangereply_p.cc \
$$PWD/src/rangereply.cc \
$$PWD/src/rangedownloader_p.cc \
$$PWD/src/rangedownloader.cc \
$$PWD/src/qappimageupdate_p.cc \
$$PWD/src/qappimageupdate.cc \
$$PWD/src/helpers_p.cc \
$$PWD/src/softwareupdatedialog_p.cc
FORMS += $$PWD/src/AppImageUpdaterDialog.ui \
$$PWD/include/SoftwareUpdateDialog.ui
NO_GUI {
message(QAppImageUpdate widgets will be disabled for this build.)
QT -= widgets
DEFINES += NO_GUI
HEADERS -= $$PWD/include/softwareupdatedialog_p.hpp
SOURCES -= $$PWD/src/softwareupdatedialog_p.cc
FORMS -= $$PWD/src/AppImageUpdaterDialog.ui \
$$PWD/include/SoftwareUpdateDialog.ui
}
LOGGING_DISABLED {
message(Logging will be disabled for this build.)
DEFINES += LOGGING_DISABLED
}
DECENTRALIZED_UPDATE_ENABLED {
message(Decentralized update feature will be enabled for this build.)
DEFINES += DECENTRALIZED_UPDATE_ENABLED
HEADERS += $$PWD/include/torrentdownloader.hpp
HEADERS += $$PWD/include/torrentdownloader_p.hpp
HEADERS += $$PWD/include/seeder.hpp
HEADERS += $$PWD/include/seeder_p.hpp
SOURCES += $$PWD/src/torrentdownloader.cc
SOURCES += $$PWD/src/torrentdownloader_p.cc
SOURCES += $$PWD/src/seeder.cc
SOURCES += $$PWD/src/seeder_p.cc
LIBS += -ltorrent
}else {
message(Decentralized update feature is not enabled.)
}
BUILD_AS_PLUGIN {
message(QAppImageUpdate will be built as an Qt Plugin)
CONFIG -= staticlib
CONFIG += plugin
DEFINES += BUILD_AS_PLUGIN
OTHER_FILES += $$PWD/QAppImageUpdate.json
HEADERS += $$PWD/include/qappimageupdateinterface.hpp \
$$PWD/include/qappimageupdateinterfaceimpl.hpp
SOURCES += $$PWD/src/qappimageupdateinterfaceimpl.cc
}