2020-04-24 11:18:26 +03:00
|
|
|
# NOTICE:
|
|
|
|
#
|
|
|
|
# Application name defined in TARGET has a corresponding QML filename.
|
|
|
|
# If name defined in TARGET is changed, the following needs to be done
|
|
|
|
# to match new name:
|
|
|
|
# - corresponding QML filename must be changed
|
|
|
|
# - desktop icon filename must be changed
|
|
|
|
# - desktop filename must be changed
|
|
|
|
# - icon definition filename in desktop file must be changed
|
|
|
|
# - translation filenames have to be changed
|
|
|
|
|
|
|
|
# The name of your application
|
|
|
|
TARGET = harbour-batterybuddy
|
|
|
|
|
2022-03-20 20:26:57 +03:00
|
|
|
CONFIG += console sailfishapp sailfishapp_i18n dbus
|
2020-04-24 11:18:26 +03:00
|
|
|
|
2022-03-19 22:54:01 +03:00
|
|
|
# Keep this in sync with service.pro and .spec
|
2022-08-28 01:03:14 +03:00
|
|
|
VERSION = 4.1.0-1
|
2020-04-24 11:18:26 +03:00
|
|
|
|
|
|
|
DEFINES += APP_VERSION=\"\\\"$$VERSION\\\"\"
|
|
|
|
DEFINES += APP_NAME=\"\\\"$$TARGET\\\"\"
|
|
|
|
|
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 += \
|
|
|
|
src/battery.h \
|
2021-04-17 22:01:19 +03:00
|
|
|
src/logger.h \
|
2022-03-20 20:26:57 +03:00
|
|
|
src/settings.h
|
2020-04-24 11:18:26 +03:00
|
|
|
|
|
|
|
SOURCES += src/harbour-batterybuddy.cpp \
|
|
|
|
src/battery.cpp \
|
2021-04-17 22:01:19 +03:00
|
|
|
src/logger.cpp \
|
2020-04-24 11:18:26 +03:00
|
|
|
src/settings.cpp
|
|
|
|
|
|
|
|
DISTFILES += qml/harbour-batterybuddy.qml \
|
|
|
|
qml/components/AboutLabel.qml \
|
|
|
|
qml/components/MyLabel.qml \
|
|
|
|
qml/pages\LicensePage.qml \
|
|
|
|
qml/cover/CoverPage.qml \
|
2020-12-29 21:23:23 +03:00
|
|
|
rpm/harbour-batterybuddy.spec \
|
2020-04-24 11:18:26 +03:00
|
|
|
service/harbour-batterybuddy.service \
|
2020-06-11 12:18:11 +03:00
|
|
|
service/harbour-batterybuddy-oneshot.service \
|
|
|
|
service/restore-write-permissions.sh \
|
|
|
|
service/set-write-permissions.sh \
|
2020-04-24 11:18:26 +03:00
|
|
|
translations/*.ts \
|
|
|
|
harbour-batterybuddy.desktop \
|
|
|
|
qml/pages/MainPage.qml \
|
|
|
|
qml/pages/AboutPage.qml \
|
|
|
|
qml/pages/InfoPage.qml \
|
2020-12-29 21:23:23 +03:00
|
|
|
rpm/harbour-batterybuddy.changes \
|
2020-04-24 11:18:26 +03:00
|
|
|
qml/components/BatteryGraph.qml \
|
|
|
|
qml/pages/SettingsPage.qml \
|
2021-04-10 01:31:03 +03:00
|
|
|
qml/components/MyDetailItem.qml \
|
|
|
|
qml/components/AdjustmentButtons.qml \
|
2022-03-20 20:26:57 +03:00
|
|
|
qml/components/MySlider.qml \
|
|
|
|
qml/components/SystemdUserService.qml
|
2020-04-24 11:18:26 +03:00
|
|
|
|
|
|
|
SAILFISHAPP_ICONS = 86x86 108x108 128x128 172x172
|
|
|
|
|
2021-04-30 23:55:11 +03:00
|
|
|
TRANSLATIONS += translations/harbour-batterybuddy.ts \
|
|
|
|
translations/harbour-batterybuddy-de_DE.ts \
|
|
|
|
translations/harbour-batterybuddy-fi.ts \
|
|
|
|
translations/harbour-batterybuddy-fr.ts \
|
|
|
|
translations/harbour-batterybuddy-hu.ts \
|
|
|
|
translations/harbour-batterybuddy-pl.ts \
|
|
|
|
translations/harbour-batterybuddy-sv.ts \
|
|
|
|
translations/harbour-batterybuddy-zh_CN.ts
|
2020-04-24 11:18:26 +03:00
|
|
|
|
2020-04-26 11:27:37 +03:00
|
|
|
# Executable provided by "service.pro"
|
2020-06-11 12:18:11 +03:00
|
|
|
# Two services, actually
|
|
|
|
OTHER_FILES += service/harbour-batterybuddy.service \
|
|
|
|
service/harbour-batterybuddy-oneshot.service \
|
|
|
|
service/restore-write-permissions.sh \
|
|
|
|
service/set-write-permissions.sh
|
2020-04-24 11:18:26 +03:00
|
|
|
service.files = service
|
|
|
|
service.path = /usr/share/$${TARGET}
|
|
|
|
|
2020-06-11 12:18:11 +03:00
|
|
|
# Include images
|
2020-04-26 17:21:19 +03:00
|
|
|
images.files = images
|
|
|
|
images.path = /usr/share/$${TARGET}
|
|
|
|
|
|
|
|
INSTALLS += service images
|
2020-04-24 11:18:26 +03:00
|
|
|
|
|
|
|
# Begin: include sound files
|
|
|
|
|
|
|
|
#OTHER_FILES += sounds/upperLimit.ogg \
|
|
|
|
# sounds/lowerLimit.ogg \
|
|
|
|
|
|
|
|
#sounds.files = sounds
|
|
|
|
#sounds.path = /usr/share/$${TARGET}
|
|
|
|
|
|
|
|
#INSTALLS += sounds
|
|
|
|
|
|
|
|
# End: include sound files
|