harbour-batterybuddy/service/service.pro

57 lines
1.3 KiB
Prolog
Raw Normal View History

# 0 = Compatible with SFOS 4.0+
# 1 = Compatible SFOS 2.2+
2021-07-25 21:14:33 +03:00
LEGACY_BUILD = 0
2021-05-23 15:27:26 +03:00
TARGET = harbour-batterybuddy-daemon
2022-03-19 23:49:05 +03:00
CONFIG += console
2021-05-23 15:27:26 +03:00
contains(LEGACY_BUILD, 0) { QT = core dbus }
contains(LEGACY_BUILD, 1) { QT = core dbus multimedia }
PKGCONFIG += nemonotifications-qt5
2022-03-19 22:54:01 +03:00
# Keep this in sync with application.pro and .spec
VERSION = 3.16.2-1
DEFINES += APP_VERSION=\"\\\"$$VERSION\\\"\"
DEFINES += APP_NAME=\"\\\"$$TARGET\\\"\"
2021-05-23 15:27:26 +03:00
DEFINES += LEGACY_BUILD=$${LEGACY_BUILD}
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
2022-03-19 23:49:05 +03:00
LIBS += -lkeepalive -lnemonotifications-qt5
HEADERS += \
src/battery.h \
2021-04-17 22:01:19 +03:00
src/logger.h \
src/settings.h
SOURCES += \
src/battery.cpp \
2021-04-17 22:01:19 +03:00
src/logger.cpp \
src/settings.cpp \
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
}
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