Make LenaPi usable on Android devices
- Add app icon - prevend android device from shutting down cpu while playing music - fix scaling bug - fix energy saver for RasPi by reconnecting to music player - minor refactorings and renaming
This commit is contained in:
parent
851b83a53a
commit
1f12d93300
19 changed files with 499 additions and 48 deletions
|
|
@ -1,12 +1,16 @@
|
|||
TEMPLATE = app
|
||||
|
||||
linux:android {
|
||||
QT += androidextras
|
||||
ANDROID_PERMISSIONS += android.permission.WAKE_LOCK
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android-files
|
||||
QMAKE_CXXFLAGS += -DANDROID=1
|
||||
}
|
||||
QT += qml quick multimedia
|
||||
CONFIG += c++11
|
||||
LIBS +=
|
||||
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android-files
|
||||
SOURCES += main.cpp \
|
||||
controllers/MusicPlayer.cpp \
|
||||
controllers/StyleController.cpp \
|
||||
controllers/StyleHandling.cpp \
|
||||
models/NavigationListModel.cpp \
|
||||
models/NavigationItemModel.cpp \
|
||||
controllers/NavigationController.cpp \
|
||||
|
|
@ -42,7 +46,7 @@ else: unix:!android: target.path = /opt/$${TARGET}/bin
|
|||
|
||||
HEADERS += \
|
||||
controllers/MusicPlayer.h \
|
||||
controllers/StyleController.h \
|
||||
controllers/StyleHandling.h \
|
||||
models/MusicPlayer.h \
|
||||
models/NavigationListModel.h \
|
||||
models/NavigationItemModel.h \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue