1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-04 09:42:45 +00:00

Deserialized a list! Restructured project!

I finally got deserializing lists working. Exposing them to QML was not
a trivial task either. Note that I didn't do it the clean way. Nested
lists are not supported. But it works!

Because I got so frustarted at one point trying to implement things the
right way, I restructured the project to seperate the Sailfish code from
the Qt code and created a new, empty desktop project. The Qt code has
been transformed into a happy little library, to which the Sailfish OS
application links.

Note that QMake doesn't seem to strip the library for some reason.
This commit is contained in:
Chris Josten 2020-10-08 03:00:08 +02:00
parent 4e3395c4e5
commit 1e80ceb697
77 changed files with 507 additions and 213 deletions

21
desktop/.qmake.stash Normal file
View file

@ -0,0 +1,21 @@
QMAKE_CXX.QT_COMPILER_STDCXX = 201402L
QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 10
QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 2
QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 0
QMAKE_CXX.COMPILER_MACROS = \
QT_COMPILER_STDCXX \
QMAKE_GCC_MAJOR_VERSION \
QMAKE_GCC_MINOR_VERSION \
QMAKE_GCC_PATCH_VERSION
QMAKE_CXX.INCDIRS = \
/usr/include/c++/10.2.0 \
/usr/include/c++/10.2.0/x86_64-pc-linux-gnu \
/usr/include/c++/10.2.0/backward \
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include \
/usr/local/include \
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed \
/usr/include
QMAKE_CXX.LIBDIRS = \
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0 \
/usr/lib \
/lib

14
desktop/desktop.pro Normal file
View file

@ -0,0 +1,14 @@
TEMPLATE = app
SOURCES += \
src/main.cpp
include(../harbour-sailfin.pri)
# Include our library
LIBS += -L$$OUT_PWD/../core/lib -ljellyfin-qt
core.files += ../core/lib
core.path = /usr/share/$${TARGET}
INSTALLS += core

7
desktop/src/main.cpp Normal file
View file

@ -0,0 +1,7 @@
#include <QGuiApplication>
int main(int argc, char** argv) {
QGuiApplication app(argc, argv);
return app.exec();
}