-
Notifications
You must be signed in to change notification settings - Fork 2
/
harbour-ringingrestorer.pro
108 lines (90 loc) · 3.28 KB
/
harbour-ringingrestorer.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
# Enable RR_JOLLA_STORE_CRIPPLEd to build a version for Jolla Store
# DEFINES += RR_JOLLA_STORE_CRIPPLED
# If RR_TESTING enabled then restoration happens in seconds instead of minutes (ie. 60 times faster than what is selected)
# DEFINES += RR_TESTING
# The name of your application
TARGET = harbour-ringingrestorer
CONFIG += sailfishapp
# app portion
QT += dbus
# daemon portion
QT += quick qml dbus
# Copied from: https://github.com/sailfishos-patches/partnerspacemanager/blob/master/README.md
QT += gui-private
QMAKE_CXXFLAGS += -std=c++0x
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
# End of daemon portion
SOURCES += src/maininit.cpp \
src/main.cpp \
src/app/controlclient.cpp \
src/app/qmlbackend.cpp \
src/app/appmaininit.cpp \
src/daemon/logic/profilechangewatcher.cpp \
src/daemon/interface/controlinterface.cpp \
src/daemon/qmldaemonbackend.cpp \
src/daemon/profileclient.cpp \
src/daemon/preferences.cpp \
src/daemon/configuration.cpp \
src/daemon/systemalignedtimer.cpp \
src/daemon/daemonmaininit.cpp
HEADERS += src/maininit.h \
src/app/controlclient.h \
src/app/qmlbackend.h \
src/app/appmaininit.h \
src/daemon/logic/profilechangewatcher.h \
src/daemon/interface/controlinterface.h \
src/daemon/profileclient.h \
src/daemon/preferences.h \
src/daemon/configuration.h \
src/daemon/systemalignedtimer.h \
src/daemon/qmldaemonbackend.h \
src/daemon/daemonmaininit.h
contains(DEFINES, RR_JOLLA_STORE_CRIPPLED) {
SOURCES += src/app/processcontrol.cpp
HEADERS += src/app/processcontrol.h
}
OTHER_FILES += qml/app/harbour-ringingrestorer.qml \
qml/app/cover/CoverPage.qml \
qml/app/pages/FirstPage.qml \
qml/app/pages/AboutPage.qml \
qml/daemon/main.qml \
qml/daemon/cover/CoverPage.qml \
qml/daemon/pages/FirstPage.qml \
qml/daemon/pages/RestoreRingingDialog.qml \
translations/*.ts \
harbour-ringingrestorer.desktop \
src/daemon/harbour-ringingrestorer.service \
harbour-ringingrestorer.service
# libiphb sources
SOURCES += src/daemon/libiphb/src/libiphb.c
HEADERS += src/daemon/libiphb/src/libiphb.h src/daemon/libiphb/src/iphb_internal.h
LIBS += -lrt
# nemo-keepalive's heartbeat sources (required by heartbeat)
SOURCES += src/daemon/nemo-keepalive/lib/heartbeat.cpp
HEADERS += src/daemon/nemo-keepalive/lib/heartbeat.h
INCLUDEPATH += $$PWD/src/daemon/include
# BackgroundActivity
#system(qdbusxml2cpp -p src/daemon/generated/mceiface/mceiface.h:src/daemon/generated/mceiface/mceiface.cpp src/daemon/nemo-keepalive/lib/mceiface.xml)
# End of daemon portion
#system(rm -rf rpm/*)
#system(mkdir -p rpm)
#!contains(DEFINES, RR_JOLLA_STORE_CRIPPLED) {
# system(cp rpm.openrepos/* rpm/)
#} else {
# system(cp rpm.jollastore/* rpm/)
#}
OTHER_FILES += \
rpm/harbour-ringingrestorer.changes \
rpm/harbour-ringingrestorer.spec
# to disable building translations every time, comment out the
# following CONFIG line
CONFIG += sailfishapp_i18n
TRANSLATIONS += translations/HelloWorld-de.ts
# Hmmm. I think I did this in the spec. poetaster
# Install systemd specific stuff for OpenRepos version to autostart
!contains(DEFINES, RR_JOLLA_STORE_CRIPPLED) {
systemd.files = src/daemon/$${TARGET}.service
systemd.path = /usr/lib/systemd/user
INSTALLS += systemd
}
DISTFILES +=