-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
updater.pri
47 lines (40 loc) · 1.42 KB
/
updater.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
DEFINES *= UPDATER
INCLUDEPATH += $$PWD/src
HEADERS += $$PWD/src/updater.h
SOURCES += $$PWD/src/updater.cpp
macx:!contains(DEFINES, UPDATER_NO_SPARKLE) {
DEFINES += UPDATER_SPARKLE
INCLUDEPATH += $$PWD/src/sparkle
LIBS += -F/Library/Frameworks -framework Sparkle
INCLUDEPATH += /Library/Frameworks/Sparkle.framework/Headers
# Hack to get the inclusion of headers working
# Sparkle includes stuff using <Sparkle/SUClass>
# We need to create a Sparkle subdir inside Sparkle-headers
INCLUDEPATH += /Library/Frameworks/Sparkle-headers
HEADERS += $$PWD/src/sparkle/sparkleupdater.h
OBJECTIVE_SOURCES += $$PWD/src/sparkle/sparkleupdater.mm
} else {
DEFINES += UPDATER_DEFAULT
QT *= network widgets
INCLUDEPATH += $$PWD/src/impl
HEADERS += \
$$PWD/src/impl/checker.h \
$$PWD/src/impl/defaultupdater.h \
$$PWD/src/impl/dialog.h \
$$PWD/src/impl/downloader.h \
$$PWD/src/impl/installer.h \
$$PWD/src/impl/parser.h \
$$PWD/src/impl/runinstaller.h \
$$PWD/src/impl/simplexmlparser.h \
$$PWD/src/impl/appcastparser.h \
$$PWD/src/impl/openinstaller.h
SOURCES += \
$$PWD/src/impl/checker.cpp \
$$PWD/src/impl/defaultupdater.cpp \
$$PWD/src/impl/dialog.cpp \
$$PWD/src/impl/downloader.cpp \
$$PWD/src/impl/runinstaller.cpp \
$$PWD/src/impl/simplexmlparser.cpp \
$$PWD/src/impl/appcastparser.cpp \
$$PWD/src/impl/openinstaller.cpp
}