2021-05-23 15:27:26 +03:00
|
|
|
# 0 = Build for SFOS 3.4+ (use the latest Sailfish Application SDK)
|
|
|
|
# 1 = Build for SFOS 2.2+ (use Sailfish Application SDK 1807)
|
|
|
|
LEGACY_BUILD = 0
|
|
|
|
|
2020-04-24 11:18:26 +03:00
|
|
|
TARGET = harbour-batterybuddy-daemon
|
|
|
|
|
2021-04-24 18:17:27 +03:00
|
|
|
CONFIG += sailfishapp console
|
2020-04-24 11:18:26 +03:00
|
|
|
|
2021-05-23 15:27:26 +03:00
|
|
|
contains(LEGACY_BUILD, 0) { QT = core dbus }
|
|
|
|
contains(LEGACY_BUILD, 1) { QT = core dbus multimedia }
|
2020-11-30 21:47:08 +03:00
|
|
|
|
|
|
|
PKGCONFIG += nemonotifications-qt5
|
2020-04-26 11:27:37 +03:00
|
|
|
|
|
|
|
# Keep this in sync with "application.pro"
|
2021-05-23 15:27:26 +03:00
|
|
|
VER = 3.13
|
|
|
|
REL = 1
|
2020-04-26 11:27:37 +03:00
|
|
|
|
|
|
|
VERSION = $${VER}-$${REL}
|
|
|
|
DEFINES += APP_VERSION=\"\\\"$$VERSION\\\"\"
|
|
|
|
DEFINES += APP_NAME=\"\\\"$$TARGET\\\"\"
|
2021-05-23 15:27:26 +03:00
|
|
|
DEFINES += LEGACY_BUILD=$${LEGACY_BUILD}
|
2020-04-24 11:18:26 +03:00
|
|
|
|
2021-04-17 22:01:19 +03:00
|
|
|
# Use "--verbose" and "--debug" at runtime.
|
|
|
|
# See main() and logger.h for details.
|
|
|
|
DEFINES += QT_NO_DEBUG_OUTPUT
|
|
|
|
|
2020-04-24 11:18:26 +03:00
|
|
|
HEADERS += \
|
2020-04-26 11:30:30 +03:00
|
|
|
src/battery.h \
|
2021-04-17 22:01:19 +03:00
|
|
|
src/logger.h \
|
2020-04-26 11:30:30 +03:00
|
|
|
src/settings.h
|
2020-04-24 11:18:26 +03:00
|
|
|
|
|
|
|
SOURCES += \
|
2020-04-26 11:30:30 +03:00
|
|
|
src/battery.cpp \
|
2021-04-17 22:01:19 +03:00
|
|
|
src/logger.cpp \
|
2020-04-26 11:30:30 +03:00
|
|
|
src/settings.cpp \
|
2020-04-24 11:18:26 +03:00
|
|
|
src/harbour-batterybuddy-daemon.cpp
|
|
|
|
|
2021-05-23 15:27:26 +03:00
|
|
|
contains(LEGACY_BUILD, 1) {
|
|
|
|
HEADERS += src/profile.h \
|
|
|
|
src/mynotification_sfos2.h
|
|
|
|
SOURCES += src/profile.cpp \
|
|
|
|
src/mynotification_sfos2.cpp
|
|
|
|
}
|
|
|
|
|
|
|
|
contains(LEGACY_BUILD, 0) {
|
|
|
|
HEADERS += src/mynotification.h
|
|
|
|
SOURCES += src/mynotification.cpp
|
|
|
|
}
|
|
|
|
|
2020-04-24 11:18:26 +03:00
|
|
|
OTHER_FILES += harbour-batterybuddy-daemon.service
|
|
|
|
|
|
|
|
service.path = /usr/lib/systemd/user/
|
|
|
|
service.files += harbour-batterybuddy-daemon.service
|
|
|
|
target.path = /usr/bin/
|
|
|
|
|
|
|
|
INSTALLS += target service
|