Skip to content

Commit

Permalink
initial port to qml
Browse files Browse the repository at this point in the history
  • Loading branch information
Bronson Mathews committed Jul 9, 2020
1 parent 8a9988b commit 95271f2
Show file tree
Hide file tree
Showing 32 changed files with 811 additions and 540 deletions.
99 changes: 53 additions & 46 deletions audiobook.pro
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
######################################################################
# Automatically generated by qmake (3.1) Sat Mar 31 10:41:04 2018
######################################################################

TEMPLATE = app
TARGET = audiobook

APP_NAME = "AudioBook"
APP_LOW_NAME = "audiobook"
APP_AUTHOR = "Bronson Mathews"
APP_COPYRIGHT = "(C) 2018 $$APP_AUTHOR"
APP_REVERSE_NAME = "io.bitshift.audiobook"

INCLUDEPATH += . /usr/local/include/
QT += charts qml quick svg
QT += widgets multimedia core
#LIBS += -ltag -lz

android: {
QT += androidextras
# include(3rdparty/kirigami/kirigami.pri)
}

CONFIG += c++11

# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =

# The following define makes your compiler warn you if you use any
# feature of Qt which has been marked as deprecated (the exact warnings
# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =

# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
Expand All @@ -27,28 +28,37 @@ DEFINES += QT_DEPRECATED_WARNINGS
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0

# Input
HEADERS += src/book.h \
src/library.h \
src/librarymodel.h \
src/mainwindow.h \
src/player.h \
src/audioutil.h \
src/stretchingheader.h

FORMS += src/mainwindow.ui

SOURCES += src/book.cpp \
src/library.cpp \
src/librarymodel.cpp \
src/main.cpp \
src/mainwindow.cpp \
src/player.cpp \
src/audioutil.cpp \
src/stretchingheader.cpp
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target



HEADERS += \
src/book.h \
src/library.h \
src/librarymodel.h \
src/mainwindow.h \
src/player.h \
src/stretchingheader.h \
src/settings.h \
src/util.h

SOURCES += \
src/book.cpp \
src/library.cpp \
src/librarymodel.cpp \
src/main.cpp \
src/mainwindow.cpp \
src/player.cpp \
src/stretchingheader.cpp \
src/settings.cpp \
src/util.cpp

RESOURCES += \
res/resources.qrc
res/resources.qrc \
src/qml.qrc

# Install all files on Linux. For make install
unix:!mac:!android {
Expand All @@ -67,16 +77,13 @@ unix:!mac:!android {
}

android {
target.path = $$PREFIX

INSTALLS += target
}

DISTFILES += \
src/taglib/CMakeLists.txt \
src/taglib/ape/ape-tag-format.txt \
src/taglib/mpeg/id3v2/id3v2.2.0.txt \
src/taglib/mpeg/id3v2/id3v2.3.0.txt \
src/taglib/mpeg/id3v2/id3v2.4.0-frames.txt \
src/taglib/mpeg/id3v2/id3v2.4.0-structure.txt \
src/taglib/taglib_config.h.cmake
android/AndroidManifest.xml \
android/AndroidManifest.xml \
android/build.gradle \
android/gradle/wrapper/gradle-wrapper.jar \
android/gradle/wrapper/gradle-wrapper.properties \
android/gradlew \
android/gradlew.bat \
android/res/values/libs.xml
}
12 changes: 12 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def main():
menu['4'] = ['Run mobile', 'run_mobile']
menu['5'] = ['Debug (GDB)', 'debug']
menu['p'] = ['pkgbuild', 'pkgbuild']
menu['i'] = ['install', 'install']
menu['0'] = ['Requirements', 'requirements']

print('\n********************')
Expand All @@ -50,6 +51,17 @@ def main():
return


def install():
run('''
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install
''')
return


def pkgbuild():
log('create .srcinfo')
run('makepkg --printsrcinfo > .SRCINFO')
Expand Down
7 changes: 0 additions & 7 deletions install_cmake.sh

This file was deleted.

6 changes: 0 additions & 6 deletions install_qmake.sh

This file was deleted.

File renamed without changes.
Binary file added res/bitshift.audiobook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 95271f2

Please sign in to comment.