Skip to content

Commit

Permalink
Fix epaper build
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Jan 16, 2024
1 parent 50e98dc commit bcebe32
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 9 deletions.
6 changes: 4 additions & 2 deletions applications/system-service/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
#include "systemapi.h"
#include "digitizerhandler.h"
#include "notificationapi.h"
#include "mxcfb.h"
#include "screenapi.h"
#include "buttonhandler.h"

#ifndef EPAPER
#ifdef EPAPER
#include "mxcfb.h"
#include <epframebuffer.h>
#else
#define FRAMEBUFFER new QImage(200, 200, QImage::Format_ARGB32_Premultiplied)
#endif

Expand Down
4 changes: 3 additions & 1 deletion applications/system-service/appsapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
#include "notificationapi.h"
#include "systemapi.h"

#ifndef EPAPER
#ifdef EPAPER
#include <epframebuffer.h>
#else
#define FRAMEBUFFER new QImage(200, 200, QImage::Format_ARGB32_Premultiplied)
#endif

Expand Down
4 changes: 3 additions & 1 deletion applications/system-service/notification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#include "appsapi.h"
#include "screenapi.h"

#ifndef EPAPER
#ifdef EPAPER
#include <epframebuffer.h>
#else
#define FRAMEBUFFER new QImage(200, 200, QImage::Format_ARGB32_Premultiplied)
#endif

Expand Down
4 changes: 3 additions & 1 deletion applications/system-service/notificationapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

#include "notificationapi.h"
#include "systemapi.h"
#ifndef EPAPER
#ifdef EPAPER
#include <epframebuffer.h>
#else
#define FRAMEBUFFER new QImage(200, 200, QImage::Format_ARGB32_Premultiplied)
#endif

Expand Down
1 change: 1 addition & 0 deletions qmake/epaper.pri
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
linux-oe-g++{
LIBS += -L$$OUT_PWD/../../shared/epaper -lqsgepaper
INCLUDEPATH += $$OUT_PWD/../../shared/epaper
DEFINES += EPAPER
}
2 changes: 0 additions & 2 deletions shared/liboxide/liboxide.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@
#include "oxide_sentry.h"
#else
#include "sentry.h"
#ifdef __arm__
#ifdef EPAPER
Q_IMPORT_PLUGIN(QsgEpaperPlugin)
#endif
#endif
#endif

#include <QDebug>
#include <QScopeGuard>
Expand Down
7 changes: 5 additions & 2 deletions shared/shared.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ SUBDIRS = \
liboxide

linux-oe-g++{
SUBDIRS += sentry
SUBDIRS += epaper
liboxide.depends = sentry epaper
liboxide.depends += epaper
contains(DEFINES, SENTRY){
SUBDIRS += sentry
liboxide.depends += sentry
}
}
INSTALLS += $$SUBDIRS

0 comments on commit bcebe32

Please sign in to comment.