vvave.pro 3.69 KB
Newer Older
1 2 3 4 5 6 7
QT       += quick
QT       += multimedia
QT       += sql
QT       += websockets
QT       += network
QT       += xml
QT       += qml
Camilo Higuita's avatar
Camilo Higuita committed
8
QT       += widgets
9
QT       += quickcontrols2
10
QT       += concurrent
11 12 13 14

TARGET = vvave
TEMPLATE = app

Camilo Higuita's avatar
Camilo Higuita committed
15
CONFIG += ordered
16
CONFIG += c++11
17
QMAKE_LINK += -nostdlib++
18 19 20

linux:unix:!android {
    message(Building for Linux KDE)
21
    include($$PWD/kde/kde.pri)
22
    LIBS += -lMauiKit
23 24 25

} else:android {
    message(Building helpers for Android)
26
    QT += androidextras webview
27

28
    include($$PWD/3rdparty/taglib.pri)
29
    include($$PWD/android-openssl.pri)
30 31

    include($$PWD/3rdparty/kirigami/kirigami.pri)
32
    include($$PWD/3rdparty/mauikit/mauikit.pri)
33

34
    DEFINES += STATIC_KIRIGAMI
Camilo Higuita's avatar
Camilo Higuita committed
35

36 37 38 39
} else {
    message("Unknown configuration")
}

40
include(pulpo/pulpo.pri)
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56

# 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

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# 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

SOURCES += main.cpp \
    db/collectionDB.cpp \
    services/local/taginfo.cpp \
    services/local/player.cpp \
57
#    utils/brain.cpp \
58 59
    services/local/socket.cpp \
    services/web/youtube.cpp \
60
    vvave.cpp \
61
    services/local/youtubedl.cpp \
62
    services/local/linking.cpp \
63
    services/web/Spotify/spotify.cpp \
64 65
    models/tracks/tracksmodel.cpp \
    models/basemodel.cpp \
66
    models/baselist.cpp \
67
    models/playlists/playlistsmodel.cpp \
68 69
    models/albums/albumsmodel.cpp \
    models/cloud/cloud.cpp
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87


RESOURCES += qml.qrc \

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

# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =


HEADERS += \
    db/collectionDB.h \
    utils/bae.h \
    settings/fileloader.h \
    services/local/taginfo.h \
    services/local/player.h \
    utils/brain.h \
88 89
    services/local/socket.h \
    services/web/youtube.h \
90
    vvave.h \
91
    services/local/youtubedl.h \
92
    services/local/linking.h \
93
    services/web/Spotify/spotify.h \
94 95
    models/tracks/tracksmodel.h \
    models/basemodel.h \
96
    models/baselist.h \
97
    models/playlists/playlistsmodel.h \
98 99
    models/albums/albumsmodel.h \
    models/cloud/cloud.h
100

101
include(install.pri)
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128

#TAGLIB


#INCLUDEPATH += /usr/include/python3.6m

#LIBS += -lpython3.6m
#defineReplace(copyToDir) {
#    files = $$1
#    DIR = $$2
#    LINK =

#    for(FILE, files) {
#        LINK += $$QMAKE_COPY $$shell_path($$FILE) $$shell_path($$DIR) $$escape_expand(\\n\\t)
#    }
#    return($$LINK)
#}

#defineReplace(copyToBuilddir) {
#    return($$copyToDir($$1, $$OUT_PWD))
#}

## Copy the binary files dependent on the system architecture
#unix:!macx {
#    message("Linux")
#    QMAKE_POST_LINK += $$copyToBuilddir($$PWD/library/cat)
#}
Camilo Higuita's avatar
Camilo Higuita committed
129

130 131 132 133 134 135 136 137 138 139 140 141 142 143
DISTFILES += \
    3rdparty/mauikit/src/android/AndroidManifest.xml \
    3rdparty/mauikit/src/android/build.gradle \
    3rdparty/mauikit/src/android/gradle/wrapper/gradle-wrapper.jar \
    3rdparty/mauikit/src/android/gradle/wrapper/gradle-wrapper.properties \
    3rdparty/mauikit/src/android/gradlew \
    3rdparty/mauikit/src/android/gradlew.bat \
    3rdparty/mauikit/src/android/res/values/libs.xml

contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
    ANDROID_PACKAGE_SOURCE_DIR = \
        $$PWD/3rdparty/mauikit/src/android
}

Camilo Higuita's avatar
Camilo Higuita committed
144